Versions in this module Expand all Collapse all v1 v1.0.3 Feb 14, 2023 v1.0.2 Feb 14, 2023 Changes in this version type MasterWindow + Closed chan bool v1.0.1 Feb 14, 2023 Changes in this version type MasterWindow + func (w *MasterWindow) ReDraw() v1.0.0 Feb 14, 2023 Changes in this version + 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 func(w *Window) + type Canvas struct + func (c *Canvas) FillCircle(rect nk.Rect, color color.RGBA) + func (c *Canvas) FillPolygon(points []float32, color color.RGBA) + func (c *Canvas) FillRect(rect nk.Rect, rounding float32, color color.RGBA) + func (c *Canvas) FillTriangle(p1, p2, p3 image.Point, color color.RGBA) + type ChartSeries struct + ActiveColor nk.Color + ChartType nk.ChartType + Color nk.Color + Data []float32 + Max float32 + Min float32 + type EditFilter func(rune) bool + type Input struct + func (i *Input) IsMouseDown(buttons nk.Buttons) bool + func (i *Input) IsMouseHoveringRect(rect nk.Rect) bool + func (i *Input) IsMousePrevHoveringRect(rect nk.Rect) bool + func (i *Input) Mouse() *nk.Mouse + type ListViewItemBuilder func(w *Window, i int, item interface{}) + type MasterWindow struct + func NewMasterWindow(title string, width, height int, flags MasterWindowFlag) *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 int + const MasterWindowFlagDefault + const MasterWindowFlagNoResize + func (this MasterWindowFlag) HasFlag(flag MasterWindowFlag) bool + type Row struct + func (r *Row) Dynamic(col int) + func (r *Row) Ratio(ratio ...float32) + func (r *Row) Space(spaceType nk.LayoutFormat, builder BuilderFunc) + func (r *Row) Static(width ...int) + type RowLayoutFunc func(r *Row) + type TextEdit struct + func NewTextEdit() *TextEdit + func (t *TextEdit) Edit(w *Window, flag nk.Flags, filter EditFilter) + func (t *TextEdit) GetString() string + type Texture struct + func RgbaToTexture(rgba *image.RGBA) *Texture + type Window struct + 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)