BioGTK  5.1.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images.
Loading...
Searching...
No Matches
Bio.MagicSelect Class Reference
Inheritance diagram for Bio.MagicSelect:

Static Public Member Functions

static MagicSelect Create (int index)
 

Protected Member Functions

 MagicSelect (Builder builder, IntPtr handle, int index)
 

Properties

bool Numeric [get]
 
int Threshold [get]
 
int Min [get]
 
int Max [get]
 
int Index [get]
 

Constructor & Destructor Documentation

◆ 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 // Add items to the ListStore
55 ths.AppendValues("Min");
56 ths.AppendValues("Median");
57 ths.AppendValues("Median - Min");
58 // Set the model for the ComboBox
59 thBox.Model = ths;
60 // Set the text column to display
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 }

Member Function Documentation

◆ Create()

static MagicSelect Bio.MagicSelect.Create ( int  index)
inlinestatic

It creates a new instance of the ColorTool class, which is a GTK# widget that allows the user to select a color

Parameters
ColorSThe 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

Property Documentation

◆ Index

int Bio.MagicSelect.Index
get
98 {
99 get
100 {
101 return thBox.Active;
102 }
103 }

◆ Max

int Bio.MagicSelect.Max
get
94 {
95 get { return (int)maxBox.Value; }
96 }

◆ Min

int Bio.MagicSelect.Min
get
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: