NewFontButton creates a new FontButton.
()
| 19 | |
| 20 | // NewFontButton creates a new FontButton. |
| 21 | func 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. |
| 33 | func (b *FontButton) Font() *FontDescriptor { |
nothing calls this directly
no test coverage detected