winui

package
v0.0.0-...-7c1eb0e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calendar

func Calendar(title string, text string) (time.Time, error)

func InputPassword

func InputPassword(parent uintptr, title string) (string, error)

func InputText

func InputText(parent uintptr, title string, caption string, content string) (string, error)

func InputUserPassword

func InputUserPassword(parent uintptr, title string) (string, error)

func List

func List(title string, text string, item []string) (string, error)

func NewBorderLayout

func NewBorderLayout(parent winapi.WinObject, bAdd bool, groupBox ...bool) *winapi.BorderLayout

func NewButton

func NewButton(parent winapi.WinObject, caption string, autoAdd ...bool) *winapi.Button

func NewCheckBox

func NewCheckBox(parent winapi.WinObject, text string, autoAdd ...bool) *winapi.Button

func NewComboBox

func NewComboBox(parent winapi.WinObject, autoAdd ...bool) *winapi.ComboBox

func NewComboBoxEx

func NewComboBoxEx(parent winapi.WinObject, autoAdd ...bool) *winapi.ComboBoxEx

func NewDateTimePicker

func NewDateTimePicker(parent winapi.WinObject, autoAdd ...bool) *winapi.DateTimerPicker

func NewDialog

func NewDialog(parent winapi.WinObject, title string) *winapi.Dialog

func NewDialogModal

func NewDialogModal(parent winapi.WinObject, title string) *winapi.DialogModal

func NewEdit

func NewEdit(parent winapi.WinObject, autoAdd ...bool) *winapi.Edit

func NewFormLayout

func NewFormLayout(parent winapi.WinObject, full bool, bAdd bool, groupBox ...bool) *winapi.FormLayout

func NewFormLog

func NewFormLog(caption string, interval int, onTimer func(form *LogDialog), opt *FormLogOpt) error

func NewHLayout

func NewHLayout(parent winapi.WinObject, full bool, bAdd bool, groupBox ...bool) *winapi.HLayout

func NewLabel

func NewLabel(parent winapi.WinObject, caption string, autoAdd ...bool) *winapi.Label

func NewListView

func NewListView(parent winapi.WinObject, autoAdd ...bool) *winapi.ListView

func NewMemo

func NewMemo(parent winapi.WinObject, autoAdd ...bool) *winapi.Edit

func NewRadio

func NewRadio(parent winapi.WinObject, caption string, group bool, autoAdd ...bool) *winapi.Button

func NewSplitter

func NewSplitter(parent winapi.WinObject, vert bool, bAdd bool) *winapi.Splitter

func NewTabPageCtrl

func NewTabPageCtrl(parent winapi.WinObject, autoAdd ...bool) *winapi.TabPageCtrl

func NewVLayout

func NewVLayout(parent winapi.WinObject, full bool, bAdd bool, groupBox ...bool) *winapi.VLayout

func OpenFileDialog

func OpenFileDialog(title string, filename string, filter winapi.FileFilters, parent ...uintptr) (string, error)

func Question

func Question(title string, content string, parent ...uintptr) bool

func SaveFileDialog

func SaveFileDialog(title string, filename string, filter winapi.FileFilters, parent ...uintptr) (string, error)

func SelectDirectory

func SelectDirectory(caption string, rootDir string, parent ...uintptr) (string, error)

func ShowError

func ShowError(title string, content string, parent ...uintptr) int32

func ShowMessage

func ShowMessage(title string, content string, parent ...uintptr) int32

func ShowWarning

func ShowWarning(title string, content string, parent ...uintptr) int32

Types

type Application

type Application struct {
	*winapi.Application
}

func NewApplication

func NewApplication(title string) *Application

func (*Application) NewBorderLayout

func (me *Application) NewBorderLayout(parent winapi.WinObject, groupBox bool) winapi.Layout

func (*Application) NewButton

func (me *Application) NewButton(parent winapi.WinObject, text string) *winapi.Button

func (*Application) NewCheckBox

func (me *Application) NewCheckBox(parent winapi.WinObject, text string) *winapi.Button

func (*Application) NewComboBox

func (me *Application) NewComboBox(parent winapi.WinObject) *winapi.ComboBox

func (*Application) NewEdit

func (me *Application) NewEdit(parent winapi.WinObject, text string) *winapi.Edit

func (*Application) NewHLayout

func (me *Application) NewHLayout(parent winapi.WinObject, full bool, groupBox bool) winapi.Layout

func (*Application) NewLabel

func (me *Application) NewLabel(parent winapi.WinObject, caption string) *winapi.Label

func (*Application) NewListBox

func (me *Application) NewListBox(parent winapi.WinObject) *winapi.ListBox

func (*Application) NewListView

func (me *Application) NewListView(parent winapi.WinObject) *winapi.ListView

func (*Application) NewMemo

func (me *Application) NewMemo(parent winapi.WinObject, text string) *winapi.Edit

func (*Application) NewTabPage

func (me *Application) NewTabPage(parent winapi.WinObject) *winapi.TabPage

func (*Application) NewTabPageCtrl

func (me *Application) NewTabPageCtrl(parent winapi.WinObject) *winapi.TabPageCtrl

func (*Application) NewVLayout

func (me *Application) NewVLayout(parent winapi.WinObject, full bool, groupBox bool) winapi.Layout

type FormDialog

type FormDialog struct {
	*winapi.Dialog
	// contains filtered or unexported fields
}

func NewFormDialog

func NewFormDialog(parent winapi.HWND, title string) *FormDialog

func (*FormDialog) Add

func (me *FormDialog) Add(label string, w winapi.WinObject)

func (*FormDialog) AddEdit

func (me *FormDialog) AddEdit(label string) *winapi.Edit

func (*FormDialog) End

func (me *FormDialog) End()

func (*FormDialog) GetLayout

func (me *FormDialog) GetLayout() *winapi.FormLayout

func (*FormDialog) SetOnResult

func (me *FormDialog) SetOnResult(ok func(), cancel func()) bool

type FormLogOpt

type FormLogOpt struct {
	Width  int
	Height int
}

type LogDialog

type LogDialog struct {
	// contains filtered or unexported fields
}

func (*LogDialog) AppendLog

func (dlg *LogDialog) AppendLog(str string)

func (*LogDialog) ClearLog

func (dlg *LogDialog) ClearLog()

func (*LogDialog) GetLogLineCount

func (dlg *LogDialog) GetLogLineCount() int

func (*LogDialog) IsEnableLog

func (dlg *LogDialog) IsEnableLog() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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