Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPumpAndRegionContainer ¶
func NewPumpAndRegionContainer() (gtk.IWidget, *PumpControl, *CameraControl, *RegionControl, error)
NewPumpAndRegionContainer creates a box container for both RegionControl and PumpControl
Types ¶
type CameraControl ¶
type CameraControl struct { Control AutoAdjButton *gtk.Button IlluminationScale *gtk.Scale ExposureScale *gtk.Scale // contains filtered or unexported fields }
CameraControl is a collection of controls for the camera
func NewCameraConrol ¶
func NewCameraConrol() (*CameraControl, error)
NewCameraConrol returns the camera controls collection
func (*CameraControl) Root ¶
func (cc *CameraControl) Root() gtk.IWidget
Root returns the root element of these controls
type Control ¶
type Control interface { // Root returns gotk3 type of widget // This widget is root for all represented components of this widget Root() gtk.IWidget }
Control is the interface for collections of widgets
type MainControl ¶
type MainControl struct { Control // Contained elements of main window StreamControl *StreamControl RegionStream *RegionControl Pump *PumpControl Camera *CameraControl // contains filtered or unexported fields }
MainControl is the root widget of the main window
func NewMainWindow ¶
func NewMainWindow() (*MainControl, error)
NewMainWindow creates the main Window
func (*MainControl) Root ¶
func (m *MainControl) Root() gtk.IWidget
Root returns the box that contains everything
type PumpControl ¶
type PumpControl struct { Control // contains filtered or unexported fields }
PumpControl is the pump control collection
func NewPumpControl ¶
func NewPumpControl() (*PumpControl, error)
NewPumpControl returns pump control collection
func (*PumpControl) Pump ¶
func (pc *PumpControl) Pump(index int) *gtk.SpinButton
Pump returns pump by id
func (*PumpControl) Root ¶
func (pc *PumpControl) Root() gtk.IWidget
Root returns the root stack component
type RegionControl ¶
type RegionControl struct { Control // contains filtered or unexported fields }
RegionControl is the cut region widget for reference
func NewRegionControl ¶
func NewRegionControl() (*RegionControl, error)
NewRegionControl creates a control widget
func (*RegionControl) Root ¶
func (rc *RegionControl) Root() gtk.IWidget
Root returns the root element of this control
type StreamControl ¶
type StreamControl struct { Control // ComboBox must be accessible ComboBox *gtk.ComboBoxText LockButton *gtk.CheckButton AutoButton *gtk.CheckButton // contains filtered or unexported fields }
StreamControl contains the stream window and device controls
func NewStreamControl ¶
func NewStreamControl() (*StreamControl, error)
NewStreamControl returns the stream widget collection
func (*StreamControl) Root ¶
func (sw *StreamControl) Root() gtk.IWidget
Root returns the root widget