Documentation
¶
Index ¶
- Variables
- func Run(form MainForm)
- type BaseContainer
- type BaseUI
- func (_this *BaseUI) CreateGraphics() fm.Graphics
- func (_this *BaseUI) Enable(enable bool)
- func (_this *BaseUI) GetBound() fm.Bound
- func (_this *BaseUI) GetCursor() fm.CursorType
- func (_this *BaseUI) GetHandle() uintptr
- func (_this *BaseUI) GetOwner() GUI
- func (_this *BaseUI) GetParent() GUI
- func (_this *BaseUI) Hide()
- func (_this *BaseUI) Init(instance GUI, impl br.Window) *BaseUI
- func (_this *BaseUI) Invoke(fn func())
- func (_this *BaseUI) InvokeEx(fn func(state interface{}), state interface{})
- func (_this *BaseUI) IsEnable() bool
- func (_this *BaseUI) SetBgColor(color int32)
- func (_this *BaseUI) SetCursor(cursor fm.CursorType)
- func (_this *BaseUI) SetLocation(x, y int)
- func (_this *BaseUI) SetSize(width, height int)
- func (_this *BaseUI) Show()
- type Child
- type Container
- type Control
- type Form
- func (_this *Form) Close()
- func (_this *Form) GetBorderStyle() fm.FormBorder
- func (_this *Form) GetState() fm.FormState
- func (_this *Form) Init() *Form
- func (_this *Form) InitEx(param br.FormParam) *Form
- func (_this *Form) NoneBorderResize()
- func (_this *Form) SetBorderStyle(style fm.FormBorder)
- func (_this *Form) SetIcon(file string)
- func (_this *Form) SetIconData(iconData []byte)
- func (_this *Form) SetMaximizeBox(isShow bool)
- func (_this *Form) SetMinimizeBox(isShow bool)
- func (_this *Form) SetStartPosition(pos fm.FormStart)
- func (_this *Form) SetState(state fm.FormState)
- func (_this *Form) SetTitle(title string)
- func (_this *Form) SetTopMost(isTop bool)
- func (_this *Form) ShowDialog()
- type GUI
- type MainForm
Constants ¶
This section is empty.
Variables ¶
View Source
var App bridge.Provider
Functions ¶
Types ¶
type BaseContainer ¶
BaseContainer 容器基类,管理子控件的布局和锚定
func (*BaseContainer) Init ¶
func (_this *BaseContainer) Init(container Container) *BaseContainer
初始化容器
type BaseUI ¶
type BaseUI struct {
EvLoad map[string]func(s GUI)
OnLoad func()
EvDestroy map[string]func(s GUI)
OnDestroy func()
EvKeyDown map[string]func(s GUI, e *fm.KeyEvArgs)
OnKeyDown func(e *fm.KeyEvArgs)
EvKeyUp map[string]func(s GUI, e *fm.KeyEvArgs)
OnKeyUp func(e *fm.KeyEvArgs)
EvKeyPress map[string]func(s GUI, e *fm.KeyPressEvArgs)
OnKeyPress func(e *fm.KeyPressEvArgs)
EvShow map[string]func(s GUI)
OnShow func()
EvResize map[string]func(s GUI, e fm.Rect)
OnResize func(e fm.Rect)
EvMove map[string]func(s GUI, e fm.Point)
OnMove func(e fm.Point)
EvMouseMove map[string]func(s GUI, e *fm.MouseEvArgs)
OnMouseMove func(e *fm.MouseEvArgs)
EvMouseDown map[string]func(s GUI, e *fm.MouseEvArgs)
OnMouseDown func(e *fm.MouseEvArgs)
EvMouseUp map[string]func(s GUI, e *fm.MouseEvArgs)
OnMouseUp func(e *fm.MouseEvArgs)
EvMouseWheel map[string]func(s GUI, e *fm.MouseEvArgs)
OnMouseWheel func(e *fm.MouseEvArgs)
EvMouseClick map[string]func(s GUI, e *fm.MouseEvArgs)
OnMouseClick func(e *fm.MouseEvArgs)
EvPaint map[string]func(s GUI, e fm.PaintEvArgs)
OnPaint func(e fm.PaintEvArgs)
EvFocus map[string]func(s GUI)
OnFocus func()
EvLostFocus map[string]func(s GUI)
OnLostFocus func()
OnSetCursor func() bool
OnImeStartComposition func() bool
// contains filtered or unexported fields
}
BaseUI UI 控件基类,提供事件处理和基本功能
type Child ¶
type Child interface {
GUI
GetAnchor() fm.AnchorStyle
SetAnchor(style fm.AnchorStyle)
// contains filtered or unexported methods
}
Child 子控件接口
type Container ¶
type Container interface {
GUI
// contains filtered or unexported methods
}
Container 容器接口
type Control ¶
type Control struct {
BaseUI
// contains filtered or unexported fields
}
Control 控件基类
type Form ¶
type Form struct {
BaseUI
BaseContainer
EvState map[string]func(s GUI, state fm.FormState)
OnState func(state fm.FormState)
// contains filtered or unexported fields
}
Form 窗体类
Source Files
¶
Click to show internal directories.
Click to hide internal directories.