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(state interface{}), state interface{})
- func (_this *BaseUI) IsEnable() bool
- func (_this *BaseUI) IsInvoke() 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) 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 ¶
func (*BaseContainer) AddChild ¶
func (_this *BaseContainer) AddChild(child Child)
func (*BaseContainer) Init ¶
func (_this *BaseContainer) Init(container Container) *BaseContainer
func (*BaseContainer) RemoveChild ¶
func (_this *BaseContainer) RemoveChild(child Child)
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 }
func (*BaseUI) CreateGraphics ¶
func (*BaseUI) GetCursor ¶
func (_this *BaseUI) GetCursor() fm.CursorType
func (*BaseUI) SetBgColor ¶
func (*BaseUI) SetCursor ¶
func (_this *BaseUI) SetCursor(cursor fm.CursorType)
func (*BaseUI) SetLocation ¶
type Child ¶
type Child interface { GUI GetAnchor() fm.AnchorStyle SetAnchor(style fm.AnchorStyle) // contains filtered or unexported methods }
type Control ¶
type Control struct { BaseUI // contains filtered or unexported fields }
func (*Control) GetAnchor ¶
func (_this *Control) GetAnchor() fm.AnchorStyle
func (*Control) SetAnchor ¶
func (_this *Control) SetAnchor(style fm.AnchorStyle)
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 }
func (*Form) GetBorderStyle ¶
func (_this *Form) GetBorderStyle() fm.FormBorder
func (*Form) NoneBorderResize ¶
func (_this *Form) NoneBorderResize()
func (*Form) SetBorderStyle ¶
func (_this *Form) SetBorderStyle(style fm.FormBorder)
func (*Form) SetMaximizeBox ¶
func (*Form) SetMinimizeBox ¶
func (*Form) SetStartPosition ¶
func (*Form) SetTopMost ¶
func (*Form) ShowDialog ¶
func (_this *Form) ShowDialog()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.