customwidget

package module
v0.0.0-...-01d0d9b Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 4 Imported by: 1

README

customwidget

Custom widgets for giu.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHiDPIFont

func WithHiDPIFont(hDPIFont imgui.Font, lDPIFont imgui.Font, layout g.Layout) g.Layout

Types

type ImageButtonWidget

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

func Image

func Image(texture *g.Texture) *ImageButtonWidget

func ImageButton

func ImageButton(texture *g.Texture) *ImageButtonWidget

func (*ImageButtonWidget) Build

func (ib *ImageButtonWidget) Build()

func (*ImageButtonWidget) OnClick

func (ib *ImageButtonWidget) OnClick(onClick func()) *ImageButtonWidget

func (*ImageButtonWidget) Palette

func (ib *ImageButtonWidget) Palette(palette *theme.Palette) *ImageButtonWidget

func (*ImageButtonWidget) Size

func (ib *ImageButtonWidget) Size(width float32, height float32) *ImageButtonWidget

type ImageWidget

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

func (*ImageWidget) Build

func (i *ImageWidget) Build()

func (*ImageWidget) Size

func (i *ImageWidget) Size(width float32, height float32) *ImageWidget

type RadioButtonWidget

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

func RadioButton

func RadioButton(items []string, selected *int32) *RadioButtonWidget

func (*RadioButtonWidget) Build

func (rb *RadioButtonWidget) Build()

func (*RadioButtonWidget) OnChange

func (rb *RadioButtonWidget) OnChange(onChange func()) *RadioButtonWidget

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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