Documentation ¶
Index ¶
- func GetAppInstance() win.HINSTANCE
- func RegMsgHandler(window Window)
- func UnRegMsgHandler(hwnd win.HWND)
- type Application
- type Button
- type EventHandler
- type Icon
- func IconApplication() *Icon
- func IconError() *Icon
- func IconInformation() *Icon
- func IconQuestion() *Icon
- func IconShield() *Icon
- func IconWarning() *Icon
- func IconWinLogo() *Icon
- func NewIconFromFile(filePath string) (*Icon, error)
- func NewIconFromImage(im image.Image) (ic *Icon, err error)
- func NewIconFromResource(resName string) (ic *Icon, err error)
- type Label
- type LineEdit
- type ListView
- type MainWindow
- type Rect
- type TabControl
- type Window
- type WindowBase
- func (w *WindowBase) AsWindowBase() *WindowBase
- func (w *WindowBase) Bounds() Rect
- func (w *WindowBase) Close()
- func (w *WindowBase) GetWindowText() string
- func (w *WindowBase) Handle() win.HWND
- func (w *WindowBase) Hide()
- func (w *WindowBase) InitWindow(window MainWindow, id uintptr)
- func (w *WindowBase) IsEnabled() bool
- func (w *WindowBase) IsVisible() bool
- func (w *WindowBase) SetBounds(value Rect)
- func (w *WindowBase) SetDisabled(disable bool)
- func (w *WindowBase) SetEnabled(b bool)
- func (w *WindowBase) SetFocus()
- func (w *WindowBase) SetIcon(iconType int, icon *Icon)
- func (w *WindowBase) SetVisible(value bool)
- func (w *WindowBase) SetWindowText(title string)
- func (w *WindowBase) Show()
- func (w *WindowBase) ShowFullScreen()
- func (w *WindowBase) ShowMaximized()
- func (w *WindowBase) ShowMinimized()
- func (w *WindowBase) ShowNormal()
- func (w *WindowBase) WndProc(msg uint32, wparam, lparam uintptr) uintptr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegMsgHandler ¶
func RegMsgHandler(window Window)
func UnRegMsgHandler ¶
Types ¶
type Button ¶
type Button struct { WindowBase OnClicked func() Clicked *gosig.Signal }
func NewButton ¶
func NewButton(window MainWindow, id uintptr) *Button
type EventHandler ¶
type EventHandler func()
type Icon ¶
type Icon struct {
// contains filtered or unexported fields
}
Icon is a bitmap that supports transparency and combining multiple variants of an image in different resolutions.
func IconApplication ¶
func IconApplication() *Icon
func IconInformation ¶
func IconInformation() *Icon
func IconQuestion ¶
func IconQuestion() *Icon
func IconShield ¶
func IconShield() *Icon
func IconWarning ¶
func IconWarning() *Icon
func IconWinLogo ¶
func IconWinLogo() *Icon
func NewIconFromFile ¶
NewIconFromFile returns a new Icon, using the specified icon image file.
func NewIconFromResource ¶
NewIconFromResource returns a new Icon, using the specified icon resource.
type Label ¶
type Label struct {
WindowBase
}
func NewLabel ¶
func NewLabel(window MainWindow, id uintptr) *Label
type LineEdit ¶
type LineEdit struct {
WindowBase
}
func NewLineEdit ¶
func NewLineEdit(window MainWindow, id uintptr) *LineEdit
type ListView ¶
type ListView struct {
WindowBase
}
func NewListView ¶
func NewListView(window MainWindow, id uintptr) *ListView
type MainWindow ¶
type MainWindow struct {
WindowBase
}
Dialog class
func (*MainWindow) AsWindowBase ¶
func (w *MainWindow) AsWindowBase() *MainWindow
func (*MainWindow) Connect ¶
func (w *MainWindow) Connect(sig *gosig.Signal, slot interface{})
func (*MainWindow) Create ¶
func (w *MainWindow) Create(idd uintptr)
type TabControl ¶
type TabControl struct {
WindowBase
}
func NewTabControl ¶
func NewTabControl(window MainWindow, id uintptr) *TabControl
type Window ¶
type Window interface { AsWindowBase() *WindowBase InitWindow(window MainWindow, id uintptr) Handle() win.HWND GetWindowText() string SetWindowText(title string) SetIcon(iconType int, icon *Icon) Show() Hide() ShowMinimized() ShowMaximized() ShowFullScreen() ShowNormal() IsEnabled() bool IsVisible() bool SetVisible(value bool) SetEnabled(b bool) SetDisabled(disable bool) SetFocus() Bounds() Rect SetBounds(value Rect) Close() WndProc(msg uint32, wparam, lparam uintptr) uintptr }
Window
func GetMsgHandler ¶
type WindowBase ¶
type WindowBase struct {
// contains filtered or unexported fields
}
WindowBase
func (*WindowBase) AsWindowBase ¶
func (w *WindowBase) AsWindowBase() *WindowBase
func (*WindowBase) Bounds ¶
func (w *WindowBase) Bounds() Rect
func (*WindowBase) Close ¶
func (w *WindowBase) Close()
func (*WindowBase) GetWindowText ¶
func (w *WindowBase) GetWindowText() string
func (*WindowBase) Handle ¶
func (w *WindowBase) Handle() win.HWND
func (*WindowBase) Hide ¶
func (w *WindowBase) Hide()
func (*WindowBase) InitWindow ¶
func (w *WindowBase) InitWindow(window MainWindow, id uintptr)
Set window resource Idd
func (*WindowBase) IsEnabled ¶
func (w *WindowBase) IsEnabled() bool
func (*WindowBase) IsVisible ¶
func (w *WindowBase) IsVisible() bool
func (*WindowBase) SetBounds ¶
func (w *WindowBase) SetBounds(value Rect)
func (*WindowBase) SetDisabled ¶
func (w *WindowBase) SetDisabled(disable bool)
func (*WindowBase) SetEnabled ¶
func (w *WindowBase) SetEnabled(b bool)
func (*WindowBase) SetFocus ¶
func (w *WindowBase) SetFocus()
func (*WindowBase) SetIcon ¶
func (w *WindowBase) SetIcon(iconType int, icon *Icon)
IconType: 1 - ICON_BIG; 0 - ICON_SMALL
func (*WindowBase) SetVisible ¶
func (w *WindowBase) SetVisible(value bool)
func (*WindowBase) SetWindowText ¶
func (w *WindowBase) SetWindowText(title string)
func (*WindowBase) Show ¶
func (w *WindowBase) Show()
func (*WindowBase) ShowFullScreen ¶
func (w *WindowBase) ShowFullScreen()
func (*WindowBase) ShowMaximized ¶
func (w *WindowBase) ShowMaximized()
func (*WindowBase) ShowMinimized ¶
func (w *WindowBase) ShowMinimized()
func (*WindowBase) ShowNormal ¶
func (w *WindowBase) ShowNormal()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.