Documentation
¶
Index ¶
- Constants
- func Alert(title, message string)
- func Choice(message string, options ...string) int
- func Init(opts ...InitOption)
- func Message(title, message string)
- type ButtonType
- type InitOption
- type Input
- type InputType
- type MenuItem
- type SplitOrientation
- type StackAxis
- type TableViewDataSource
- type TableViewDelegate
- type TreeDataSource
- type UIButton
- type UIContextMenu
- type UIGroup
- type UILabel
- type UIMenuBar
- type UIProgressView
- type UIScrollView
- type UISlider
- type UISplitView
- type UIStackView
- type UISwitch
- type UITabView
- type UITableView
- type UITableViewCell
- type UITextField
- type UITextView
- type UITreeView
- type UIView
- type UIWindow
- type Viewable
Constants ¶
View Source
const ( SystemButton = button.SystemButton CheckboxButton = button.CheckboxButton RadioButton = button.RadioButton ToggleButton = button.ToggleButton TextInput = input.TextInput IntInput = input.IntInput FloatInput = input.FloatInput SecretInput = input.SecretInput AxisVertical = stackview.AxisVertical AxisHorizontal = stackview.AxisHorizontal SplitHorizontal = splitview.Horizontal SplitVertical = splitview.Vertical )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ButtonType ¶
type ButtonType = button.ButtonType
type InitOption ¶
type InitOption func()
InitOption 初始化选项类型
func WithLanguage ¶
func WithLanguage(l lang.Language) InitOption
WithLanguage 设置语言偏好 l: 语言类型,支持 lang.LangEnglish 和 lang.LangChinese
type SplitOrientation ¶
type SplitOrientation = splitview.Orientation
type TableViewDataSource ¶
type TableViewDataSource = tableview.DataSource
type TableViewDelegate ¶
type TreeDataSource ¶
type TreeDataSource = treeview.TreeDataSource
type UIButton ¶
func NewUIButton ¶
func NewUIButton(r *foundation.Rect, title string) *UIButton
func NewUIButtonWithType ¶
func NewUIButtonWithType(r *foundation.Rect, title string, buttonType ButtonType) *UIButton
type UIContextMenu ¶
type UIContextMenu = menubar.UIContextMenu
func NewUIContextMenu ¶
func NewUIContextMenu(r *foundation.Rect) *UIContextMenu
type UIGroup ¶
func NewUIGroup ¶
func NewUIGroup(r *foundation.Rect) *UIGroup
type UILabel ¶
func NewUILabel ¶
func NewUILabel(r *foundation.Rect, text string) *UILabel
type UIMenuBar ¶
func NewUIMenuBar ¶
func NewUIMenuBar(r *foundation.Rect) *UIMenuBar
type UIProgressView ¶
type UIProgressView = progress.UIProgressView
func NewUIProgressView ¶
func NewUIProgressView(r *foundation.Rect) *UIProgressView
type UIScrollView ¶
type UIScrollView = scrollview.UIScrollView
func NewUIScrollView ¶
func NewUIScrollView(r *foundation.Rect) *UIScrollView
type UISlider ¶
func NewUISlider ¶
func NewUISlider(r *foundation.Rect) *UISlider
type UISplitView ¶
func NewUISplitView ¶
func NewUISplitView(x, y, width, height int, orientation SplitOrientation) *UISplitView
type UIStackView ¶
type UIStackView = stackview.UIStackView
func NewUIStackView ¶
func NewUIStackView(r *foundation.Rect, axis StackAxis) *UIStackView
type UISwitch ¶
type UISwitch = switchview.UISwitch
func NewUISwitch ¶
func NewUISwitch(r *foundation.Rect) *UISwitch
type UITabView ¶
func NewUITabView ¶
func NewUITabView(r *foundation.Rect) *UITabView
type UITableView ¶
func NewUITableView ¶
func NewUITableView(x, y, width, height int) (*UITableView, error)
type UITableViewCell ¶
type UITableViewCell = tableview.TableViewCell
func NewUITableViewCell ¶
func NewUITableViewCell(reuseID string) *UITableViewCell
type UITextField ¶
type UITextField = textfield.UITextField
func NewUITextField ¶
func NewUITextField(x, y, width, height int, placeholder string) *UITextField
type UITextView ¶
type UITextView = textview.UITextView
func NewUITextView ¶
func NewUITextView(r *foundation.Rect) *UITextView
type UITreeView ¶
type UITreeView = treeview.UITreeView
func NewUITreeView ¶
func NewUITreeView(r *foundation.Rect) *UITreeView
type UIWindow ¶
func NewUIWindow ¶
func NewWindowWithRect ¶
func NewWindowWithRect(rect *foundation.Rect, title string) *UIWindow
Click to show internal directories.
Click to hide internal directories.