Documentation ¶
Index ¶
- Variables
- func CreateForm(form uiinterfaces.Window)
- func MessageBoxError(parent uiinterfaces.Widget, err error)
- func OnMouseButtonCallback(w *glfw.Window, button glfw.MouseButton, action glfw.Action, ...)
- func OnWindowCharCallback(w *glfw.Window, char rune)
- func OnWindowClose(w *glfw.Window)
- func OnWindowCursorPosCallback(w *glfw.Window, xpos float64, ypos float64)
- func OnWindowFocusCallback(w *glfw.Window, focused bool)
- func OnWindowKeyCallback(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, ...)
- func OnWindowScrollCallback(w *glfw.Window, xoff float64, yoff float64)
- func OnWindowSizeCallback(w *glfw.Window, width int, height int)
- func ShowAboutDialog(parent uiinterfaces.Window, title string, text string)
- func ShowMessageBox(parent uiinterfaces.Window, title string, text string)
- func StartMainForm(window uiinterfaces.Window)
- func StartModalForm(parent uiinterfaces.Window, window uiinterfaces.Window)
- func UnInitUI()
- type AboutDialog
- type ColorPickerDialog
- type Form
- func (c *Form) Accept()
- func (c *Form) AcceptButton(ev *uievents.Event)
- func (c *Form) AddWidget(w uiinterfaces.Widget)
- func (c *Form) AppendPopup(w uiinterfaces.Widget)
- func (c *Form) BeginDrag(draggingObject interface{})
- func (c *Form) CentralWidget() uiinterfaces.Widget
- func (c *Form) Close()
- func (c *Form) CloseAfterPopupWidget(w uiinterfaces.Widget)
- func (c *Form) CloseAllPopup()
- func (c *Form) CloseTopPopup()
- func (c *Form) ControlRemoved()
- func (c *Form) CreateModalForm(window uiinterfaces.Window)
- func (c *Form) CurrentDraggingObject() interface{}
- func (c *Form) DialogResult() bool
- func (c *Form) Dispose()
- func (c *Form) Draw() bool
- func (c *Form) FocusedWidget() uiinterfaces.Widget
- func (c *Form) Height() int
- func (c *Form) Id() int
- func (c *Form) Init()
- func (c *Form) IsMainWindow() bool
- func (c *Form) KeyModifiers() uievents.KeyModifiers
- func (c *Form) LoopUI()
- func (c *Form) LoopUI_OpenGL()
- func (c *Form) MainTimer()
- func (c *Form) MakeTimerAndStart(period int64, handler func(timer *uievents.FormTimer)) *uievents.FormTimer
- func (c *Form) Maximize()
- func (c *Form) Menu() uiinterfaces.Menu
- func (c *Form) Modal() bool
- func (c *Form) Move(x, y int)
- func (c *Form) NewTimer(period int64, handler func()) *uievents.FormTimer
- func (c *Form) OnClose() bool
- func (c *Form) OnInit()
- func (c *Form) OpenFileDialog() string
- func (c *Form) Panel() *uicontrols.Panel
- func (c *Form) Parent() uiinterfaces.Window
- func (c *Form) Popup() bool
- func (c *Form) Position() ui.Point
- func (c *Form) ProcessCharInput(ch rune)
- func (c *Form) ProcessClick(x, y int, button uievents.MouseButton)
- func (c *Form) ProcessFocus()
- func (c *Form) ProcessKeyDown(key glfw.Key)
- func (c *Form) ProcessKeyModifiers(shift bool, control bool, alt bool)
- func (c *Form) ProcessKeyUp(key glfw.Key)
- func (c *Form) ProcessMouseDown(button uievents.MouseButton)
- func (c *Form) ProcessMouseMove(x, y int)
- func (c *Form) ProcessMouseUp(button uievents.MouseButton)
- func (c *Form) ProcessMouseWheel(delta int)
- func (c *Form) ProcessReturnDown() bool
- func (c *Form) ProcessReturnUp()
- func (c *Form) ProcessTabDown()
- func (c *Form) ProcessTabUp()
- func (c *Form) ProcessWindowMove(x, y int)
- func (c *Form) ProcessWindowResize(width, height int)
- func (c *Form) Reject()
- func (c *Form) RejectButton(ev *uievents.Event)
- func (c *Form) RemoveTimer(timer *uievents.FormTimer)
- func (c *Form) Resize(width, height int)
- func (c *Form) SelectColorDialog(col color.Color, onColorChanged func(color color.Color)) (bool, color.Color)
- func (c *Form) SetAcceptButton(acceptButton *uicontrols.Button)
- func (c *Form) SetFocusForWidget(w uiinterfaces.Widget)
- func (c *Form) SetIcon(img image.Image)
- func (c *Form) SetId(id int)
- func (c *Form) SetIsMainWindow(isMainWindow bool)
- func (c *Form) SetModal(modal bool)
- func (c *Form) SetMouseCursor(cur ui.MouseCursor)
- func (c *Form) SetParent(window uiinterfaces.Window)
- func (c *Form) SetPopup(popup bool)
- func (c *Form) SetRejectButton(rejectButton *uicontrols.Button)
- func (c *Form) SetShowMaximazed(maximazed bool)
- func (c *Form) SetTheme(theme string)
- func (c *Form) SetTitle(title string)
- func (c *Form) SetWindow(w *glfw.Window)
- func (c *Form) Show()
- func (c *Form) ShowMaximazed() bool
- func (c *Form) ShowTooltip(x, y int, text string)
- func (c *Form) String() string
- func (c *Form) Title() string
- func (c *Form) UpdateLayout()
- func (c *Form) UpdateMenu()
- func (c *Form) UpdateStyle()
- func (c *Form) UpdateWindow(source string)
- func (c *Form) Width() int
- func (c *Form) Window() *glfw.Window
- type MessageBox
Constants ¶
This section is empty.
Variables ¶
View Source
var MainForm uiinterfaces.Window
Functions ¶
func CreateForm ¶
func CreateForm(form uiinterfaces.Window)
func MessageBoxError ¶
func MessageBoxError(parent uiinterfaces.Widget, err error)
func OnMouseButtonCallback ¶
func OnMouseButtonCallback(w *glfw.Window, button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey)
func OnWindowCharCallback ¶
func OnWindowClose ¶
func OnWindowFocusCallback ¶
func OnWindowKeyCallback ¶
func OnWindowScrollCallback ¶
func ShowAboutDialog ¶
func ShowAboutDialog(parent uiinterfaces.Window, title string, text string)
func ShowMessageBox ¶
func ShowMessageBox(parent uiinterfaces.Window, title string, text string)
func StartMainForm ¶
func StartMainForm(window uiinterfaces.Window)
func StartModalForm ¶
func StartModalForm(parent uiinterfaces.Window, window uiinterfaces.Window)
Types ¶
type AboutDialog ¶
type AboutDialog struct { Form // contains filtered or unexported fields }
func (*AboutDialog) OnInit ¶
func (f *AboutDialog) OnInit()
func (*AboutDialog) SetText ¶
func (f *AboutDialog) SetText(text string)
type ColorPickerDialog ¶
type ColorPickerDialog struct { Form // contains filtered or unexported fields }
func (*ColorPickerDialog) OnClose ¶
func (c *ColorPickerDialog) OnClose() bool
func (*ColorPickerDialog) OnInit ¶
func (c *ColorPickerDialog) OnInit()
func (*ColorPickerDialog) SetColor ¶
func (c *ColorPickerDialog) SetColor(color color.Color)
type Form ¶
func (*Form) AcceptButton ¶
func (*Form) AddWidget ¶
func (c *Form) AddWidget(w uiinterfaces.Widget)
func (*Form) AppendPopup ¶
func (c *Form) AppendPopup(w uiinterfaces.Widget)
func (*Form) CentralWidget ¶
func (c *Form) CentralWidget() uiinterfaces.Widget
func (*Form) CloseAfterPopupWidget ¶
func (c *Form) CloseAfterPopupWidget(w uiinterfaces.Widget)
func (*Form) CloseAllPopup ¶
func (c *Form) CloseAllPopup()
func (*Form) CloseTopPopup ¶
func (c *Form) CloseTopPopup()
func (*Form) ControlRemoved ¶
func (c *Form) ControlRemoved()
func (*Form) CreateModalForm ¶
func (c *Form) CreateModalForm(window uiinterfaces.Window)
func (*Form) CurrentDraggingObject ¶
func (c *Form) CurrentDraggingObject() interface{}
func (*Form) DialogResult ¶
func (*Form) FocusedWidget ¶
func (c *Form) FocusedWidget() uiinterfaces.Widget
func (*Form) IsMainWindow ¶
func (*Form) KeyModifiers ¶
func (c *Form) KeyModifiers() uievents.KeyModifiers
func (*Form) LoopUI_OpenGL ¶
func (c *Form) LoopUI_OpenGL()
func (*Form) MakeTimerAndStart ¶ added in v1.0.5
func (*Form) Menu ¶
func (c *Form) Menu() uiinterfaces.Menu
func (*Form) OpenFileDialog ¶
func (*Form) Panel ¶
func (c *Form) Panel() *uicontrols.Panel
func (*Form) Parent ¶
func (c *Form) Parent() uiinterfaces.Window
func (*Form) ProcessCharInput ¶
func (*Form) ProcessClick ¶
func (c *Form) ProcessClick(x, y int, button uievents.MouseButton)
func (*Form) ProcessFocus ¶
func (c *Form) ProcessFocus()
func (*Form) ProcessKeyDown ¶
func (*Form) ProcessKeyModifiers ¶
func (*Form) ProcessKeyUp ¶
func (*Form) ProcessMouseDown ¶
func (c *Form) ProcessMouseDown(button uievents.MouseButton)
func (*Form) ProcessMouseMove ¶
func (*Form) ProcessMouseUp ¶
func (c *Form) ProcessMouseUp(button uievents.MouseButton)
func (*Form) ProcessMouseWheel ¶
func (*Form) ProcessReturnDown ¶
func (*Form) ProcessReturnUp ¶
func (c *Form) ProcessReturnUp()
func (*Form) ProcessTabDown ¶
func (c *Form) ProcessTabDown()
func (*Form) ProcessTabUp ¶
func (c *Form) ProcessTabUp()
func (*Form) ProcessWindowMove ¶
func (*Form) ProcessWindowResize ¶
func (*Form) RejectButton ¶
func (*Form) RemoveTimer ¶
func (*Form) SelectColorDialog ¶
func (*Form) SetAcceptButton ¶
func (c *Form) SetAcceptButton(acceptButton *uicontrols.Button)
func (*Form) SetFocusForWidget ¶
func (c *Form) SetFocusForWidget(w uiinterfaces.Widget)
func (*Form) SetIsMainWindow ¶
func (*Form) SetMouseCursor ¶
func (c *Form) SetMouseCursor(cur ui.MouseCursor)
func (*Form) SetParent ¶
func (c *Form) SetParent(window uiinterfaces.Window)
func (*Form) SetRejectButton ¶
func (c *Form) SetRejectButton(rejectButton *uicontrols.Button)
func (*Form) SetShowMaximazed ¶
func (*Form) ShowMaximazed ¶
func (*Form) ShowTooltip ¶
func (*Form) UpdateLayout ¶
func (c *Form) UpdateLayout()
func (*Form) UpdateMenu ¶
func (c *Form) UpdateMenu()
func (*Form) UpdateStyle ¶
func (c *Form) UpdateStyle()
func (*Form) UpdateWindow ¶
type MessageBox ¶
type MessageBox struct { Form // contains filtered or unexported fields }
func (*MessageBox) OnInit ¶
func (f *MessageBox) OnInit()
func (*MessageBox) SetText ¶
func (f *MessageBox) SetText(text string)
Click to show internal directories.
Click to hide internal directories.