uikit

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

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
	SplitPreserveRatio        = splitview.PreserveRatio
	SplitPreserveLeadingSize  = splitview.PreserveLeadingSize
	SplitPreserveTrailingSize = splitview.PreserveTrailingSize
	SplitChangeProgrammatic   = splitview.ChangeProgrammatic
	SplitChangeDrag           = splitview.ChangeDrag
	SplitChangeResize         = splitview.ChangeResize
)

Variables

This section is empty.

Functions

func Alert

func Alert(title, message string)

func Choice

func Choice(message string, options ...string) int

func Init

func Init(opts ...InitOption)

Init 初始化UIKit 可以选择设置语言偏好

func Message

func Message(title, message string)

Types

type ButtonType

type ButtonType = button.ButtonType

type InitOption

type InitOption func()

InitOption 初始化选项类型

func WithChinese

func WithChinese() InitOption

WithChinese 设置使用中文

func WithEnglish

func WithEnglish() InitOption

WithEnglish 设置使用英语

func WithLanguage

func WithLanguage(l lang.Language) InitOption

WithLanguage 设置语言偏好 l: 语言类型,支持 lang.LangEnglish 和 lang.LangChinese

type Input

type Input = input.Input

func NewInput

func NewInput(x, y, width, height int, placeholder string) *Input

func NewInputWithType

func NewInputWithType(x, y, width, height int, placeholder string, inputType InputType) *Input

type InputType

type InputType = input.InputType

type KeyEvent added in v0.0.24

type KeyEvent = textview.KeyEvent
type MenuItem = menubar.MenuItem

type SplitGeometry added in v0.0.25

type SplitGeometry = splitview.SplitGeometry

type SplitOrientation

type SplitOrientation = splitview.Orientation

type SplitPositionChange added in v0.0.25

type SplitPositionChange = splitview.PositionChange

type SplitPositionChangeReason added in v0.0.25

type SplitPositionChangeReason = splitview.PositionChangeReason

type SplitPositionPolicy added in v0.0.25

type SplitPositionPolicy = splitview.PositionPolicy

type StackAxis

type StackAxis = stackview.Axis

type TableViewDataSource

type TableViewDataSource = tableview.DataSource

type TableViewDelegate

type TableViewDelegate = tableview.Delegate

type TreeDataSource

type TreeDataSource = treeview.TreeDataSource

type UIButton

type UIButton = button.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

type UIGroup = group.UIGroup

func NewUIGroup

func NewUIGroup(r *foundation.Rect) *UIGroup

type UILabel

type UILabel = label.UILabel

func NewUILabel

func NewUILabel(r *foundation.Rect, text string) *UILabel

type UIMenuBar

type UIMenuBar = menubar.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

type UISlider = slider.UISlider

func NewUISlider

func NewUISlider(r *foundation.Rect) *UISlider

type UISplitView

type UISplitView = splitview.SplitView

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

type UITabView = tabview.UITabView

func NewUITabView

func NewUITabView(r *foundation.Rect) *UITabView

type UITableView

type UITableView = tableview.TableView

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 UIView

type UIView = view.UIView

type UIWindow

type UIWindow = window.UIWindow

func NewUIWindow

func NewUIWindow(width, height int, title string) *UIWindow

func NewWindowWithRect

func NewWindowWithRect(rect *foundation.Rect, title string) *UIWindow

type Viewable

type Viewable = view.Viewable

Jump to

Keyboard shortcuts

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