style

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pop

func Pop(nstyles, ncolors int)

func Push

func Push(attributes map[string]string) (styles, colors int)

func SetupWindowPos

func SetupWindowPos(ctx core.DrawCtx, attributes map[string]string, jsvm *goja.Runtime)

SetupWindowPos parses position attributes

Types

type Context

type Context struct {
	Size imgui.Vec2
}

func (Context) SizeZero

func (c Context) SizeZero() bool

type Stack

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

Stack controls the positional variables stack like width, height

func (*Stack) MaxWidth

func (s *Stack) MaxWidth() (val float32, ok bool)

func (*Stack) MaxWidthD

func (s *Stack) MaxWidthD(defaultv float32) float32

func (*Stack) Pop

func (s *Stack) Pop()

func (*Stack) PushMaxWidth

func (s *Stack) PushMaxWidth(v float32)

func (*Stack) PushWidth

func (s *Stack) PushWidth(v float32)

func (*Stack) Width

func (s *Stack) Width() (val float32, ok bool)

Jump to

Keyboard shortcuts

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