uiforms

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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 OnWindowCharCallback(w *glfw.Window, char rune)

func OnWindowClose

func OnWindowClose(w *glfw.Window)

func OnWindowCursorPosCallback

func OnWindowCursorPosCallback(w *glfw.Window, xpos float64, ypos float64)

func OnWindowFocusCallback

func OnWindowFocusCallback(w *glfw.Window, focused bool)

func OnWindowKeyCallback

func OnWindowKeyCallback(w *glfw.Window, key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey)

func OnWindowScrollCallback

func OnWindowScrollCallback(w *glfw.Window, xoff float64, yoff float64)

func OnWindowSizeCallback

func OnWindowSizeCallback(w *glfw.Window, width int, height int)

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)

func UnInitUI

func UnInitUI()

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

type Form struct {
	stats.Obj
	// contains filtered or unexported fields
}

func (*Form) Accept

func (c *Form) Accept()

func (*Form) AcceptButton

func (c *Form) AcceptButton(ev *uievents.Event)

func (*Form) AddWidget

func (c *Form) AddWidget(w uiinterfaces.Widget)

func (*Form) AppendPopup

func (c *Form) AppendPopup(w uiinterfaces.Widget)

func (*Form) BeginDrag

func (c *Form) BeginDrag(draggingObject interface{})

func (*Form) CentralWidget

func (c *Form) CentralWidget() uiinterfaces.Widget

func (*Form) Close

func (c *Form) Close()

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 (c *Form) DialogResult() bool

func (*Form) Dispose

func (c *Form) Dispose()

func (*Form) Draw

func (c *Form) Draw() bool

func (*Form) FocusedWidget

func (c *Form) FocusedWidget() uiinterfaces.Widget

func (*Form) Height

func (c *Form) Height() int

func (*Form) Id

func (c *Form) Id() int

func (*Form) Init

func (c *Form) Init()

func (*Form) IsMainWindow

func (c *Form) IsMainWindow() bool

func (*Form) KeyModifiers

func (c *Form) KeyModifiers() uievents.KeyModifiers

func (*Form) LoopUI

func (c *Form) LoopUI()

func (*Form) LoopUI_OpenGL

func (c *Form) LoopUI_OpenGL()

func (*Form) MainTimer

func (c *Form) MainTimer()

func (*Form) MakeTimerAndStart added in v1.0.5

func (c *Form) MakeTimerAndStart(period int64, handler func(timer *uievents.FormTimer)) *uievents.FormTimer

func (*Form) Maximize

func (c *Form) Maximize()

func (*Form) Menu

func (c *Form) Menu() uiinterfaces.Menu

func (*Form) Modal

func (c *Form) Modal() bool

func (*Form) Move

func (c *Form) Move(x, y int)

func (*Form) NewTimer

func (c *Form) NewTimer(period int64, handler func()) *uievents.FormTimer

func (*Form) OnClose

func (c *Form) OnClose() bool

func (*Form) OnInit

func (c *Form) OnInit()

func (*Form) OpenFileDialog

func (c *Form) OpenFileDialog() string

func (*Form) Panel

func (c *Form) Panel() *uicontrols.Panel

func (*Form) Parent

func (c *Form) Parent() uiinterfaces.Window

func (*Form) Popup

func (c *Form) Popup() bool

func (*Form) Position

func (c *Form) Position() ui.Point

func (*Form) ProcessCharInput

func (c *Form) ProcessCharInput(ch rune)

func (*Form) ProcessClick

func (c *Form) ProcessClick(x, y int, button uievents.MouseButton)

func (*Form) ProcessFocus

func (c *Form) ProcessFocus()

func (*Form) ProcessKeyDown

func (c *Form) ProcessKeyDown(key glfw.Key)

func (*Form) ProcessKeyModifiers

func (c *Form) ProcessKeyModifiers(shift bool, control bool, alt bool)

func (*Form) ProcessKeyUp

func (c *Form) ProcessKeyUp(key glfw.Key)

func (*Form) ProcessMouseDown

func (c *Form) ProcessMouseDown(button uievents.MouseButton)

func (*Form) ProcessMouseMove

func (c *Form) ProcessMouseMove(x, y int)

func (*Form) ProcessMouseUp

func (c *Form) ProcessMouseUp(button uievents.MouseButton)

func (*Form) ProcessMouseWheel

func (c *Form) ProcessMouseWheel(delta int)

func (*Form) ProcessReturnDown

func (c *Form) ProcessReturnDown() bool

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 (c *Form) ProcessWindowMove(x, y int)

func (*Form) ProcessWindowResize

func (c *Form) ProcessWindowResize(width, height int)

func (*Form) Reject

func (c *Form) Reject()

func (*Form) RejectButton

func (c *Form) RejectButton(ev *uievents.Event)

func (*Form) RemoveTimer

func (c *Form) RemoveTimer(timer *uievents.FormTimer)

func (*Form) Resize

func (c *Form) Resize(width, height int)

func (*Form) SelectColorDialog

func (c *Form) SelectColorDialog(col color.Color, onColorChanged func(color color.Color)) (bool, color.Color)

func (*Form) SetAcceptButton

func (c *Form) SetAcceptButton(acceptButton *uicontrols.Button)

func (*Form) SetFocusForWidget

func (c *Form) SetFocusForWidget(w uiinterfaces.Widget)

func (*Form) SetIcon

func (c *Form) SetIcon(img image.Image)

func (*Form) SetId

func (c *Form) SetId(id int)

func (*Form) SetIsMainWindow

func (c *Form) SetIsMainWindow(isMainWindow bool)

func (*Form) SetModal

func (c *Form) SetModal(modal bool)

func (*Form) SetMouseCursor

func (c *Form) SetMouseCursor(cur ui.MouseCursor)

func (*Form) SetParent

func (c *Form) SetParent(window uiinterfaces.Window)

func (*Form) SetPopup

func (c *Form) SetPopup(popup bool)

func (*Form) SetRejectButton

func (c *Form) SetRejectButton(rejectButton *uicontrols.Button)

func (*Form) SetShowMaximazed

func (c *Form) SetShowMaximazed(maximazed bool)

func (*Form) SetTheme

func (c *Form) SetTheme(theme string)

func (*Form) SetTitle

func (c *Form) SetTitle(title string)

func (*Form) SetWindow

func (c *Form) SetWindow(w *glfw.Window)

func (*Form) Show

func (c *Form) Show()

func (*Form) ShowMaximazed

func (c *Form) ShowMaximazed() bool

func (*Form) ShowTooltip

func (c *Form) ShowTooltip(x, y int, text string)

func (*Form) String

func (c *Form) String() string

func (*Form) Title

func (c *Form) Title() string

func (*Form) UpdateLayout

func (c *Form) UpdateLayout()

func (*Form) UpdateMenu

func (c *Form) UpdateMenu()

func (*Form) UpdateStyle

func (c *Form) UpdateStyle()

func (*Form) UpdateWindow

func (c *Form) UpdateWindow(source string)

func (*Form) Width

func (c *Form) Width() int

func (*Form) Window

func (c *Form) Window() *glfw.Window

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)

Jump to

Keyboard shortcuts

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