Documentation
¶
Index ¶
- Constants
- Variables
- func AddTimeout(t float64, fn func())
- func Awake(fn func()) bool
- func AwakeNullMessage()
- func Check()
- func ChoiceDialog(message string, options ...string) int
- func ChooseFile(message, pattern, initialFilename string, relative bool) (string, bool)
- func CopyToClipboard(text string)
- func CopyToSelectionBuffer(text string)
- func DragAndDrop()
- func Draw(text string, x, y, w, h int, align Align)
- func DrawArc(x, y, w, h int, a1, a2 float64)
- func DrawArc2(x, y, r, start, end float64)
- func DrawBox(boxType BoxType, x, y, w, h int, color Color)
- func DrawCheck(x, y, w, h int, col Color)
- func DrawCirlce(x, y, r float64)
- func DrawFocusRect(x, y, w, h int)
- func DrawLine(x, y, x1, y1 int)
- func DrawLine2(x, y, x1, y1, x2, y2 int)
- func DrawLoop(x, y, x1, y1, x2, y2 int)
- func DrawLoop2(x, y, x1, y1, x2, y2, x3, y3 int)
- func DrawPie(x, y, w, h int, a1, a2 float64)
- func DrawPoint(x, y int)
- func DrawPolygon(x, y, x1, y1, x2, y2 int)
- func DrawPolygon2(x, y, x1, y1, x2, y2, x3, y3 int)
- func DrawRect(x, y, w, h int)
- func DrawRectWithColor(x, y, w, h int, col Color)
- func DrawRectf(x, y, w, h int)
- func DrawRectfWithColor(x, y, w, h int, col Color)
- func DrawRtl(text string, x, y int)
- func DrawTextAngled(text string, x, y, angle int)
- func DrawXyLine(x, y, x1 int)
- func DrawXyLine2(x, y, x1, y2 int)
- func DrawXyLine3(x, y, x1, y2, x3 int)
- func DrawYxLine(x, y, y1 int)
- func DrawYxLine2(x, y, y1, x2 int)
- func DrawYxLine3(x, y, y1, x2, y3 int)
- func EventButton1() bool
- func EventDX() int
- func EventDY() int
- func EventIsClick() bool
- func EventKey() int
- func EventState() int
- func EventText() string
- func EventX() int
- func EventXRoot() int
- func EventY() int
- func EventYRoot() int
- func GetFont(font Font) string
- func GoVersion() string
- func InitStyles()
- func Lock() bool
- func MeasureText(text string, draw_symbols bool) (int, int)
- func MessageBox(title, message string)
- func PopClip()
- func PushClip(x, y, w, h int)
- func PushNoClip()
- func RepeatTimeout(t float64, fn func())
- 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 ScrollbarSize() int
- func SetBackground2Color(r, g, b uint8)
- func SetBackgroundColor(r, g, b uint8)
- func SetBoxType(b BoxType, d func(int, int, int, int, Color), o ...int)
- func SetColor(col Color, r, g, b uint8)
- func SetDrawColor(color Color)
- func SetDrawFont(font Font, size int)
- func SetFont(fontNumber Font, fontName string)
- func SetFont2(font Font, font2 Font)
- func SetFonts(xstarname ...string) int
- func SetForegroundColor(r, g, b uint8)
- func SetKeyboardScreenScaling(value bool)
- func SetLineStyle(style LineStyle, width int)
- func SetScheme(scheme string) int
- func SetScreenScale(screenNum int, scale float32)
- func SetScrollbarSize(size int)
- func TextExtents(text string) (int, int, int, int)
- func Unlock()
- func Version() string
- func Wait(duration ...float64)
- 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) Draw(x, y, w, h int)
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Box) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Box) SetSelectionColor(color Color)
- func (w *Box) SetTooltip(text string)
- func (w *Box) SetType(widgetType uint8)
- func (w *Box) Show()
- func (w *Box) TakeFocus() int
- func (w *Box) Type() uint8
- func (w *Box) W() int
- func (w *Box) X() int
- func (w *Box) Y() int
- type BoxType
- type Browser
- func (w *Browser) Activate()
- func (b *Browser) Add(str string)
- func (b *Browser) AddWithData(str string, data interface{})
- func (w *Browser) Align() Align
- func (w *Browser) Box() BoxType
- func (w *Browser) Changed() uint
- func (b *Browser) Clear()
- func (w *Browser) ClearVisibleFocus()
- func (w *Browser) Color() Color
- func (b *Browser) ColumnChar() rune
- func (b *Browser) ColumnWidths() []int
- func (b *Browser) Data(line int) interface{}
- func (w *Browser) Deactivate()
- func (w *Browser) Destroy()
- func (b *Browser) Displayed(line int) bool
- func (b *Browser) FormatChar() rune
- func (w *Browser) H() int
- func (w *Browser) Hide()
- func (b *Browser) HideLine(line int) error
- func (b *Browser) Icon(line int) Image
- func (w *Browser) Label() string
- func (w *Browser) LabelColor() Color
- func (w *Browser) LabelFont() Font
- func (w *Browser) LabelSize() int
- func (w *Browser) LabelType() LabelType
- func (w *Browser) MeasureLabel() (int, int)
- func (w *Browser) Parent() *Group
- func (w *Browser) Redraw()
- func (b *Browser) Remove(line int) error
- func (w *Browser) Resize(x, y, width, height int)
- func (w *Browser) SelectionColor() Color
- func (w *Browser) SetAlign(align Align)
- func (b *Browser) SetBottomLine(line int) error
- func (w *Browser) SetBox(box BoxType)
- func (w *Browser) SetCallback(f func())
- func (w *Browser) SetCallbackCondition(when CallbackCondition)
- func (w *Browser) SetColor(color Color)
- func (b *Browser) SetColumnChar(r rune)
- func (b *Browser) SetColumnWidths(widths ...int)
- func (w *Browser) SetDeimage(i Image)
- func (w *Browser) SetDrawHandler(handler func())
- func (w *Browser) SetEventHandler(handler func(Event) bool)
- func (b *Browser) SetFormatChar(r rune)
- func (b *Browser) SetIcon(line int, i Image)
- func (w *Browser) SetImage(i Image)
- func (w *Browser) SetLabel(label string)
- func (w *Browser) SetLabelColor(col Color)
- func (w *Browser) SetLabelFont(font Font)
- func (w *Browser) SetLabelSize(size int)
- func (w *Browser) SetLabelType(ltype LabelType)
- func (b *Browser) SetMiddleLine(line int) error
- func (w *Browser) SetPosition(x, y int)
- func (w *Browser) SetResizeHandler(handler func())
- func (w *Browser) SetSelectionColor(color Color)
- func (w *Browser) SetTooltip(text string)
- func (b *Browser) SetTopLine(line int) error
- func (w *Browser) SetType(widgetType uint8)
- func (b *Browser) SetValue(line int)
- func (w *Browser) Show()
- func (b *Browser) Size() int
- func (w *Browser) TakeFocus() int
- func (b *Browser) Text(line int) string
- func (b *Browser) TopLine() int
- func (w *Browser) Type() uint8
- func (b *Browser) Value() int
- func (w *Browser) W() int
- func (w *Browser) X() int
- func (w *Browser) Y() int
- type Button
- func (w *Button) Activate()
- func (w *Button) Align() Align
- func (w *Button) Box() BoxType
- func (w *Button) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Button) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Button) SetSelectionColor(color Color)
- func (w *Button) SetTooltip(text string)
- func (w *Button) SetType(widgetType uint8)
- func (b *Button) SetValue(val bool)
- func (w *Button) Show()
- func (w *Button) TakeFocus() int
- 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 Chart
- func (w *Chart) Activate()
- func (c *Chart) Add(val float64, col Color, text ...string)
- func (w *Chart) Align() Align
- func (c *Chart) Autosize() bool
- func (c *Chart) Bounds() (float64, float64)
- func (w *Chart) Box() BoxType
- func (w *Chart) Changed() uint
- func (c *Chart) Clear()
- func (w *Chart) ClearVisibleFocus()
- func (w *Chart) Color() Color
- func (w *Chart) Deactivate()
- func (w *Chart) Destroy()
- func (w *Chart) H() int
- func (w *Chart) Hide()
- func (c *Chart) Insert(index int, val float64, col Color, text ...string)
- func (w *Chart) Label() string
- func (w *Chart) LabelColor() Color
- func (w *Chart) LabelFont() Font
- func (w *Chart) LabelSize() int
- func (w *Chart) LabelType() LabelType
- func (c *Chart) MaxSize() int
- func (w *Chart) MeasureLabel() (int, int)
- func (w *Chart) Parent() *Group
- func (w *Chart) Redraw()
- func (c *Chart) Replace(index int, val float64, col Color, text ...string)
- func (w *Chart) Resize(x, y, width, height int)
- func (w *Chart) SelectionColor() Color
- func (w *Chart) SetAlign(align Align)
- func (c *Chart) SetAutosize(flag bool)
- func (c *Chart) SetBounds(a, b float64)
- func (w *Chart) SetBox(box BoxType)
- func (w *Chart) SetCallback(f func())
- func (w *Chart) SetCallbackCondition(when CallbackCondition)
- func (w *Chart) SetColor(color Color)
- func (w *Chart) SetDeimage(i Image)
- func (w *Chart) SetDrawHandler(handler func())
- func (w *Chart) SetEventHandler(handler func(Event) bool)
- func (w *Chart) SetImage(i Image)
- func (w *Chart) SetLabel(label string)
- func (w *Chart) SetLabelColor(col Color)
- func (w *Chart) SetLabelFont(font Font)
- func (w *Chart) SetLabelSize(size int)
- func (w *Chart) SetLabelType(ltype LabelType)
- func (c *Chart) SetMaxSize(m int)
- func (w *Chart) SetPosition(x, y int)
- func (w *Chart) SetResizeHandler(handler func())
- func (w *Chart) SetSelectionColor(color Color)
- func (c *Chart) SetSize(W, H int)
- func (c *Chart) SetTextColor(color Color)
- func (c *Chart) SetTextFont(font Font)
- func (c *Chart) SetTextSize(size int)
- func (w *Chart) SetTooltip(text string)
- func (w *Chart) SetType(widgetType uint8)
- func (w *Chart) Show()
- func (c *Chart) Size() int
- func (w *Chart) TakeFocus() int
- func (c *Chart) TextColor() Color
- func (c *Chart) TextFont() Font
- func (c *Chart) TextSize() int
- func (w *Chart) Type() uint8
- func (w *Chart) W() int
- func (w *Chart) X() int
- func (w *Chart) Y() int
- type CheckButton
- func (w *CheckButton) Activate()
- func (w *CheckButton) Align() Align
- func (w *CheckButton) Box() BoxType
- func (w *CheckButton) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *CheckButton) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *CheckButton) SetSelectionColor(color Color)
- func (w *CheckButton) SetTooltip(text string)
- func (w *CheckButton) SetType(widgetType uint8)
- func (w *CheckButton) Show()
- func (w *CheckButton) TakeFocus() int
- func (w *CheckButton) Type() uint8
- func (w *CheckButton) W() int
- func (w *CheckButton) X() int
- func (w *CheckButton) Y() int
- type Choice
- func (m *Choice) Add(label string, callback func()) int
- func (m *Choice) AddEx(label string, shortcut int, callback func(), flags int) int
- func (m *Choice) Destroy()
- func (m *Choice) FindIndex(label string) int
- func (m *Choice) Insert(index int, label string, callback func()) int
- func (m *Choice) InsertEx(index int, label string, shortcut int, callback func(), flags int) int
- func (m *Choice) Remove(index int)
- func (m *Choice) Replace(index int, label string)
- func (m *Choice) SelectedText() string
- func (m *Choice) SetValue(value int)
- func (m *Choice) Size() int
- func (m *Choice) Text(index int) string
- func (m *Choice) Value() int
- type Color
- type Cursor
- type Event
- type FileChooser
- type FileChooserType
- type Flex
- func (w *Flex) Activate()
- func (w *Flex) Align() Align
- func (w *Flex) Box() BoxType
- func (w *Flex) Changed() uint
- func (w *Flex) ClearVisibleFocus()
- func (w *Flex) Color() Color
- func (w *Flex) Deactivate()
- func (w *Flex) Destroy()
- func (f *Flex) End()
- func (f *Flex) Fixed(w Widget, size int)
- func (w *Flex) H() int
- func (w *Flex) Hide()
- func (w *Flex) Label() string
- func (w *Flex) LabelColor() Color
- func (w *Flex) LabelFont() Font
- func (w *Flex) LabelSize() int
- func (w *Flex) LabelType() LabelType
- func (w *Flex) MeasureLabel() (int, int)
- func (w *Flex) Parent() *Group
- func (w *Flex) Redraw()
- func (w *Flex) Resize(x, y, width, height int)
- func (w *Flex) SelectionColor() Color
- func (w *Flex) SetAlign(align Align)
- func (w *Flex) SetBox(box BoxType)
- func (w *Flex) SetCallback(f func())
- func (w *Flex) SetCallbackCondition(when CallbackCondition)
- func (w *Flex) SetColor(color Color)
- func (w *Flex) SetDeimage(i Image)
- func (w *Flex) SetDrawHandler(handler func())
- func (w *Flex) SetEventHandler(handler func(Event) bool)
- func (f *Flex) SetGap(spacing int)
- func (w *Flex) SetImage(i Image)
- func (w *Flex) SetLabel(label string)
- func (w *Flex) SetLabelColor(col Color)
- func (w *Flex) SetLabelFont(font Font)
- func (w *Flex) SetLabelSize(size int)
- func (w *Flex) SetLabelType(ltype LabelType)
- func (w *Flex) SetPosition(x, y int)
- func (w *Flex) SetResizeHandler(handler func())
- func (w *Flex) SetSelectionColor(color Color)
- func (f *Flex) SetSpacing(spacing int)
- func (w *Flex) SetTooltip(text string)
- func (f *Flex) SetType(flexType FlexType)
- func (w *Flex) Show()
- func (f *Flex) Spacing() int
- func (w *Flex) TakeFocus() int
- func (w *Flex) Type() uint8
- func (w *Flex) W() int
- func (w *Flex) X() int
- func (w *Flex) Y() int
- type FlexType
- type FloatInput
- func (w *FloatInput) Activate()
- func (w *FloatInput) Align() Align
- func (w *FloatInput) Box() BoxType
- func (w *FloatInput) Changed() uint
- func (w *FloatInput) ClearVisibleFocus()
- func (w *FloatInput) Color() Color
- func (w *FloatInput) Deactivate()
- func (w *FloatInput) Destroy()
- func (w *FloatInput) H() int
- func (w *FloatInput) Hide()
- func (w *FloatInput) Label() string
- func (w *FloatInput) LabelColor() Color
- func (w *FloatInput) LabelFont() Font
- func (w *FloatInput) LabelSize() int
- func (w *FloatInput) LabelType() LabelType
- func (w *FloatInput) MeasureLabel() (int, int)
- func (w *FloatInput) Parent() *Group
- func (w *FloatInput) Redraw()
- func (w *FloatInput) SelectionColor() Color
- func (w *FloatInput) SetAlign(align Align)
- func (w *FloatInput) SetBox(box BoxType)
- func (w *FloatInput) SetCallback(f func())
- func (w *FloatInput) SetCallbackCondition(when CallbackCondition)
- func (w *FloatInput) SetColor(color Color)
- func (w *FloatInput) SetDeimage(i Image)
- func (w *FloatInput) SetDrawHandler(handler func())
- func (w *FloatInput) SetEventHandler(handler func(Event) bool)
- func (w *FloatInput) SetImage(i Image)
- func (w *FloatInput) SetLabel(label string)
- func (w *FloatInput) SetLabelColor(col Color)
- func (w *FloatInput) SetLabelFont(font Font)
- func (w *FloatInput) SetLabelSize(size int)
- func (w *FloatInput) SetLabelType(ltype LabelType)
- func (w *FloatInput) SetPosition(x, y int)
- func (w *FloatInput) SetResizeHandler(handler func())
- func (w *FloatInput) SetSelectionColor(color Color)
- func (w *FloatInput) SetTooltip(text string)
- func (w *FloatInput) SetType(widgetType uint8)
- func (w *FloatInput) Show()
- func (w *FloatInput) TakeFocus() int
- func (w *FloatInput) Type() uint8
- func (w *FloatInput) W() int
- func (w *FloatInput) X() int
- func (w *FloatInput) Y() int
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- 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) SetTooltip(text string)
- func (w *GlWindow) SetType(widgetType uint8)
- func (w *GlWindow) TakeFocus() int
- 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) Changed() uint
- func (g *Group) Child(index int) *widget
- func (w *Group) ClearVisibleFocus()
- func (w *Group) Color() Color
- func (w *Group) Deactivate()
- func (w *Group) Destroy()
- func (g *Group) DrawChildren()
- 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) Remove(w Widget)
- 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) SetDrawHandler(handler func())
- func (w *Group) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Group) SetSelectionColor(color Color)
- func (w *Group) SetTooltip(text string)
- func (w *Group) SetType(widgetType uint8)
- func (w *Group) Show()
- func (w *Group) TakeFocus() int
- func (w *Group) Type() uint8
- func (w *Group) W() int
- func (w *Group) X() int
- func (w *Group) Y() int
- type HelpView
- func (w *HelpView) Activate()
- func (w *HelpView) Align() Align
- func (w *HelpView) Box() BoxType
- func (w *HelpView) Changed() uint
- func (w *HelpView) ClearVisibleFocus()
- func (w *HelpView) Color() Color
- func (w *HelpView) Deactivate()
- func (w *HelpView) Destroy()
- func (h *HelpView) Directory() string
- func (h *HelpView) Filename() string
- func (h *HelpView) Find(str string, i ...int) int
- func (w *HelpView) H() int
- func (w *HelpView) Hide()
- func (w *HelpView) Label() string
- func (w *HelpView) LabelColor() Color
- func (w *HelpView) LabelFont() Font
- func (w *HelpView) LabelSize() int
- func (w *HelpView) LabelType() LabelType
- func (h *HelpView) LeftLine() int
- func (h *HelpView) Load(f string)
- func (w *HelpView) MeasureLabel() (int, int)
- func (w *HelpView) Parent() *Group
- func (w *HelpView) Redraw()
- func (w *HelpView) Resize(x, y, width, height int)
- func (w *HelpView) SelectionColor() Color
- func (w *HelpView) SetAlign(align Align)
- func (w *HelpView) SetBox(box BoxType)
- func (w *HelpView) SetCallback(f func())
- func (w *HelpView) SetCallbackCondition(when CallbackCondition)
- func (w *HelpView) SetColor(color Color)
- func (w *HelpView) SetDeimage(i Image)
- func (w *HelpView) SetDrawHandler(handler func())
- func (w *HelpView) SetEventHandler(handler func(Event) bool)
- func (w *HelpView) SetImage(i Image)
- func (w *HelpView) SetLabel(label string)
- func (w *HelpView) SetLabelColor(col Color)
- func (w *HelpView) SetLabelFont(font Font)
- func (w *HelpView) SetLabelSize(size int)
- func (w *HelpView) SetLabelType(ltype LabelType)
- func (h *HelpView) SetLeftLine(i int)
- func (w *HelpView) SetPosition(x, y int)
- func (w *HelpView) SetResizeHandler(handler func())
- func (w *HelpView) SetSelectionColor(color Color)
- func (w *HelpView) SetTooltip(text string)
- func (h *HelpView) SetTopLine(i int)
- func (h *HelpView) SetTopLineString(str string)
- func (w *HelpView) SetType(widgetType uint8)
- func (h *HelpView) SetValue(str string)
- func (w *HelpView) Show()
- func (w *HelpView) TakeFocus() int
- func (h *HelpView) TextColor(col Color)
- func (h *HelpView) TextFont(font Font)
- func (h *HelpView) TextSize(size int)
- func (h *HelpView) TopLine() int
- func (w *HelpView) Type() uint8
- func (h *HelpView) Value() string
- func (w *HelpView) W() int
- func (w *HelpView) X() int
- func (w *HelpView) Y() int
- type HoldBrowser
- func (w *HoldBrowser) Activate()
- func (w *HoldBrowser) Align() Align
- func (w *HoldBrowser) Box() BoxType
- func (w *HoldBrowser) Changed() uint
- func (w *HoldBrowser) ClearVisibleFocus()
- func (w *HoldBrowser) Color() Color
- func (w *HoldBrowser) Deactivate()
- func (w *HoldBrowser) Destroy()
- func (w *HoldBrowser) H() int
- func (w *HoldBrowser) Hide()
- func (w *HoldBrowser) Label() string
- func (w *HoldBrowser) LabelColor() Color
- func (w *HoldBrowser) LabelFont() Font
- func (w *HoldBrowser) LabelSize() int
- func (w *HoldBrowser) LabelType() LabelType
- func (w *HoldBrowser) MeasureLabel() (int, int)
- func (w *HoldBrowser) Parent() *Group
- func (w *HoldBrowser) Redraw()
- func (w *HoldBrowser) Resize(x, y, width, height int)
- func (w *HoldBrowser) SelectionColor() Color
- func (w *HoldBrowser) SetAlign(align Align)
- func (w *HoldBrowser) SetBox(box BoxType)
- func (w *HoldBrowser) SetCallback(f func())
- func (w *HoldBrowser) SetCallbackCondition(when CallbackCondition)
- func (w *HoldBrowser) SetColor(color Color)
- func (w *HoldBrowser) SetDeimage(i Image)
- func (w *HoldBrowser) SetDrawHandler(handler func())
- func (w *HoldBrowser) SetEventHandler(handler func(Event) bool)
- func (w *HoldBrowser) SetImage(i Image)
- func (w *HoldBrowser) SetLabel(label string)
- func (w *HoldBrowser) SetLabelColor(col Color)
- func (w *HoldBrowser) SetLabelFont(font Font)
- func (w *HoldBrowser) SetLabelSize(size int)
- func (w *HoldBrowser) SetLabelType(ltype LabelType)
- func (w *HoldBrowser) SetPosition(x, y int)
- func (w *HoldBrowser) SetResizeHandler(handler func())
- func (w *HoldBrowser) SetSelectionColor(color Color)
- func (w *HoldBrowser) SetTooltip(text string)
- func (w *HoldBrowser) SetType(widgetType uint8)
- func (w *HoldBrowser) Show()
- func (w *HoldBrowser) TakeFocus() int
- func (w *HoldBrowser) Type() uint8
- func (w *HoldBrowser) W() int
- func (w *HoldBrowser) X() int
- func (w *HoldBrowser) Y() int
- type Image
- type Input
- func (w *Input) Activate()
- func (w *Input) Align() Align
- func (w *Input) Box() BoxType
- func (w *Input) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Input) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Input) SetSelectionColor(color Color)
- func (w *Input) SetTooltip(text string)
- func (w *Input) SetType(widgetType uint8)
- func (i *Input) SetValue(value string) bool
- func (w *Input) Show()
- func (w *Input) TakeFocus() int
- 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 InputChoice
- func (w *InputChoice) Activate()
- func (w *InputChoice) Align() Align
- func (w *InputChoice) Box() BoxType
- func (w *InputChoice) Changed() uint
- func (c *InputChoice) Clear()
- func (w *InputChoice) ClearVisibleFocus()
- func (w *InputChoice) Color() Color
- func (w *InputChoice) Deactivate()
- func (w *InputChoice) Destroy()
- func (w *InputChoice) H() int
- func (w *InputChoice) Hide()
- func (c *InputChoice) Input() *Input
- func (w *InputChoice) Label() string
- func (w *InputChoice) LabelColor() Color
- func (w *InputChoice) LabelFont() Font
- func (w *InputChoice) LabelSize() int
- func (w *InputChoice) LabelType() LabelType
- func (w *InputChoice) MeasureLabel() (int, int)
- func (c *InputChoice) MenuButton() *MenuButton
- func (w *InputChoice) Parent() *Group
- func (w *InputChoice) Redraw()
- func (w *InputChoice) Resize(x, y, width, height int)
- func (w *InputChoice) SelectionColor() Color
- func (w *InputChoice) SetAlign(align Align)
- func (w *InputChoice) SetBox(box BoxType)
- func (w *InputChoice) SetCallback(f func())
- func (w *InputChoice) SetCallbackCondition(when CallbackCondition)
- func (w *InputChoice) SetColor(color Color)
- func (w *InputChoice) SetDeimage(i Image)
- func (w *InputChoice) SetDrawHandler(handler func())
- func (w *InputChoice) SetEventHandler(handler func(Event) bool)
- func (w *InputChoice) SetImage(i Image)
- func (w *InputChoice) SetLabel(label string)
- func (w *InputChoice) SetLabelColor(col Color)
- func (w *InputChoice) SetLabelFont(font Font)
- func (w *InputChoice) SetLabelSize(size int)
- func (w *InputChoice) SetLabelType(ltype LabelType)
- func (w *InputChoice) SetPosition(x, y int)
- func (w *InputChoice) SetResizeHandler(handler func())
- func (w *InputChoice) SetSelectionColor(color Color)
- func (w *InputChoice) SetTooltip(text string)
- func (w *InputChoice) SetType(widgetType uint8)
- func (c *InputChoice) SetValue(label string)
- func (c *InputChoice) SetValueIndex(index int)
- func (w *InputChoice) Show()
- func (w *InputChoice) TakeFocus() int
- func (w *InputChoice) Type() uint8
- func (c *InputChoice) UpdateMenuButton() bool
- func (c *InputChoice) Value() string
- func (w *InputChoice) W() int
- func (w *InputChoice) X() int
- func (w *InputChoice) 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) Draw(x, y, w, h int)
- 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 LineStyle
- type MenuBar
- func (m *MenuBar) Add(label string, callback func()) int
- func (m *MenuBar) AddEx(label string, shortcut int, callback func(), flags int) int
- func (m *MenuBar) Destroy()
- func (m *MenuBar) FindIndex(label string) int
- func (m *MenuBar) Insert(index int, label string, callback func()) int
- func (m *MenuBar) InsertEx(index int, label string, shortcut int, callback func(), flags int) int
- func (m *MenuBar) Remove(index int)
- func (m *MenuBar) Replace(index int, label string)
- func (m *MenuBar) SelectedText() string
- func (m *MenuBar) SetValue(value int)
- func (m *MenuBar) Size() int
- func (m *MenuBar) Text(index int) string
- func (m *MenuBar) Value() int
- 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) FindIndex(label string) int
- func (m *MenuButton) Insert(index int, label string, callback func()) int
- func (m *MenuButton) InsertEx(index int, label string, shortcut int, callback func(), flags int) int
- func (m *MenuButton) Popup()
- func (m *MenuButton) Remove(index int)
- func (m *MenuButton) Replace(index int, label string)
- func (m *MenuButton) SelectedText() string
- func (m *MenuButton) SetType(menuType MenuType)
- func (m *MenuButton) SetValue(value int)
- func (m *MenuButton) Size() int
- func (m *MenuButton) Text(index int) string
- func (m *MenuButton) Value() int
- type MenuType
- type MouseButton
- type MultiBrowser
- func (w *MultiBrowser) Activate()
- func (w *MultiBrowser) Align() Align
- func (w *MultiBrowser) Box() BoxType
- func (w *MultiBrowser) Changed() uint
- func (w *MultiBrowser) ClearVisibleFocus()
- func (w *MultiBrowser) Color() Color
- func (w *MultiBrowser) Deactivate()
- func (w *MultiBrowser) Destroy()
- func (w *MultiBrowser) H() int
- func (w *MultiBrowser) Hide()
- func (w *MultiBrowser) Label() string
- func (w *MultiBrowser) LabelColor() Color
- func (w *MultiBrowser) LabelFont() Font
- func (w *MultiBrowser) LabelSize() int
- func (w *MultiBrowser) LabelType() LabelType
- func (w *MultiBrowser) MeasureLabel() (int, int)
- func (w *MultiBrowser) Parent() *Group
- func (w *MultiBrowser) Redraw()
- func (w *MultiBrowser) Resize(x, y, width, height int)
- func (w *MultiBrowser) SelectionColor() Color
- func (w *MultiBrowser) SetAlign(align Align)
- func (w *MultiBrowser) SetBox(box BoxType)
- func (w *MultiBrowser) SetCallback(f func())
- func (w *MultiBrowser) SetCallbackCondition(when CallbackCondition)
- func (w *MultiBrowser) SetColor(color Color)
- func (w *MultiBrowser) SetDeimage(i Image)
- func (w *MultiBrowser) SetDrawHandler(handler func())
- func (w *MultiBrowser) SetEventHandler(handler func(Event) bool)
- func (w *MultiBrowser) SetImage(i Image)
- func (w *MultiBrowser) SetLabel(label string)
- func (w *MultiBrowser) SetLabelColor(col Color)
- func (w *MultiBrowser) SetLabelFont(font Font)
- func (w *MultiBrowser) SetLabelSize(size int)
- func (w *MultiBrowser) SetLabelType(ltype LabelType)
- func (w *MultiBrowser) SetPosition(x, y int)
- func (w *MultiBrowser) SetResizeHandler(handler func())
- func (w *MultiBrowser) SetSelectionColor(color Color)
- func (w *MultiBrowser) SetTooltip(text string)
- func (w *MultiBrowser) SetType(widgetType uint8)
- func (w *MultiBrowser) Show()
- func (w *MultiBrowser) TakeFocus() int
- func (w *MultiBrowser) Type() uint8
- func (w *MultiBrowser) W() int
- func (w *MultiBrowser) X() int
- func (w *MultiBrowser) Y() int
- type Offscreen
- type Output
- func (w *Output) Activate()
- func (w *Output) Align() Align
- func (w *Output) Box() BoxType
- func (w *Output) Changed() uint
- func (w *Output) ClearVisibleFocus()
- func (w *Output) Color() Color
- func (w *Output) Deactivate()
- func (w *Output) Destroy()
- func (w *Output) H() int
- func (w *Output) Hide()
- func (w *Output) Label() string
- func (w *Output) LabelColor() Color
- func (w *Output) LabelFont() Font
- func (w *Output) LabelSize() int
- func (w *Output) LabelType() LabelType
- func (w *Output) MeasureLabel() (int, int)
- func (w *Output) Parent() *Group
- func (w *Output) Redraw()
- func (w *Output) SelectionColor() Color
- func (w *Output) SetAlign(align Align)
- func (w *Output) SetBox(box BoxType)
- func (w *Output) SetCallback(f func())
- func (w *Output) SetCallbackCondition(when CallbackCondition)
- func (w *Output) SetColor(color Color)
- func (w *Output) SetDeimage(i Image)
- func (w *Output) SetDrawHandler(handler func())
- func (w *Output) SetEventHandler(handler func(Event) bool)
- func (w *Output) SetImage(i Image)
- func (w *Output) SetLabel(label string)
- func (w *Output) SetLabelColor(col Color)
- func (w *Output) SetLabelFont(font Font)
- func (w *Output) SetLabelSize(size int)
- func (w *Output) SetLabelType(ltype LabelType)
- func (w *Output) SetPosition(x, y int)
- func (w *Output) SetResizeHandler(handler func())
- func (w *Output) SetSelectionColor(color Color)
- func (w *Output) SetTooltip(text string)
- func (w *Output) SetType(widgetType uint8)
- func (w *Output) Show()
- func (w *Output) TakeFocus() int
- func (w *Output) Type() uint8
- func (w *Output) W() int
- func (w *Output) X() int
- func (w *Output) Y() int
- type Overflow
- type Pack
- func (w *Pack) Activate()
- func (w *Pack) Align() Align
- func (w *Pack) Box() BoxType
- func (w *Pack) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Pack) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Pack) SetSelectionColor(color Color)
- func (p *Pack) SetSpacing(spacing int)
- func (w *Pack) SetTooltip(text string)
- func (p *Pack) SetType(packType PackType)
- func (w *Pack) Show()
- func (p *Pack) Spacing() int
- func (w *Pack) TakeFocus() int
- 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) Draw(x, y, w, h int)
- 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) Changed() uint
- 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 (p *Progress) Maximum() float64
- func (w *Progress) MeasureLabel() (int, int)
- func (p *Progress) Minimum() float64
- 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) SetDrawHandler(handler func())
- func (w *Progress) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Progress) SetSelectionColor(color Color)
- func (w *Progress) SetTooltip(text string)
- func (w *Progress) SetType(widgetType uint8)
- func (p *Progress) SetValue(value float64)
- func (w *Progress) Show()
- func (w *Progress) TakeFocus() int
- func (w *Progress) Type() uint8
- func (p *Progress) Value() float64
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *RadioButton) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *RadioButton) SetSelectionColor(color Color)
- func (w *RadioButton) SetTooltip(text string)
- func (w *RadioButton) SetType(widgetType uint8)
- func (w *RadioButton) Show()
- func (w *RadioButton) TakeFocus() int
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *RadioRoundButton) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *RadioRoundButton) SetSelectionColor(color Color)
- func (w *RadioRoundButton) SetTooltip(text string)
- func (w *RadioRoundButton) SetType(widgetType uint8)
- func (w *RadioRoundButton) Show()
- func (w *RadioRoundButton) TakeFocus() int
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *ReturnButton) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *ReturnButton) SetSelectionColor(color Color)
- func (w *ReturnButton) SetTooltip(text string)
- func (w *ReturnButton) SetType(widgetType uint8)
- func (w *ReturnButton) Show()
- func (w *ReturnButton) TakeFocus() int
- 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) Draw(x, y, w, h int)
- 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 Roller
- type RowSelectMode
- type Scroll
- func (w *Scroll) Activate()
- func (w *Scroll) Align() Align
- func (w *Scroll) Box() BoxType
- func (w *Scroll) Changed() uint
- func (w *Scroll) ClearVisibleFocus()
- func (w *Scroll) Color() Color
- func (w *Scroll) Deactivate()
- func (w *Scroll) Destroy()
- func (w *Scroll) H() int
- func (w *Scroll) Hide()
- func (w *Scroll) Label() string
- func (w *Scroll) LabelColor() Color
- func (w *Scroll) LabelFont() Font
- func (w *Scroll) LabelSize() int
- func (w *Scroll) LabelType() LabelType
- func (w *Scroll) MeasureLabel() (int, int)
- func (w *Scroll) Parent() *Group
- func (w *Scroll) Redraw()
- func (w *Scroll) Resize(x, y, width, height int)
- func (s *Scroll) ScrollTo(x, y int)
- func (w *Scroll) SelectionColor() Color
- func (w *Scroll) SetAlign(align Align)
- func (w *Scroll) SetBox(box BoxType)
- func (w *Scroll) SetCallback(f func())
- func (w *Scroll) SetCallbackCondition(when CallbackCondition)
- func (w *Scroll) SetColor(color Color)
- func (w *Scroll) SetDeimage(i Image)
- func (w *Scroll) SetDrawHandler(handler func())
- func (w *Scroll) SetEventHandler(handler func(Event) bool)
- func (w *Scroll) SetImage(i Image)
- func (w *Scroll) SetLabel(label string)
- func (w *Scroll) SetLabelColor(col Color)
- func (w *Scroll) SetLabelFont(font Font)
- func (w *Scroll) SetLabelSize(size int)
- func (w *Scroll) SetLabelType(ltype LabelType)
- func (w *Scroll) SetPosition(x, y int)
- func (w *Scroll) SetResizeHandler(handler func())
- func (w *Scroll) SetSelectionColor(color Color)
- func (w *Scroll) SetTooltip(text string)
- func (s *Scroll) SetType(scrollType ScrollType)
- func (w *Scroll) Show()
- func (w *Scroll) TakeFocus() int
- func (w *Scroll) Type() uint8
- func (w *Scroll) W() int
- func (w *Scroll) X() int
- func (s *Scroll) XPosition() int
- func (w *Scroll) Y() int
- func (s *Scroll) YPosition() int
- type ScrollType
- type SelectBrowser
- func (w *SelectBrowser) Activate()
- func (w *SelectBrowser) Align() Align
- func (w *SelectBrowser) Box() BoxType
- func (w *SelectBrowser) Changed() uint
- func (w *SelectBrowser) ClearVisibleFocus()
- func (w *SelectBrowser) Color() Color
- func (w *SelectBrowser) Deactivate()
- func (w *SelectBrowser) Destroy()
- func (w *SelectBrowser) H() int
- func (w *SelectBrowser) Hide()
- func (w *SelectBrowser) Label() string
- func (w *SelectBrowser) LabelColor() Color
- func (w *SelectBrowser) LabelFont() Font
- func (w *SelectBrowser) LabelSize() int
- func (w *SelectBrowser) LabelType() LabelType
- func (w *SelectBrowser) MeasureLabel() (int, int)
- func (w *SelectBrowser) Parent() *Group
- func (w *SelectBrowser) Redraw()
- func (w *SelectBrowser) Resize(x, y, width, height int)
- func (w *SelectBrowser) SelectionColor() Color
- func (w *SelectBrowser) SetAlign(align Align)
- func (w *SelectBrowser) SetBox(box BoxType)
- func (w *SelectBrowser) SetCallback(f func())
- func (w *SelectBrowser) SetCallbackCondition(when CallbackCondition)
- func (w *SelectBrowser) SetColor(color Color)
- func (w *SelectBrowser) SetDeimage(i Image)
- func (w *SelectBrowser) SetDrawHandler(handler func())
- func (w *SelectBrowser) SetEventHandler(handler func(Event) bool)
- func (w *SelectBrowser) SetImage(i Image)
- func (w *SelectBrowser) SetLabel(label string)
- func (w *SelectBrowser) SetLabelColor(col Color)
- func (w *SelectBrowser) SetLabelFont(font Font)
- func (w *SelectBrowser) SetLabelSize(size int)
- func (w *SelectBrowser) SetLabelType(ltype LabelType)
- func (w *SelectBrowser) SetPosition(x, y int)
- func (w *SelectBrowser) SetResizeHandler(handler func())
- func (w *SelectBrowser) SetSelectionColor(color Color)
- func (w *SelectBrowser) SetTooltip(text string)
- func (w *SelectBrowser) SetType(widgetType uint8)
- func (w *SelectBrowser) Show()
- func (w *SelectBrowser) TakeFocus() int
- func (w *SelectBrowser) Type() uint8
- func (w *SelectBrowser) W() int
- func (w *SelectBrowser) X() int
- func (w *SelectBrowser) Y() int
- 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) Draw(x, y, w, h int)
- 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 Slider
- type SliderType
- type Spinner
- func (w *Spinner) Activate()
- func (w *Spinner) Align() Align
- func (w *Spinner) Box() BoxType
- func (w *Spinner) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Spinner) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *Spinner) SetSelectionColor(color Color)
- func (s *Spinner) SetStep(step float64)
- func (w *Spinner) SetTooltip(text string)
- func (s *Spinner) SetType(inputType SpinnerInputType)
- func (s *Spinner) SetValue(val float64)
- func (w *Spinner) Show()
- func (w *Spinner) TakeFocus() int
- 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 StyleTableEntry
- 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) Draw(x, y, w, h int)
- 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) ScrollbarSize() int
- 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) SetRowCount(rowCount int)
- func (t *TableRow) SetRowHeight(row, height int)
- func (t *TableRow) SetRowHeightAll(height int)
- func (t *TableRow) SetScrollbarSize(size 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *Tabs) SetEventHandler(handler func(Event) bool)
- 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 (t *Tabs) SetOverflow(overflow Overflow)
- func (w *Tabs) SetPosition(x, y int)
- func (w *Tabs) SetResizeHandler(handler func())
- func (w *Tabs) SetSelectionColor(color Color)
- func (w *Tabs) SetTooltip(text string)
- func (w *Tabs) SetType(widgetType uint8)
- func (t *Tabs) SetValue(value int)
- func (w *Tabs) Show()
- func (w *Tabs) TakeFocus() int
- 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
- func (b *TextBuffer) Append(txt string)
- func (b *TextBuffer) Destroy()
- func (b *TextBuffer) GetSelectionPosition() (int, int)
- func (b *TextBuffer) GetSelectionText() string
- func (b *TextBuffer) GetTabWidth() int
- func (b *TextBuffer) GetTextRange(start, end int) string
- func (b *TextBuffer) Highlight(start, end int)
- func (b *TextBuffer) IsSelected(start, end int) bool
- func (b *TextBuffer) ReplaceRange(start, end int, txt string)
- func (b *TextBuffer) ReplaceSelection(txt string)
- func (b *TextBuffer) Search(start int, searchStr string, searchBackward, matchCase bool) (foundPos int)
- func (b *TextBuffer) SearchBackward(start int, searchStr string, matchCase bool) (foundPos int)
- func (b *TextBuffer) SearchForward(start int, searchStr string, matchCase bool) (foundPos int)
- func (b *TextBuffer) Select(start, end int)
- func (b *TextBuffer) SetTabWidth(tabWidth int)
- func (b *TextBuffer) SetText(txt string)
- func (b *TextBuffer) Text() string
- func (b *TextBuffer) UnHighlight()
- func (b *TextBuffer) UnSelect()
- type TextDisplay
- func (w *TextDisplay) Activate()
- func (w *TextDisplay) Align() Align
- func (w *TextDisplay) Box() BoxType
- func (t *TextDisplay) Buffer() *TextBuffer
- func (w *TextDisplay) Changed() uint
- func (w *TextDisplay) ClearVisibleFocus()
- func (w *TextDisplay) Color() Color
- func (w *TextDisplay) Deactivate()
- func (w *TextDisplay) Destroy()
- func (t *TextDisplay) GetInsertPosition() int
- func (w *TextDisplay) H() int
- func (w *TextDisplay) Hide()
- func (t *TextDisplay) InsertText(txt string)
- 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 (t *TextDisplay) MoveDown() bool
- func (t *TextDisplay) MoveLeft() bool
- func (t *TextDisplay) MoveRight() bool
- func (t *TextDisplay) MoveUp() bool
- func (t *TextDisplay) Overstrike(txt string)
- 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) SetDrawHandler(handler func())
- func (w *TextDisplay) SetEventHandler(handler func(Event) bool)
- func (t *TextDisplay) SetHighlightData(buf *TextBuffer, entries []StyleTableEntry)
- func (w *TextDisplay) SetImage(i Image)
- func (t *TextDisplay) SetInsertPosition(newPos int)
- 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) SetResizeHandler(handler func())
- func (w *TextDisplay) SetSelectionColor(color Color)
- func (t *TextDisplay) SetTextColor(color Color)
- func (t *TextDisplay) SetTextSize(size int)
- func (w *TextDisplay) SetTooltip(text string)
- func (w *TextDisplay) SetType(widgetType uint8)
- func (t *TextDisplay) SetWrapMode(wrap WrapMode, wrapMargin ...int)
- func (w *TextDisplay) Show()
- func (t *TextDisplay) ShowInsertPosition()
- func (w *TextDisplay) TakeFocus() int
- func (t *TextDisplay) TextColor() Color
- func (t *TextDisplay) TextSize() int
- 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) Changed() uint
- func (w *TextEditor) ClearVisibleFocus()
- func (w *TextEditor) Color() Color
- func (t *TextEditor) Copy()
- func (t *TextEditor) Cut()
- func (w *TextEditor) Deactivate()
- func (t *TextEditor) Delete()
- func (w *TextEditor) Destroy()
- func (w *TextEditor) H() int
- func (w *TextEditor) Hide()
- func (t *TextEditor) Insert()
- 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 (t *TextEditor) Paste()
- func (w *TextEditor) Redraw()
- func (w *TextEditor) Resize(x, y, width, height int)
- func (t *TextEditor) SelectAll()
- 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) SetDrawHandler(handler func())
- func (w *TextEditor) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *TextEditor) SetSelectionColor(color Color)
- func (w *TextEditor) SetTooltip(text string)
- func (w *TextEditor) SetType(widgetType uint8)
- func (w *TextEditor) Show()
- func (w *TextEditor) TakeFocus() int
- 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) Changed() uint
- 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) SetDrawHandler(handler func())
- func (w *ToggleButton) SetEventHandler(handler func(Event) bool)
- 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) SetResizeHandler(handler func())
- func (w *ToggleButton) SetSelectionColor(color Color)
- func (w *ToggleButton) SetTooltip(text string)
- func (w *ToggleButton) SetType(widgetType uint8)
- func (w *ToggleButton) Show()
- func (w *ToggleButton) TakeFocus() int
- func (w *ToggleButton) Type() uint8
- func (w *ToggleButton) W() int
- func (w *ToggleButton) X() int
- func (w *ToggleButton) Y() int
- type Tree
- func (w *Tree) Activate()
- func (t *Tree) Add(path string) TreeItem
- func (w *Tree) Align() Align
- func (w *Tree) Box() BoxType
- func (w *Tree) Changed() uint
- func (w *Tree) ClearVisibleFocus()
- func (w *Tree) Color() Color
- func (w *Tree) Deactivate()
- func (w *Tree) Destroy()
- func (w *Tree) H() int
- func (w *Tree) Hide()
- func (w *Tree) Label() string
- func (w *Tree) LabelColor() Color
- func (w *Tree) LabelFont() Font
- func (w *Tree) LabelSize() int
- func (w *Tree) LabelType() LabelType
- func (w *Tree) MeasureLabel() (int, int)
- func (w *Tree) Parent() *Group
- func (w *Tree) Redraw()
- func (w *Tree) Resize(x, y, width, height int)
- func (w *Tree) SelectionColor() Color
- func (w *Tree) SetAlign(align Align)
- func (w *Tree) SetBox(box BoxType)
- func (w *Tree) SetCallback(f func())
- func (w *Tree) SetCallbackCondition(when CallbackCondition)
- func (w *Tree) SetColor(color Color)
- func (t *Tree) SetConnectorStyle(style TreeConnector)
- func (w *Tree) SetDeimage(i Image)
- func (w *Tree) SetDrawHandler(handler func())
- func (w *Tree) SetEventHandler(handler func(Event) bool)
- func (w *Tree) SetImage(i Image)
- func (t *Tree) SetItemDrawMode(drawMode TreeItemDrawMode)
- func (w *Tree) SetLabel(label string)
- func (w *Tree) SetLabelColor(col Color)
- func (w *Tree) SetLabelFont(font Font)
- func (w *Tree) SetLabelSize(size int)
- func (w *Tree) SetLabelType(ltype LabelType)
- func (w *Tree) SetPosition(x, y int)
- func (w *Tree) SetResizeHandler(handler func())
- func (w *Tree) SetSelectionColor(color Color)
- func (t *Tree) SetShowRoot(show bool)
- func (w *Tree) SetTooltip(text string)
- func (w *Tree) SetType(widgetType uint8)
- func (w *Tree) Show()
- func (w *Tree) TakeFocus() int
- func (w *Tree) Type() uint8
- func (w *Tree) W() int
- func (w *Tree) X() int
- func (w *Tree) Y() int
- type TreeConnector
- type TreeItem
- type TreeItemDrawMode
- type ValueSlider
- func (v *ValueSlider) SetMaximum(value float64)
- func (v *ValueSlider) SetMinimum(value float64)
- func (v *ValueSlider) SetStep(value float64)
- func (s *ValueSlider) SetTextFont(font Font)
- func (s *ValueSlider) SetTextSize(size int)
- func (v *ValueSlider) SetValue(value float64)
- func (v *ValueSlider) Value() float64
- type Widget
- type Window
- func (w *Window) Activate()
- func (w *Window) Align() Align
- func (w *Window) Box() BoxType
- func (w *Window) Changed() uint
- func (w *Window) ClearVisibleFocus()
- func (w *Window) Color() Color
- func (w *Window) Deactivate()
- func (w *Window) Destroy()
- func (w *Window) FullscreenActive() bool
- 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) SetDrawHandler(handler func())
- func (w *Window) SetEventHandler(handler func(Event) bool)
- func (w *Window) SetFullscreen(flag bool)
- func (w *Window) SetIcons(icons []*RgbImage)
- 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) SetModal()
- func (w *Window) SetNonModal()
- func (w *Window) SetPosition(x, y int)
- func (w *Window) SetResizeHandler(handler func())
- func (w *Window) SetSelectionColor(color Color)
- func (w *Window) SetTooltip(text string)
- func (w *Window) SetType(widgetType uint8)
- func (w *Window) Show()
- func (w *Window) TakeFocus() int
- 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
- type WrapMode
Constants ¶
const ( BAR_CHART = iota /* Bar Chart variant */ HORBAR_CHART = iota /* Horizontal Bar Chart variant */ LINE_CHART = iota /* Line Chart variant */ FILLED_CHART = iota /* Fill Line Chart variant */ SPIKE_CHART = iota /* Spike Chart variant */ PIE_CHART = iota /* Pie Chart variant */ SPECIALPIE_CHART = iota /* Special Pie Chart variant */ )
const ( NO_BOX = BoxType(0) FLAT_BOX = BoxType(1) UP_BOX = BoxType(2) DOWN_BOX = BoxType(3) UP_FRAME = BoxType(4) DOWN_FRAME = BoxType(5) THIN_UP_BOX = BoxType(6) THIN_DOWN_BOX = BoxType(7) THIN_UP_FRAME = BoxType(8) THIN_DOWN_FRAME = BoxType(9) ENGRAVED_BOX = BoxType(10) EMBOSSED_BOX = BoxType(11) ENGRAVED_FRAME = BoxType(12) EMBOSSED_FRAME = BoxType(13) BORDER_BOX = BoxType(14) SHADOW_BOX = BoxType(15) BORDER_FRAME = BoxType(16) SHADOW_FRAME = BoxType(17) ROUNDED_BOX = BoxType(18) RSHADOW_BOX = BoxType(19) ROUNDED_FRAME = BoxType(20) RFLAT_BOX = BoxType(21) ROUND_UP_BOX = BoxType(22) ROUND_DOWN_BOX = BoxType(23) DIAMOND_UP_BOX = BoxType(24) DIAMOND_DOWN_BOX = BoxType(25) OVAL_BOX = BoxType(26) OSHADOW_BOX = BoxType(27) OVAL_FRAME = BoxType(28) OFLAT_BOX = BoxType(29) PLASTIC_UP_BOX = BoxType(30) PLASTIC_DOWN_BOX = BoxType(31) PLASTIC_UP_FRAME = BoxType(32) PLASTIC_DOWN_FRAME = BoxType(33) PLASTIC_THIN_UP_BOX = BoxType(34) PLASTIC_THIN_DOWN_BOX = BoxType(35) PLASTIC_ROUND_UP_BOX = BoxType(36) PLASTIC_ROUND_DOWN_BOX = BoxType(37) GTK_UP_BOX = BoxType(38) GTK_DOWN_BOX = BoxType(39) GTK_UP_FRAME = BoxType(40) GTK_DOWN_FRAME = BoxType(41) GTK_THIN_UP_BOX = BoxType(42) GTK_THIN_DOWN_BOX = BoxType(43) GTK_THIN_UP_FRAME = BoxType(44) GTK_THIN_DOWN_FRAME = BoxType(45) GTK_ROUND_UP_FRAME = BoxType(46) GTK_ROUND_DOWN_FRAME = BoxType(47) GLEAM_UP_BOX = BoxType(48) GLEAM_DOWN_BOX = BoxType(49) GLEAM_UP_FRAME = BoxType(50) GLEAM_DOWN_FRAME = BoxType(51) GLEAM_THIN_UP_BOX = BoxType(52) GLEAM_THIN_DOWN_BOX = BoxType(53) GLEAM_ROUND_UP_BOX = BoxType(54) GLEAM_ROUND_DOWN_BOX = BoxType(55) FREE_BOXTYPE = BoxType(56) )
const ( WRAP_NONE = WrapMode(0) WRAP_AT_COLUMN = WrapMode(1) WRAP_AT_PIXEL = WrapMode(2) WRAP_AT_BOUNDS = WrapMode(3) )
Variables ¶
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) )
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) )
var ( NORMAL_LABEL = LabelType(C.go_FL_NORMAL_LABEL) NO_LABEL = LabelType(C.go_FL_NO_LABEL) )
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) CLOSE = Event(C.go_FL_CLOSE) 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) )
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) )
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) )
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) )
var ( SOLID = LineStyle(0) DASH = LineStyle(1) Dot = LineStyle(2) DASH_DOT = LineStyle(3) DASH_DOT_DOT = LineStyle(4) CAP_FLAT = LineStyle(100) CAP_ROUND = LineStyle(200) CAP_SQUARE = LineStyle(300) JOIN_MITER = LineStyle(1000) JOIN_ROUND = LineStyle(2000) JOIN_BEVEL = LineStyle(3000) )
var ( ESCAPE = int(C.go_FL_ESCAPE) TAB = int(C.go_FL_TAB) ENTER_KEY = int(C.go_FL_ENTER_KEY) HOME = int(C.go_FL_HOME) LEFT = int(C.go_FL_LEFT) UP = int(C.go_FL_UP) RIGHT = int(C.go_FL_RIGHT) DOWN = int(C.go_FL_DOWN) PAGE_UP = int(C.go_FL_PAGE_UP) PAGE_DOWN = int(C.go_FL_PAGE_DOWN) END = int(C.go_FL_END) MENU = int(C.go_FL_MENU) HELP = int(C.go_FL_HELP) F1 = int(C.go_FL_F1) F2 = int(C.go_FL_F2) F3 = int(C.go_FL_F3) F4 = int(C.go_FL_F4) F5 = int(C.go_FL_F5) F6 = int(C.go_FL_F6) F7 = int(C.go_FL_F7) F8 = int(C.go_FL_F8) F9 = int(C.go_FL_F9) F10 = int(C.go_FL_F10) F11 = int(C.go_FL_F11) F12 = int(C.go_FL_F12) )
var ( LeftMouse = MouseButton(C.go_FL_LEFT_MOUSE) MiddleMouse = MouseButton(C.go_FL_MIDDLE_MOUSE) RightMouse = MouseButton(C.go_FL_RIGHT_MOUSE) )
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) )
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) )
var ( COLUMN = FlexType(C.go_FL_FLEX_COLUMN) ROW = FlexType(C.go_FL_FLEX_ROW) )
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) )
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) )
var ( VERTICAL = PackType(C.go_FL_PACK_VERTICAL) HORIZONTAL = PackType(C.go_FL_PACK_HORIZONTAL) )
var ( SCROLL_HORIZONTAL = ScrollType(C.go_FL_SCROLL_HORIZONTAL) SCROLL_VERTICAL = ScrollType(C.go_FL_SCROLL_VERTICAL) SCROLL_BOTH = ScrollType(C.go_FL_SCROLL_BOTH) SCROLL_HORIZONTAL_ALWAYS = ScrollType(C.go_FL_SCROLL_HORIZONTAL_ALWAYS) SCROLL_VERTICAL_ALWAYS = ScrollType(C.go_FL_SCROLL_VERTICAL_ALWAYS) SCROLL_BOTH_ALWAYS = ScrollType(C.go_FL_SCROLL_BOTH_ALWAYS) )
var ( VERT_SLIDER = SliderType(C.go_FL_VERT_SLIDER) HOR_SLIDER = SliderType(C.go_FL_HOR_SLIDER) VERT_FILL_SLIDER = SliderType(C.go_FL_VERT_FILL_SLIDER) HOR_FILL_SLIDER = SliderType(C.go_FL_HOR_FILL_SLIDER) VERT_NICE_SLIDER = SliderType(C.go_FL_VERT_NICE_SLIDER) HOR_NICE_SLIDER = SliderType(C.go_FL_HOR_NICE_SLIDER) )
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) )
var ( Deselect = SelectionFlag(C.go_FL_DESELECT) Select = SelectionFlag(C.go_FL_SELECT) ToggleSelection = SelectionFlag(C.go_FL_TOGGLE_SELECTION) )
var ( SelectNone = RowSelectMode(C.go_FL_SELECT_NONE) SelectSingle = RowSelectMode(C.go_FL_SELECT_SINGLE) SelectMulti = RowSelectMode(C.go_FL_SELECT_MULTI) )
var ( OverflowCompress = Overflow(C.go_FL_OVERFLOW_COMPRESS) OverflowClip = Overflow(C.go_FL_OVERFLOW_CLIP) OverflowPulldown = Overflow(C.go_FL_OVERFLOW_PULLDOWN) OverflowDrag = Overflow(C.go_FL_OVERFLOW_DRAG) )
var ( TreeItemDrawDefault = TreeItemDrawMode(C.go_FL_TREE_ITEM_DRAW_DEFAULT) TreeItemDrawLabelAndWidget = TreeItemDrawMode(C.go_FL_TREE_ITEM_DRAW_LABEL_AND_WIDGET) TreeItemHeightFromWidget = TreeItemDrawMode(C.go_FL_TREE_ITEM_HEIGHT_FROM_WIDGET) )
var ( TreeConnectorNone = TreeConnector(C.go_FL_TREE_CONNECTOR_NONE) TreeConnectorDotted = TreeConnector(C.go_FL_TREE_CONNECTOR_DOTTED) TreeConnectorSolid = TreeConnector(C.go_FL_TREE_CONNECTOR_SOLID) )
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) )
var ErrDestroyed = errors.New("widget is destroyed")
var ErrFileChooserDestroyed = errors.New("file chooser is destroyed")
var ErrImageDestroyed = errors.New("image is destroyed")
var ErrTextBufferDestroyed = errors.New("text buffer is destroyed")
var (
InvalidLine = errors.New("line doesn't exist")
)
var SPINNER_FLOAT_INPUT = SpinnerInputType(C.go_FL_FLOAT_INPUT)
var SPINNER_INT_INPUT = SpinnerInputType(C.go_FL_INT_INPUT)
Functions ¶
func AddTimeout ¶
func AddTimeout(t float64, fn func())
AddTimeout adds a one-shot timeout callback. The function will be called by
Fl::wait() at t seconds after this function is called. If you need more accurate, repeated timeouts, use RepeatTimeout() to reschedule the subsequent timeouts.
func AwakeNullMessage ¶
func AwakeNullMessage()
func ChoiceDialog ¶
func ChooseFile ¶
func CopyToClipboard ¶
func CopyToClipboard(text string)
func CopyToSelectionBuffer ¶
func CopyToSelectionBuffer(text string)
func DragAndDrop ¶
func DragAndDrop()
func DrawCirlce ¶
func DrawCirlce(x, y, r float64)
func DrawFocusRect ¶
func DrawFocusRect(x, y, w, h int)
func DrawPolygon ¶
func DrawPolygon(x, y, x1, y1, x2, y2 int)
func DrawPolygon2 ¶
func DrawPolygon2(x, y, x1, y1, x2, y2, x3, y3 int)
func DrawRectWithColor ¶
func DrawRectfWithColor ¶
func DrawTextAngled ¶
func DrawXyLine ¶
func DrawXyLine(x, y, x1 int)
func DrawXyLine2 ¶
func DrawXyLine2(x, y, x1, y2 int)
func DrawXyLine3 ¶
func DrawXyLine3(x, y, x1, y2, x3 int)
func DrawYxLine ¶
func DrawYxLine(x, y, y1 int)
func DrawYxLine2 ¶
func DrawYxLine2(x, y, y1, x2 int)
func DrawYxLine3 ¶
func DrawYxLine3(x, y, y1, x2, y3 int)
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 PushNoClip ¶
func PushNoClip()
func RepeatTimeout ¶
func RepeatTimeout(t float64, fn func())
RepeatTimeout repeats a timeout callback from the expiration of the
previous timeout, allowing for more accurate timing. You may only call this method inside a timeout callback of the same timer or at least a closely related timer, otherwise the timing accuracy can't be improved and the behavior is undefined.
func ScreenCount ¶
func ScreenCount() int
func ScreenScale ¶
func ScrollbarSize ¶
func ScrollbarSize() int
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 SetLineStyle ¶
func SetScreenScale ¶
func SetScrollbarSize ¶
func SetScrollbarSize(size int)
func TextExtents ¶
returns the dx, dy, w, h of the string
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) SetDrawHandler ¶
func (w *Box) SetDrawHandler(handler func())
func (*Box) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Box) SetResizeHandler(handler func())
func (*Box) SetSelectionColor ¶
func (w *Box) SetSelectionColor(color Color)
func (*Box) SetTooltip ¶
func (w *Box) SetTooltip(text string)
type Browser ¶
type Browser struct {
Group
// contains filtered or unexported fields
}
func NewBrowser ¶
func (*Browser) AddWithData ¶
func (*Browser) ClearVisibleFocus ¶
func (w *Browser) ClearVisibleFocus()
func (*Browser) ColumnChar ¶
func (*Browser) ColumnWidths ¶
Store column widths in Go instead of calling from C++ as it's complex and expensive to convert between them
func (*Browser) Deactivate ¶
func (w *Browser) Deactivate()
func (*Browser) FormatChar ¶
func (*Browser) LabelColor ¶
func (w *Browser) LabelColor() Color
func (*Browser) MeasureLabel ¶
func (*Browser) SelectionColor ¶
func (w *Browser) SelectionColor() Color
func (*Browser) SetBottomLine ¶
func (*Browser) SetCallback ¶
func (w *Browser) SetCallback(f func())
func (*Browser) SetCallbackCondition ¶
func (w *Browser) SetCallbackCondition(when CallbackCondition)
func (*Browser) SetColumnChar ¶
func (*Browser) SetColumnWidths ¶
func (*Browser) SetDeimage ¶
func (w *Browser) SetDeimage(i Image)
func (*Browser) SetDrawHandler ¶
func (w *Browser) SetDrawHandler(handler func())
func (*Browser) SetEventHandler ¶
func (*Browser) SetFormatChar ¶
func (*Browser) SetLabelColor ¶
func (w *Browser) SetLabelColor(col Color)
func (*Browser) SetLabelFont ¶
func (w *Browser) SetLabelFont(font Font)
func (*Browser) SetLabelSize ¶
func (w *Browser) SetLabelSize(size int)
func (*Browser) SetLabelType ¶
func (w *Browser) SetLabelType(ltype LabelType)
func (*Browser) SetMiddleLine ¶
func (*Browser) SetPosition ¶
func (w *Browser) SetPosition(x, y int)
func (*Browser) SetResizeHandler ¶
func (w *Browser) SetResizeHandler(handler func())
func (*Browser) SetSelectionColor ¶
func (w *Browser) SetSelectionColor(color Color)
func (*Browser) SetTooltip ¶
func (w *Browser) SetTooltip(text string)
func (*Browser) SetTopLine ¶
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) SetDrawHandler ¶
func (w *Button) SetDrawHandler(handler func())
func (*Button) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Button) SetResizeHandler(handler func())
func (*Button) SetSelectionColor ¶
func (w *Button) SetSelectionColor(color Color)
func (*Button) SetTooltip ¶
func (w *Button) SetTooltip(text string)
type CallbackCondition ¶
type CallbackCondition int
type Chart ¶
type Chart struct {
// contains filtered or unexported fields
}
func (*Chart) Add ¶
Add the data value val with optional label text and color col to the chart. When color not needed just pass zero
func (*Chart) Autosize ¶
Autosize gets whether the chart will automatically adjust the bounds of the chart.
func (*Chart) ClearVisibleFocus ¶
func (w *Chart) ClearVisibleFocus()
func (*Chart) Deactivate ¶
func (w *Chart) Deactivate()
func (*Chart) Insert ¶
Insert inserts a data value val at the given position ind.
Position 1 is the first data value.
func (*Chart) LabelColor ¶
func (w *Chart) LabelColor() Color
func (*Chart) MeasureLabel ¶
func (*Chart) Replace ¶
Replace replace a data value val at the given position index.
Position 1 is the first data value.
func (*Chart) SelectionColor ¶
func (w *Chart) SelectionColor() Color
func (*Chart) SetAutosize ¶
SetAutosize sets whether the chart will automatically adjust the bounds of the chart.
func (*Chart) SetCallback ¶
func (w *Chart) SetCallback(f func())
func (*Chart) SetCallbackCondition ¶
func (w *Chart) SetCallbackCondition(when CallbackCondition)
func (*Chart) SetDeimage ¶
func (w *Chart) SetDeimage(i Image)
func (*Chart) SetDrawHandler ¶
func (w *Chart) SetDrawHandler(handler func())
func (*Chart) SetEventHandler ¶
func (*Chart) SetLabelColor ¶
func (w *Chart) SetLabelColor(col Color)
func (*Chart) SetLabelFont ¶
func (w *Chart) SetLabelFont(font Font)
func (*Chart) SetLabelSize ¶
func (w *Chart) SetLabelSize(size int)
func (*Chart) SetLabelType ¶
func (w *Chart) SetLabelType(ltype LabelType)
func (*Chart) SetMaxSize ¶
SetMaxSize sets the maximum number of data values for a chart.
If you do not call this method then the chart will be allowed to grow to any size depending on available memory.
func (*Chart) SetPosition ¶
func (w *Chart) SetPosition(x, y int)
func (*Chart) SetResizeHandler ¶
func (w *Chart) SetResizeHandler(handler func())
func (*Chart) SetSelectionColor ¶
func (w *Chart) SetSelectionColor(color Color)
func (*Chart) SetTextColor ¶
SetTextColor sets the chart's text color to color
func (*Chart) SetTextFont ¶
SetTextFont sets the chart's text font to font.
func (*Chart) SetTextSize ¶
SetTextSize sets the chart's text font to size.
func (*Chart) SetTooltip ¶
func (w *Chart) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *CheckButton) SetDrawHandler(handler func())
func (*CheckButton) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *CheckButton) SetResizeHandler(handler func())
func (*CheckButton) SetSelectionColor ¶
func (w *CheckButton) SetSelectionColor(color Color)
func (*CheckButton) SetTooltip ¶
func (w *CheckButton) SetTooltip(text string)
type Choice ¶
type Choice struct {
// contains filtered or unexported fields
}
func (*Choice) SelectedText ¶
func (m *Choice) SelectedText() string
SelectedText returns the title of the last item chosen by the user.
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 Flex ¶
type Flex struct {
Group
}
func (*Flex) ClearVisibleFocus ¶
func (w *Flex) ClearVisibleFocus()
func (*Flex) Deactivate ¶
func (w *Flex) Deactivate()
func (*Flex) LabelColor ¶
func (w *Flex) LabelColor() Color
func (*Flex) MeasureLabel ¶
func (*Flex) SelectionColor ¶
func (w *Flex) SelectionColor() Color
func (*Flex) SetCallback ¶
func (w *Flex) SetCallback(f func())
func (*Flex) SetCallbackCondition ¶
func (w *Flex) SetCallbackCondition(when CallbackCondition)
func (*Flex) SetDeimage ¶
func (w *Flex) SetDeimage(i Image)
func (*Flex) SetDrawHandler ¶
func (w *Flex) SetDrawHandler(handler func())
func (*Flex) SetEventHandler ¶
func (*Flex) SetLabelColor ¶
func (w *Flex) SetLabelColor(col Color)
func (*Flex) SetLabelFont ¶
func (w *Flex) SetLabelFont(font Font)
func (*Flex) SetLabelSize ¶
func (w *Flex) SetLabelSize(size int)
func (*Flex) SetLabelType ¶
func (w *Flex) SetLabelType(ltype LabelType)
func (*Flex) SetPosition ¶
func (w *Flex) SetPosition(x, y int)
func (*Flex) SetResizeHandler ¶
func (w *Flex) SetResizeHandler(handler func())
func (*Flex) SetSelectionColor ¶
func (w *Flex) SetSelectionColor(color Color)
func (*Flex) SetSpacing ¶
func (*Flex) SetTooltip ¶
func (w *Flex) SetTooltip(text string)
type FloatInput ¶
type FloatInput struct {
Input
}
func NewFloatInput ¶
func NewFloatInput(x, y, w, h int, text ...string) *FloatInput
func (*FloatInput) ClearVisibleFocus ¶
func (w *FloatInput) ClearVisibleFocus()
func (*FloatInput) Deactivate ¶
func (w *FloatInput) Deactivate()
func (*FloatInput) LabelColor ¶
func (w *FloatInput) LabelColor() Color
func (*FloatInput) MeasureLabel ¶
func (*FloatInput) SelectionColor ¶
func (w *FloatInput) SelectionColor() Color
func (*FloatInput) SetCallback ¶
func (w *FloatInput) SetCallback(f func())
func (*FloatInput) SetCallbackCondition ¶
func (w *FloatInput) SetCallbackCondition(when CallbackCondition)
func (*FloatInput) SetDeimage ¶
func (w *FloatInput) SetDeimage(i Image)
func (*FloatInput) SetDrawHandler ¶
func (w *FloatInput) SetDrawHandler(handler func())
func (*FloatInput) SetEventHandler ¶
func (*FloatInput) SetLabelColor ¶
func (w *FloatInput) SetLabelColor(col Color)
func (*FloatInput) SetLabelFont ¶
func (w *FloatInput) SetLabelFont(font Font)
func (*FloatInput) SetLabelSize ¶
func (w *FloatInput) SetLabelSize(size int)
func (*FloatInput) SetLabelType ¶
func (w *FloatInput) SetLabelType(ltype LabelType)
func (*FloatInput) SetPosition ¶
func (w *FloatInput) SetPosition(x, y int)
func (*FloatInput) SetResizeHandler ¶
func (w *FloatInput) SetResizeHandler(handler func())
func (*FloatInput) SetSelectionColor ¶
func (w *FloatInput) SetSelectionColor(color Color)
func (*FloatInput) SetTooltip ¶
func (w *FloatInput) SetTooltip(text string)
type Font ¶
type Font int
func GetFontName ¶
GetFontName Returs human readable font name and a font attribute (BOLD, ITALIC or BOLD_ITALIC).
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) SetDrawHandler ¶
func (w *GlWindow) SetDrawHandler(handler func())
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)
func (*GlWindow) SetTooltip ¶
func (w *GlWindow) SetTooltip(text string)
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) DrawChildren ¶
func (g *Group) DrawChildren()
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) SetDrawHandler ¶
func (w *Group) SetDrawHandler(handler func())
func (*Group) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Group) SetResizeHandler(handler func())
func (*Group) SetSelectionColor ¶
func (w *Group) SetSelectionColor(color Color)
func (*Group) SetTooltip ¶
func (w *Group) SetTooltip(text string)
type HelpView ¶
type HelpView struct {
// contains filtered or unexported fields
}
func NewHelpView ¶
func (*HelpView) ClearVisibleFocus ¶
func (w *HelpView) ClearVisibleFocus()
func (*HelpView) Deactivate ¶
func (w *HelpView) Deactivate()
func (*HelpView) LabelColor ¶
func (w *HelpView) LabelColor() Color
func (*HelpView) MeasureLabel ¶
func (*HelpView) SelectionColor ¶
func (w *HelpView) SelectionColor() Color
func (*HelpView) SetCallback ¶
func (w *HelpView) SetCallback(f func())
func (*HelpView) SetCallbackCondition ¶
func (w *HelpView) SetCallbackCondition(when CallbackCondition)
func (*HelpView) SetDeimage ¶
func (w *HelpView) SetDeimage(i Image)
func (*HelpView) SetDrawHandler ¶
func (w *HelpView) SetDrawHandler(handler func())
func (*HelpView) SetEventHandler ¶
func (*HelpView) SetLabelColor ¶
func (w *HelpView) SetLabelColor(col Color)
func (*HelpView) SetLabelFont ¶
func (w *HelpView) SetLabelFont(font Font)
func (*HelpView) SetLabelSize ¶
func (w *HelpView) SetLabelSize(size int)
func (*HelpView) SetLabelType ¶
func (w *HelpView) SetLabelType(ltype LabelType)
func (*HelpView) SetLeftLine ¶
func (*HelpView) SetPosition ¶
func (w *HelpView) SetPosition(x, y int)
func (*HelpView) SetResizeHandler ¶
func (w *HelpView) SetResizeHandler(handler func())
func (*HelpView) SetSelectionColor ¶
func (w *HelpView) SetSelectionColor(color Color)
func (*HelpView) SetTooltip ¶
func (w *HelpView) SetTooltip(text string)
func (*HelpView) SetTopLine ¶
func (*HelpView) SetTopLineString ¶
type HoldBrowser ¶
type HoldBrowser struct {
Browser
}
func NewHoldBrowser ¶
func NewHoldBrowser(x, y, w, h int, text ...string) *HoldBrowser
func (*HoldBrowser) ClearVisibleFocus ¶
func (w *HoldBrowser) ClearVisibleFocus()
func (*HoldBrowser) Deactivate ¶
func (w *HoldBrowser) Deactivate()
func (*HoldBrowser) LabelColor ¶
func (w *HoldBrowser) LabelColor() Color
func (*HoldBrowser) MeasureLabel ¶
func (*HoldBrowser) SelectionColor ¶
func (w *HoldBrowser) SelectionColor() Color
func (*HoldBrowser) SetCallback ¶
func (w *HoldBrowser) SetCallback(f func())
func (*HoldBrowser) SetCallbackCondition ¶
func (w *HoldBrowser) SetCallbackCondition(when CallbackCondition)
func (*HoldBrowser) SetDeimage ¶
func (w *HoldBrowser) SetDeimage(i Image)
func (*HoldBrowser) SetDrawHandler ¶
func (w *HoldBrowser) SetDrawHandler(handler func())
func (*HoldBrowser) SetEventHandler ¶
func (*HoldBrowser) SetLabelColor ¶
func (w *HoldBrowser) SetLabelColor(col Color)
func (*HoldBrowser) SetLabelFont ¶
func (w *HoldBrowser) SetLabelFont(font Font)
func (*HoldBrowser) SetLabelSize ¶
func (w *HoldBrowser) SetLabelSize(size int)
func (*HoldBrowser) SetLabelType ¶
func (w *HoldBrowser) SetLabelType(ltype LabelType)
func (*HoldBrowser) SetPosition ¶
func (w *HoldBrowser) SetPosition(x, y int)
func (*HoldBrowser) SetResizeHandler ¶
func (w *HoldBrowser) SetResizeHandler(handler func())
func (*HoldBrowser) SetSelectionColor ¶
func (w *HoldBrowser) SetSelectionColor(color Color)
func (*HoldBrowser) SetTooltip ¶
func (w *HoldBrowser) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *Input) SetDrawHandler(handler func())
func (*Input) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Input) SetResizeHandler(handler func())
func (*Input) SetSelectionColor ¶
func (w *Input) SetSelectionColor(color Color)
func (*Input) SetTooltip ¶
func (w *Input) SetTooltip(text string)
type InputChoice ¶
type InputChoice struct {
Group
// contains filtered or unexported fields
}
func NewInputChoice ¶
func NewInputChoice(x, y, w, h int, text ...string) *InputChoice
func (*InputChoice) Clear ¶
func (c *InputChoice) Clear()
func (*InputChoice) ClearVisibleFocus ¶
func (w *InputChoice) ClearVisibleFocus()
func (*InputChoice) Deactivate ¶
func (w *InputChoice) Deactivate()
func (*InputChoice) Input ¶
func (c *InputChoice) Input() *Input
func (*InputChoice) LabelColor ¶
func (w *InputChoice) LabelColor() Color
func (*InputChoice) MeasureLabel ¶
func (*InputChoice) MenuButton ¶
func (c *InputChoice) MenuButton() *MenuButton
func (*InputChoice) SelectionColor ¶
func (w *InputChoice) SelectionColor() Color
func (*InputChoice) SetCallback ¶
func (w *InputChoice) SetCallback(f func())
func (*InputChoice) SetCallbackCondition ¶
func (w *InputChoice) SetCallbackCondition(when CallbackCondition)
func (*InputChoice) SetDeimage ¶
func (w *InputChoice) SetDeimage(i Image)
func (*InputChoice) SetDrawHandler ¶
func (w *InputChoice) SetDrawHandler(handler func())
func (*InputChoice) SetEventHandler ¶
func (*InputChoice) SetLabelColor ¶
func (w *InputChoice) SetLabelColor(col Color)
func (*InputChoice) SetLabelFont ¶
func (w *InputChoice) SetLabelFont(font Font)
func (*InputChoice) SetLabelSize ¶
func (w *InputChoice) SetLabelSize(size int)
func (*InputChoice) SetLabelType ¶
func (w *InputChoice) SetLabelType(ltype LabelType)
func (*InputChoice) SetPosition ¶
func (w *InputChoice) SetPosition(x, y int)
func (*InputChoice) SetResizeHandler ¶
func (w *InputChoice) SetResizeHandler(handler func())
func (*InputChoice) SetSelectionColor ¶
func (w *InputChoice) SetSelectionColor(color Color)
func (*InputChoice) SetTooltip ¶
func (w *InputChoice) SetTooltip(text string)
func (*InputChoice) SetValue ¶
func (c *InputChoice) SetValue(label string)
func (*InputChoice) SetValueIndex ¶
func (c *InputChoice) SetValueIndex(index int)
func (*InputChoice) UpdateMenuButton ¶
func (c *InputChoice) UpdateMenuButton() bool
func (*InputChoice) Value ¶
func (c *InputChoice) Value() string
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 ¶
func (*MenuBar) SelectedText ¶
func (m *MenuBar) SelectedText() string
SelectedText returns the title of the last item chosen by the user.
type MenuButton ¶
type MenuButton struct {
// contains filtered or unexported fields
}
func NewMenuButton ¶
func NewMenuButton(x, y, w, h int, text ...string) *MenuButton
func (*MenuButton) Destroy ¶
func (m *MenuButton) Destroy()
func (*MenuButton) Popup ¶
func (m *MenuButton) Popup()
func (*MenuButton) SelectedText ¶
func (m *MenuButton) SelectedText() string
SelectedText returns the title of the last item chosen by the user.
func (*MenuButton) SetType ¶
func (m *MenuButton) SetType(menuType MenuType)
type MultiBrowser ¶
type MultiBrowser struct {
Browser
}
func NewMultiBrowser ¶
func NewMultiBrowser(x, y, w, h int, text ...string) *MultiBrowser
func (*MultiBrowser) ClearVisibleFocus ¶
func (w *MultiBrowser) ClearVisibleFocus()
func (*MultiBrowser) Deactivate ¶
func (w *MultiBrowser) Deactivate()
func (*MultiBrowser) LabelColor ¶
func (w *MultiBrowser) LabelColor() Color
func (*MultiBrowser) MeasureLabel ¶
func (*MultiBrowser) SelectionColor ¶
func (w *MultiBrowser) SelectionColor() Color
func (*MultiBrowser) SetCallback ¶
func (w *MultiBrowser) SetCallback(f func())
func (*MultiBrowser) SetCallbackCondition ¶
func (w *MultiBrowser) SetCallbackCondition(when CallbackCondition)
func (*MultiBrowser) SetDeimage ¶
func (w *MultiBrowser) SetDeimage(i Image)
func (*MultiBrowser) SetDrawHandler ¶
func (w *MultiBrowser) SetDrawHandler(handler func())
func (*MultiBrowser) SetEventHandler ¶
func (*MultiBrowser) SetLabelColor ¶
func (w *MultiBrowser) SetLabelColor(col Color)
func (*MultiBrowser) SetLabelFont ¶
func (w *MultiBrowser) SetLabelFont(font Font)
func (*MultiBrowser) SetLabelSize ¶
func (w *MultiBrowser) SetLabelSize(size int)
func (*MultiBrowser) SetLabelType ¶
func (w *MultiBrowser) SetLabelType(ltype LabelType)
func (*MultiBrowser) SetPosition ¶
func (w *MultiBrowser) SetPosition(x, y int)
func (*MultiBrowser) SetResizeHandler ¶
func (w *MultiBrowser) SetResizeHandler(handler func())
func (*MultiBrowser) SetSelectionColor ¶
func (w *MultiBrowser) SetSelectionColor(color Color)
func (*MultiBrowser) SetTooltip ¶
func (w *MultiBrowser) SetTooltip(text string)
type Offscreen ¶
type Offscreen struct {
// contains filtered or unexported fields
}
func NewOffscreen ¶
type Output ¶
type Output struct {
Input
}
func (*Output) ClearVisibleFocus ¶
func (w *Output) ClearVisibleFocus()
func (*Output) Deactivate ¶
func (w *Output) Deactivate()
func (*Output) LabelColor ¶
func (w *Output) LabelColor() Color
func (*Output) MeasureLabel ¶
func (*Output) SelectionColor ¶
func (w *Output) SelectionColor() Color
func (*Output) SetCallback ¶
func (w *Output) SetCallback(f func())
func (*Output) SetCallbackCondition ¶
func (w *Output) SetCallbackCondition(when CallbackCondition)
func (*Output) SetDeimage ¶
func (w *Output) SetDeimage(i Image)
func (*Output) SetDrawHandler ¶
func (w *Output) SetDrawHandler(handler func())
func (*Output) SetEventHandler ¶
func (*Output) SetLabelColor ¶
func (w *Output) SetLabelColor(col Color)
func (*Output) SetLabelFont ¶
func (w *Output) SetLabelFont(font Font)
func (*Output) SetLabelSize ¶
func (w *Output) SetLabelSize(size int)
func (*Output) SetLabelType ¶
func (w *Output) SetLabelType(ltype LabelType)
func (*Output) SetPosition ¶
func (w *Output) SetPosition(x, y int)
func (*Output) SetResizeHandler ¶
func (w *Output) SetResizeHandler(handler func())
func (*Output) SetSelectionColor ¶
func (w *Output) SetSelectionColor(color Color)
func (*Output) SetTooltip ¶
func (w *Output) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *Pack) SetDrawHandler(handler func())
func (*Pack) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Pack) SetResizeHandler(handler func())
func (*Pack) SetSelectionColor ¶
func (w *Pack) SetSelectionColor(color Color)
func (*Pack) SetSpacing ¶
func (*Pack) SetTooltip ¶
func (w *Pack) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *Progress) SetDrawHandler(handler func())
func (*Progress) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Progress) SetResizeHandler(handler func())
func (*Progress) SetSelectionColor ¶
func (w *Progress) SetSelectionColor(color Color)
func (*Progress) SetTooltip ¶
func (w *Progress) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *RadioButton) SetDrawHandler(handler func())
func (*RadioButton) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *RadioButton) SetResizeHandler(handler func())
func (*RadioButton) SetSelectionColor ¶
func (w *RadioButton) SetSelectionColor(color Color)
func (*RadioButton) SetTooltip ¶
func (w *RadioButton) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *RadioRoundButton) SetDrawHandler(handler func())
func (*RadioRoundButton) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *RadioRoundButton) SetResizeHandler(handler func())
func (*RadioRoundButton) SetSelectionColor ¶
func (w *RadioRoundButton) SetSelectionColor(color Color)
func (*RadioRoundButton) SetTooltip ¶
func (w *RadioRoundButton) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *ReturnButton) SetDrawHandler(handler func())
func (*ReturnButton) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *ReturnButton) SetResizeHandler(handler func())
func (*ReturnButton) SetSelectionColor ¶
func (w *ReturnButton) SetSelectionColor(color Color)
func (*ReturnButton) SetTooltip ¶
func (w *ReturnButton) SetTooltip(text string)
type RgbImage ¶
type RgbImage struct {
// contains filtered or unexported fields
}
func NewRgbImageFromSvg ¶
type Roller ¶
type Roller struct {
// contains filtered or unexported fields
}
func (*Roller) SetMaximum ¶
func (v *Roller) SetMaximum(value float64)
func (*Roller) SetMinimum ¶
func (v *Roller) SetMinimum(value float64)
type RowSelectMode ¶
type RowSelectMode int
type Scroll ¶
type Scroll struct {
Group
}
func (*Scroll) ClearVisibleFocus ¶
func (w *Scroll) ClearVisibleFocus()
func (*Scroll) Deactivate ¶
func (w *Scroll) Deactivate()
func (*Scroll) LabelColor ¶
func (w *Scroll) LabelColor() Color
func (*Scroll) MeasureLabel ¶
func (*Scroll) SelectionColor ¶
func (w *Scroll) SelectionColor() Color
func (*Scroll) SetCallback ¶
func (w *Scroll) SetCallback(f func())
func (*Scroll) SetCallbackCondition ¶
func (w *Scroll) SetCallbackCondition(when CallbackCondition)
func (*Scroll) SetDeimage ¶
func (w *Scroll) SetDeimage(i Image)
func (*Scroll) SetDrawHandler ¶
func (w *Scroll) SetDrawHandler(handler func())
func (*Scroll) SetEventHandler ¶
func (*Scroll) SetLabelColor ¶
func (w *Scroll) SetLabelColor(col Color)
func (*Scroll) SetLabelFont ¶
func (w *Scroll) SetLabelFont(font Font)
func (*Scroll) SetLabelSize ¶
func (w *Scroll) SetLabelSize(size int)
func (*Scroll) SetLabelType ¶
func (w *Scroll) SetLabelType(ltype LabelType)
func (*Scroll) SetPosition ¶
func (w *Scroll) SetPosition(x, y int)
func (*Scroll) SetResizeHandler ¶
func (w *Scroll) SetResizeHandler(handler func())
func (*Scroll) SetSelectionColor ¶
func (w *Scroll) SetSelectionColor(color Color)
func (*Scroll) SetTooltip ¶
func (w *Scroll) SetTooltip(text string)
func (*Scroll) SetType ¶
func (s *Scroll) SetType(scrollType ScrollType)
type ScrollType ¶
type ScrollType uint8
type SelectBrowser ¶
type SelectBrowser struct {
Browser
}
func NewSelectBrowser ¶
func NewSelectBrowser(x, y, w, h int, text ...string) *SelectBrowser
func (*SelectBrowser) ClearVisibleFocus ¶
func (w *SelectBrowser) ClearVisibleFocus()
func (*SelectBrowser) Deactivate ¶
func (w *SelectBrowser) Deactivate()
func (*SelectBrowser) LabelColor ¶
func (w *SelectBrowser) LabelColor() Color
func (*SelectBrowser) MeasureLabel ¶
func (*SelectBrowser) SelectionColor ¶
func (w *SelectBrowser) SelectionColor() Color
func (*SelectBrowser) SetCallback ¶
func (w *SelectBrowser) SetCallback(f func())
func (*SelectBrowser) SetCallbackCondition ¶
func (w *SelectBrowser) SetCallbackCondition(when CallbackCondition)
func (*SelectBrowser) SetDeimage ¶
func (w *SelectBrowser) SetDeimage(i Image)
func (*SelectBrowser) SetDrawHandler ¶
func (w *SelectBrowser) SetDrawHandler(handler func())
func (*SelectBrowser) SetEventHandler ¶
func (*SelectBrowser) SetLabelColor ¶
func (w *SelectBrowser) SetLabelColor(col Color)
func (*SelectBrowser) SetLabelFont ¶
func (w *SelectBrowser) SetLabelFont(font Font)
func (*SelectBrowser) SetLabelSize ¶
func (w *SelectBrowser) SetLabelSize(size int)
func (*SelectBrowser) SetLabelType ¶
func (w *SelectBrowser) SetLabelType(ltype LabelType)
func (*SelectBrowser) SetPosition ¶
func (w *SelectBrowser) SetPosition(x, y int)
func (*SelectBrowser) SetResizeHandler ¶
func (w *SelectBrowser) SetResizeHandler(handler func())
func (*SelectBrowser) SetSelectionColor ¶
func (w *SelectBrowser) SetSelectionColor(color Color)
func (*SelectBrowser) SetTooltip ¶
func (w *SelectBrowser) SetTooltip(text string)
type SelectionFlag ¶
type SelectionFlag int
type SharedImage ¶
type SharedImage struct {
// contains filtered or unexported fields
}
func NewSharedImageLoad ¶
func NewSharedImageLoad(path string) (*SharedImage, error)
type Slider ¶
type Slider struct {
// contains filtered or unexported fields
}
func (*Slider) SetMaximum ¶
func (v *Slider) SetMaximum(value float64)
func (*Slider) SetMinimum ¶
func (v *Slider) SetMinimum(value float64)
func (*Slider) SetType ¶
func (s *Slider) SetType(sliderType SliderType)
type SliderType ¶
type SliderType uint8
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) SetDrawHandler ¶
func (w *Spinner) SetDrawHandler(handler func())
func (*Spinner) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *Spinner) SetResizeHandler(handler func())
func (*Spinner) SetSelectionColor ¶
func (w *Spinner) SetSelectionColor(color Color)
func (*Spinner) SetTooltip ¶
func (w *Spinner) SetTooltip(text string)
func (*Spinner) SetType ¶
func (s *Spinner) SetType(inputType SpinnerInputType)
type SpinnerInputType ¶
type SpinnerInputType uint8
type StyleTableEntry ¶
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) ScrollbarSize ¶
func (t *TableRow) ScrollbarSize() int
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) 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) SetScrollbarSize ¶
func (t *TableRow) SetScrollbarSize(size 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) SetDrawHandler ¶
func (w *Tabs) SetDrawHandler(handler func())
func (*Tabs) SetEventHandler ¶
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) SetOverflow ¶
func (*Tabs) SetPosition ¶
func (w *Tabs) SetPosition(x, y int)
func (*Tabs) SetResizeHandler ¶
func (w *Tabs) SetResizeHandler(handler func())
func (*Tabs) SetSelectionColor ¶
func (w *Tabs) SetSelectionColor(color Color)
func (*Tabs) SetTooltip ¶
func (w *Tabs) SetTooltip(text string)
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) Destroy ¶
func (b *TextBuffer) Destroy()
func (*TextBuffer) GetSelectionPosition ¶
func (b *TextBuffer) GetSelectionPosition() (int, int)
GetSelectionPosition - Get position (start, end) of the currently selected text
func (*TextBuffer) GetSelectionText ¶
func (b *TextBuffer) GetSelectionText() string
GetSelectionText return the text within the current selection
func (*TextBuffer) GetTabWidth ¶
func (b *TextBuffer) GetTabWidth() int
func (*TextBuffer) GetTextRange ¶
func (b *TextBuffer) GetTextRange(start, end int) string
GetTextRange - get text from start and end position
func (*TextBuffer) Highlight ¶
func (b *TextBuffer) Highlight(start, end int)
Highlight - highlight text from start and end position
func (*TextBuffer) IsSelected ¶
func (b *TextBuffer) IsSelected(start, end int) bool
Selected Check if any text is selected
func (*TextBuffer) ReplaceRange ¶
func (b *TextBuffer) ReplaceRange(start, end int, txt string)
ReplaceRange - replace text within the start, end range with text
func (*TextBuffer) ReplaceSelection ¶
func (b *TextBuffer) ReplaceSelection(txt string)
ReplaceSelection - replace text within current selection with text
func (*TextBuffer) Search ¶
func (b *TextBuffer) Search(start int, searchStr string, searchBackward, matchCase bool) (foundPos int)
Search - search text in the buffer for string searchStr. Return the position found or -1
func (*TextBuffer) SearchBackward ¶
func (b *TextBuffer) SearchBackward(start int, searchStr string, matchCase bool) (foundPos int)
SearchBackward - search backward for searchStr from position start. return the position if found otherwise -1
func (*TextBuffer) SearchForward ¶
func (b *TextBuffer) SearchForward(start int, searchStr string, matchCase bool) (foundPos int)
SearchForward - search forward for searchStr from position start. return the position if found otherwise -1
func (*TextBuffer) Select ¶
func (b *TextBuffer) Select(start, end int)
Select text between start and end
func (*TextBuffer) SetTabWidth ¶
func (b *TextBuffer) SetTabWidth(tabWidth int)
SetTabWidth - set the TAB distance (width)
func (*TextBuffer) SetText ¶
func (b *TextBuffer) SetText(txt string)
func (*TextBuffer) Text ¶
func (b *TextBuffer) Text() string
func (*TextBuffer) UnHighlight ¶
func (b *TextBuffer) UnHighlight()
UnHighlight all highlighted text
func (*TextBuffer) UnSelect ¶
func (b *TextBuffer) UnSelect()
UnSelect - unselect any selections in the buffer
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) GetInsertPosition ¶
func (t *TextDisplay) GetInsertPosition() int
GetInsertPosition - return the current insert position
func (*TextDisplay) InsertText ¶
func (t *TextDisplay) InsertText(txt string)
InsertText - Insert text at the cursor position
func (*TextDisplay) LabelColor ¶
func (w *TextDisplay) LabelColor() Color
func (*TextDisplay) MeasureLabel ¶
func (*TextDisplay) MoveDown ¶
func (t *TextDisplay) MoveDown() bool
MoveDown moves the current insert position down one line.
func (*TextDisplay) MoveLeft ¶
func (t *TextDisplay) MoveLeft() bool
MoveLeft moves the current insert position left one character.
func (*TextDisplay) MoveRight ¶
func (t *TextDisplay) MoveRight() bool
MoveRight moves the current insert position right one character. Returns true if the cursor moved, false if the end of the text was reached
func (*TextDisplay) MoveUp ¶
func (t *TextDisplay) MoveUp() bool
MoveUp moves the current insert position up one line.
func (*TextDisplay) Overstrike ¶
func (t *TextDisplay) Overstrike(txt string)
Overstrike - Not sure what it does, the fltk doc does not match with the name meaning
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) SetDrawHandler ¶
func (w *TextDisplay) SetDrawHandler(handler func())
func (*TextDisplay) SetEventHandler ¶
func (*TextDisplay) SetHighlightData ¶
func (t *TextDisplay) SetHighlightData(buf *TextBuffer, entries []StyleTableEntry)
func (*TextDisplay) SetInsertPosition ¶
func (t *TextDisplay) SetInsertPosition(newPos int)
SetInsertPosition set the insert position to a new position
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) SetResizeHandler ¶
func (w *TextDisplay) SetResizeHandler(handler func())
func (*TextDisplay) SetSelectionColor ¶
func (w *TextDisplay) SetSelectionColor(color Color)
func (*TextDisplay) SetTextColor ¶
func (t *TextDisplay) SetTextColor(color Color)
SetTextColor sets the default color of text in the widget
func (*TextDisplay) SetTextSize ¶
func (t *TextDisplay) SetTextSize(size int)
SetTextSize sets the default size of text in the widget
func (*TextDisplay) SetTooltip ¶
func (w *TextDisplay) SetTooltip(text string)
func (*TextDisplay) SetWrapMode ¶
func (t *TextDisplay) SetWrapMode(wrap WrapMode, wrapMargin ...int)
wrapMargin is not needed if WrapMode is WRAP_NONE or WRAP_AT_BOUNDS
func (*TextDisplay) ShowInsertPosition ¶
func (t *TextDisplay) ShowInsertPosition()
ShowInsertPosition scrolls the text buffer to show the current insert position.
func (*TextDisplay) TextColor ¶
func (t *TextDisplay) TextColor() Color
TextColor gets the default color of text in the widget
func (*TextDisplay) TextSize ¶
func (t *TextDisplay) TextSize() int
TextSize gets the default size of text in the widget
type TextEditor ¶
type TextEditor struct {
TextDisplay
}
func NewTextEditor ¶
func NewTextEditor(x, y, w, h int, text ...string) *TextEditor
NewTextEditor returns a TextEditor.
Example:
textBuffer := fltk.NewTextBuffer()
textEditor := fltk.NewTextEditor(x, y, width, height)
textEditor.SetBuffer(textBuffer)
textBuffer.SetText("Initial Text")
fmt.Println(textBuffer.Text()) // Prints: Initial Text
Note that the text buffer pointer must be kept around for as long as the text editor is in use.
func (*TextEditor) ClearVisibleFocus ¶
func (w *TextEditor) ClearVisibleFocus()
func (*TextEditor) Copy ¶
func (t *TextEditor) Copy()
Copy copy of selected text or the current character in the current buffer of editor 'e'. (kf_copy)
func (*TextEditor) Cut ¶
func (t *TextEditor) Cut()
func (*TextEditor) Deactivate ¶
func (w *TextEditor) Deactivate()
func (*TextEditor) Delete ¶
func (t *TextEditor) Delete()
func (*TextEditor) Insert ¶
func (t *TextEditor) Insert()
Insert - Togglesthe insert mode (kf_insert)
func (*TextEditor) LabelColor ¶
func (w *TextEditor) LabelColor() Color
func (*TextEditor) MeasureLabel ¶
func (*TextEditor) Paste ¶
func (t *TextEditor) Paste()
func (*TextEditor) SelectAll ¶
func (t *TextEditor) SelectAll()
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) SetDrawHandler ¶
func (w *TextEditor) SetDrawHandler(handler func())
func (*TextEditor) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *TextEditor) SetResizeHandler(handler func())
func (*TextEditor) SetSelectionColor ¶
func (w *TextEditor) SetSelectionColor(color Color)
func (*TextEditor) SetTooltip ¶
func (w *TextEditor) SetTooltip(text string)
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) SetDrawHandler ¶
func (w *ToggleButton) SetDrawHandler(handler func())
func (*ToggleButton) SetEventHandler ¶
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) SetResizeHandler ¶
func (w *ToggleButton) SetResizeHandler(handler func())
func (*ToggleButton) SetSelectionColor ¶
func (w *ToggleButton) SetSelectionColor(color Color)
func (*ToggleButton) SetTooltip ¶
func (w *ToggleButton) SetTooltip(text string)
type Tree ¶
type Tree struct {
Group
}
func (*Tree) ClearVisibleFocus ¶
func (w *Tree) ClearVisibleFocus()
func (*Tree) Deactivate ¶
func (w *Tree) Deactivate()
func (*Tree) LabelColor ¶
func (w *Tree) LabelColor() Color
func (*Tree) MeasureLabel ¶
func (*Tree) SelectionColor ¶
func (w *Tree) SelectionColor() Color
func (*Tree) SetCallback ¶
func (w *Tree) SetCallback(f func())
func (*Tree) SetCallbackCondition ¶
func (w *Tree) SetCallbackCondition(when CallbackCondition)
func (*Tree) SetConnectorStyle ¶
func (t *Tree) SetConnectorStyle(style TreeConnector)
func (*Tree) SetDeimage ¶
func (w *Tree) SetDeimage(i Image)
func (*Tree) SetDrawHandler ¶
func (w *Tree) SetDrawHandler(handler func())
func (*Tree) SetEventHandler ¶
func (*Tree) SetItemDrawMode ¶
func (t *Tree) SetItemDrawMode(drawMode TreeItemDrawMode)
func (*Tree) SetLabelColor ¶
func (w *Tree) SetLabelColor(col Color)
func (*Tree) SetLabelFont ¶
func (w *Tree) SetLabelFont(font Font)
func (*Tree) SetLabelSize ¶
func (w *Tree) SetLabelSize(size int)
func (*Tree) SetLabelType ¶
func (w *Tree) SetLabelType(ltype LabelType)
func (*Tree) SetPosition ¶
func (w *Tree) SetPosition(x, y int)
func (*Tree) SetResizeHandler ¶
func (w *Tree) SetResizeHandler(handler func())
func (*Tree) SetSelectionColor ¶
func (w *Tree) SetSelectionColor(color Color)
func (*Tree) SetShowRoot ¶
func (*Tree) SetTooltip ¶
func (w *Tree) SetTooltip(text string)
type TreeConnector ¶
type TreeConnector int
type TreeItemDrawMode ¶
type TreeItemDrawMode uint
type ValueSlider ¶
type ValueSlider struct {
Slider
}
func NewValueSlider ¶
func NewValueSlider(x, y, w, h int, text ...string) *ValueSlider
func (*ValueSlider) SetMaximum ¶
func (v *ValueSlider) SetMaximum(value float64)
func (*ValueSlider) SetMinimum ¶
func (v *ValueSlider) SetMinimum(value float64)
func (*ValueSlider) SetTextFont ¶
func (s *ValueSlider) SetTextFont(font Font)
func (*ValueSlider) SetTextSize ¶
func (s *ValueSlider) SetTextSize(size int)
type Window ¶
type Window struct {
Group
// contains filtered or unexported fields
}
func (*Window) ClearVisibleFocus ¶
func (w *Window) ClearVisibleFocus()
func (*Window) Deactivate ¶
func (w *Window) Deactivate()
func (*Window) FullscreenActive ¶
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) SetDrawHandler ¶
func (w *Window) SetDrawHandler(handler func())
func (*Window) SetEventHandler ¶
func (*Window) SetFullscreen ¶
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) SetNonModal ¶
func (w *Window) SetNonModal()
func (*Window) SetPosition ¶
func (w *Window) SetPosition(x, y int)
func (*Window) SetResizeHandler ¶
func (w *Window) SetResizeHandler(handler func())
func (*Window) SetSelectionColor ¶
func (w *Window) SetSelectionColor(color Color)
func (*Window) SetTooltip ¶
func (w *Window) SetTooltip(text string)
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
7GUIs/counter
command
|
|
|
7GUIs/crud
command
|
|
|
7GUIs/flightbooker
command
|
|
|
7GUIs/temperature
command
|
|
|
7GUIs/timer
command
|
|
|
chart
command
|
|
|
choice
command
|
|
|
custom-dial
command
|
|
|
dnd
command
|
|
|
flex
command
|
|
|
flutter-like
command
|
|
|
group
command
|
|
|
helpview
command
|
|
|
icons
command
|
|
|
image
command
|
|
|
input_choice
command
|
|
|
paint
command
|
|
|
styled_text
command
|
|
|
svg
command
|
|
|
table
command
|
|
|
texteditor
command
|
|
|
timeout
command
|
|
|
toggle
command
|
|
|
widget_table
command
|
