MCPcopy Create free account
hub / github.com/andlabs/ui / NewFontButton

Function NewFontButton

fontbutton.go:21–30  ·  view source on GitHub ↗

NewFontButton creates a new FontButton.

()

Source from the content-addressed store, hash-verified

19
20// NewFontButton creates a new FontButton.
21func NewFontButton() *FontButton {
22 b := new(FontButton)
23
24 b.b = C.uiNewFontButton()
25
26 C.pkguiFontButtonOnChanged(b.b)
27
28 b.ControlBase = NewControlBase(b, uintptr(unsafe.Pointer(b.b)))
29 return b
30}
31
32// Font returns the font currently selected in the FontButton.
33func (b *FontButton) Font() *FontDescriptor {

Callers

nothing calls this directly

Calls 1

NewControlBaseFunction · 0.85

Tested by

no test coverage detected