nkhelper

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FontHeight

func FontHeight(p *nk.UserFont) float32

func GetPanelOffset

func GetPanelOffset(p *nk.Panel) nk.Vec2

func GetStyleButtonBorderPtr

func GetStyleButtonBorderPtr(ctx *nk.Context) *float32

func GetStyleButtonNormalPtr

func GetStyleButtonNormalPtr(ctx *nk.Context) *nk.StyleItem

func GetStyleButtonPaddingPtr

func GetStyleButtonPaddingPtr(ctx *nk.Context) *nk.Vec2

func GetStyleButtonTextNormalColorPtr

func GetStyleButtonTextNormalColorPtr(ctx *nk.Context) *nk.Color

func GetStyleTextColorPtr

func GetStyleTextColorPtr(ctx *nk.Context) *nk.Color

func GetWindowBounds

func GetWindowBounds(w *nk.Window) nk.Rect

func GetWindowScrollBarOffset

func GetWindowScrollBarOffset(w *nk.Window) nk.Vec2

func SetJapaneseGlyphRanges

func SetJapaneseGlyphRanges(fc *nk.FontConfig)

func SetPanelOffset

func SetPanelOffset(p *nk.Panel, offset nk.Vec2)

func SetWindowScrollBarOffset

func SetWindowScrollBarOffset(w *nk.Window, offset nk.Vec2)

func TextWidth

func TextWidth(p *nk.UserFont, s string) float32

Types

type Texture

type Texture struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewTexture

func NewTexture(img image.Image) (*Texture, error)

func (*Texture) Close

func (t *Texture) Close() error

func (*Texture) Image

func (t *Texture) Image() nk.Image

func (*Texture) SubImage

func (t *Texture) SubImage(rect nk.Rect) nk.Image

func (*Texture) Update

func (t *Texture) Update(img image.Image) error

Jump to

Keyboard shortcuts

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