Documentation ¶
Index ¶
- Constants
- type Button
- type CheckBox
- type Desktop
- type Label
- type TitleBarButton
- type Toolkit
- type Window
- func (win *Window) Button(style byte, ms *mouse.Mouse, icon image.Image, txt string, ...) *Button
- func (win *Window) CheckBox(style byte, ms *mouse.Mouse, txt string, fnClick clickHandler, x, y int) *CheckBox
- func (win *Window) Deactivate()
- func (win *Window) Draw()
- func (win *Window) GetBG() color.RGBA
- func (win *Window) Label(ms *mouse.Mouse, txt string, x, y, w, h int) *Label
- func (win *Window) Mouse(x int, y int, deltaX int, deltaY int, flags uint16)
- func (win *Window) TitleBarButton(ms *mouse.Mouse, fnClick clickHandler, x, y, w, h int) *TitleBarButton
Constants ¶
View Source
const ( BS_TEXT = 1 << iota BS_ICON = 1 << iota BS_ICON_TEXT = 1 << iota BS_TOGGLE = 1 << iota )
View Source
const (
CBS_LEFTTEXT = 1 << iota
)
View Source
const (
CB_TEXT_SPACE = 5 // horizontal space in pixels between the checkbox and the text
)
View Source
const (
ICON_TEXT_SPACE = 5 // horizontal space in pixels between icon and text for BS_ICON_TEXT buttons
)
View Source
const (
THEME_PATH = "data/elements/"
)
View Source
const (
WS_TITLEBAR_HIDDEN = 1 << iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Desktop ¶
func CreateDesktop ¶
type TitleBarButton ¶
func (*TitleBarButton) Draw ¶
func (but *TitleBarButton) Draw()
type Window ¶
func CreateWindow ¶
func (*Window) Button ¶
func (win *Window) Button(style byte, ms *mouse.Mouse, icon image.Image, txt string, fnClick clickHandler, x, y, w, h int) *Button
style should be one of BS_TEXT, BS_ICON_TEXT, BS_ICON icon should be nil for BS_TEXT txt should be empty string for BS_ICON
func (*Window) Deactivate ¶
func (win *Window) Deactivate()
func (*Window) TitleBarButton ¶
func (win *Window) TitleBarButton(ms *mouse.Mouse, fnClick clickHandler, x, y, w, h int) *TitleBarButton
Source Files ¶
Click to show internal directories.
Click to hide internal directories.