Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateName ¶
GenerateName generates a custom command name.
Types ¶
type BindCallback ¶
type BindCallback = func(*BindData)
type BindData ¶
type BindData struct { CommandName string Element element.Element Callback BindCallback Event Event }
BindData is data which is passed to a bind callback when invoked.
type Callback ¶
type Callback = func(*CommandData)
BindCallback is the callback that is specified for a binding.
type CommandData ¶
CommandData is data which is passed to a command callback when invoked.
type Event ¶
type Event struct { MouseButton int KeyCode int ElementX int ElementY int Wheel int Key string ScreenX int ScreenY int }
Event is the part of the callback data that contains information about any events that have taken place.
type Font ¶
Font is the part of the callback data that contain information about dialog interaction.
type FontData ¶
type FontData struct { CommandName string Element element.Element Callback FontDialogCallback Font Font }
FontData is data which is passed to a font dialog callback when invoked.
type FontDialogCallback ¶
type FontDialogCallback = func(*FontData)
Click to show internal directories.
Click to hide internal directories.