BioGTK  6.5.0
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioGTK.TextInput Class Reference
Inheritance diagram for BioGTK.TextInput:

Static Public Member Functions

static TextInput Create (bool ROItype=true)
 

Protected Member Functions

 TextInput (Builder builder, IntPtr handle)
 

Properties

string Text [get]
 
Gdk.RGBA RGBA [get]
 
string FontFamily [get]
 

Detailed Description

Definition at line 11 of file TextInput.cs.

Constructor & Destructor Documentation

◆ TextInput()

BioGTK.TextInput.TextInput ( Builder builder,
IntPtr handle )
protected

Definition at line 45 of file TextInput.cs.

45 : base(handle)
46 {
47 _builder = builder;
48 builder.Autoconnect(this);
49 okBut.ButtonPressEvent += OkBut_ButtonPressEvent;
50 cancelBut.ButtonPressEvent += CancelBut_ButtonPressEvent;
51 textinputBox.Activated += TextinputBox_Activated;
52 App.ApplyStyles(this);
53 }

Member Function Documentation

◆ Create()

static TextInput BioGTK.TextInput.Create ( bool ROItype = true)
static

It creates a new TextInput object, which is a Gtk.Window, and returns it

Returns
A new instance of the TextInput class.

Definition at line 36 of file TextInput.cs.

37 {
38 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/TextInput.glade", FileMode.Open));
39 var ti = new TextInput(builder, builder.GetObject("textInput").Handle);
40 ti.ROItype = ROItype;
41 return ti;
42 }

Property Documentation

◆ FontFamily

string BioGTK.TextInput.FontFamily
get

Definition at line 130 of file TextInput.cs.

131 {
132 get
133 {
134 return fontBut.FontOptions.HintStyle.ToString();
135 }
136 }

◆ RGBA

Gdk.RGBA BioGTK.TextInput.RGBA
get

Definition at line 124 of file TextInput.cs.

125 {
126 get { return colorBut.Rgba; }
127 }

◆ Text

string BioGTK.TextInput.Text
get

Definition at line 118 of file TextInput.cs.

119 {
120 get { return textinputBox.Text; }
121 }

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