Documentation
¶
Index ¶
- Variables
- func Awake(fn func()) bool
- func AwakeNullMessage()
- func ChoiceDialog(message string, options ...string) int
- func ChooseFile(message, pattern, initialFilename string, relative bool) (string, bool)
- func CopyToClipboard(text string)
- func Draw(text string, x, y, w, h int, align Align)
- func DrawBox(boxType BoxType, x, y, w, h int, color Color)
- func EventButton1() bool
- func EventDX() int
- func EventDY() int
- func EventIsClick() bool
- func EventKey() int
- func EventState() int
- func EventX() int
- func EventXRoot() int
- func EventY() int
- func EventYRoot() int
- func InitStyles()
- func Lock() bool
- func MessageBox(title, message string)
- func Run() int
- func ScreenCount() int
- func ScreenDPI(screenNum int) (float32, float32)
- func ScreenScale(screenNum int) float32
- func ScreenWorkArea(screenNum int) (int, int, int, int)
- func SetBackground2Color(r, g, b uint8)
- func SetBackgroundColor(r, g, b uint8)
- func SetColor(col Color, r, g, b uint8)
- func SetDrawColor(color Color)
- func SetDrawFont(font Font, size int)
- func SetForegroundColor(r, g, b uint8)
- func SetKeyboardScreenScaling(value bool)
- func SetScheme(scheme string) int
- func SetScreenScale(screenNum int, scale float32)
- func Unlock()
- type Align
- type BmpImage
- func (i *BmpImage) Count() int
- func (i *BmpImage) D() int
- func (i *BmpImage) DataH() int
- func (i *BmpImage) DataW() int
- func (i *BmpImage) Destroy()
- func (i *BmpImage) H() int
- func (i *BmpImage) Inactive()
- func (i *BmpImage) Ld() int
- func (i *BmpImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *BmpImage) W() int
- type Box
- func (w *Box) Activate()
- func (w *Box) Align() Align
- func (w *Box) Box() BoxType
- func (w *Box) ClearVisibleFocus()
- func (w *Box) Color() Color
- func (w *Box) Deactivate()
- func (w *Box) Destroy()
- func (w *Box) H() int
- func (w *Box) Hide()
- func (w *Box) Label() string
- func (w *Box) LabelColor() Color
- func (w *Box) LabelFont() Font
- func (w *Box) LabelSize() int
- func (w *Box) LabelType() LabelType
- func (w *Box) MeasureLabel() (int, int)
- func (w *Box) Parent() *Group
- func (w *Box) Redraw()
- func (w *Box) Resize(x, y, width, height int)
- func (w *Box) SelectionColor() Color
- func (w *Box) SetAlign(align Align)
- func (w *Box) SetBox(box BoxType)
- func (w *Box) SetCallback(f func())
- func (w *Box) SetCallbackCondition(when CallbackCondition)
- func (w *Box) SetColor(color Color)
- func (w *Box) SetDeimage(i Image)
- func (w *Box) SetImage(i Image)
- func (w *Box) SetLabel(label string)
- func (w *Box) SetLabelColor(col Color)
- func (w *Box) SetLabelFont(font Font)
- func (w *Box) SetLabelSize(size int)
- func (w *Box) SetLabelType(ltype LabelType)
- func (w *Box) SetPosition(x, y int)
- func (w *Box) SetSelectionColor(color Color)
- func (w *Box) SetType(widgetType uint8)
- func (w *Box) Show()
- func (w *Box) Type() uint8
- func (w *Box) W() int
- func (w *Box) X() int
- func (w *Box) Y() int
- type BoxType
- type Button
- func (w *Button) Activate()
- func (w *Button) Align() Align
- func (w *Button) Box() BoxType
- func (w *Button) ClearVisibleFocus()
- func (w *Button) Color() Color
- func (w *Button) Deactivate()
- func (w *Button) Destroy()
- func (w *Button) H() int
- func (w *Button) Hide()
- func (w *Button) Label() string
- func (w *Button) LabelColor() Color
- func (w *Button) LabelFont() Font
- func (w *Button) LabelSize() int
- func (w *Button) LabelType() LabelType
- func (w *Button) MeasureLabel() (int, int)
- func (w *Button) Parent() *Group
- func (w *Button) Redraw()
- func (w *Button) Resize(x, y, width, height int)
- func (w *Button) SelectionColor() Color
- func (w *Button) SetAlign(align Align)
- func (w *Button) SetBox(box BoxType)
- func (w *Button) SetCallback(f func())
- func (w *Button) SetCallbackCondition(when CallbackCondition)
- func (w *Button) SetColor(color Color)
- func (w *Button) SetDeimage(i Image)
- func (b *Button) SetDownBox(box BoxType)
- func (w *Button) SetImage(i Image)
- func (w *Button) SetLabel(label string)
- func (w *Button) SetLabelColor(col Color)
- func (w *Button) SetLabelFont(font Font)
- func (w *Button) SetLabelSize(size int)
- func (w *Button) SetLabelType(ltype LabelType)
- func (w *Button) SetPosition(x, y int)
- func (w *Button) SetSelectionColor(color Color)
- func (w *Button) SetType(widgetType uint8)
- func (b *Button) SetValue(val bool)
- func (w *Button) Show()
- func (w *Button) Type() uint8
- func (b *Button) Value() bool
- func (w *Button) W() int
- func (w *Button) X() int
- func (w *Button) Y() int
- type CallbackCondition
- type CheckButton
- func (w *CheckButton) Activate()
- func (w *CheckButton) Align() Align
- func (w *CheckButton) Box() BoxType
- func (w *CheckButton) ClearVisibleFocus()
- func (w *CheckButton) Color() Color
- func (w *CheckButton) Deactivate()
- func (w *CheckButton) Destroy()
- func (w *CheckButton) H() int
- func (w *CheckButton) Hide()
- func (w *CheckButton) Label() string
- func (w *CheckButton) LabelColor() Color
- func (w *CheckButton) LabelFont() Font
- func (w *CheckButton) LabelSize() int
- func (w *CheckButton) LabelType() LabelType
- func (w *CheckButton) MeasureLabel() (int, int)
- func (w *CheckButton) Parent() *Group
- func (w *CheckButton) Redraw()
- func (w *CheckButton) Resize(x, y, width, height int)
- func (w *CheckButton) SelectionColor() Color
- func (w *CheckButton) SetAlign(align Align)
- func (w *CheckButton) SetBox(box BoxType)
- func (w *CheckButton) SetCallback(f func())
- func (w *CheckButton) SetCallbackCondition(when CallbackCondition)
- func (w *CheckButton) SetColor(color Color)
- func (w *CheckButton) SetDeimage(i Image)
- func (w *CheckButton) SetImage(i Image)
- func (w *CheckButton) SetLabel(label string)
- func (w *CheckButton) SetLabelColor(col Color)
- func (w *CheckButton) SetLabelFont(font Font)
- func (w *CheckButton) SetLabelSize(size int)
- func (w *CheckButton) SetLabelType(ltype LabelType)
- func (w *CheckButton) SetPosition(x, y int)
- func (w *CheckButton) SetSelectionColor(color Color)
- func (w *CheckButton) SetType(widgetType uint8)
- func (w *CheckButton) Show()
- func (w *CheckButton) Type() uint8
- func (w *CheckButton) W() int
- func (w *CheckButton) X() int
- func (w *CheckButton) Y() int
- type Choice
- type Color
- type Cursor
- type Event
- type FileChooser
- type FileChooserType
- type Font
- type GlWindow
- func (w *GlWindow) Activate()
- func (w *GlWindow) Align() Align
- func (w *GlWindow) Box() BoxType
- func (w *GlWindow) CanDo() bool
- func (w *GlWindow) ClearVisibleFocus()
- func (w *GlWindow) Color() Color
- func (w *GlWindow) ContextValid() bool
- func (w *GlWindow) Deactivate()
- func (w *GlWindow) Destroy()
- func (w *GlWindow) H() int
- func (w *GlWindow) Hide()
- func (w *GlWindow) Label() string
- func (w *GlWindow) LabelColor() Color
- func (w *GlWindow) LabelFont() Font
- func (w *GlWindow) LabelSize() int
- func (w *GlWindow) LabelType() LabelType
- func (w *GlWindow) MakeCurrent()
- func (w *GlWindow) MeasureLabel() (int, int)
- func (w *GlWindow) Parent() *Group
- func (w *GlWindow) Redraw()
- func (w *GlWindow) Resize(x, y, width, height int)
- func (w *GlWindow) SelectionColor() Color
- func (w *GlWindow) SetAlign(align Align)
- func (w *GlWindow) SetBox(box BoxType)
- func (w *GlWindow) SetCallback(f func())
- func (w *GlWindow) SetCallbackCondition(when CallbackCondition)
- func (w *GlWindow) SetColor(color Color)
- func (w *GlWindow) SetDeimage(i Image)
- func (w *GlWindow) SetEventHandler(handler func(Event) bool)
- func (w *GlWindow) SetImage(i Image)
- func (w *GlWindow) SetLabelColor(col Color)
- func (w *GlWindow) SetLabelFont(font Font)
- func (w *GlWindow) SetLabelSize(size int)
- func (w *GlWindow) SetLabelType(ltype LabelType)
- func (w *GlWindow) SetMode(mode int)
- func (w *GlWindow) SetPosition(x, y int)
- func (w *GlWindow) SetResizeHandler(handler func())
- func (w *GlWindow) SetSelectionColor(color Color)
- func (w *GlWindow) SetType(widgetType uint8)
- func (w *GlWindow) Type() uint8
- func (w *GlWindow) Valid() bool
- func (w *GlWindow) W() int
- func (w *GlWindow) X() int
- func (w *GlWindow) Y() int
- type Group
- func (w *Group) Activate()
- func (g *Group) Add(w Widget)
- func (w *Group) Align() Align
- func (g *Group) Begin()
- func (w *Group) Box() BoxType
- func (w *Group) ClearVisibleFocus()
- func (w *Group) Color() Color
- func (w *Group) Deactivate()
- func (w *Group) Destroy()
- func (g *Group) End()
- func (w *Group) H() int
- func (w *Group) Hide()
- func (w *Group) Label() string
- func (w *Group) LabelColor() Color
- func (w *Group) LabelFont() Font
- func (w *Group) LabelSize() int
- func (w *Group) LabelType() LabelType
- func (w *Group) MeasureLabel() (int, int)
- func (w *Group) Parent() *Group
- func (w *Group) Redraw()
- func (g *Group) Resizable(w Widget)
- func (w *Group) Resize(x, y, width, height int)
- func (w *Group) SelectionColor() Color
- func (w *Group) SetAlign(align Align)
- func (w *Group) SetBox(box BoxType)
- func (w *Group) SetCallback(f func())
- func (w *Group) SetCallbackCondition(when CallbackCondition)
- func (w *Group) SetColor(color Color)
- func (w *Group) SetDeimage(i Image)
- func (w *Group) SetImage(i Image)
- func (w *Group) SetLabel(label string)
- func (w *Group) SetLabelColor(col Color)
- func (w *Group) SetLabelFont(font Font)
- func (w *Group) SetLabelSize(size int)
- func (w *Group) SetLabelType(ltype LabelType)
- func (w *Group) SetPosition(x, y int)
- func (w *Group) SetSelectionColor(color Color)
- func (w *Group) SetType(widgetType uint8)
- func (w *Group) Show()
- func (w *Group) Type() uint8
- func (w *Group) W() int
- func (w *Group) X() int
- func (w *Group) Y() int
- type Image
- type Input
- func (w *Input) Activate()
- func (w *Input) Align() Align
- func (w *Input) Box() BoxType
- func (w *Input) ClearVisibleFocus()
- func (w *Input) Color() Color
- func (w *Input) Deactivate()
- func (w *Input) Destroy()
- func (w *Input) H() int
- func (w *Input) Hide()
- func (w *Input) Label() string
- func (w *Input) LabelColor() Color
- func (w *Input) LabelFont() Font
- func (w *Input) LabelSize() int
- func (w *Input) LabelType() LabelType
- func (w *Input) MeasureLabel() (int, int)
- func (w *Input) Parent() *Group
- func (w *Input) Redraw()
- func (i *Input) Resize(x int, y int, w int, h int)
- func (w *Input) SelectionColor() Color
- func (w *Input) SetAlign(align Align)
- func (w *Input) SetBox(box BoxType)
- func (w *Input) SetCallback(f func())
- func (w *Input) SetCallbackCondition(when CallbackCondition)
- func (w *Input) SetColor(color Color)
- func (w *Input) SetDeimage(i Image)
- func (w *Input) SetImage(i Image)
- func (w *Input) SetLabel(label string)
- func (w *Input) SetLabelColor(col Color)
- func (w *Input) SetLabelFont(font Font)
- func (w *Input) SetLabelSize(size int)
- func (w *Input) SetLabelType(ltype LabelType)
- func (w *Input) SetPosition(x, y int)
- func (w *Input) SetSelectionColor(color Color)
- func (w *Input) SetType(widgetType uint8)
- func (i *Input) SetValue(value string) bool
- func (w *Input) Show()
- func (w *Input) Type() uint8
- func (i *Input) Value() string
- func (w *Input) W() int
- func (w *Input) X() int
- func (w *Input) Y() int
- type JpegImage
- func (i *JpegImage) Count() int
- func (i *JpegImage) D() int
- func (i *JpegImage) DataH() int
- func (i *JpegImage) DataW() int
- func (i *JpegImage) Destroy()
- func (i *JpegImage) H() int
- func (i *JpegImage) Inactive()
- func (i *JpegImage) Ld() int
- func (i *JpegImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *JpegImage) W() int
- type LabelType
- type MenuBar
- type MenuButton
- func (m *MenuButton) Add(label string, callback func()) int
- func (m *MenuButton) AddEx(label string, shortcut int, callback func(), flags int) int
- func (m *MenuButton) Destroy()
- func (m *MenuButton) Popup()
- func (m *MenuButton) SetType(menuType MenuType)
- func (m *MenuButton) SetValue(value int)
- func (m *MenuButton) Size() int
- func (m *MenuButton) Value() int
- type MenuType
- type MouseButton
- type Pack
- func (w *Pack) Activate()
- func (w *Pack) Align() Align
- func (w *Pack) Box() BoxType
- func (w *Pack) ClearVisibleFocus()
- func (w *Pack) Color() Color
- func (w *Pack) Deactivate()
- func (w *Pack) Destroy()
- func (w *Pack) H() int
- func (w *Pack) Hide()
- func (w *Pack) Label() string
- func (w *Pack) LabelColor() Color
- func (w *Pack) LabelFont() Font
- func (w *Pack) LabelSize() int
- func (w *Pack) LabelType() LabelType
- func (w *Pack) MeasureLabel() (int, int)
- func (w *Pack) Parent() *Group
- func (w *Pack) Redraw()
- func (w *Pack) Resize(x, y, width, height int)
- func (w *Pack) SelectionColor() Color
- func (w *Pack) SetAlign(align Align)
- func (w *Pack) SetBox(box BoxType)
- func (w *Pack) SetCallback(f func())
- func (w *Pack) SetCallbackCondition(when CallbackCondition)
- func (w *Pack) SetColor(color Color)
- func (w *Pack) SetDeimage(i Image)
- func (w *Pack) SetImage(i Image)
- func (w *Pack) SetLabel(label string)
- func (w *Pack) SetLabelColor(col Color)
- func (w *Pack) SetLabelFont(font Font)
- func (w *Pack) SetLabelSize(size int)
- func (w *Pack) SetLabelType(ltype LabelType)
- func (w *Pack) SetPosition(x, y int)
- func (w *Pack) SetSelectionColor(color Color)
- func (p *Pack) SetSpacing(spacing int)
- func (p *Pack) SetType(packType PackType)
- func (w *Pack) Show()
- func (w *Pack) Type() uint8
- func (w *Pack) W() int
- func (w *Pack) X() int
- func (w *Pack) Y() int
- type PackType
- type PngImage
- func (i *PngImage) Count() int
- func (i *PngImage) D() int
- func (i *PngImage) DataH() int
- func (i *PngImage) DataW() int
- func (i *PngImage) Destroy()
- func (i *PngImage) H() int
- func (i *PngImage) Inactive()
- func (i *PngImage) Ld() int
- func (i *PngImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *PngImage) W() int
- type Progress
- func (w *Progress) Activate()
- func (w *Progress) Align() Align
- func (w *Progress) Box() BoxType
- func (w *Progress) ClearVisibleFocus()
- func (w *Progress) Color() Color
- func (w *Progress) Deactivate()
- func (w *Progress) Destroy()
- func (w *Progress) H() int
- func (w *Progress) Hide()
- func (w *Progress) Label() string
- func (w *Progress) LabelColor() Color
- func (w *Progress) LabelFont() Font
- func (w *Progress) LabelSize() int
- func (w *Progress) LabelType() LabelType
- func (w *Progress) MeasureLabel() (int, int)
- func (w *Progress) Parent() *Group
- func (w *Progress) Redraw()
- func (w *Progress) Resize(x, y, width, height int)
- func (w *Progress) SelectionColor() Color
- func (w *Progress) SetAlign(align Align)
- func (w *Progress) SetBox(box BoxType)
- func (w *Progress) SetCallback(f func())
- func (w *Progress) SetCallbackCondition(when CallbackCondition)
- func (w *Progress) SetColor(color Color)
- func (w *Progress) SetDeimage(i Image)
- func (w *Progress) SetImage(i Image)
- func (w *Progress) SetLabel(label string)
- func (w *Progress) SetLabelColor(col Color)
- func (w *Progress) SetLabelFont(font Font)
- func (w *Progress) SetLabelSize(size int)
- func (w *Progress) SetLabelType(ltype LabelType)
- func (p *Progress) SetMaximum(max float64)
- func (p *Progress) SetMinimum(max float64)
- func (w *Progress) SetPosition(x, y int)
- func (w *Progress) SetSelectionColor(color Color)
- func (w *Progress) SetType(widgetType uint8)
- func (p *Progress) SetValue(value float64)
- func (w *Progress) Show()
- func (w *Progress) Type() uint8
- func (w *Progress) W() int
- func (w *Progress) X() int
- func (w *Progress) Y() int
- type RadioButton
- func (w *RadioButton) Activate()
- func (w *RadioButton) Align() Align
- func (w *RadioButton) Box() BoxType
- func (w *RadioButton) ClearVisibleFocus()
- func (w *RadioButton) Color() Color
- func (w *RadioButton) Deactivate()
- func (w *RadioButton) Destroy()
- func (w *RadioButton) H() int
- func (w *RadioButton) Hide()
- func (w *RadioButton) Label() string
- func (w *RadioButton) LabelColor() Color
- func (w *RadioButton) LabelFont() Font
- func (w *RadioButton) LabelSize() int
- func (w *RadioButton) LabelType() LabelType
- func (w *RadioButton) MeasureLabel() (int, int)
- func (w *RadioButton) Parent() *Group
- func (w *RadioButton) Redraw()
- func (w *RadioButton) Resize(x, y, width, height int)
- func (w *RadioButton) SelectionColor() Color
- func (w *RadioButton) SetAlign(align Align)
- func (w *RadioButton) SetBox(box BoxType)
- func (w *RadioButton) SetCallback(f func())
- func (w *RadioButton) SetCallbackCondition(when CallbackCondition)
- func (w *RadioButton) SetColor(color Color)
- func (w *RadioButton) SetDeimage(i Image)
- func (w *RadioButton) SetImage(i Image)
- func (w *RadioButton) SetLabel(label string)
- func (w *RadioButton) SetLabelColor(col Color)
- func (w *RadioButton) SetLabelFont(font Font)
- func (w *RadioButton) SetLabelSize(size int)
- func (w *RadioButton) SetLabelType(ltype LabelType)
- func (w *RadioButton) SetPosition(x, y int)
- func (w *RadioButton) SetSelectionColor(color Color)
- func (w *RadioButton) SetType(widgetType uint8)
- func (w *RadioButton) Show()
- func (w *RadioButton) Type() uint8
- func (w *RadioButton) W() int
- func (w *RadioButton) X() int
- func (w *RadioButton) Y() int
- type RadioRoundButton
- func (w *RadioRoundButton) Activate()
- func (w *RadioRoundButton) Align() Align
- func (w *RadioRoundButton) Box() BoxType
- func (w *RadioRoundButton) ClearVisibleFocus()
- func (w *RadioRoundButton) Color() Color
- func (w *RadioRoundButton) Deactivate()
- func (w *RadioRoundButton) Destroy()
- func (w *RadioRoundButton) H() int
- func (w *RadioRoundButton) Hide()
- func (w *RadioRoundButton) Label() string
- func (w *RadioRoundButton) LabelColor() Color
- func (w *RadioRoundButton) LabelFont() Font
- func (w *RadioRoundButton) LabelSize() int
- func (w *RadioRoundButton) LabelType() LabelType
- func (w *RadioRoundButton) MeasureLabel() (int, int)
- func (w *RadioRoundButton) Parent() *Group
- func (w *RadioRoundButton) Redraw()
- func (w *RadioRoundButton) Resize(x, y, width, height int)
- func (w *RadioRoundButton) SelectionColor() Color
- func (w *RadioRoundButton) SetAlign(align Align)
- func (w *RadioRoundButton) SetBox(box BoxType)
- func (w *RadioRoundButton) SetCallback(f func())
- func (w *RadioRoundButton) SetCallbackCondition(when CallbackCondition)
- func (w *RadioRoundButton) SetColor(color Color)
- func (w *RadioRoundButton) SetDeimage(i Image)
- func (w *RadioRoundButton) SetImage(i Image)
- func (w *RadioRoundButton) SetLabel(label string)
- func (w *RadioRoundButton) SetLabelColor(col Color)
- func (w *RadioRoundButton) SetLabelFont(font Font)
- func (w *RadioRoundButton) SetLabelSize(size int)
- func (w *RadioRoundButton) SetLabelType(ltype LabelType)
- func (w *RadioRoundButton) SetPosition(x, y int)
- func (w *RadioRoundButton) SetSelectionColor(color Color)
- func (w *RadioRoundButton) SetType(widgetType uint8)
- func (w *RadioRoundButton) Show()
- func (w *RadioRoundButton) Type() uint8
- func (w *RadioRoundButton) W() int
- func (w *RadioRoundButton) X() int
- func (w *RadioRoundButton) Y() int
- type ReturnButton
- func (w *ReturnButton) Activate()
- func (w *ReturnButton) Align() Align
- func (w *ReturnButton) Box() BoxType
- func (w *ReturnButton) ClearVisibleFocus()
- func (w *ReturnButton) Color() Color
- func (w *ReturnButton) Deactivate()
- func (w *ReturnButton) Destroy()
- func (w *ReturnButton) H() int
- func (w *ReturnButton) Hide()
- func (w *ReturnButton) Label() string
- func (w *ReturnButton) LabelColor() Color
- func (w *ReturnButton) LabelFont() Font
- func (w *ReturnButton) LabelSize() int
- func (w *ReturnButton) LabelType() LabelType
- func (w *ReturnButton) MeasureLabel() (int, int)
- func (w *ReturnButton) Parent() *Group
- func (w *ReturnButton) Redraw()
- func (w *ReturnButton) Resize(x, y, width, height int)
- func (w *ReturnButton) SelectionColor() Color
- func (w *ReturnButton) SetAlign(align Align)
- func (w *ReturnButton) SetBox(box BoxType)
- func (w *ReturnButton) SetCallback(f func())
- func (w *ReturnButton) SetCallbackCondition(when CallbackCondition)
- func (w *ReturnButton) SetColor(color Color)
- func (w *ReturnButton) SetDeimage(i Image)
- func (w *ReturnButton) SetImage(i Image)
- func (w *ReturnButton) SetLabel(label string)
- func (w *ReturnButton) SetLabelColor(col Color)
- func (w *ReturnButton) SetLabelFont(font Font)
- func (w *ReturnButton) SetLabelSize(size int)
- func (w *ReturnButton) SetLabelType(ltype LabelType)
- func (w *ReturnButton) SetPosition(x, y int)
- func (w *ReturnButton) SetSelectionColor(color Color)
- func (w *ReturnButton) SetType(widgetType uint8)
- func (w *ReturnButton) Show()
- func (w *ReturnButton) Type() uint8
- func (w *ReturnButton) W() int
- func (w *ReturnButton) X() int
- func (w *ReturnButton) Y() int
- type RgbImage
- func (i *RgbImage) Count() int
- func (i *RgbImage) D() int
- func (i *RgbImage) DataH() int
- func (i *RgbImage) DataW() int
- func (i *RgbImage) Destroy()
- func (i *RgbImage) H() int
- func (i *RgbImage) Inactive()
- func (i *RgbImage) Ld() int
- func (i *RgbImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *RgbImage) W() int
- type RowSelectMode
- type SelectionFlag
- type SharedImage
- func (i *SharedImage) Count() int
- func (i *SharedImage) D() int
- func (i *SharedImage) DataH() int
- func (i *SharedImage) DataW() int
- func (i *SharedImage) Destroy()
- func (i *SharedImage) H() int
- func (i *SharedImage) Inactive()
- func (i *SharedImage) Ld() int
- func (i *SharedImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *SharedImage) W() int
- type Spinner
- func (w *Spinner) Activate()
- func (w *Spinner) Align() Align
- func (w *Spinner) Box() BoxType
- func (w *Spinner) ClearVisibleFocus()
- func (w *Spinner) Color() Color
- func (w *Spinner) Deactivate()
- func (w *Spinner) Destroy()
- func (w *Spinner) H() int
- func (w *Spinner) Hide()
- func (w *Spinner) Label() string
- func (w *Spinner) LabelColor() Color
- func (w *Spinner) LabelFont() Font
- func (w *Spinner) LabelSize() int
- func (w *Spinner) LabelType() LabelType
- func (w *Spinner) MeasureLabel() (int, int)
- func (w *Spinner) Parent() *Group
- func (w *Spinner) Redraw()
- func (w *Spinner) Resize(x, y, width, height int)
- func (w *Spinner) SelectionColor() Color
- func (w *Spinner) SetAlign(align Align)
- func (w *Spinner) SetBox(box BoxType)
- func (w *Spinner) SetCallback(f func())
- func (w *Spinner) SetCallbackCondition(when CallbackCondition)
- func (w *Spinner) SetColor(color Color)
- func (w *Spinner) SetDeimage(i Image)
- func (w *Spinner) SetImage(i Image)
- func (w *Spinner) SetLabel(label string)
- func (w *Spinner) SetLabelColor(col Color)
- func (w *Spinner) SetLabelFont(font Font)
- func (w *Spinner) SetLabelSize(size int)
- func (w *Spinner) SetLabelType(ltype LabelType)
- func (s *Spinner) SetMaximum(max float64)
- func (s *Spinner) SetMinimum(min float64)
- func (w *Spinner) SetPosition(x, y int)
- func (w *Spinner) SetSelectionColor(color Color)
- func (s *Spinner) SetStep(step float64)
- func (s *Spinner) SetType(inputType SpinnerInputType)
- func (s *Spinner) SetValue(val float64)
- func (w *Spinner) Show()
- func (w *Spinner) Type() uint8
- func (s *Spinner) Value() float64
- func (w *Spinner) W() int
- func (w *Spinner) X() int
- func (w *Spinner) Y() int
- type SpinnerInputType
- type SvgImage
- func (i *SvgImage) Count() int
- func (i *SvgImage) D() int
- func (i *SvgImage) DataH() int
- func (i *SvgImage) DataW() int
- func (i *SvgImage) Destroy()
- func (i *SvgImage) H() int
- func (i *SvgImage) Inactive()
- func (i *SvgImage) Ld() int
- func (i *SvgImage) Scale(width int, height int, proportional bool, can_expand bool)
- func (i *SvgImage) W() int
- type TableContext
- type TableRow
- func (t *TableRow) AllowColumnResizing()
- func (t *TableRow) AllowRowResizing()
- func (t *TableRow) CallbackContext() TableContext
- func (t *TableRow) CallbackRow() int
- func (t *TableRow) Destroy()
- func (t *TableRow) DisableColumnHeaders()
- func (t *TableRow) DisableRowHeaders()
- func (t *TableRow) DisallowColumnResizing()
- func (t *TableRow) DisallowRowResizing()
- func (t *TableRow) EnableColumnHeaders()
- func (t *TableRow) EnableRowHeaders()
- func (t *TableRow) FindCell(ctx TableContext, row int, col int) (int, int, int, int, error)
- func (t *TableRow) IsRowSelected(row int) bool
- func (t *TableRow) SelectAllRows(flag SelectionFlag)
- func (t *TableRow) SelectRow(row int, flag SelectionFlag)
- func (t *TableRow) Selection() (int, int, int, int)
- func (t *TableRow) SetColumnCount(columnCount int)
- func (t *TableRow) SetColumnWidth(column, width int)
- func (t *TableRow) SetColumnWidthAll(width int)
- func (t *TableRow) SetDrawCellCallback(callback func(TableContext, int, int, int, int, int, int))
- func (t *TableRow) SetEventHandler(handler func(Event) bool)
- func (t *TableRow) SetResizeHandler(handler func())
- func (t *TableRow) SetRowCount(rowCount int)
- func (t *TableRow) SetRowHeight(row, height int)
- func (t *TableRow) SetRowHeightAll(height int)
- func (t *TableRow) SetTopRow(row int)
- func (t *TableRow) SetType(tableType RowSelectMode)
- func (t *TableRow) VisibleCells() (int, int, int, int)
- type Tabs
- func (w *Tabs) Activate()
- func (w *Tabs) Align() Align
- func (w *Tabs) Box() BoxType
- func (w *Tabs) ClearVisibleFocus()
- func (w *Tabs) Color() Color
- func (w *Tabs) Deactivate()
- func (w *Tabs) Destroy()
- func (w *Tabs) H() int
- func (w *Tabs) Hide()
- func (w *Tabs) Label() string
- func (w *Tabs) LabelColor() Color
- func (w *Tabs) LabelFont() Font
- func (w *Tabs) LabelSize() int
- func (w *Tabs) LabelType() LabelType
- func (w *Tabs) MeasureLabel() (int, int)
- func (w *Tabs) Parent() *Group
- func (w *Tabs) Redraw()
- func (w *Tabs) Resize(x, y, width, height int)
- func (w *Tabs) SelectionColor() Color
- func (w *Tabs) SetAlign(align Align)
- func (w *Tabs) SetBox(box BoxType)
- func (w *Tabs) SetCallback(f func())
- func (w *Tabs) SetCallbackCondition(when CallbackCondition)
- func (w *Tabs) SetColor(color Color)
- func (w *Tabs) SetDeimage(i Image)
- func (w *Tabs) SetImage(i Image)
- func (w *Tabs) SetLabel(label string)
- func (w *Tabs) SetLabelColor(col Color)
- func (w *Tabs) SetLabelFont(font Font)
- func (w *Tabs) SetLabelSize(size int)
- func (w *Tabs) SetLabelType(ltype LabelType)
- func (w *Tabs) SetPosition(x, y int)
- func (w *Tabs) SetSelectionColor(color Color)
- func (w *Tabs) SetType(widgetType uint8)
- func (t *Tabs) SetValue(value int)
- func (w *Tabs) Show()
- func (w *Tabs) Type() uint8
- func (t *Tabs) Value() int
- func (w *Tabs) W() int
- func (w *Tabs) X() int
- func (w *Tabs) Y() int
- type TextBuffer
- type TextDisplay
- func (w *TextDisplay) Activate()
- func (w *TextDisplay) Align() Align
- func (w *TextDisplay) Box() BoxType
- func (t *TextDisplay) Buffer() *TextBuffer
- func (w *TextDisplay) ClearVisibleFocus()
- func (w *TextDisplay) Color() Color
- func (w *TextDisplay) Deactivate()
- func (w *TextDisplay) Destroy()
- func (w *TextDisplay) H() int
- func (w *TextDisplay) Hide()
- func (w *TextDisplay) Label() string
- func (w *TextDisplay) LabelColor() Color
- func (w *TextDisplay) LabelFont() Font
- func (w *TextDisplay) LabelSize() int
- func (w *TextDisplay) LabelType() LabelType
- func (w *TextDisplay) MeasureLabel() (int, int)
- func (w *TextDisplay) Parent() *Group
- func (w *TextDisplay) Redraw()
- func (w *TextDisplay) Resize(x, y, width, height int)
- func (w *TextDisplay) SelectionColor() Color
- func (w *TextDisplay) SetAlign(align Align)
- func (w *TextDisplay) SetBox(box BoxType)
- func (t *TextDisplay) SetBuffer(buf *TextBuffer)
- func (w *TextDisplay) SetCallback(f func())
- func (w *TextDisplay) SetCallbackCondition(when CallbackCondition)
- func (w *TextDisplay) SetColor(color Color)
- func (w *TextDisplay) SetDeimage(i Image)
- func (w *TextDisplay) SetImage(i Image)
- func (w *TextDisplay) SetLabel(label string)
- func (w *TextDisplay) SetLabelColor(col Color)
- func (w *TextDisplay) SetLabelFont(font Font)
- func (w *TextDisplay) SetLabelSize(size int)
- func (w *TextDisplay) SetLabelType(ltype LabelType)
- func (w *TextDisplay) SetPosition(x, y int)
- func (w *TextDisplay) SetSelectionColor(color Color)
- func (w *TextDisplay) SetType(widgetType uint8)
- func (w *TextDisplay) Show()
- func (w *TextDisplay) Type() uint8
- func (w *TextDisplay) W() int
- func (w *TextDisplay) X() int
- func (w *TextDisplay) Y() int
- type TextEditor
- func (w *TextEditor) Activate()
- func (w *TextEditor) Align() Align
- func (w *TextEditor) Box() BoxType
- func (w *TextEditor) ClearVisibleFocus()
- func (w *TextEditor) Color() Color
- func (w *TextEditor) Deactivate()
- func (w *TextEditor) Destroy()
- func (w *TextEditor) H() int
- func (w *TextEditor) Hide()
- func (w *TextEditor) Label() string
- func (w *TextEditor) LabelColor() Color
- func (w *TextEditor) LabelFont() Font
- func (w *TextEditor) LabelSize() int
- func (w *TextEditor) LabelType() LabelType
- func (w *TextEditor) MeasureLabel() (int, int)
- func (w *TextEditor) Parent() *Group
- func (w *TextEditor) Redraw()
- func (w *TextEditor) Resize(x, y, width, height int)
- func (w *TextEditor) SelectionColor() Color
- func (w *TextEditor) SetAlign(align Align)
- func (w *TextEditor) SetBox(box BoxType)
- func (w *TextEditor) SetCallback(f func())
- func (w *TextEditor) SetCallbackCondition(when CallbackCondition)
- func (w *TextEditor) SetColor(color Color)
- func (w *TextEditor) SetDeimage(i Image)
- func (w *TextEditor) SetImage(i Image)
- func (w *TextEditor) SetLabel(label string)
- func (w *TextEditor) SetLabelColor(col Color)
- func (w *TextEditor) SetLabelFont(font Font)
- func (w *TextEditor) SetLabelSize(size int)
- func (w *TextEditor) SetLabelType(ltype LabelType)
- func (w *TextEditor) SetPosition(x, y int)
- func (w *TextEditor) SetSelectionColor(color Color)
- func (w *TextEditor) SetType(widgetType uint8)
- func (w *TextEditor) Show()
- func (w *TextEditor) Type() uint8
- func (w *TextEditor) W() int
- func (w *TextEditor) X() int
- func (w *TextEditor) Y() int
- type ToggleButton
- func (w *ToggleButton) Activate()
- func (w *ToggleButton) Align() Align
- func (w *ToggleButton) Box() BoxType
- func (w *ToggleButton) ClearVisibleFocus()
- func (w *ToggleButton) Color() Color
- func (w *ToggleButton) Deactivate()
- func (w *ToggleButton) Destroy()
- func (w *ToggleButton) H() int
- func (w *ToggleButton) Hide()
- func (w *ToggleButton) Label() string
- func (w *ToggleButton) LabelColor() Color
- func (w *ToggleButton) LabelFont() Font
- func (w *ToggleButton) LabelSize() int
- func (w *ToggleButton) LabelType() LabelType
- func (w *ToggleButton) MeasureLabel() (int, int)
- func (w *ToggleButton) Parent() *Group
- func (w *ToggleButton) Redraw()
- func (w *ToggleButton) Resize(x, y, width, height int)
- func (w *ToggleButton) SelectionColor() Color
- func (w *ToggleButton) SetAlign(align Align)
- func (w *ToggleButton) SetBox(box BoxType)
- func (w *ToggleButton) SetCallback(f func())
- func (w *ToggleButton) SetCallbackCondition(when CallbackCondition)
- func (w *ToggleButton) SetColor(color Color)
- func (w *ToggleButton) SetDeimage(i Image)
- func (w *ToggleButton) SetImage(i Image)
- func (w *ToggleButton) SetLabel(label string)
- func (w *ToggleButton) SetLabelColor(col Color)
- func (w *ToggleButton) SetLabelFont(font Font)
- func (w *ToggleButton) SetLabelSize(size int)
- func (w *ToggleButton) SetLabelType(ltype LabelType)
- func (w *ToggleButton) SetPosition(x, y int)
- func (w *ToggleButton) SetSelectionColor(color Color)
- func (w *ToggleButton) SetType(widgetType uint8)
- func (w *ToggleButton) Show()
- func (w *ToggleButton) Type() uint8
- func (w *ToggleButton) W() int
- func (w *ToggleButton) X() int
- func (w *ToggleButton) Y() int
- type Widget
- type Window
- func (w *Window) Activate()
- func (w *Window) Align() Align
- func (w *Window) Box() BoxType
- func (w *Window) ClearVisibleFocus()
- func (w *Window) Color() Color
- func (w *Window) Deactivate()
- func (w *Window) Destroy()
- func (w *Window) H() int
- func (w *Window) Hide()
- func (w *Window) IsShown() bool
- func (w *Window) Label() string
- func (w *Window) LabelColor() Color
- func (w *Window) LabelFont() Font
- func (w *Window) LabelSize() int
- func (w *Window) LabelType() LabelType
- func (w *Window) MeasureLabel() (int, int)
- func (w *Window) Parent() *Group
- func (w *Window) Redraw()
- func (w *Window) Resize(x, y, width, height int)
- func (w *Window) SelectionColor() Color
- func (w *Window) SetAlign(align Align)
- func (w *Window) SetBox(box BoxType)
- func (w *Window) SetCallback(f func())
- func (w *Window) SetCallbackCondition(when CallbackCondition)
- func (w *Window) SetColor(color Color)
- func (w *Window) SetCursor(cursor Cursor)
- func (w *Window) SetDeimage(i Image)
- func (w *Window) SetImage(i Image)
- func (w *Window) SetLabel(label string)
- func (w *Window) SetLabelColor(col Color)
- func (w *Window) SetLabelFont(font Font)
- func (w *Window) SetLabelSize(size int)
- func (w *Window) SetLabelType(ltype LabelType)
- func (w *Window) SetPosition(x, y int)
- func (w *Window) SetSelectionColor(color Color)
- func (w *Window) SetType(widgetType uint8)
- func (w *Window) Show()
- func (w *Window) Type() uint8
- func (w *Window) W() int
- func (w *Window) X() int
- func (w *Window) XRoot() int
- func (w *Window) Y() int
- func (w *Window) YRoot() int
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ALIGN_CENTER = Align(C.go_FL_ALIGN_CENTER) ALIGN_TOP = Align(C.go_FL_ALIGN_TOP) ALIGN_BOTTOM = Align(C.go_FL_ALIGN_BOTTOM) ALIGN_LEFT = Align(C.go_FL_ALIGN_LEFT) ALIGN_RIGHT = Align(C.go_FL_ALIGN_RIGHT) ALIGN_INSIDE = Align(C.go_FL_ALIGN_INSIDE) ALIGN_TEXT_OVER_IMAGE = Align(C.go_FL_ALIGN_TEXT_OVER_IMAGE) ALIGN_IMAGE_OVER_TEXT = Align(C.go_FL_ALIGN_IMAGE_OVER_TEXT) ALIGN_CLIP = Align(C.go_FL_ALIGN_CLIP) ALIGN_WRAP = Align(C.go_FL_ALIGN_WRAP) ALIGN_IMAGE_NEXT_TO_TEXT = Align(C.go_FL_ALIGN_IMAGE_NEXT_TO_TEXT) ALIGN_TEXT_NEXT_TO_IMAGE = Align(C.go_FL_ALIGN_TEXT_NEXT_TO_IMAGE) ALIGN_IMAGE_BACKDROP = Align(C.go_FL_ALIGN_IMAGE_BACKDROP) ALIGN_TOP_LEFT = Align(C.go_FL_ALIGN_TOP_LEFT) ALIGN_TOP_RIGHT = Align(C.go_FL_ALIGN_TOP_RIGHT) ALIGN_BOTTOM_LEFT = Align(C.go_FL_ALIGN_BOTTOM_LEFT) ALIGN_BOTTOM_RIGHT = Align(C.go_FL_ALIGN_BOTTOM_RIGHT) ALIGN_LEFT_TOP = Align(C.go_FL_ALIGN_LEFT_TOP) ALIGN_RIGHT_TOP = Align(C.go_FL_ALIGN_RIGHT_TOP) ALIGN_LEFT_BOTTOM = Align(C.go_FL_ALIGN_LEFT_BOTTOM) ALIGN_RIGHT_BOTTOM = Align(C.go_FL_ALIGN_RIGHT_BOTTOM) ALIGN_NOWRAP = Align(C.go_FL_ALIGN_NOWRAP) ALIGN_POSITION_MASK = Align(C.go_FL_ALIGN_POSITION_MASK) ALIGN_IMAGE_MASK = Align(C.go_FL_ALIGN_IMAGE_MASK) )
View Source
var ( NO_BOX = BoxType(C.go_FL_NO_BOX) FLAT_BOX = BoxType(C.go_FL_FLAT_BOX) UP_BOX = BoxType(C.go_FL_UP_BOX) DOWN_BOX = BoxType(C.go_FL_DOWN_BOX) UP_FRAME = BoxType(C.go_FL_UP_FRAME) DOWN_FRAME = BoxType(C.go_FL_DOWN_FRAME) THIN_UP_BOX = BoxType(C.go_FL_THIN_UP_BOX) THIN_DOWN_BOX = BoxType(C.go_FL_THIN_DOWN_BOX) ENGRAVED_BOX = BoxType(C.go_FL_ENGRAVED_BOX) EMBOSSED_BOX = BoxType(C.go_FL_EMBOSSED_BOX) ENGRAVED_FRAME = BoxType(C.go_FL_ENGRAVED_FRAME) EMBOSSED_FRAME = BoxType(C.go_FL_EMBOSSED_FRAME) BORDER_BOX = BoxType(C.go_FL_BORDER_BOX) BORDER_FRAME = BoxType(C.go_FL_BORDER_FRAME) SHADOW_FRAME = BoxType(C.go_FL_SHADOW_FRAME) ROUNDED_BOX = BoxType(C.go_FL_ROUNDED_BOX) RSHADOW_BOX = BoxType(C.go_FL_RSHADOW_BOX) ROUNDED_FRAME = BoxType(C.go_FL_ROUNDED_FRAME) RFLAT_BOX = BoxType(C.go_FL_RFLAT_BOX) ROUND_UP_BOX = BoxType(C.go_FL_ROUND_UP_BOX) ROUND_DOWN_BOX = BoxType(C.go_FL_ROUND_DOWN_BOX) DIAMOND_UP_BOX = BoxType(C.go_FL_DIAMOND_UP_BOX) DIAMOND_DOWN_BOX = BoxType(C.go_FL_DIAMOND_DOWN_BOX) OVAL_BOX = BoxType(C.go_FL_OVAL_BOX) OSHADOW_BOX = BoxType(C.go_FL_OSHADOW_BOX) OVAL_FRAME = BoxType(C.go_FL_OVAL_FRAME) OFLAT_BOX = BoxType(C.go_FL_OFLAT_BOX) PLASTIC_UP_BOX = BoxType(C.go_FL_PLASTIC_UP_BOX) PLASTIC_DOWN_BOX = BoxType(C.go_FL_PLASTIC_DOWN_BOX) PLASTIC_UP_FRAME = BoxType(C.go_FL_PLASTIC_UP_FRAME) PLASTIC_DOWN_FRAME = BoxType(C.go_FL_PLASTIC_DOWN_FRAME) PLASTIC_THIN_UP_BOX = BoxType(C.go_FL_PLASTIC_THIN_UP_BOX) PLASTIC_THIN_DOWN_BOX = BoxType(C.go_FL_PLASTIC_THIN_DOWN_BOX) PLASTIC_ROUND_UP_BOX = BoxType(C.go_FL_PLASTIC_ROUND_UP_BOX) PLASTIC_ROUND_DOWN_BOX = BoxType(C.go_FL_PLASTIC_ROUND_DOWN_BOX) GTK_UP_BOX = BoxType(C.go_FL_GTK_UP_BOX) GTK_DOWN_BOX = BoxType(C.go_FL_GTK_DOWN_BOX) GTK_UP_FRAME = BoxType(C.go_FL_GTK_UP_FRAME) GTK_DOWN_FRAME = BoxType(C.go_FL_GTK_DOWN_FRAME) GTK_THIN_UP_BOX = BoxType(C.go_FL_GTK_THIN_UP_BOX) GTK_THIN_DOWN_BOX = BoxType(C.go_FL_GTK_THIN_DOWN_BOX) GTK_THIN_UP_FRAME = BoxType(C.go_FL_GTK_THIN_UP_FRAME) GTK_THIN_DOWN_FRAME = BoxType(C.go_FL_GTK_THIN_DOWN_FRAME) GTK_ROUND_UP_BOX = BoxType(C.go_FL_GTK_ROUND_UP_BOX) GTK_ROUND_DOWN_BOX = BoxType(C.go_FL_GTK_ROUND_DOWN_BOX) GLEAM_UP_BOX = BoxType(C.go_FL_GLEAM_UP_BOX) GLEAM_DOWN_BOX = BoxType(C.go_FL_GLEAM_DOWN_BOX) GLEAM_UP_FRAME = BoxType(C.go_FL_GLEAM_UP_FRAME) GLEAM_DOWN_FRAME = BoxType(C.go_FL_GLEAM_DOWN_FRAME) GLEAM_THIN_UP_BOX = BoxType(C.go_FL_GLEAM_THIN_UP_BOX) GLEAM_THIN_DOWN_BOX = BoxType(C.go_FL_GLEAM_THIN_DOWN_BOX) GLEAM_ROUND_UP_BOX = BoxType(C.go_FL_GLEAM_ROUND_UP_BOX) GLEAM_ROUND_DOWN_BOX = BoxType(C.go_FL_GLEAM_ROUND_DOWN_BOX) )
View Source
var ( HELVETICA = Font(C.go_FL_HELVETICA) HELVETICA_BOLD = Font(C.go_FL_HELVETICA_BOLD) HELVETICA_ITALIC = Font(C.go_FL_HELVETICA_ITALIC) HELVETICA_BOLD_ITALIC = Font(C.go_FL_HELVETICA_BOLD_ITALIC) COURIER = Font(C.go_FL_COURIER) COURIER_BOLD = Font(C.go_FL_COURIER_BOLD) COURIER_ITALIC = Font(C.go_FL_COURIER_ITALIC) COURIER_BOLD_ITALIC = Font(C.go_FL_COURIER_BOLD_ITALIC) TIMES = Font(C.go_FL_TIMES) TIMES_BOLD = Font(C.go_FL_TIMES_BOLD) TIMES_ITALIC = Font(C.go_FL_TIMES_ITALIC) TIMES_BOLD_ITALIC = Font(C.go_FL_TIMES_BOLD_ITALIC) SYMBOL = Font(C.go_FL_SYMBOL) SCREEN = Font(C.go_FL_SCREEN) SCREEN_BOLD = Font(C.go_FL_SCREEN_BOLD) ZAPF_DINGBATS = Font(C.go_FL_ZAPF_DINGBATS) FREE_FONT = Font(C.go_FL_FREE_FONT) BOLD = Font(C.go_FL_BOLD) ITALIC = Font(C.go_FL_ITALIC) BOLD_ITALIC = Font(C.go_FL_BOLD_ITALIC) )
View Source
var ( NORMAL_LABEL = LabelType(C.go_FL_NORMAL_LABEL) NO_LABEL = LabelType(C.go_FL_NO_LABEL) )
View Source
var ( NO_EVENT = Event(C.go_FL_NO_EVENT) PUSH = Event(C.go_FL_PUSH) DRAG = Event(C.go_FL_DRAG) RELEASE = Event(C.go_FL_RELEASE) MOVE = Event(C.go_FL_MOVE) MOUSEWHEEL = Event(C.go_FL_MOUSEWHEEL) ENTER = Event(C.go_FL_ENTER) LEAVE = Event(C.go_FL_LEAVE) FOCUS = Event(C.go_FL_FOCUS) UNFOCUS = Event(C.go_FL_UNFOCUS) KEY = Event(C.go_FL_KEYDOWN) KEYDOWN = Event(C.go_FL_KEYDOWN) KEYUP = Event(C.go_FL_KEYUP) SHORTCUT = Event(C.go_FL_SHORTCUT) DEACTIVATE = Event(C.go_FL_DEACTIVATE) ACTIVATE = Event(C.go_FL_ACTIVATE) HIDE = Event(C.go_FL_HIDE) SHOW = Event(C.go_FL_SHOW) PASTE = Event(C.go_FL_PASTE) SELECTIONCLEAR = Event(C.go_FL_SELECTIONCLEAR) DND_ENTER = Event(C.go_FL_DND_ENTER) DND_DRAG = Event(C.go_FL_DND_DRAG) DND_LEAVE = Event(C.go_FL_DND_LEAVE) DND_RELEASE = Event(C.go_FL_DND_RELEASE) )
View Source
var ( WhenNever = CallbackCondition(C.go_FL_WHEN_NEVER) WhenChanged = CallbackCondition(C.go_FL_WHEN_CHANGED) WhenNotChanged = CallbackCondition(C.go_FL_WHEN_NOT_CHANGED) WhenRelease = CallbackCondition(C.go_FL_WHEN_RELEASE) WhenReleaseAlways = CallbackCondition(C.go_FL_WHEN_RELEASE_ALWAYS) WhenEnterKey = CallbackCondition(C.go_FL_WHEN_ENTER_KEY) WhenEnterKeyAlways = CallbackCondition(C.go_FL_WHEN_ENTER_KEY_ALWAYS) WhenEnterKeyChanged = CallbackCondition(C.go_FL_WHEN_ENTER_KEY_CHANGED) )
View Source
var ( RGB = int(C.go_FL_RGB) INDEX = int(C.go_FL_INDEX) SINGLE = int(C.go_FL_SINGLE) DOUBLE = int(C.go_FL_DOUBLE) ACCUM = int(C.go_FL_ACCUM) ALPHA = int(C.go_FL_ALPHA) DEPTH = int(C.go_FL_DEPTH) STENCIL = int(C.go_FL_STENCIL) RGB8 = int(C.go_FL_RGB8) MULTISAMPLE = int(C.go_FL_MULTISAMPLE) STEREO = int(C.go_FL_STEREO) FAKE_SINGLE = int(C.go_FL_FAKE_SINGLE) OPENGL3 = int(C.go_FL_OPENGL3) )
View Source
var ( FOREGROUND_COLOR = Color(C.go_FL_FOREGROUND_COLOR) BACKGROUND2_COLOR = Color(C.go_FL_BACKGROUND2_COLOR) INACTIVE_COLOR = Color(C.go_FL_INACTIVE_COLOR) SELECTION_COLOR = Color(C.go_FL_SELECTION_COLOR) GRAY0 = Color(C.go_FL_GRAY0) DARK3 = Color(C.go_FL_DARK3) DARK2 = Color(C.go_FL_DARK2) DARK1 = Color(C.go_FL_DARK1) BACKGROUND_COLOR = Color(C.go_FL_BACKGROUND_COLOR) LIGHT1 = Color(C.go_FL_LIGHT1) LIGHT2 = Color(C.go_FL_LIGHT2) LIGHT3 = Color(C.go_FL_LIGHT3) BLACK = Color(C.go_FL_BLACK) RED = Color(C.go_FL_RED) GREEN = Color(C.go_FL_GREEN) YELLOW = Color(C.go_FL_YELLOW) BLUE = Color(C.go_FL_BLUE) MAGENTA = Color(C.go_FL_MAGENTA) CYAN = Color(C.go_FL_CYAN) DARK_RED = Color(C.go_FL_DARK_RED) DARK_GREEN = Color(C.go_FL_DARK_GREEN) DARK_YELLOW = Color(C.go_FL_DARK_YELLOW) DARK_BLUE = Color(C.go_FL_DARK_BLUE) DARK_MAGENTA = Color(C.go_FL_DARK_MAGENTA) DARK_CYAN = Color(C.go_FL_DARK_CYAN) WHITE = Color(C.go_FL_WHITE) )
View Source
var ( LeftMouse = MouseButton(C.go_FL_LEFT_MOUSE) MiddleMouse = MouseButton(C.go_FL_MIDDLE_MOUSE) RightMouse = MouseButton(C.go_FL_RIGHT_MOUSE) )
View Source
var ( SHIFT = int(C.go_FL_SHIFT) CAPS_LOCK = int(C.go_FL_CAPS_LOCK) CTRL = int(C.go_FL_CTRL) ALT = int(C.go_FL_ALT) NUM_LOCK = int(C.go_FL_NUM_LOCK) META = int(C.go_FL_META) SCROLL_LOCK = int(C.go_FL_SCROLL_LOCK) BUTTON1 = int(C.go_FL_BUTTON1) BUTTON2 = int(C.go_FL_BUTTON2) BUTTON3 = int(C.go_FL_BUTTON3) )
View Source
var ( FileChooser_SINGLE = FileChooserType(C.go_FL_FileChooser_SINGLE) FileChooser_MULTI = FileChooserType(C.go_FL_FileChooser_MULTI) FileChooser_CREATE = FileChooserType(C.go_FL_FileChooser_CREATE) FileChooser_DIRECTORY = FileChooserType(C.go_FL_FileChooser_DIRECTORY) )
View Source
var ( POPUP1 = MenuType(C.go_FL_POPUP1) POPUP2 = MenuType(C.go_FL_POPUP2) POPUP12 = MenuType(C.go_FL_POPUP12) POPUP3 = MenuType(C.go_FL_POPUP3) POPUP13 = MenuType(C.go_FL_POPUP13) POPUP23 = MenuType(C.go_FL_POPUP23) POPUP123 = MenuType(C.go_FL_POPUP123) )
View Source
var ( MENU_INACTIVE = int(C.go_FL_MENU_INACTIVE) MENU_TOGGLE = int(C.go_FL_MENU_TOGGLE) MENU_VALUE = int(C.go_FL_MENU_VALUE) MENU_RADIO = int(C.go_FL_MENU_RADIO) MENU_INVISIBLE = int(C.go_FL_MENU_INVISIBLE) SUBMENU = int(C.go_FL_SUBMENU) MENU_DIVIDER = int(C.go_FL_MENU_DIVIDER) )
View Source
var ( VERTICAL = PackType(C.go_FL_PACK_VERTICAL) HORIZONTAL = PackType(C.go_FL_PACK_HORIZONTAL) )
View Source
var ( ContextNone = TableContext(C.go_FL_CONTEXT_NONE) ContextStartPage = TableContext(C.go_FL_CONTEXT_STARTPAGE) ContextEndPage = TableContext(C.go_FL_CONTEXT_ENDPAGE) ContextRowHeader = TableContext(C.go_FL_CONTEXT_ROW_HEADER) ContextColHeader = TableContext(C.go_FL_CONTEXT_COL_HEADER) ContextCell = TableContext(C.go_FL_CONTEXT_CELL) ContextTable = TableContext(C.go_FL_CONTEXT_TABLE) ContextRCResize = TableContext(C.go_FL_CONTEXT_RC_RESIZE) )
View Source
var ( Deselect = SelectionFlag(C.go_FL_DESELECT) Select = SelectionFlag(C.go_FL_SELECT) ToggleSelection = SelectionFlag(C.go_FL_TOGGLE_SELECTION) )
View Source
var ( SelectNone = RowSelectMode(C.go_FL_SELECT_NONE) SelectSingle = RowSelectMode(C.go_FL_SELECT_SINGLE) SelectMulti = RowSelectMode(C.go_FL_SELECT_MULTI) )
View Source
var ( CURSOR_DEFAULT = Cursor(C.go_FL_CURSOR_DEFAULT) CURSOR_ARROW = Cursor(C.go_FL_CURSOR_ARROW) CURSOR_CROSS = Cursor(C.go_FL_CURSOR_CROSS) CURSOR_WAIT = Cursor(C.go_FL_CURSOR_WAIT) CURSOR_INSERT = Cursor(C.go_FL_CURSOR_INSERT) CURSOR_HAND = Cursor(C.go_FL_CURSOR_HAND) CURSOR_HELP = Cursor(C.go_FL_CURSOR_HELP) CURSOR_MOVE = Cursor(C.go_FL_CURSOR_MOVE) CURSOR_NS = Cursor(C.go_FL_CURSOR_NS) CURSOR_WE = Cursor(C.go_FL_CURSOR_WE) CURSOR_NWSE = Cursor(C.go_FL_CURSOR_NWSE) CURSOR_NESW = Cursor(C.go_FL_CURSOR_NESW) CURSOR_N = Cursor(C.go_FL_CURSOR_N) CURSOR_NE = Cursor(C.go_FL_CURSOR_NE) CURSOR_E = Cursor(C.go_FL_CURSOR_E) CURSOR_SE = Cursor(C.go_FL_CURSOR_SE) CURSOR_S = Cursor(C.go_FL_CURSOR_S) CURSOR_SW = Cursor(C.go_FL_CURSOR_SW) CURSOR_W = Cursor(C.go_FL_CURSOR_W) CURSOR_NW = Cursor(C.go_FL_CURSOR_NW) )
View Source
var (
ESCAPE = int(C.go_FL_ESCAPE)
)
View Source
var SPINNER_FLOAT_INPUT = SpinnerInputType(C.go_FL_FLOAT_INPUT)
View Source
var SPINNER_INT_INPUT = SpinnerInputType(C.go_FL_INT_INPUT)
Functions ¶
func AwakeNullMessage ¶
func AwakeNullMessage()
func ChoiceDialog ¶
func ChooseFile ¶
func CopyToClipboard ¶
func CopyToClipboard(text string)
func EventButton1 ¶
func EventButton1() bool
func EventIsClick ¶
func EventIsClick() bool
func EventState ¶
func EventState() int
func EventXRoot ¶
func EventXRoot() int
func EventYRoot ¶
func EventYRoot() int
func InitStyles ¶
func InitStyles()
func MessageBox ¶
func MessageBox(title, message string)
func ScreenCount ¶
func ScreenCount() int
func ScreenScale ¶
func SetBackground2Color ¶
func SetBackground2Color(r, g, b uint8)
func SetBackgroundColor ¶
func SetBackgroundColor(r, g, b uint8)
func SetDrawColor ¶
func SetDrawColor(color Color)
func SetDrawFont ¶
func SetForegroundColor ¶
func SetForegroundColor(r, g, b uint8)
func SetKeyboardScreenScaling ¶
func SetKeyboardScreenScaling(value bool)
func SetScreenScale ¶
Types ¶
type BmpImage ¶
type BmpImage struct {
// contains filtered or unexported fields
}
func NewBmpImageFromData ¶
func NewBmpImageLoad ¶
type Box ¶
type Box struct {
// contains filtered or unexported fields
}
func (*Box) ClearVisibleFocus ¶
func (w *Box) ClearVisibleFocus()
func (*Box) Deactivate ¶
func (w *Box) Deactivate()
func (*Box) LabelColor ¶
func (w *Box) LabelColor() Color
func (*Box) MeasureLabel ¶
func (*Box) SelectionColor ¶
func (w *Box) SelectionColor() Color
func (*Box) SetCallback ¶
func (w *Box) SetCallback(f func())
func (*Box) SetCallbackCondition ¶
func (w *Box) SetCallbackCondition(when CallbackCondition)
func (*Box) SetDeimage ¶
func (w *Box) SetDeimage(i Image)
func (*Box) SetLabelColor ¶
func (w *Box) SetLabelColor(col Color)
func (*Box) SetLabelFont ¶
func (w *Box) SetLabelFont(font Font)
func (*Box) SetLabelSize ¶
func (w *Box) SetLabelSize(size int)
func (*Box) SetLabelType ¶
func (w *Box) SetLabelType(ltype LabelType)
func (*Box) SetPosition ¶
func (w *Box) SetPosition(x, y int)
func (*Box) SetSelectionColor ¶
func (w *Box) SetSelectionColor(color Color)
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
func (*Button) ClearVisibleFocus ¶
func (w *Button) ClearVisibleFocus()
func (*Button) Deactivate ¶
func (w *Button) Deactivate()
func (*Button) LabelColor ¶
func (w *Button) LabelColor() Color
func (*Button) MeasureLabel ¶
func (*Button) SelectionColor ¶
func (w *Button) SelectionColor() Color
func (*Button) SetCallback ¶
func (w *Button) SetCallback(f func())
func (*Button) SetCallbackCondition ¶
func (w *Button) SetCallbackCondition(when CallbackCondition)
func (*Button) SetDeimage ¶
func (w *Button) SetDeimage(i Image)
func (*Button) SetDownBox ¶
func (*Button) SetLabelColor ¶
func (w *Button) SetLabelColor(col Color)
func (*Button) SetLabelFont ¶
func (w *Button) SetLabelFont(font Font)
func (*Button) SetLabelSize ¶
func (w *Button) SetLabelSize(size int)
func (*Button) SetLabelType ¶
func (w *Button) SetLabelType(ltype LabelType)
func (*Button) SetPosition ¶
func (w *Button) SetPosition(x, y int)
func (*Button) SetSelectionColor ¶
func (w *Button) SetSelectionColor(color Color)
type CallbackCondition ¶
type CallbackCondition int
type CheckButton ¶
type CheckButton struct {
Button
}
func NewCheckButton ¶
func NewCheckButton(x, y, w, h int, text ...string) *CheckButton
func (*CheckButton) ClearVisibleFocus ¶
func (w *CheckButton) ClearVisibleFocus()
func (*CheckButton) Deactivate ¶
func (w *CheckButton) Deactivate()
func (*CheckButton) LabelColor ¶
func (w *CheckButton) LabelColor() Color
func (*CheckButton) MeasureLabel ¶
func (*CheckButton) SelectionColor ¶
func (w *CheckButton) SelectionColor() Color
func (*CheckButton) SetCallback ¶
func (w *CheckButton) SetCallback(f func())
func (*CheckButton) SetCallbackCondition ¶
func (w *CheckButton) SetCallbackCondition(when CallbackCondition)
func (*CheckButton) SetDeimage ¶
func (w *CheckButton) SetDeimage(i Image)
func (*CheckButton) SetLabelColor ¶
func (w *CheckButton) SetLabelColor(col Color)
func (*CheckButton) SetLabelFont ¶
func (w *CheckButton) SetLabelFont(font Font)
func (*CheckButton) SetLabelSize ¶
func (w *CheckButton) SetLabelSize(size int)
func (*CheckButton) SetLabelType ¶
func (w *CheckButton) SetLabelType(ltype LabelType)
func (*CheckButton) SetPosition ¶
func (w *CheckButton) SetPosition(x, y int)
func (*CheckButton) SetSelectionColor ¶
func (w *CheckButton) SetSelectionColor(color Color)
type Choice ¶
type Choice struct {
// contains filtered or unexported fields
}
type FileChooser ¶
type FileChooser struct {
// contains filtered or unexported fields
}
func NewFileChooser ¶
func NewFileChooser(pathname, pattern string, fctype FileChooserType, title string) *FileChooser
func (*FileChooser) Destroy ¶
func (c *FileChooser) Destroy()
func (*FileChooser) Popup ¶
func (c *FileChooser) Popup()
func (*FileChooser) Selection ¶
func (c *FileChooser) Selection() []string
func (*FileChooser) SetCallback ¶
func (c *FileChooser) SetCallback(callback func())
func (*FileChooser) SetPreview ¶
func (c *FileChooser) SetPreview(enable bool)
func (*FileChooser) Show ¶
func (c *FileChooser) Show()
func (*FileChooser) Shown ¶
func (c *FileChooser) Shown() bool
type FileChooserType ¶
type FileChooserType int
type GlWindow ¶
type GlWindow struct { Window // contains filtered or unexported fields }
func NewGlWindow ¶
func (*GlWindow) ClearVisibleFocus ¶
func (w *GlWindow) ClearVisibleFocus()
func (*GlWindow) ContextValid ¶
func (*GlWindow) Deactivate ¶
func (w *GlWindow) Deactivate()
func (*GlWindow) LabelColor ¶
func (w *GlWindow) LabelColor() Color
func (*GlWindow) MakeCurrent ¶
func (w *GlWindow) MakeCurrent()
func (*GlWindow) MeasureLabel ¶
func (*GlWindow) SelectionColor ¶
func (w *GlWindow) SelectionColor() Color
func (*GlWindow) SetCallback ¶
func (w *GlWindow) SetCallback(f func())
func (*GlWindow) SetCallbackCondition ¶
func (w *GlWindow) SetCallbackCondition(when CallbackCondition)
func (*GlWindow) SetDeimage ¶
func (w *GlWindow) SetDeimage(i Image)
func (*GlWindow) SetEventHandler ¶
func (*GlWindow) SetLabelColor ¶
func (w *GlWindow) SetLabelColor(col Color)
func (*GlWindow) SetLabelFont ¶
func (w *GlWindow) SetLabelFont(font Font)
func (*GlWindow) SetLabelSize ¶
func (w *GlWindow) SetLabelSize(size int)
func (*GlWindow) SetLabelType ¶
func (w *GlWindow) SetLabelType(ltype LabelType)
func (*GlWindow) SetPosition ¶
func (w *GlWindow) SetPosition(x, y int)
func (*GlWindow) SetResizeHandler ¶
func (w *GlWindow) SetResizeHandler(handler func())
func (*GlWindow) SetSelectionColor ¶
func (w *GlWindow) SetSelectionColor(color Color)
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) ClearVisibleFocus ¶
func (w *Group) ClearVisibleFocus()
func (*Group) Deactivate ¶
func (w *Group) Deactivate()
func (*Group) LabelColor ¶
func (w *Group) LabelColor() Color
func (*Group) MeasureLabel ¶
func (*Group) SelectionColor ¶
func (w *Group) SelectionColor() Color
func (*Group) SetCallback ¶
func (w *Group) SetCallback(f func())
func (*Group) SetCallbackCondition ¶
func (w *Group) SetCallbackCondition(when CallbackCondition)
func (*Group) SetDeimage ¶
func (w *Group) SetDeimage(i Image)
func (*Group) SetLabelColor ¶
func (w *Group) SetLabelColor(col Color)
func (*Group) SetLabelFont ¶
func (w *Group) SetLabelFont(font Font)
func (*Group) SetLabelSize ¶
func (w *Group) SetLabelSize(size int)
func (*Group) SetLabelType ¶
func (w *Group) SetLabelType(ltype LabelType)
func (*Group) SetPosition ¶
func (w *Group) SetPosition(x, y int)
func (*Group) SetSelectionColor ¶
func (w *Group) SetSelectionColor(color Color)
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) ClearVisibleFocus ¶
func (w *Input) ClearVisibleFocus()
func (*Input) Deactivate ¶
func (w *Input) Deactivate()
func (*Input) LabelColor ¶
func (w *Input) LabelColor() Color
func (*Input) MeasureLabel ¶
func (*Input) SelectionColor ¶
func (w *Input) SelectionColor() Color
func (*Input) SetCallback ¶
func (w *Input) SetCallback(f func())
func (*Input) SetCallbackCondition ¶
func (w *Input) SetCallbackCondition(when CallbackCondition)
func (*Input) SetDeimage ¶
func (w *Input) SetDeimage(i Image)
func (*Input) SetLabelColor ¶
func (w *Input) SetLabelColor(col Color)
func (*Input) SetLabelFont ¶
func (w *Input) SetLabelFont(font Font)
func (*Input) SetLabelSize ¶
func (w *Input) SetLabelSize(size int)
func (*Input) SetLabelType ¶
func (w *Input) SetLabelType(ltype LabelType)
func (*Input) SetPosition ¶
func (w *Input) SetPosition(x, y int)
func (*Input) SetSelectionColor ¶
func (w *Input) SetSelectionColor(color Color)
type JpegImage ¶
type JpegImage struct {
// contains filtered or unexported fields
}
func NewJpegImageFromData ¶
func NewJpegImageLoad ¶
type MenuBar ¶
type MenuBar struct {
// contains filtered or unexported fields
}
func NewMenuBar ¶
type MenuButton ¶
type MenuButton struct {
// contains filtered or unexported fields
}
func NewMenuButton ¶
func NewMenuButton(x, y, w, h int, text ...string) *MenuButton
func (*MenuButton) Add ¶
func (m *MenuButton) Add(label string, callback func()) int
func (*MenuButton) Destroy ¶
func (m *MenuButton) Destroy()
func (*MenuButton) Popup ¶
func (m *MenuButton) Popup()
func (*MenuButton) SetType ¶
func (m *MenuButton) SetType(menuType MenuType)
type Pack ¶
type Pack struct {
Group
}
func (*Pack) ClearVisibleFocus ¶
func (w *Pack) ClearVisibleFocus()
func (*Pack) Deactivate ¶
func (w *Pack) Deactivate()
func (*Pack) LabelColor ¶
func (w *Pack) LabelColor() Color
func (*Pack) MeasureLabel ¶
func (*Pack) SelectionColor ¶
func (w *Pack) SelectionColor() Color
func (*Pack) SetCallback ¶
func (w *Pack) SetCallback(f func())
func (*Pack) SetCallbackCondition ¶
func (w *Pack) SetCallbackCondition(when CallbackCondition)
func (*Pack) SetDeimage ¶
func (w *Pack) SetDeimage(i Image)
func (*Pack) SetLabelColor ¶
func (w *Pack) SetLabelColor(col Color)
func (*Pack) SetLabelFont ¶
func (w *Pack) SetLabelFont(font Font)
func (*Pack) SetLabelSize ¶
func (w *Pack) SetLabelSize(size int)
func (*Pack) SetLabelType ¶
func (w *Pack) SetLabelType(ltype LabelType)
func (*Pack) SetPosition ¶
func (w *Pack) SetPosition(x, y int)
func (*Pack) SetSelectionColor ¶
func (w *Pack) SetSelectionColor(color Color)
func (*Pack) SetSpacing ¶
type PngImage ¶
type PngImage struct {
// contains filtered or unexported fields
}
func NewPngImageFromData ¶
func NewPngImageLoad ¶
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶
func (*Progress) ClearVisibleFocus ¶
func (w *Progress) ClearVisibleFocus()
func (*Progress) Deactivate ¶
func (w *Progress) Deactivate()
func (*Progress) LabelColor ¶
func (w *Progress) LabelColor() Color
func (*Progress) MeasureLabel ¶
func (*Progress) SelectionColor ¶
func (w *Progress) SelectionColor() Color
func (*Progress) SetCallback ¶
func (w *Progress) SetCallback(f func())
func (*Progress) SetCallbackCondition ¶
func (w *Progress) SetCallbackCondition(when CallbackCondition)
func (*Progress) SetDeimage ¶
func (w *Progress) SetDeimage(i Image)
func (*Progress) SetLabelColor ¶
func (w *Progress) SetLabelColor(col Color)
func (*Progress) SetLabelFont ¶
func (w *Progress) SetLabelFont(font Font)
func (*Progress) SetLabelSize ¶
func (w *Progress) SetLabelSize(size int)
func (*Progress) SetLabelType ¶
func (w *Progress) SetLabelType(ltype LabelType)
func (*Progress) SetMaximum ¶
func (*Progress) SetMinimum ¶
func (*Progress) SetPosition ¶
func (w *Progress) SetPosition(x, y int)
func (*Progress) SetSelectionColor ¶
func (w *Progress) SetSelectionColor(color Color)
type RadioButton ¶
type RadioButton struct {
Button
}
func NewRadioButton ¶
func NewRadioButton(x, y, w, h int, text ...string) *RadioButton
func (*RadioButton) ClearVisibleFocus ¶
func (w *RadioButton) ClearVisibleFocus()
func (*RadioButton) Deactivate ¶
func (w *RadioButton) Deactivate()
func (*RadioButton) LabelColor ¶
func (w *RadioButton) LabelColor() Color
func (*RadioButton) MeasureLabel ¶
func (*RadioButton) SelectionColor ¶
func (w *RadioButton) SelectionColor() Color
func (*RadioButton) SetCallback ¶
func (w *RadioButton) SetCallback(f func())
func (*RadioButton) SetCallbackCondition ¶
func (w *RadioButton) SetCallbackCondition(when CallbackCondition)
func (*RadioButton) SetDeimage ¶
func (w *RadioButton) SetDeimage(i Image)
func (*RadioButton) SetLabelColor ¶
func (w *RadioButton) SetLabelColor(col Color)
func (*RadioButton) SetLabelFont ¶
func (w *RadioButton) SetLabelFont(font Font)
func (*RadioButton) SetLabelSize ¶
func (w *RadioButton) SetLabelSize(size int)
func (*RadioButton) SetLabelType ¶
func (w *RadioButton) SetLabelType(ltype LabelType)
func (*RadioButton) SetPosition ¶
func (w *RadioButton) SetPosition(x, y int)
func (*RadioButton) SetSelectionColor ¶
func (w *RadioButton) SetSelectionColor(color Color)
type RadioRoundButton ¶
type RadioRoundButton struct {
Button
}
func NewRadioRoundButton ¶
func NewRadioRoundButton(x, y, w, h int, text ...string) *RadioRoundButton
func (*RadioRoundButton) ClearVisibleFocus ¶
func (w *RadioRoundButton) ClearVisibleFocus()
func (*RadioRoundButton) Deactivate ¶
func (w *RadioRoundButton) Deactivate()
func (*RadioRoundButton) LabelColor ¶
func (w *RadioRoundButton) LabelColor() Color
func (*RadioRoundButton) MeasureLabel ¶
func (*RadioRoundButton) SelectionColor ¶
func (w *RadioRoundButton) SelectionColor() Color
func (*RadioRoundButton) SetCallback ¶
func (w *RadioRoundButton) SetCallback(f func())
func (*RadioRoundButton) SetCallbackCondition ¶
func (w *RadioRoundButton) SetCallbackCondition(when CallbackCondition)
func (*RadioRoundButton) SetDeimage ¶
func (w *RadioRoundButton) SetDeimage(i Image)
func (*RadioRoundButton) SetLabelColor ¶
func (w *RadioRoundButton) SetLabelColor(col Color)
func (*RadioRoundButton) SetLabelFont ¶
func (w *RadioRoundButton) SetLabelFont(font Font)
func (*RadioRoundButton) SetLabelSize ¶
func (w *RadioRoundButton) SetLabelSize(size int)
func (*RadioRoundButton) SetLabelType ¶
func (w *RadioRoundButton) SetLabelType(ltype LabelType)
func (*RadioRoundButton) SetPosition ¶
func (w *RadioRoundButton) SetPosition(x, y int)
func (*RadioRoundButton) SetSelectionColor ¶
func (w *RadioRoundButton) SetSelectionColor(color Color)
type ReturnButton ¶
type ReturnButton struct {
Button
}
func NewReturnButton ¶
func NewReturnButton(x, y, w, h int, text ...string) *ReturnButton
func (*ReturnButton) ClearVisibleFocus ¶
func (w *ReturnButton) ClearVisibleFocus()
func (*ReturnButton) Deactivate ¶
func (w *ReturnButton) Deactivate()
func (*ReturnButton) LabelColor ¶
func (w *ReturnButton) LabelColor() Color
func (*ReturnButton) MeasureLabel ¶
func (*ReturnButton) SelectionColor ¶
func (w *ReturnButton) SelectionColor() Color
func (*ReturnButton) SetCallback ¶
func (w *ReturnButton) SetCallback(f func())
func (*ReturnButton) SetCallbackCondition ¶
func (w *ReturnButton) SetCallbackCondition(when CallbackCondition)
func (*ReturnButton) SetDeimage ¶
func (w *ReturnButton) SetDeimage(i Image)
func (*ReturnButton) SetLabelColor ¶
func (w *ReturnButton) SetLabelColor(col Color)
func (*ReturnButton) SetLabelFont ¶
func (w *ReturnButton) SetLabelFont(font Font)
func (*ReturnButton) SetLabelSize ¶
func (w *ReturnButton) SetLabelSize(size int)
func (*ReturnButton) SetLabelType ¶
func (w *ReturnButton) SetLabelType(ltype LabelType)
func (*ReturnButton) SetPosition ¶
func (w *ReturnButton) SetPosition(x, y int)
func (*ReturnButton) SetSelectionColor ¶
func (w *ReturnButton) SetSelectionColor(color Color)
type RgbImage ¶
type RgbImage struct {
// contains filtered or unexported fields
}
type RowSelectMode ¶
type RowSelectMode int
type SelectionFlag ¶
type SelectionFlag int
type SharedImage ¶
type SharedImage struct {
// contains filtered or unexported fields
}
func NewSharedImageLoad ¶
func NewSharedImageLoad(path string) (*SharedImage, error)
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
func NewSpinner ¶
func (*Spinner) ClearVisibleFocus ¶
func (w *Spinner) ClearVisibleFocus()
func (*Spinner) Deactivate ¶
func (w *Spinner) Deactivate()
func (*Spinner) LabelColor ¶
func (w *Spinner) LabelColor() Color
func (*Spinner) MeasureLabel ¶
func (*Spinner) SelectionColor ¶
func (w *Spinner) SelectionColor() Color
func (*Spinner) SetCallback ¶
func (w *Spinner) SetCallback(f func())
func (*Spinner) SetCallbackCondition ¶
func (w *Spinner) SetCallbackCondition(when CallbackCondition)
func (*Spinner) SetDeimage ¶
func (w *Spinner) SetDeimage(i Image)
func (*Spinner) SetLabelColor ¶
func (w *Spinner) SetLabelColor(col Color)
func (*Spinner) SetLabelFont ¶
func (w *Spinner) SetLabelFont(font Font)
func (*Spinner) SetLabelSize ¶
func (w *Spinner) SetLabelSize(size int)
func (*Spinner) SetLabelType ¶
func (w *Spinner) SetLabelType(ltype LabelType)
func (*Spinner) SetMaximum ¶
func (*Spinner) SetMinimum ¶
func (*Spinner) SetPosition ¶
func (w *Spinner) SetPosition(x, y int)
func (*Spinner) SetSelectionColor ¶
func (w *Spinner) SetSelectionColor(color Color)
func (*Spinner) SetType ¶
func (s *Spinner) SetType(inputType SpinnerInputType)
type SpinnerInputType ¶
type SpinnerInputType uint8
type SvgImage ¶
type SvgImage struct {
// contains filtered or unexported fields
}
func NewSvgImageFromString ¶
func NewSvgImageLoad ¶
type TableContext ¶
type TableContext int
type TableRow ¶
type TableRow struct {
// contains filtered or unexported fields
}
func NewTableRow ¶
func (*TableRow) AllowColumnResizing ¶
func (t *TableRow) AllowColumnResizing()
func (*TableRow) AllowRowResizing ¶
func (t *TableRow) AllowRowResizing()
func (*TableRow) CallbackContext ¶
func (t *TableRow) CallbackContext() TableContext
func (*TableRow) CallbackRow ¶
func (t *TableRow) CallbackRow() int
func (*TableRow) DisableColumnHeaders ¶
func (t *TableRow) DisableColumnHeaders()
func (*TableRow) DisableRowHeaders ¶
func (t *TableRow) DisableRowHeaders()
func (*TableRow) DisallowColumnResizing ¶
func (t *TableRow) DisallowColumnResizing()
func (*TableRow) DisallowRowResizing ¶
func (t *TableRow) DisallowRowResizing()
func (*TableRow) EnableColumnHeaders ¶
func (t *TableRow) EnableColumnHeaders()
func (*TableRow) EnableRowHeaders ¶
func (t *TableRow) EnableRowHeaders()
func (*TableRow) IsRowSelected ¶
func (*TableRow) SelectAllRows ¶
func (t *TableRow) SelectAllRows(flag SelectionFlag)
func (*TableRow) SelectRow ¶
func (t *TableRow) SelectRow(row int, flag SelectionFlag)
func (*TableRow) SetColumnCount ¶
func (t *TableRow) SetColumnCount(columnCount int)
func (*TableRow) SetColumnWidth ¶
func (t *TableRow) SetColumnWidth(column, width int)
func (*TableRow) SetColumnWidthAll ¶
func (t *TableRow) SetColumnWidthAll(width int)
func (*TableRow) SetDrawCellCallback ¶
func (*TableRow) SetEventHandler ¶
func (*TableRow) SetResizeHandler ¶
func (t *TableRow) SetResizeHandler(handler func())
func (*TableRow) SetRowCount ¶
func (t *TableRow) SetRowCount(rowCount int)
func (*TableRow) SetRowHeight ¶
func (t *TableRow) SetRowHeight(row, height int)
func (*TableRow) SetRowHeightAll ¶
func (t *TableRow) SetRowHeightAll(height int)
func (*TableRow) SetType ¶
func (t *TableRow) SetType(tableType RowSelectMode)
type Tabs ¶
type Tabs struct {
Group
}
func (*Tabs) ClearVisibleFocus ¶
func (w *Tabs) ClearVisibleFocus()
func (*Tabs) Deactivate ¶
func (w *Tabs) Deactivate()
func (*Tabs) LabelColor ¶
func (w *Tabs) LabelColor() Color
func (*Tabs) MeasureLabel ¶
func (*Tabs) SelectionColor ¶
func (w *Tabs) SelectionColor() Color
func (*Tabs) SetCallback ¶
func (w *Tabs) SetCallback(f func())
func (*Tabs) SetCallbackCondition ¶
func (w *Tabs) SetCallbackCondition(when CallbackCondition)
func (*Tabs) SetDeimage ¶
func (w *Tabs) SetDeimage(i Image)
func (*Tabs) SetLabelColor ¶
func (w *Tabs) SetLabelColor(col Color)
func (*Tabs) SetLabelFont ¶
func (w *Tabs) SetLabelFont(font Font)
func (*Tabs) SetLabelSize ¶
func (w *Tabs) SetLabelSize(size int)
func (*Tabs) SetLabelType ¶
func (w *Tabs) SetLabelType(ltype LabelType)
func (*Tabs) SetPosition ¶
func (w *Tabs) SetPosition(x, y int)
func (*Tabs) SetSelectionColor ¶
func (w *Tabs) SetSelectionColor(color Color)
type TextBuffer ¶
type TextBuffer struct {
// contains filtered or unexported fields
}
func NewTextBuffer ¶
func NewTextBuffer() *TextBuffer
func (*TextBuffer) Append ¶
func (b *TextBuffer) Append(txt string)
func (*TextBuffer) SetText ¶
func (b *TextBuffer) SetText(txt string)
func (*TextBuffer) Text ¶
func (b *TextBuffer) Text() string
type TextDisplay ¶
type TextDisplay struct {
// contains filtered or unexported fields
}
func NewTextDisplay ¶
func NewTextDisplay(x, y, w, h int, text ...string) *TextDisplay
func (*TextDisplay) Buffer ¶
func (t *TextDisplay) Buffer() *TextBuffer
func (*TextDisplay) ClearVisibleFocus ¶
func (w *TextDisplay) ClearVisibleFocus()
func (*TextDisplay) Deactivate ¶
func (w *TextDisplay) Deactivate()
func (*TextDisplay) LabelColor ¶
func (w *TextDisplay) LabelColor() Color
func (*TextDisplay) MeasureLabel ¶
func (*TextDisplay) SelectionColor ¶
func (w *TextDisplay) SelectionColor() Color
func (*TextDisplay) SetBuffer ¶
func (t *TextDisplay) SetBuffer(buf *TextBuffer)
func (*TextDisplay) SetCallback ¶
func (w *TextDisplay) SetCallback(f func())
func (*TextDisplay) SetCallbackCondition ¶
func (w *TextDisplay) SetCallbackCondition(when CallbackCondition)
func (*TextDisplay) SetDeimage ¶
func (w *TextDisplay) SetDeimage(i Image)
func (*TextDisplay) SetLabelColor ¶
func (w *TextDisplay) SetLabelColor(col Color)
func (*TextDisplay) SetLabelFont ¶
func (w *TextDisplay) SetLabelFont(font Font)
func (*TextDisplay) SetLabelSize ¶
func (w *TextDisplay) SetLabelSize(size int)
func (*TextDisplay) SetLabelType ¶
func (w *TextDisplay) SetLabelType(ltype LabelType)
func (*TextDisplay) SetPosition ¶
func (w *TextDisplay) SetPosition(x, y int)
func (*TextDisplay) SetSelectionColor ¶
func (w *TextDisplay) SetSelectionColor(color Color)
type TextEditor ¶
type TextEditor struct {
TextDisplay
}
func NewTextEditor ¶
func NewTextEditor(x, y, w, h int, text ...string) *TextEditor
func (*TextEditor) ClearVisibleFocus ¶
func (w *TextEditor) ClearVisibleFocus()
func (*TextEditor) Deactivate ¶
func (w *TextEditor) Deactivate()
func (*TextEditor) LabelColor ¶
func (w *TextEditor) LabelColor() Color
func (*TextEditor) MeasureLabel ¶
func (*TextEditor) SelectionColor ¶
func (w *TextEditor) SelectionColor() Color
func (*TextEditor) SetCallback ¶
func (w *TextEditor) SetCallback(f func())
func (*TextEditor) SetCallbackCondition ¶
func (w *TextEditor) SetCallbackCondition(when CallbackCondition)
func (*TextEditor) SetDeimage ¶
func (w *TextEditor) SetDeimage(i Image)
func (*TextEditor) SetLabelColor ¶
func (w *TextEditor) SetLabelColor(col Color)
func (*TextEditor) SetLabelFont ¶
func (w *TextEditor) SetLabelFont(font Font)
func (*TextEditor) SetLabelSize ¶
func (w *TextEditor) SetLabelSize(size int)
func (*TextEditor) SetLabelType ¶
func (w *TextEditor) SetLabelType(ltype LabelType)
func (*TextEditor) SetPosition ¶
func (w *TextEditor) SetPosition(x, y int)
func (*TextEditor) SetSelectionColor ¶
func (w *TextEditor) SetSelectionColor(color Color)
type ToggleButton ¶
type ToggleButton struct {
Button
}
func NewToggleButton ¶
func NewToggleButton(x, y, w, h int, text ...string) *ToggleButton
func (*ToggleButton) ClearVisibleFocus ¶
func (w *ToggleButton) ClearVisibleFocus()
func (*ToggleButton) Deactivate ¶
func (w *ToggleButton) Deactivate()
func (*ToggleButton) LabelColor ¶
func (w *ToggleButton) LabelColor() Color
func (*ToggleButton) MeasureLabel ¶
func (*ToggleButton) SelectionColor ¶
func (w *ToggleButton) SelectionColor() Color
func (*ToggleButton) SetCallback ¶
func (w *ToggleButton) SetCallback(f func())
func (*ToggleButton) SetCallbackCondition ¶
func (w *ToggleButton) SetCallbackCondition(when CallbackCondition)
func (*ToggleButton) SetDeimage ¶
func (w *ToggleButton) SetDeimage(i Image)
func (*ToggleButton) SetLabelColor ¶
func (w *ToggleButton) SetLabelColor(col Color)
func (*ToggleButton) SetLabelFont ¶
func (w *ToggleButton) SetLabelFont(font Font)
func (*ToggleButton) SetLabelSize ¶
func (w *ToggleButton) SetLabelSize(size int)
func (*ToggleButton) SetLabelType ¶
func (w *ToggleButton) SetLabelType(ltype LabelType)
func (*ToggleButton) SetPosition ¶
func (w *ToggleButton) SetPosition(x, y int)
func (*ToggleButton) SetSelectionColor ¶
func (w *ToggleButton) SetSelectionColor(color Color)
type Window ¶
type Window struct {
Group
}
func (*Window) ClearVisibleFocus ¶
func (w *Window) ClearVisibleFocus()
func (*Window) Deactivate ¶
func (w *Window) Deactivate()
func (*Window) LabelColor ¶
func (w *Window) LabelColor() Color
func (*Window) MeasureLabel ¶
func (*Window) SelectionColor ¶
func (w *Window) SelectionColor() Color
func (*Window) SetCallback ¶
func (w *Window) SetCallback(f func())
func (*Window) SetCallbackCondition ¶
func (w *Window) SetCallbackCondition(when CallbackCondition)
func (*Window) SetDeimage ¶
func (w *Window) SetDeimage(i Image)
func (*Window) SetLabelColor ¶
func (w *Window) SetLabelColor(col Color)
func (*Window) SetLabelFont ¶
func (w *Window) SetLabelFont(font Font)
func (*Window) SetLabelSize ¶
func (w *Window) SetLabelSize(size int)
func (*Window) SetLabelType ¶
func (w *Window) SetLabelType(ltype LabelType)
func (*Window) SetPosition ¶
func (w *Window) SetPosition(x, y int)
func (*Window) SetSelectionColor ¶
func (w *Window) SetSelectionColor(color Color)
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
flutter-like
command
|
|
image
command
|
|
table
command
|
|
toggle
command
|
|
widget_table
command
|
Click to show internal directories.
Click to hide internal directories.