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

Static Public Member Functions

static Resolutions Create (Resolution[] re)
 

Static Public Attributes

static int resolution
 

Protected Member Functions

 Resolutions (Builder builder, IntPtr handle, Resolution[] res)
 
void SetupHandlers ()
 It sets up the event handlers for the delete event and the ok and cancel buttons.
 

Properties

int Resolution [get]
 

Constructor & Destructor Documentation

◆ Resolutions()

BioGTK.Resolutions.Resolutions ( Builder  builder,
IntPtr  handle,
Resolution[]  res 
)
inlineprotected
55 : base(handle)
56 {
57 _builder = builder;
58 builder.Autoconnect(this);
59 resolutionsBox.Adjustment.Upper = res.Length - 1;
60 resolutionsBox.Adjustment.StepIncrement = 1;
61 resolutionsBox.Adjustment.PageIncrement = 1;
63 App.ApplyStyles(this);
64 }
void SetupHandlers()
It sets up the event handlers for the delete event and the ok and cancel buttons.
Definition Resolutions.cs:72

Member Function Documentation

◆ Create()

static Resolutions BioGTK.Resolutions.Create ( Resolution[]  re)
inlinestatic

Create a new Resolutions object, and return it

Parameters
ressThe array of resolutions to be displayed.
Returns
A new instance of the Resolutions class.
48 {
49 Builder builder = new Builder(new FileStream(System.IO.Path.GetDirectoryName(Environment.ProcessPath) + "/" + "Glade/Resolutions.glade", FileMode.Open));
50 Resolutions res = new Resolutions(builder, builder.GetObject("resolutions").Handle, re);
51 return res;
52 }
Resolutions(Builder builder, IntPtr handle, Resolution[] res)
Definition Resolutions.cs:55

◆ SetupHandlers()

void BioGTK.Resolutions.SetupHandlers ( )
inlineprotected

It sets up the event handlers for the delete event and the ok and cancel buttons.

73 {
74 okBut.Clicked += OkBut_Clicked;
75 resolutionsBox.Changed += ResolutionsBox_Changed;
76 this.DeleteEvent += Resolutions_DeleteEvent;
77 }

Member Data Documentation

◆ resolution

int BioGTK.Resolutions.resolution
static

Property Documentation

◆ Resolution

int BioGTK.Resolutions.Resolution
get
36 {
37 get { return resolution; }
38 }
static int resolution
Definition Resolutions.cs:18

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