Documentation ¶
Index ¶
- func EditFilterAscii(r rune) bool
- func EditFilterBinary(r rune) bool
- func EditFilterDecimal(r rune) bool
- func EditFilterDefault(r rune) bool
- func EditFilterFloat(r rune) bool
- func EditFilterHex(r rune) bool
- func EditFilterOct(r rune) bool
- func ImgToRgba(img image.Image) *image.RGBA
- func LoadDefaultFont() *nk.Font
- func LoadFontFromFile(filePath string, size float32, config *nk.FontConfig) *nk.Font
- func SetFont(ctx *nk.Context, font *nk.Font)
- type BuilderFunc
- type Canvas
- type ChartSeries
- type EditFilter
- type Input
- type ListViewItemBuilder
- type MasterWindow
- func (w *MasterWindow) GetContext() *nk.Context
- func (w *MasterWindow) GetDefaultFont() *nk.Font
- func (w *MasterWindow) GetSize() (width, height int)
- func (w *MasterWindow) Main(builder BuilderFunc)
- func (w *MasterWindow) SetBgColor(color color.RGBA)
- func (w *MasterWindow) SetSize(width, height int)
- func (w *MasterWindow) SetTitle(title string)
- type MasterWindowFlag
- type Row
- type RowLayoutFunc
- type TextEdit
- type Texture
- type Window
- func (w *Window) Button(content string) bool
- func (w *Window) ButtonColor(color nk.Color) bool
- func (w *Window) ButtonImage(img nk.Image) bool
- func (w *Window) ButtonImageLabel(img nk.Image, label, align string) bool
- func (w *Window) ButtonSymbol(symbol nk.SymbolType) bool
- func (w *Window) ButtonSymbolLabel(symbol nk.SymbolType, label, align string) bool
- func (w *Window) Chart(chartType nk.ChartType, min, max float32, data []float32)
- func (w *Window) ChartColored(chartType nk.ChartType, color, activeColor nk.Color, min, max float32, ...)
- func (w *Window) ChartMixed(series []ChartSeries)
- func (w *Window) Checkbox(label string, active *bool)
- func (w *Window) ClosePopup()
- func (w *Window) ComboLabel(label string, dropDownWidth, dropDownHeight float32, itemBuilder BuilderFunc)
- func (w *Window) ComboSimple(labels []string, selected int, itemHeight int, ...) int
- func (w *Window) Contextual(flag nk.Flags, width, height int, builder BuilderFunc)
- func (w *Window) ContextualLabel(label, align string) bool
- func (w *Window) GetCanvas() *Canvas
- func (w *Window) GetInput() *Input
- func (w *Window) GetStyle() *nk.Style
- func (w *Window) Group(title string, flag nk.Flags, builder BuilderFunc)
- func (w *Window) Image(texture *Texture)
- func (w *Window) L(content string)
- func (w *Window) Label(content string, align string)
- func (w *Window) LabelColored(content string, textColor color.RGBA, align string)
- func (w *Window) ListView(view *nk.ListView, id string, flags nk.Flags, rowHeight int, ...)
- func (w *Window) MasterWindow() *MasterWindow
- func (w *Window) Menu(label string, align string, width, height int, builder BuilderFunc)
- func (w *Window) MenuItemLabel(label, align string) bool
- func (w *Window) Menubar(builder BuilderFunc)
- func (w *Window) Popup(title string, popupType nk.PopupType, flag nk.Flags, bounds nk.Rect, ...) bool
- func (w *Window) Progress(current *uint, max uint, modifiable bool)
- func (w *Window) PropertyFloat(label string, min float32, val *float32, max float32, step float32, ...)
- func (w *Window) PropertyInt(label string, min int, val *int32, max int, step int, incPerPixel float32)
- func (w *Window) Push(rect nk.Rect)
- func (w *Window) Radio(label string, active bool) bool
- func (w *Window) Row(height int) *Row
- func (w *Window) SelectableLabel(label string, align string, selected *bool)
- func (w *Window) SelectableSymbolLabel(symbol nk.SymbolType, label, align string, selected *bool)
- func (w *Window) SliderFloat(min float32, val *float32, max float32, step float32)
- func (w *Window) SliderInt(min int32, val *int32, max int32, step int32)
- func (w *Window) Spacing(cols int)
- func (w *Window) Tooltip(label string)
- func (w *Window) Tree(treeType nk.TreeType, title string, initialState nk.CollapseStates, ...)
- func (w *Window) WidgetBounds() nk.Rect
- func (w *Window) Window(title string, bounds nk.Rect, flags nk.Flags, builder BuilderFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditFilterAscii ¶
func EditFilterBinary ¶
func EditFilterDecimal ¶
func EditFilterDefault ¶
func EditFilterFloat ¶
func EditFilterHex ¶
func EditFilterOct ¶
func LoadDefaultFont ¶
func LoadFontFromFile ¶
Types ¶
type BuilderFunc ¶
type BuilderFunc func(w *Window)
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
type ChartSeries ¶
type EditFilter ¶
type ListViewItemBuilder ¶
type MasterWindow ¶
type MasterWindow struct {
// contains filtered or unexported fields
}
Master window
func NewMasterWindow ¶
func NewMasterWindow(title string, width, height int, flags MasterWindowFlag) *MasterWindow
func (*MasterWindow) GetContext ¶
func (w *MasterWindow) GetContext() *nk.Context
func (*MasterWindow) GetDefaultFont ¶
func (w *MasterWindow) GetDefaultFont() *nk.Font
func (*MasterWindow) GetSize ¶
func (w *MasterWindow) GetSize() (width, height int)
func (*MasterWindow) Main ¶
func (w *MasterWindow) Main(builder BuilderFunc)
func (*MasterWindow) SetBgColor ¶
func (w *MasterWindow) SetBgColor(color color.RGBA)
func (*MasterWindow) SetSize ¶
func (w *MasterWindow) SetSize(width, height int)
func (*MasterWindow) SetTitle ¶
func (w *MasterWindow) SetTitle(title string)
type MasterWindowFlag ¶
type MasterWindowFlag int
Master window flag
const ( // MasterWindowFlagNoResize - Create an not resizable window MasterWindowFlagDefault MasterWindowFlag = iota MasterWindowFlagNoResize )
func (MasterWindowFlag) HasFlag ¶
func (this MasterWindowFlag) HasFlag(flag MasterWindowFlag) bool
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
func (*Row) Space ¶
func (r *Row) Space(spaceType nk.LayoutFormat, builder BuilderFunc)
type RowLayoutFunc ¶
type RowLayoutFunc func(r *Row)
Should only called in ListView to define the row layout.
type TextEdit ¶
type TextEdit struct {
// contains filtered or unexported fields
}
func NewTextEdit ¶
func NewTextEdit() *TextEdit
type Texture ¶
type Texture struct {
// contains filtered or unexported fields
}
func RgbaToTexture ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) ButtonImageLabel ¶
func (*Window) ButtonSymbol ¶
func (w *Window) ButtonSymbol(symbol nk.SymbolType) bool
func (*Window) ButtonSymbolLabel ¶
func (w *Window) ButtonSymbolLabel(symbol nk.SymbolType, label, align string) bool
func (*Window) ChartColored ¶
func (*Window) ChartMixed ¶
func (w *Window) ChartMixed(series []ChartSeries)
func (*Window) ClosePopup ¶
func (w *Window) ClosePopup()
func (*Window) ComboLabel ¶
func (w *Window) ComboLabel(label string, dropDownWidth, dropDownHeight float32, itemBuilder BuilderFunc)
func (*Window) ComboSimple ¶
func (*Window) Contextual ¶
func (w *Window) Contextual(flag nk.Flags, width, height int, builder BuilderFunc)
func (*Window) ContextualLabel ¶
func (*Window) LabelColored ¶
func (*Window) ListView ¶
func (w *Window) ListView(view *nk.ListView, id string, flags nk.Flags, rowHeight int, items []interface{}, rowLayoutFunc RowLayoutFunc, builder ListViewItemBuilder)
func (*Window) MasterWindow ¶
func (w *Window) MasterWindow() *MasterWindow
func (*Window) Menu ¶
func (w *Window) Menu(label string, align string, width, height int, builder BuilderFunc)
func (*Window) MenuItemLabel ¶
func (*Window) Menubar ¶
func (w *Window) Menubar(builder BuilderFunc)
func (*Window) PropertyFloat ¶
func (*Window) PropertyInt ¶
func (*Window) SelectableLabel ¶
func (*Window) SelectableSymbolLabel ¶
func (w *Window) SelectableSymbolLabel(symbol nk.SymbolType, label, align string, selected *bool)
func (*Window) SliderFloat ¶
func (*Window) Tree ¶
func (w *Window) Tree(treeType nk.TreeType, title string, initialState nk.CollapseStates, hash string, seed int32, builder BuilderFunc)
func (*Window) WidgetBounds ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.