|
| MagicSelect (Builder builder, IntPtr handle, int index) |
|
◆ MagicSelect()
Bio.MagicSelect.MagicSelect |
( |
Builder |
builder, |
|
|
IntPtr |
handle, |
|
|
int |
index |
|
) |
| |
|
inlineprotected |
49 : base(handle)
50 {
51 _builder = builder;
52 builder.Autoconnect(this);
53 var ths = new ListStore(typeof(string));
54
55 ths.AppendValues("Min");
56 ths.AppendValues("Median");
57 ths.AppendValues("Median - Min");
58
59 thBox.Model = ths;
60
61 var renderer = new CellRendererText();
62 thBox.PackStart(renderer, false);
63 thBox.AddAttribute(renderer, "text", 0);
64 thBox.Active = index;
65 App.ApplyStyles(this);
66 }
◆ Create()
It creates a new instance of the ColorTool class, which is a GTK# widget that allows the user to select a color
- Parameters
-
ColorS | The color to be displayed in the color tool. |
- Returns
- A new instance of the ColorTool class.
42 {
43 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Magic.glade", FileMode.Open));
44 return new MagicSelect(builder, builder.GetObject(
"magicSelect").Handle, index);
45 }
MagicSelect(Builder builder, IntPtr handle, int index)
Definition MagicSelect.cs:49
◆ Index
int Bio.MagicSelect.Index |
|
get |
98 {
99 get
100 {
101 return thBox.Active;
102 }
103 }
◆ Max
94 {
95 get { return (int)maxBox.Value; }
96 }
◆ Min
90 {
91 get { return (int)minBox.Value; }
92 }
◆ Numeric
bool Bio.MagicSelect.Numeric |
|
get |
74 {
75 get
76 {
77 return numericBox.Active;
78 }
79 }
◆ Threshold
int Bio.MagicSelect.Threshold |
|
get |
82 {
83 get
84 {
85 return (int)numBox.Value;
86 }
87 }
The documentation for this class was generated from the following file: