Documentation ¶
Index ¶
- func Notify(duration time.Duration, format string, params ...interface{})
- type Align
- type Animation
- type Application
- func (self *Application) Add(form Form)
- func (self *Application) Close()
- func (self *Application) GetBounds() rl.Rectangle
- func (self *Application) GetOption(name string) interface{}
- func (self *Application) Remove(form Form)
- func (self *Application) RemoveOption(name string)
- func (self *Application) Run()
- func (self *Application) SetOption(name string, value interface{})
- type Button
- func (self *Button) Draw()
- func (self *Button) GetAlign() Align
- func (self *Button) GetBounds() rl.Rectangle
- func (self *Button) GetDataSize() Size
- func (self *Button) GetFill() Fill
- func (self *Button) GetId() int32
- func (self *Button) GetParent() Widget
- func (self *Button) SetBounds(bounds rl.Rectangle)
- func (self *Button) SetId(id int32)
- func (self *Button) SetParent(parent Widget)
- func (self *Button) Update(dt float32)
- type Checkbox
- func (self *Checkbox) Draw()
- func (self *Checkbox) GetAlign() Align
- func (self *Checkbox) GetBounds() rl.Rectangle
- func (self *Checkbox) GetDataSize() Size
- func (self *Checkbox) GetFill() Fill
- func (self *Checkbox) GetId() int32
- func (self *Checkbox) GetParent() Widget
- func (self *Checkbox) SetBounds(bounds rl.Rectangle)
- func (self *Checkbox) SetId(id int32)
- func (self *Checkbox) SetParent(parent Widget)
- func (self *Checkbox) Update(dt float32)
- type Combobox
- func (self *Combobox) Draw()
- func (self *Combobox) GetAlign() Align
- func (self *Combobox) GetBounds() rl.Rectangle
- func (self *Combobox) GetDataSize() Size
- func (self *Combobox) GetFill() Fill
- func (self *Combobox) GetId() int32
- func (self *Combobox) GetParent() Widget
- func (self *Combobox) SetBounds(bounds rl.Rectangle)
- func (self *Combobox) SetId(id int32)
- func (self *Combobox) SetParent(parent Widget)
- func (self *Combobox) Update(dt float32)
- type Dialog
- func (self *Dialog) Add(widget Widget)
- func (self *Dialog) Clear()
- func (self *Dialog) Close()
- func (self *Dialog) Draw()
- func (self *Dialog) GetBounds() rl.Rectangle
- func (self *Dialog) GetDataSize() Size
- func (self *Dialog) IsActive() bool
- func (self *Dialog) IsModal() bool
- func (self *Dialog) IsMovable() bool
- func (self *Dialog) Open()
- func (self *Dialog) SetActive(value bool)
- func (self *Dialog) SetBounds(bounds rl.Rectangle)
- func (self *Dialog) Update(dt float32)
- type Fill
- type Form
- type HBox
- func (self *HBox) Add(widget Widget)
- func (self *HBox) Clear()
- func (self *HBox) Draw()
- func (self *HBox) GetAlign() Align
- func (self *HBox) GetBounds() rl.Rectangle
- func (self *HBox) GetDataSize() Size
- func (self *HBox) GetFill() Fill
- func (self *HBox) GetId() int32
- func (self *HBox) GetParent() Widget
- func (self *HBox) GetWidgets() []Widget
- func (self *HBox) SetBounds(bounds rl.Rectangle)
- func (self *HBox) SetId(id int32)
- func (self *HBox) SetParent(parent Widget)
- func (self *HBox) Update(dt float32)
- type Image
- func (self *Image) Draw()
- func (self *Image) GetAlign() Align
- func (self *Image) GetBounds() rl.Rectangle
- func (self *Image) GetDataSize() Size
- func (self *Image) GetFill() Fill
- func (self *Image) GetId() int32
- func (self *Image) GetParent() Widget
- func (self *Image) SetBounds(bounds rl.Rectangle)
- func (self *Image) SetId(id int32)
- func (self *Image) SetParent(parent Widget)
- func (self *Image) Update(dt float32)
- type Label
- func (self *Label) Draw()
- func (self *Label) GetAlign() Align
- func (self *Label) GetBounds() rl.Rectangle
- func (self *Label) GetDataSize() Size
- func (self *Label) GetFill() Fill
- func (self *Label) GetId() int32
- func (self *Label) GetParent() Widget
- func (self *Label) SetBounds(bounds rl.Rectangle)
- func (self *Label) SetId(id int32)
- func (self *Label) SetParent(parent Widget)
- func (self *Label) Update(dt float32)
- type Layout
- type LazyLoader
- type ListView
- func (self *ListView) Draw()
- func (self *ListView) GetAlign() Align
- func (self *ListView) GetBounds() rl.Rectangle
- func (self *ListView) GetCount() int
- func (self *ListView) GetCurrent() int
- func (self *ListView) GetCurrentItem() string
- func (self *ListView) GetDataSize() Size
- func (self *ListView) GetFill() Fill
- func (self *ListView) GetId() int32
- func (self *ListView) GetParent() Widget
- func (self *ListView) RemoveScrollbar()
- func (self *ListView) Scroll(times int)
- func (self *ListView) SetBounds(bounds rl.Rectangle)
- func (self *ListView) SetCurrent(index int)
- func (self *ListView) SetId(id int32)
- func (self *ListView) SetItems(items []string)
- func (self *ListView) SetParent(parent Widget)
- func (self *ListView) Update(dt float32)
- type Notification
- type Scrollable
- type Scrollbar
- func (self *Scrollbar) Draw()
- func (self *Scrollbar) GetAlign() Align
- func (self *Scrollbar) GetBounds() rl.Rectangle
- func (self *Scrollbar) GetDataSize() Size
- func (self *Scrollbar) GetFill() Fill
- func (self *Scrollbar) GetId() int32
- func (self *Scrollbar) GetParent() Widget
- func (self *Scrollbar) SetBounds(bounds rl.Rectangle)
- func (self *Scrollbar) SetId(id int32)
- func (self *Scrollbar) SetParent(parent Widget)
- func (self *Scrollbar) Update(dt float32)
- type Size
- type State
- type Style
- type Textbox
- func (self *Textbox) Draw()
- func (self *Textbox) GetAlign() Align
- func (self *Textbox) GetBounds() rl.Rectangle
- func (self *Textbox) GetDataSize() Size
- func (self *Textbox) GetFill() Fill
- func (self *Textbox) GetId() int32
- func (self *Textbox) GetParent() Widget
- func (self *Textbox) SetBounds(bounds rl.Rectangle)
- func (self *Textbox) SetId(id int32)
- func (self *Textbox) SetParent(parent Widget)
- func (self *Textbox) Update(dt float32)
- type VBox
- func (self *VBox) Add(widget Widget)
- func (self *VBox) Clear()
- func (self *VBox) Draw()
- func (self *VBox) GetAlign() Align
- func (self *VBox) GetBounds() rl.Rectangle
- func (self *VBox) GetDataSize() Size
- func (self *VBox) GetFill() Fill
- func (self *VBox) GetId() int32
- func (self *VBox) GetParent() Widget
- func (self *VBox) GetWidgets() []Widget
- func (self *VBox) SetBounds(bounds rl.Rectangle)
- func (self *VBox) SetId(id int32)
- func (self *VBox) SetParent(parent Widget)
- func (self *VBox) Update(dt float32)
- type Widget
- type Window
- func (self *Window) Add(widget Widget)
- func (self *Window) Draw()
- func (self *Window) GetBounds() rl.Rectangle
- func (self *Window) IsActive() bool
- func (self *Window) IsModal() bool
- func (self *Window) IsMovable() bool
- func (self *Window) SetActive(value bool)
- func (self *Window) SetBounds(bounds rl.Rectangle)
- func (self *Window) Update(dt float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Animation ¶
func NewAnimation ¶
type Application ¶
type Application struct { Title string Width int Height int // contains filtered or unexported fields }
func GetApplication ¶
func GetApplication() *Application
func NewApplication ¶
func NewApplication(width, height int, title string) *Application
func (*Application) Add ¶
func (self *Application) Add(form Form)
func (*Application) Close ¶
func (self *Application) Close()
func (*Application) GetBounds ¶
func (self *Application) GetBounds() rl.Rectangle
func (*Application) GetOption ¶
func (self *Application) GetOption(name string) interface{}
func (*Application) Remove ¶
func (self *Application) Remove(form Form)
func (*Application) RemoveOption ¶
func (self *Application) RemoveOption(name string)
func (*Application) Run ¶
func (self *Application) Run()
func (*Application) SetOption ¶
func (self *Application) SetOption(name string, value interface{})
type Button ¶
type Button struct { Text string Parent Widget Bounds rl.Rectangle Align Align Fill Fill State State Image rl.Texture2D OnClick func() // contains filtered or unexported fields }
func (*Button) GetDataSize ¶
type Checkbox ¶
type Checkbox struct { Text string Parent Widget Bounds rl.Rectangle Align Align Fill Fill Checked bool // contains filtered or unexported fields }
func NewCheckbox ¶
func (*Checkbox) GetDataSize ¶
type Combobox ¶
type Combobox struct {
// contains filtered or unexported fields
}
func (*Combobox) GetDataSize ¶
type HBox ¶
type HBox struct { Parent Widget Bounds rl.Rectangle Align Align Fill Fill Widgets []Widget // contains filtered or unexported fields }
func (*HBox) GetDataSize ¶
func (*HBox) GetWidgets ¶
type Image ¶
type Image struct { Parent Widget Bounds rl.Rectangle Align Align Fill Fill // contains filtered or unexported fields }
func (*Image) GetDataSize ¶
type Label ¶
type Label struct { Text string BorderColor rl.Color BackgroundColor rl.Color TextColor rl.Color Parent Widget Bounds rl.Rectangle Align Align Fill Fill // contains filtered or unexported fields }
func (*Label) GetDataSize ¶
type LazyLoader ¶
type LazyLoader struct {
// contains filtered or unexported fields
}
func NewLazyLoader ¶
func NewLazyLoader() *LazyLoader
func (*LazyLoader) Unload ¶
func (self *LazyLoader) Unload(name string)
func (*LazyLoader) UnloadAll ¶
func (self *LazyLoader) UnloadAll()
type ListView ¶
type ListView struct { OnClick func(string) OnDoubleClick func(string) // contains filtered or unexported fields }
func NewListView ¶
func (*ListView) GetCurrent ¶
func (*ListView) GetCurrentItem ¶
func (*ListView) GetDataSize ¶
func (*ListView) RemoveScrollbar ¶
func (self *ListView) RemoveScrollbar()
func (*ListView) SetCurrent ¶
type Notification ¶
type Notification struct { Text string Point rl.Vector2 FontSize int32 Color rl.Color Duration time.Duration }
func (*Notification) Draw ¶
func (self *Notification) Draw()
type Scrollable ¶
type Scrollbar ¶
type Scrollbar struct {
// contains filtered or unexported fields
}
func NewScrollbar ¶
func NewScrollbar(fill Fill, scrollable Scrollable) *Scrollbar
func (*Scrollbar) GetDataSize ¶
type Style ¶
type Style struct { GlobalBaseColor rl.Color GlobalBorderColor rl.Color GlobalTextColor rl.Color GlobalTextFontsize int GlobalBorderHeight int GlobalBackgroundColor rl.Color GlobalLinesColor rl.Color GlobalPadding int DialogTitleFontsize int DialogTitleBackgroundColor rl.Color DialogTitleTextColor rl.Color LabelBorderWidth int LabelTextColor rl.Color LabelTextPadding int ButtonBorderWidth int ButtonTextPadding int ButtonDefaultBorderColor rl.Color ButtonDefaultInsideColor rl.Color ButtonDefaultTextColor rl.Color ButtonHoverBorderColor rl.Color ButtonHoverInsideColor rl.Color ButtonHoverTextColor rl.Color ButtonPressedBorderColor rl.Color ButtonPressedInsideColor rl.Color ButtonPressedTextColor rl.Color ComboboxPadding int ComboboxWidth int ComboboxHeight int ComboboxBorderWidth int ComboboxDefaultBorderColor rl.Color ComboboxDefaultInsideColor rl.Color ComboboxDefaultTextColor rl.Color ComboboxDefaultListTextColor rl.Color ComboboxHoverBorderColor rl.Color ComboboxHoverInsideColor rl.Color ComboboxHoverTextColor rl.Color ComboboxHoverListTextColor rl.Color ComboboxPressedBorderColor rl.Color ComboboxPressedInsideColor rl.Color ComboboxPressedTextColor rl.Color ComboboxPressedListBorderColor rl.Color ComboboxPressedListInsideColor rl.Color ComboboxPressedListTextColor rl.Color CheckboxDefaultBorderColor rl.Color CheckboxDefaultInsideColor rl.Color CheckboxHoverBorderColor rl.Color CheckboxHoverInsideColor rl.Color CheckboxClickBorderColor rl.Color CheckboxClickInsideColor rl.Color CheckboxDefaultActiveColor rl.Color CheckboxInsideWidth int TextboxBorderWidth int TextboxBorderColor rl.Color TextboxActiveBorderColor rl.Color TextboxInsideColor rl.Color TextboxTextColor rl.Color TextboxLineColor rl.Color TextboxTextFontsize int ListviewTextColor rl.Color ListviewSelectedTextColor rl.Color ListviewSelectedBackgroundColor rl.Color }
type Textbox ¶
type Textbox struct { Text string Parent Widget Bounds rl.Rectangle Align Align Fill Fill // contains filtered or unexported fields }
func (*Textbox) GetDataSize ¶
type VBox ¶
type VBox struct { Parent Widget Bounds rl.Rectangle Align Align Fill Fill Widgets []Widget // contains filtered or unexported fields }
func (*VBox) GetDataSize ¶
func (*VBox) GetWidgets ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.