label

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelStyle

type LabelStyle struct {
	Font      fltk_bridge.Font
	FontSize  int
	TextColor uint
	Align     fltk_bridge.Align
	BgColor   uint
	BoxType   fltk_bridge.BoxType
}

func DefaultLabelStyle

func DefaultLabelStyle() LabelStyle

type UILabel

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

func NewUILabel

func NewUILabel(r *foundation.Rect, text string) *UILabel

func NewUILabelWithOptions

func NewUILabelWithOptions(r *foundation.Rect, text string, style LabelStyle) *UILabel

func (*UILabel) ApplyStyle

func (l *UILabel) ApplyStyle(style LabelStyle)

func (*UILabel) Raw

func (l *UILabel) Raw() *fltk_bridge.Box

func (*UILabel) SetAlignment

func (l *UILabel) SetAlignment(align fltk_bridge.Align)

func (*UILabel) SetBackgroundColor

func (l *UILabel) SetBackgroundColor(rgb uint)

func (*UILabel) SetFont

func (l *UILabel) SetFont(font fltk_bridge.Font)

func (*UILabel) SetFontSize

func (l *UILabel) SetFontSize(px int)

func (*UILabel) SetFrame

func (l *UILabel) SetFrame(boxType fltk_bridge.BoxType)

func (*UILabel) SetText

func (l *UILabel) SetText(s string)

func (*UILabel) SetTextColor

func (l *UILabel) SetTextColor(c uint)

func (*UILabel) Style

func (l *UILabel) Style() LabelStyle

func (*UILabel) View

func (l *UILabel) View() *view.UIView

Jump to

Keyboard shortcuts

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