nkf

package
v0.0.0-...-715945f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2017 License: MIT Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildrenContainer

type ChildrenContainer struct {
	// contains filtered or unexported fields
}

func (*ChildrenContainer) AddChild

func (childrenContainer *ChildrenContainer) AddChild(drawable Drawable)

func (*ChildrenContainer) ChildByIndex

func (childrenContainer *ChildrenContainer) ChildByIndex(index int) Drawable

func (*ChildrenContainer) ClearChildren

func (childrenContainer *ChildrenContainer) ClearChildren()

func (*ChildrenContainer) IndexOfChild

func (childrenContainer *ChildrenContainer) IndexOfChild(drawable Drawable) int

func (*ChildrenContainer) Render

func (childrenContainer *ChildrenContainer) Render(ctx *nk.Context)

type Drawable

type Drawable interface {
	Render(ctx *nk.Context)
}

type Fridge

type Fridge struct {
	// contains filtered or unexported fields
}

func NewFridge

func NewFridge(aa bool, maxVertexBuffer int, maxElementBuffer int) *Fridge

func (*Fridge) AddWindow

func (fridge *Fridge) AddWindow(window *Window)

func (*Fridge) IndexOfWindow

func (fridge *Fridge) IndexOfWindow(window Window) int

func (*Fridge) Render

func (fridge *Fridge) Render(ctx *nk.Context)

func (*Fridge) WindowByIndex

func (fridge *Fridge) WindowByIndex(index int) *Window

type Label

type Label struct {
	// contains filtered or unexported fields
}

func NewLabel

func NewLabel(content string, alignment nk.Flags) *Label

func NewLabelAsChild

func NewLabelAsChild(parent RecursiveDrawable, content string, alignment nk.Flags) *Label

func (*Label) Content

func (label *Label) Content() string

func (*Label) Render

func (label *Label) Render(ctx *nk.Context)

func (*Label) SetContent

func (label *Label) SetContent(content string)

type RecursiveDrawable

type RecursiveDrawable interface {
	Render(ctx *nk.Context)
	AddChild(drawable Drawable)
	ClearChildren()
	ChildByIndex(index int) Drawable
	IndexOfChild(drawable Drawable) int
}

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(x, y, w, h float32, title string, flags nk.Flags) *Window

func (*Window) AddChild

func (window *Window) AddChild(drawable Drawable)

func (*Window) ChildByIndex

func (window *Window) ChildByIndex(index int) Drawable

func (*Window) ClearChildren

func (window *Window) ClearChildren()

func (Window) Identifier

func (window Window) Identifier() string

func (*Window) IndexOfChild

func (window *Window) IndexOfChild(drawable Drawable) int

func (Window) Position

func (window Window) Position() (x float32, y float32)

func (*Window) Render

func (window *Window) Render(ctx *nk.Context)

func (*Window) SetPosition

func (window *Window) SetPosition(x, y float32)

func (*Window) SetSize

func (window *Window) SetSize(w, h float32)

func (Window) Size

func (window Window) Size() (w float32, h float32)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL