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

Static Public Member Functions

static Tolerance Create ()
 

Protected Member Functions

 Tolerance (Builder builder, IntPtr handle)
 
void SetupHandlers ()
 It sets up the event handlers for the sliders and text boxes.
 

Properties

ColorS ColorS [get]
 

Constructor & Destructor Documentation

◆ Tolerance()

BioGTK.Tolerance.Tolerance ( Builder  builder,
IntPtr  handle 
)
inlineprotected
59 : base(handle)
60 {
61 _builder = builder;
62 builder.Autoconnect(this);
64 rBar.Adjustment.Upper = ushort.MaxValue;
65 gBar.Adjustment.Upper = ushort.MaxValue;
66 bBar.Adjustment.Upper = ushort.MaxValue;
67 rBox.Adjustment.Upper = ushort.MaxValue;
68 rBox.Adjustment.StepIncrement = 1;
69 rBox.Adjustment.PageIncrement = 10;
70 gBox.Adjustment.Upper = ushort.MaxValue;
71 gBox.Adjustment.StepIncrement = 1;
72 gBox.Adjustment.PageIncrement = 10;
73 bBox.Adjustment.Upper = ushort.MaxValue;
74 bBox.Adjustment.StepIncrement = 1;
75 bBox.Adjustment.PageIncrement = 10;
76 App.ApplyStyles(this);
77 }
void SetupHandlers()
It sets up the event handlers for the sliders and text boxes.
Definition Tolerance.cs:83

Member Function Documentation

◆ Create()

static Tolerance BioGTK.Tolerance.Create ( )
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.
52 {
53 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Tolerance.glade", FileMode.Open));
54 return new Tolerance(builder, builder.GetObject("tolerance").Handle);
55 }
Tolerance(Builder builder, IntPtr handle)
Definition Tolerance.cs:59

◆ SetupHandlers()

void BioGTK.Tolerance.SetupHandlers ( )
inlineprotected

It sets up the event handlers for the sliders and text boxes.

84 {
85 rBar.ChangeValue += ChangeValue;
86 gBar.ChangeValue += ChangeValue;
87 bBar.ChangeValue += ChangeValue;
88 rBox.ChangeValue += Box_ChangeValue;
89 gBox.ChangeValue += Box_ChangeValue;
90 bBox.ChangeValue += Box_ChangeValue;
91 cancelBut.Clicked += CancelBut_Clicked;
92 okBut.Clicked += OkBut_Clicked;
93 }

Property Documentation

◆ ColorS

ColorS BioGTK.Tolerance.ColorS
get
137 {
138 get
139 {
140 return new ColorS((ushort)rBox.Value, (ushort)gBox.Value, (ushort)bBox.Value);
141 }
142 }
ColorS ColorS
Definition Tolerance.cs:137

The documentation for this class was generated from the following file: