// Hide hides the window. func (win *Window) Hide() { gui(func() { C.windowHide(win.addr) }) }
func (w *window) Hide() { C.windowHide(w.id) }
// Hide hides the window. func (win *Window) Hide() { RunMain(func() { C.windowHide(win.addr) }) }
// Button, Checkbox, Combobox, LineEdit, Label, Listbox func applyStandardControlFont(id C.id) { C.applyStandardControlFont(id) } var classTypes = [nctypes]*classData{ c_window: &classData{ make: func(parentWindow C.id, alternate bool, s *sysData) C.id { return C.makeWindow(appDelegate) }, show: func(what C.id) { C.windowShow(what) }, hide: func(what C.id) { C.windowHide(what) }, settext: func(what C.id, text C.id) { C.windowSetTitle(what, text) }, text: func(what C.id, alternate bool) C.id { return C.windowTitle(what) }, }, c_button: &classData{ make: func(parentWindow C.id, alternate bool, s *sysData) C.id { button := C.makeButton() C.buttonSetTargetAction(button, appDelegate) applyStandardControlFont(button) addControl(parentWindow, button) return button