declarative

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	AccStateNormal          = AccState(walk.AccStateNormal)
	AccStateUnavailable     = AccState(walk.AccStateUnavailable)
	AccStateSelected        = AccState(walk.AccStateSelected)
	AccStateFocused         = AccState(walk.AccStateFocused)
	AccStatePressed         = AccState(walk.AccStatePressed)
	AccStateChecked         = AccState(walk.AccStateChecked)
	AccStateMixed           = AccState(walk.AccStateMixed)
	AccStateIndeterminate   = AccState(walk.AccStateIndeterminate)
	AccStateReadonly        = AccState(walk.AccStateReadonly)
	AccStateHotTracked      = AccState(walk.AccStateHotTracked)
	AccStateDefault         = AccState(walk.AccStateDefault)
	AccStateExpanded        = AccState(walk.AccStateExpanded)
	AccStateCollapsed       = AccState(walk.AccStateCollapsed)
	AccStateBusy            = AccState(walk.AccStateBusy)
	AccStateFloating        = AccState(walk.AccStateFloating)
	AccStateMarqueed        = AccState(walk.AccStateMarqueed)
	AccStateAnimated        = AccState(walk.AccStateAnimated)
	AccStateInvisible       = AccState(walk.AccStateInvisible)
	AccStateOffscreen       = AccState(walk.AccStateOffscreen)
	AccStateSizeable        = AccState(walk.AccStateSizeable)
	AccStateMoveable        = AccState(walk.AccStateMoveable)
	AccStateSelfVoicing     = AccState(walk.AccStateSelfVoicing)
	AccStateFocusable       = AccState(walk.AccStateFocusable)
	AccStateSelectable      = AccState(walk.AccStateSelectable)
	AccStateLinked          = AccState(walk.AccStateLinked)
	AccStateTraversed       = AccState(walk.AccStateTraversed)
	AccStateMultiselectable = AccState(walk.AccStateMultiselectable)
	AccStateExtselectable   = AccState(walk.AccStateExtselectable)
	AccStateAlertLow        = AccState(walk.AccStateAlertLow)
	AccStateAlertMedium     = AccState(walk.AccStateAlertMedium)
	AccStateAlertHigh       = AccState(walk.AccStateAlertHigh)
	AccStateProtected       = AccState(walk.AccStateProtected)
	AccStateHasPopup        = AccState(walk.AccStateHasPopup)
	AccStateValid           = AccState(walk.AccStateValid)
)

Window/control states

View Source
const (
	AccRoleTitlebar           = AccRole(walk.AccRoleTitlebar)
	AccRoleMenubar            = AccRole(walk.AccRoleMenubar)
	AccRoleScrollbar          = AccRole(walk.AccRoleScrollbar)
	AccRoleGrip               = AccRole(walk.AccRoleGrip)
	AccRoleSound              = AccRole(walk.AccRoleSound)
	AccRoleCursor             = AccRole(walk.AccRoleCursor)
	AccRoleCaret              = AccRole(walk.AccRoleCaret)
	AccRoleAlert              = AccRole(walk.AccRoleAlert)
	AccRoleWindow             = AccRole(walk.AccRoleWindow)
	AccRoleClient             = AccRole(walk.AccRoleClient)
	AccRoleMenuPopup          = AccRole(walk.AccRoleMenuPopup)
	AccRoleMenuItem           = AccRole(walk.AccRoleMenuItem)
	AccRoleTooltip            = AccRole(walk.AccRoleTooltip)
	AccRoleApplication        = AccRole(walk.AccRoleApplication)
	AccRoleDocument           = AccRole(walk.AccRoleDocument)
	AccRolePane               = AccRole(walk.AccRolePane)
	AccRoleChart              = AccRole(walk.AccRoleChart)
	AccRoleDialog             = AccRole(walk.AccRoleDialog)
	AccRoleBorder             = AccRole(walk.AccRoleBorder)
	AccRoleGrouping           = AccRole(walk.AccRoleGrouping)
	AccRoleSeparator          = AccRole(walk.AccRoleSeparator)
	AccRoleToolbar            = AccRole(walk.AccRoleToolbar)
	AccRoleStatusbar          = AccRole(walk.AccRoleStatusbar)
	AccRoleTable              = AccRole(walk.AccRoleTable)
	AccRoleColumnHeader       = AccRole(walk.AccRoleColumnHeader)
	AccRoleRowHeader          = AccRole(walk.AccRoleRowHeader)
	AccRoleColumn             = AccRole(walk.AccRoleColumn)
	AccRoleRow                = AccRole(walk.AccRoleRow)
	AccRoleCell               = AccRole(walk.AccRoleCell)
	AccRoleLink               = AccRole(walk.AccRoleLink)
	AccRoleHelpBalloon        = AccRole(walk.AccRoleHelpBalloon)
	AccRoleCharacter          = AccRole(walk.AccRoleCharacter)
	AccRoleList               = AccRole(walk.AccRoleList)
	AccRoleListItem           = AccRole(walk.AccRoleListItem)
	AccRoleOutline            = AccRole(walk.AccRoleOutline)
	AccRoleOutlineItem        = AccRole(walk.AccRoleOutlineItem)
	AccRolePagetab            = AccRole(walk.AccRolePagetab)
	AccRolePropertyPage       = AccRole(walk.AccRolePropertyPage)
	AccRoleIndicator          = AccRole(walk.AccRoleIndicator)
	AccRoleGraphic            = AccRole(walk.AccRoleGraphic)
	AccRoleStatictext         = AccRole(walk.AccRoleStatictext)
	AccRoleText               = AccRole(walk.AccRoleText)
	AccRolePushbutton         = AccRole(walk.AccRolePushbutton)
	AccRoleCheckbutton        = AccRole(walk.AccRoleCheckbutton)
	AccRoleRadiobutton        = AccRole(walk.AccRoleRadiobutton)
	AccRoleCombobox           = AccRole(walk.AccRoleCombobox)
	AccRoleDroplist           = AccRole(walk.AccRoleDroplist)
	AccRoleProgressbar        = AccRole(walk.AccRoleProgressbar)
	AccRoleDial               = AccRole(walk.AccRoleDial)
	AccRoleHotkeyfield        = AccRole(walk.AccRoleHotkeyfield)
	AccRoleSlider             = AccRole(walk.AccRoleSlider)
	AccRoleSpinbutton         = AccRole(walk.AccRoleSpinbutton)
	AccRoleDiagram            = AccRole(walk.AccRoleDiagram)
	AccRoleAnimation          = AccRole(walk.AccRoleAnimation)
	AccRoleEquation           = AccRole(walk.AccRoleEquation)
	AccRoleButtonDropdown     = AccRole(walk.AccRoleButtonDropdown)
	AccRoleButtonMenu         = AccRole(walk.AccRoleButtonMenu)
	AccRoleButtonDropdownGrid = AccRole(walk.AccRoleButtonDropdownGrid)
	AccRoleWhitespace         = AccRole(walk.AccRoleWhitespace)
	AccRolePageTabList        = AccRole(walk.AccRolePageTabList)
	AccRoleClock              = AccRole(walk.AccRoleClock)
	AccRoleSplitButton        = AccRole(walk.AccRoleSplitButton)
	AccRoleIPAddress          = AccRole(walk.AccRoleIPAddress)
	AccRoleOutlineButton      = AccRole(walk.AccRoleOutlineButton)
)

Window/control system roles

View Source
const (
	ImageViewModeIdeal   = ImageViewMode(walk.ImageViewModeIdeal)
	ImageViewModeCorner  = ImageViewMode(walk.ImageViewModeCorner)
	ImageViewModeCenter  = ImageViewMode(walk.ImageViewModeCenter)
	ImageViewModeShrink  = ImageViewMode(walk.ImageViewModeShrink)
	ImageViewModeZoom    = ImageViewMode(walk.ImageViewModeZoom)
	ImageViewModeStretch = ImageViewMode(walk.ImageViewModeStretch)
)
View Source
const (
	EllipsisNone = EllipsisMode(walk.EllipsisNone)
	EllipsisEnd  = EllipsisMode(walk.EllipsisEnd)
	EllipsisPath = EllipsisMode(walk.EllipsisPath)
)
View Source
const (
	AlignDefault = Alignment1D(walk.AlignDefault)
	AlignNear    = Alignment1D(walk.AlignNear)
	AlignCenter  = Alignment1D(walk.AlignCenter)
	AlignFar     = Alignment1D(walk.AlignFar)
)
View Source
const (
	AlignHVDefault      = Alignment2D(walk.AlignHVDefault)
	AlignHNearVNear     = Alignment2D(walk.AlignHNearVNear)
	AlignHCenterVNear   = Alignment2D(walk.AlignHCenterVNear)
	AlignHFarVNear      = Alignment2D(walk.AlignHFarVNear)
	AlignHNearVCenter   = Alignment2D(walk.AlignHNearVCenter)
	AlignHCenterVCenter = Alignment2D(walk.AlignHCenterVCenter)
	AlignHFarVCenter    = Alignment2D(walk.AlignHFarVCenter)
	AlignHNearVFar      = Alignment2D(walk.AlignHNearVFar)
	AlignHCenterVFar    = Alignment2D(walk.AlignHCenterVFar)
	AlignHFarVFar       = Alignment2D(walk.AlignHFarVFar)
)

Variables

This section is empty.

Functions

func MustRegisterCondition

func MustRegisterCondition(name string, condition walk.Condition)

Types

type AccRole

type AccRole int32

AccRole enum defines the role of the window/control in UI.

type AccState

type AccState int32

AccState enum defines the state of the window/control

type Accessibility

type Accessibility struct {
	Accelerator   string
	DefaultAction string
	Description   string
	Help          string
	Name          string
	Role          AccRole
	RoleMap       string
	State         AccState
	StateMap      string
	ValueMap      string
}

Accessibility properties

type Action

type Action struct {
	AssignTo    **walk.Action
	Text        string
	Image       interface{}
	Checked     Property
	Enabled     Property
	Visible     Property
	Shortcut    Shortcut
	OnTriggered walk.EventHandler
	Checkable   bool
}

type ActionRef

type ActionRef struct {
	Action **walk.Action
}

type Alignment1D

type Alignment1D uint

type Alignment2D

type Alignment2D uint

type BitmapBrush

type BitmapBrush struct {
	Image interface{}
}

func (BitmapBrush) Create

func (bb BitmapBrush) Create() (walk.Brush, error)

type Brush

type Brush interface {
	Create() (walk.Brush, error)
}

type Builder

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

func NewBuilder

func NewBuilder(parent walk.Container) *Builder

func (*Builder) Defer

func (b *Builder) Defer(f func() error)

func (*Builder) InitWidget

func (b *Builder) InitWidget(d Widget, w walk.Window, customInit func() error) error

func (*Builder) Parent

func (b *Builder) Parent() walk.Container

type CaseMode

type CaseMode uint32
const (
	CaseModeMixed CaseMode = CaseMode(walk.CaseModeMixed)
	CaseModeUpper CaseMode = CaseMode(walk.CaseModeUpper)
	CaseModeLower CaseMode = CaseMode(walk.CaseModeLower)
)

type CheckBox

type CheckBox struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Checked          Property
	OnCheckedChanged walk.EventHandler
	OnClicked        walk.EventHandler
	Text             Property

	AssignTo            **walk.CheckBox
	CheckState          Property
	OnCheckStateChanged walk.EventHandler
	TextOnLeftSide      bool
	Tristate            bool
}

func (CheckBox) Create

func (cb CheckBox) Create(builder *Builder) error

type ComboBox

type ComboBox struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo              **walk.ComboBox
	BindingMember         string
	CurrentIndex          Property
	DisplayMember         string
	Editable              bool
	Format                string
	MaxLength             int
	Model                 interface{}
	OnCurrentIndexChanged walk.EventHandler
	OnEditingFinished     walk.EventHandler
	OnTextChanged         walk.EventHandler
	Precision             int
	Value                 Property
}

func (ComboBox) Create

func (cb ComboBox) Create(builder *Builder) error

type Composite

type Composite struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	AssignTo    **walk.Composite
	Border      bool
	Expressions func() map[string]walk.Expression
	Functions   map[string]func(args ...interface{}) (interface{}, error)
}

func (Composite) Create

func (c Composite) Create(builder *Builder) error

type CustomWidget

type CustomWidget struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo            **walk.CustomWidget
	ClearsBackground    bool
	InvalidatesOnResize bool
	Paint               walk.PaintFunc
	PaintPixels         walk.PaintFunc
	PaintMode           PaintMode
	Style               uint32
}

func (CustomWidget) Create

func (cw CustomWidget) Create(builder *Builder) error

type DataBinder

type DataBinder struct {
	AssignTo            **walk.DataBinder
	AutoSubmit          bool
	AutoSubmitDelay     time.Duration
	DataSource          interface{}
	ErrorPresenter      ErrorPresenter
	Name                string
	OnCanSubmitChanged  walk.EventHandler
	OnDataSourceChanged walk.EventHandler
	OnReset             walk.EventHandler
	OnSubmitted         walk.EventHandler
}

type DateEdit

type DateEdit struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo      **walk.DateEdit
	Date          Property
	Format        string
	MaxDate       time.Time
	MinDate       time.Time
	NoneOption    bool // Deprecated: use Optional instead
	OnDateChanged walk.EventHandler
	Optional      bool
}

func (DateEdit) Create

func (de DateEdit) Create(builder *Builder) error

type DateLabel

type DateLabel struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	TextColor walk.Color

	AssignTo      **walk.DateLabel
	Date          Property
	Format        Property
	TextAlignment Alignment1D
}

func (DateLabel) Create

func (dl DateLabel) Create(builder *Builder) error

type Dialog

type Dialog struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftLayout  bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	DataBinder DataBinder
	Layout     Layout
	Children   []Widget

	Expressions func() map[string]walk.Expression
	Functions   map[string]func(args ...interface{}) (interface{}, error)
	Icon        Property
	Title       Property
	Size        Size

	AssignTo      **walk.Dialog
	CancelButton  **walk.PushButton
	DefaultButton **walk.PushButton
	FixedSize     bool
}

func (Dialog) Create

func (d Dialog) Create(owner walk.Form) error

func (Dialog) Run

func (d Dialog) Run(owner walk.Form) (int, error)

type EllipsisMode

type EllipsisMode int

type ErrorPresenter

type ErrorPresenter interface {
	Create() (walk.ErrorPresenter, error)
}

type ErrorPresenterRef

type ErrorPresenterRef struct {
	ErrorPresenter *walk.ErrorPresenter
}

func (ErrorPresenterRef) Create

func (epr ErrorPresenterRef) Create() (walk.ErrorPresenter, error)

type Flow

type Flow struct {
	Margins     Margins
	Alignment   Alignment2D
	Spacing     int
	MarginsZero bool
	SpacingZero bool
}

func (Flow) Create

func (f Flow) Create() (walk.Layout, error)

type Font

type Font struct {
	Family    string
	PointSize int
	Bold      bool
	Italic    bool
	Underline bool
	StrikeOut bool
}

func (Font) Create

func (f Font) Create() (*walk.Font, error)

type GradientBrush

type GradientBrush struct {
	Vertexes  []walk.GradientVertex
	Triangles []walk.GradientTriangle
}

func (GradientBrush) Create

func (gb GradientBrush) Create() (walk.Brush, error)

type GradientComposite

type GradientComposite struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	Layout     Layout
	DataBinder DataBinder

	AssignTo    **walk.GradientComposite
	Border      bool
	Color1      Property
	Color2      Property
	Expressions func() map[string]walk.Expression
	Functions   map[string]func(args ...interface{}) (interface{}, error)
	Vertical    Property
}

func (GradientComposite) Create

func (gc GradientComposite) Create(builder *Builder) error

type Grid

type Grid struct {
	Rows        int
	Columns     int
	Margins     Margins
	Alignment   Alignment2D
	Spacing     int
	MarginsZero bool
	SpacingZero bool
}

func (Grid) Create

func (g Grid) Create() (walk.Layout, error)

type GroupBox

type GroupBox struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	AssignTo  **walk.GroupBox
	Checkable bool
	Checked   Property
	Title     string
}

func (GroupBox) Create

func (gb GroupBox) Create(builder *Builder) error

type HBox

type HBox struct {
	Margins     Margins
	Alignment   Alignment2D
	Spacing     int
	MarginsZero bool
	SpacingZero bool
}

func (HBox) Create

func (hb HBox) Create() (walk.Layout, error)

type HSeparator

type HSeparator struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo **walk.Separator
}

func (HSeparator) Create

func (s HSeparator) Create(builder *Builder) error

type HSpacer

type HSpacer struct {
	MaxSize Size
	MinSize Size
	Name    string

	Column        int
	ColumnSpan    int
	Row           int
	RowSpan       int
	StretchFactor int

	GreedyLocallyOnly bool
	Size              int
}

func (HSpacer) Create

func (hs HSpacer) Create(builder *Builder) (err error)

type HSplitter

type HSplitter struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder

	AssignTo    **walk.Splitter
	HandleWidth int
}

func (HSplitter) Create

func (s HSplitter) Create(builder *Builder) error

type HorizontalGradientBrush

type HorizontalGradientBrush struct {
	Stops []walk.GradientStop
}

func (HorizontalGradientBrush) Create

func (hgb HorizontalGradientBrush) Create() (walk.Brush, error)

type ImageView

type ImageView struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo **walk.ImageView
	Image    Property
	Margin   Property
	Mode     ImageViewMode
}

func (ImageView) Create

func (iv ImageView) Create(builder *Builder) error

type ImageViewMode

type ImageViewMode int

type Label

type Label struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo      **walk.Label
	EllipsisMode  EllipsisMode
	Text          Property
	TextAlignment Alignment1D
	TextColor     walk.Color
}

func (Label) Create

func (l Label) Create(builder *Builder) error

type Layout

type Layout interface {
	Create() (walk.Layout, error)
}

type LineEdit

type LineEdit struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo          **walk.LineEdit
	CaseMode          CaseMode
	CueBanner         string
	MaxLength         int
	OnEditingFinished walk.EventHandler
	OnTextChanged     walk.EventHandler
	PasswordMode      bool
	ReadOnly          Property
	Text              Property
	TextAlignment     Alignment1D
	TextColor         walk.Color
}

func (LineEdit) Create

func (le LineEdit) Create(builder *Builder) error

type LinkLabel

type LinkLabel struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo        **walk.LinkLabel
	OnLinkActivated walk.LinkLabelLinkEventHandler
	Text            Property
}

func (LinkLabel) Create

func (ll LinkLabel) Create(builder *Builder) error

type ListBox

type ListBox struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo                 **walk.ListBox
	DataMember               string
	Format                   string
	ItemStyler               walk.ListItemStyler
	Model                    interface{}
	MultiSelection           bool
	OnCurrentIndexChanged    walk.EventHandler
	OnItemActivated          walk.EventHandler
	OnSelectedIndexesChanged walk.EventHandler
	Precision                int
}

func (ListBox) Create

func (lb ListBox) Create(builder *Builder) error

type MainWindow

type MainWindow struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftLayout  bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	Icon  Property
	Size  Size
	Title Property

	AssignTo          **walk.MainWindow
	Expressions       func() map[string]walk.Expression
	Functions         map[string]func(args ...interface{}) (interface{}, error)
	MenuItems         []MenuItem
	OnDropFiles       walk.DropFilesEventHandler
	StatusBarItems    []StatusBarItem
	SuspendedUntilRun bool
	ToolBar           ToolBar
	ToolBarItems      []MenuItem // Deprecated: use ToolBar instead
}

func (MainWindow) Create

func (mw MainWindow) Create() error

func (MainWindow) Run

func (mw MainWindow) Run() (int, error)

type Margins

type Margins struct {
	Left   int
	Top    int
	Right  int
	Bottom int
}
type Menu struct {
	AssignTo       **walk.Menu
	AssignActionTo **walk.Action
	Text           string
	Image          interface{}
	Enabled        Property
	Visible        Property
	Items          []MenuItem
	OnTriggered    walk.EventHandler
}
type MenuItem interface {
	// contains filtered or unexported methods
}

type NumberEdit

type NumberEdit struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo       **walk.NumberEdit
	Decimals       int
	Increment      float64
	MaxValue       float64
	MinValue       float64
	Prefix         Property
	OnValueChanged walk.EventHandler
	ReadOnly       Property
	Suffix         Property
	TextColor      walk.Color
	Value          Property
}

func (NumberEdit) Create

func (ne NumberEdit) Create(builder *Builder) error

type NumberLabel

type NumberLabel struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	TextColor walk.Color

	AssignTo      **walk.NumberLabel
	Decimals      Property
	Suffix        Property
	TextAlignment Alignment1D
	Value         Property
}

func (NumberLabel) Create

func (nl NumberLabel) Create(builder *Builder) error

type Orientation

type Orientation byte

type PaintMode

type PaintMode int
const (
	PaintNormal   PaintMode = iota // erase background before PaintFunc
	PaintNoErase                   // PaintFunc clears background, single buffered
	PaintBuffered                  // PaintFunc clears background, double buffered
)

type ProgressBar

type ProgressBar struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo    **walk.ProgressBar
	MarqueeMode bool
	MaxValue    int
	MinValue    int
	Value       int
}

func (ProgressBar) Create

func (pb ProgressBar) Create(builder *Builder) error

type Property

type Property interface{}

func Bind

func Bind(expression string, validators ...Validator) Property

type PushButton

type PushButton struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Image     Property
	OnClicked walk.EventHandler
	Text      Property

	AssignTo       **walk.PushButton
	ImageAboveText bool
}

func (PushButton) Create

func (pb PushButton) Create(builder *Builder) error

type RadioButton

type RadioButton struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	OnClicked walk.EventHandler
	Text      Property

	AssignTo       **walk.RadioButton
	TextOnLeftSide bool
	Value          interface{}
}

func (RadioButton) Create

func (rb RadioButton) Create(builder *Builder) error

type RadioButtonGroup

type RadioButtonGroup struct {
	Buttons    []RadioButton
	DataMember string
	Optional   bool
}

func (RadioButtonGroup) Create

func (rbg RadioButtonGroup) Create(builder *Builder) error

type RadioButtonGroupBox

type RadioButtonGroupBox struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	AssignTo  **walk.GroupBox
	Checkable bool
	Checked   Property
	Title     string

	Buttons    []RadioButton
	DataMember string
	Optional   bool
}

func (RadioButtonGroupBox) Create

func (rbgb RadioButtonGroupBox) Create(builder *Builder) error

type Range

type Range struct {
	Min float64
	Max float64
}

func (Range) Create

func (r Range) Create() (walk.Validator, error)

type Regexp

type Regexp struct {
	Pattern string
}

func (Regexp) Create

func (re Regexp) Create() (walk.Validator, error)

type ScrollView

type ScrollView struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	AssignTo        **walk.ScrollView
	HorizontalFixed bool
	VerticalFixed   bool
}

func (ScrollView) Create

func (sv ScrollView) Create(builder *Builder) error

type SelRequired

type SelRequired struct {
}

func (SelRequired) Create

func (SelRequired) Create() (walk.Validator, error)

type Separator

type Separator struct {
}

type Shortcut

type Shortcut struct {
	Modifiers walk.Modifiers
	Key       walk.Key
}

type Size

type Size struct {
	Width  int
	Height int
}

type Slider

type Slider struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo       **walk.Slider
	LineSize       int
	MaxValue       int
	MinValue       int
	Orientation    Orientation
	OnValueChanged walk.EventHandler
	PageSize       int
	ToolTipsHidden bool
	Tracking       bool
	Value          Property
}

func (Slider) Create

func (sl Slider) Create(builder *Builder) error

type SolidColorBrush

type SolidColorBrush struct {
	Color walk.Color
}

func (SolidColorBrush) Create

func (scb SolidColorBrush) Create() (walk.Brush, error)

type SplitButton

type SplitButton struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Image     Property
	Text      Property
	OnClicked walk.EventHandler

	AssignTo       **walk.SplitButton
	ImageAboveText bool
	MenuItems      []MenuItem
}

func (SplitButton) Create

func (sb SplitButton) Create(builder *Builder) error

type StatusBarItem

type StatusBarItem struct {
	AssignTo    **walk.StatusBarItem
	Icon        *walk.Icon
	Text        string
	ToolTipText string
	Width       int
	OnClicked   walk.EventHandler
}

type SysDLLIcon

type SysDLLIcon struct {
	FileName string
	Index    int
	Size     int
}

func (SysDLLIcon) FilePath_

func (sdi SysDLLIcon) FilePath_() string

func (SysDLLIcon) Index_

func (sdi SysDLLIcon) Index_() int

func (SysDLLIcon) Size_

func (sdi SysDLLIcon) Size_() int

type SystemColorBrush

type SystemColorBrush struct {
	Color walk.SystemColor
}

func (SystemColorBrush) Create

func (scb SystemColorBrush) Create() (walk.Brush, error)

type TabPage

type TabPage struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder
	Layout     Layout

	AssignTo **walk.TabPage
	Content  Widget
	Image    Property
	Title    Property
}

func (TabPage) Create

func (tp TabPage) Create(builder *Builder) error

type TabWidget

type TabWidget struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo              **walk.TabWidget
	ContentMargins        Margins
	ContentMarginsZero    bool
	OnCurrentIndexChanged walk.EventHandler
	Pages                 []TabPage
}

func (TabWidget) Create

func (tw TabWidget) Create(builder *Builder) error

type TableView

type TableView struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AlternatingRowBG            bool
	AssignTo                    **walk.TableView
	CellStyler                  walk.CellStyler
	CheckBoxes                  bool
	Columns                     []TableViewColumn
	ColumnsOrderable            Property
	ColumnsSizable              Property
	CustomHeaderHeight          int
	CustomRowHeight             int
	ItemStateChangedEventDelay  int
	HeaderHidden                bool
	LastColumnStretched         bool
	Model                       interface{}
	MultiSelection              bool
	NotSortableByHeaderClick    bool
	OnCurrentIndexChanged       walk.EventHandler
	OnItemActivated             walk.EventHandler
	OnSelectedIndexesChanged    walk.EventHandler
	SelectionHiddenWithoutFocus bool
	StyleCell                   func(style *walk.CellStyle)
}

func (TableView) Create

func (tv TableView) Create(builder *Builder) error

type TableViewColumn

type TableViewColumn struct {
	Name       string
	DataMember string
	Format     string
	Title      string
	Alignment  Alignment1D
	Precision  int
	Width      int
	Hidden     bool
	Frozen     bool
	StyleCell  func(style *walk.CellStyle)
	LessFunc   func(i, j int) bool
	FormatFunc func(value interface{}) string
}

func (TableViewColumn) Create

func (tvc TableViewColumn) Create(tv *walk.TableView) error

type TextEdit

type TextEdit struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo      **walk.TextEdit
	CompactHeight bool
	HScroll       bool
	MaxLength     int
	OnTextChanged walk.EventHandler
	ReadOnly      Property
	Text          Property
	TextAlignment Alignment1D
	TextColor     walk.Color
	VScroll       bool
}

func (TextEdit) Create

func (te TextEdit) Create(builder *Builder) error

type TextLabel

type TextLabel struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size // Set MinSize.Width to a value > 0 to enable dynamic line wrapping.
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	TextColor walk.Color

	AssignTo      **walk.TextLabel
	TextAlignment Alignment2D
	Text          Property
}

func (TextLabel) Create

func (tl TextLabel) Create(builder *Builder) error

type ToolBar

type ToolBar struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Actions     []*walk.Action // Deprecated, use Items instead
	AssignTo    **walk.ToolBar
	ButtonStyle ToolBarButtonStyle
	Items       []MenuItem
	MaxTextRows int
	Orientation Orientation
}

func (ToolBar) Create

func (tb ToolBar) Create(builder *Builder) error

type ToolBarButtonStyle

type ToolBarButtonStyle int
const (
	ToolBarButtonImageOnly ToolBarButtonStyle = iota
	ToolBarButtonTextOnly
	ToolBarButtonImageBeforeText
	ToolBarButtonImageAboveText
)

type ToolButton

type ToolButton struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	Image     Property
	OnClicked walk.EventHandler
	Text      Property

	AssignTo **walk.ToolButton
}

func (ToolButton) Create

func (tb ToolButton) Create(builder *Builder) error

type ToolTipErrorPresenter

type ToolTipErrorPresenter struct {
}

func (ToolTipErrorPresenter) Create

type TransparentBrush

type TransparentBrush struct {
}

func (TransparentBrush) Create

func (TransparentBrush) Create() (walk.Brush, error)

type TreeView

type TreeView struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo             **walk.TreeView
	ItemHeight           int
	Model                walk.TreeModel
	OnCurrentItemChanged walk.EventHandler
	OnExpandedChanged    walk.TreeItemEventHandler
	OnItemActivated      walk.EventHandler
}

func (TreeView) Create

func (tv TreeView) Create(builder *Builder) error

type VBox

type VBox struct {
	Margins     Margins
	Alignment   Alignment2D
	Spacing     int
	MarginsZero bool
	SpacingZero bool
}

func (VBox) Create

func (vb VBox) Create() (walk.Layout, error)

type VSeparator

type VSeparator struct {
	Accessibility    Accessibility
	ContextMenuItems []MenuItem
	Enabled          Property
	Font             Font
	MaxSize          Size
	MinSize          Size
	Name             string
	OnBoundsChanged  walk.EventHandler
	OnKeyDown        walk.KeyEventHandler
	OnKeyPress       walk.KeyEventHandler
	OnKeyUp          walk.KeyEventHandler
	OnMouseDown      walk.MouseEventHandler
	OnMouseMove      walk.MouseEventHandler
	OnMouseUp        walk.MouseEventHandler
	OnSizeChanged    walk.EventHandler
	Persistent       bool
	ToolTipText      Property
	Visible          Property

	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo **walk.Separator
}

func (VSeparator) Create

func (s VSeparator) Create(builder *Builder) error

type VSpacer

type VSpacer struct {
	MaxSize Size
	MinSize Size
	Name    string

	Column        int
	ColumnSpan    int
	Row           int
	RowSpan       int
	StretchFactor int

	GreedyLocallyOnly bool
	Size              int
}

func (VSpacer) Create

func (vs VSpacer) Create(builder *Builder) (err error)

type VSplitter

type VSplitter struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	Row                int
	RowSpan            int
	StretchFactor      int

	Children   []Widget
	DataBinder DataBinder

	AssignTo    **walk.Splitter
	HandleWidth int
}

func (VSplitter) Create

func (s VSplitter) Create(builder *Builder) error

type Validator

type Validator interface {
	Create() (walk.Validator, error)
}

type ValidatorRef

type ValidatorRef struct {
	Validator walk.Validator
}

func (ValidatorRef) Create

func (vr ValidatorRef) Create() (walk.Validator, error)

type VerticalGradientBrush

type VerticalGradientBrush struct {
	Stops []walk.GradientStop
}

func (VerticalGradientBrush) Create

func (vgb VerticalGradientBrush) Create() (walk.Brush, error)

type WebView

type WebView struct {
	Accessibility      Accessibility
	Background         Brush
	ContextMenuItems   []MenuItem
	DoubleBuffering    bool
	Enabled            Property
	Font               Font
	MaxSize            Size
	MinSize            Size
	Name               string
	OnBoundsChanged    walk.EventHandler
	OnKeyDown          walk.KeyEventHandler
	OnKeyPress         walk.KeyEventHandler
	OnKeyUp            walk.KeyEventHandler
	OnMouseDown        walk.MouseEventHandler
	OnMouseMove        walk.MouseEventHandler
	OnMouseUp          walk.MouseEventHandler
	OnSizeChanged      walk.EventHandler
	Persistent         bool
	RightToLeftReading bool
	ToolTipText        Property
	Visible            Property

	Alignment          Alignment2D
	AlwaysConsumeSpace bool
	Column             int
	ColumnSpan         int
	GraphicsEffects    []walk.WidgetGraphicsEffect
	Row                int
	RowSpan            int
	StretchFactor      int

	AssignTo                          **walk.WebView
	NativeContextMenuEnabled          Property
	OnBrowserVisibleChanged           walk.EventHandler
	OnCanGoBackChanged                walk.EventHandler
	OnCanGoForwardChanged             walk.EventHandler
	OnDocumentCompleted               walk.StringEventHandler
	OnDocumentTitleChanged            walk.EventHandler
	OnDownloaded                      walk.EventHandler
	OnDownloading                     walk.EventHandler
	OnNativeContextMenuEnabledChanged walk.EventHandler
	OnNavigated                       walk.StringEventHandler
	OnNavigatedError                  walk.WebViewNavigatedErrorEventHandler
	OnNavigating                      walk.WebViewNavigatingEventHandler
	OnNewWindow                       walk.WebViewNewWindowEventHandler
	OnProgressChanged                 walk.EventHandler
	OnQuitting                        walk.EventHandler
	OnShortcutsEnabledChanged         walk.EventHandler
	OnStatusBarVisibleChanged         walk.EventHandler
	OnStatusTextChanged               walk.EventHandler
	OnTheaterModeChanged              walk.EventHandler
	OnToolBarEnabledChanged           walk.EventHandler
	OnToolBarVisibleChanged           walk.EventHandler
	OnURLChanged                      walk.EventHandler
	OnWindowClosing                   walk.WebViewWindowClosingEventHandler
	ShortcutsEnabled                  Property
	URL                               Property
}

func (WebView) Create

func (wv WebView) Create(builder *Builder) error

type Widget

type Widget interface {
	Create(builder *Builder) error
}

Jump to

Keyboard shortcuts

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