Documentation ¶
Index ¶
- type Control
- type Controls
- type Form
- type FormActiveProc
- type FormParam
- type FormStateProc
- type MsgBox
- type Provider
- type Window
- type WindowCreateProc
- type WindowDestroyProc
- type WindowFocusProc
- type WindowImeStartCompositionProc
- type WindowKeyDownProc
- type WindowKeyPressProc
- type WindowKeyUpProc
- type WindowLostFocusProc
- type WindowMouseClickProc
- type WindowMouseDownProc
- type WindowMouseMoveProc
- type WindowMouseUpProc
- type WindowMouseWheelProc
- type WindowMoveProc
- type WindowPaintProc
- type WindowResizeProc
- type WindowSetCursorProc
- type WindowShowProc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Form ¶
type Form interface { Controls Close() ShowDialog() SetTitle(title string) SetBorderStyle(style fm.FormBorder) ShowToMax() ShowToMin() /* 允许在无边框模式下调整窗体大小 */ NoneBorderResize() Active() SetMaximizeBox(isShow bool) SetMinimizeBox(isShow bool) SetIcon(iconFile string) SetTopMost(isTop bool) SetOnState(proc FormStateProc) FormStateProc SetOnActive(proc FormActiveProc) FormActiveProc }
type FormActiveProc ¶
type FormActiveProc func()
type FormStateProc ¶
type MsgBox ¶
type MsgBox interface {
Show(param fm.MsgBoxParam) fm.MsgBoxResult
}
type Window ¶
type Window interface { GetHandle() uintptr SetOnCreate(proc WindowCreateProc) WindowCreateProc SetOnDestroy(proc WindowDestroyProc) WindowDestroyProc SetOnResize(proc WindowResizeProc) WindowResizeProc SetOnMove(proc WindowMoveProc) WindowMoveProc SetOnMouseMove(proc WindowMouseMoveProc) WindowMouseMoveProc SetOnMouseDown(proc WindowMouseDownProc) WindowMouseDownProc SetOnMouseUp(proc WindowMouseUpProc) WindowMouseUpProc SetOnMouseWheel(proc WindowMouseWheelProc) WindowMouseWheelProc SetOnMouseClick(proc WindowMouseClickProc) WindowMouseClickProc SetOnPaint(proc WindowPaintProc) WindowPaintProc SetOnKeyDown(proc WindowKeyDownProc) WindowKeyDownProc SetOnKeyUp(proc WindowKeyUpProc) WindowKeyUpProc SetOnKeyPress(proc WindowKeyPressProc) WindowKeyPressProc SetOnCursor(proc WindowSetCursorProc) WindowSetCursorProc SetOnImeStartComposition(proc WindowImeStartCompositionProc) WindowImeStartCompositionProc SetOnFocus(proc WindowFocusProc) WindowFocusProc SetOnLostFocus(proc WindowLostFocusProc) WindowLostFocusProc SetOnShow(proc WindowShowProc) WindowShowProc GetProvider() Provider Invoke(fn func(state interface{}), state interface{}) IsInvoke() bool SetSize(w int, h int) SetLocation(x int, y int) GetBound() fm.Bound Show() Hide() SetBgColor(color int32) CreateGraphics() fm.Graphics SetCursor(cursor fm.CursorType) GetCursor() fm.CursorType GetParent() Control GetOwner() Form ToClientPoint(p fm.Point) fm.Point IsEnable() bool Enable(b bool) }
type WindowCreateProc ¶
type WindowCreateProc func(handle uintptr)
type WindowDestroyProc ¶
type WindowDestroyProc func()
type WindowFocusProc ¶
type WindowFocusProc func() bool
type WindowImeStartCompositionProc ¶
type WindowImeStartCompositionProc func() bool
type WindowKeyDownProc ¶
type WindowKeyPressProc ¶
type WindowKeyPressProc func(e *fm.KeyPressEvArgs)
type WindowKeyUpProc ¶
type WindowLostFocusProc ¶
type WindowLostFocusProc func() bool
type WindowMouseClickProc ¶
type WindowMouseClickProc func(e *fm.MouseEvArgs)
type WindowMouseDownProc ¶
type WindowMouseDownProc func(e *fm.MouseEvArgs)
type WindowMouseMoveProc ¶
type WindowMouseMoveProc func(e *fm.MouseEvArgs)
type WindowMouseUpProc ¶
type WindowMouseUpProc func(e *fm.MouseEvArgs)
type WindowMouseWheelProc ¶
type WindowMouseWheelProc func(e *fm.MouseEvArgs)
type WindowMoveProc ¶
type WindowPaintProc ¶
type WindowPaintProc func(e fm.PaintEvArgs) bool
type WindowResizeProc ¶
type WindowSetCursorProc ¶
type WindowSetCursorProc func() bool
type WindowShowProc ¶
type WindowShowProc func()
Click to show internal directories.
Click to hide internal directories.