Documentation
¶
Index ¶
Constants ¶
View Source
const BackendName = "fltk"
BackendName is the name of the backend. It can be used to check which backend is currently in use by the application during runtime.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Button ¶
type Checkbox ¶
type Dial ¶
type Dropdown ¶
type Image ¶ added in v0.3.0
type Image struct { X int Y int Width int Height int Border bool OnClick func(x, y int, secondary bool) Image image.Image // contains filtered or unexported fields }
type Label ¶
type LabelAlignment ¶ added in v0.2.0
type LabelAlignment int
const ( LabelAlignmentLeft LabelAlignment = iota LabelAlignmentCenter LabelAlignmentRight )
type ListBox ¶ added in v0.2.0
type ListBox struct { X int Y int Width int Height int Values []string Multiselect bool Selection []int OnSelect func([]int) // contains filtered or unexported fields }
type ProgressBar ¶
type ProgressBar struct { X int Y int Width int Height int Min float64 Max float64 Value float64 Indeterminate bool // contains filtered or unexported fields }
func (*ProgressBar) Render ¶
func (c *ProgressBar) Render(ctx *spot.RenderContext) spot.Component
type Slider ¶
type Spinner ¶
type TextEditor ¶ added in v0.3.0
type TextEditor struct { X int Y int Width int Height int Text string FontSize int OnChange func(content string) // contains filtered or unexported fields }
func (*TextEditor) Render ¶ added in v0.3.0
func (c *TextEditor) Render(ctx *spot.RenderContext) spot.Component
type TextField ¶
type TextView ¶
Source Files
¶
- button.go
- button_fltk.go
- checkbox.go
- checkbox_fltk.go
- dial.go
- dial_fltk.go
- dropdown.go
- dropdown_fltk.go
- image.go
- image_fltk.go
- imgutils.go
- init.go
- init_fltk.go
- label.go
- label_fltk.go
- listbox.go
- listbox_fltk.go
- progressbar.go
- progressbar_fltk.go
- slider.go
- slider_fltk.go
- spinner.go
- spinner_fltk.go
- texteditor.go
- texteditor_fltk.go
- textfield.go
- textfield_fltk.go
- textview.go
- textview_fltk.go
- window.go
- window_fltk.go
Click to show internal directories.
Click to hide internal directories.