gxui: github.com/nelsam/gxui/mixins Index | Files | Directories

package mixins

import "github.com/nelsam/gxui/mixins"

Index

Package Files

bubble_overlay.go button.go code_editor.go code_editor_line.go code_suggestion_adapter.go default_textbox_line.go drop_down_list.go image.go label.go linear_layout.go list.go panel_holder.go progress_bar.go scroll_bar.go scroll_layout.go splitter_bar.go splitter_layout.go table_layout.go textbox.go tree.go tree_to_list_adapter.go tree_to_list_node.go window.go

type BubbleOverlay Uses

type BubbleOverlay struct {
    base.Container
    // contains filtered or unexported fields
}

func (*BubbleOverlay) Brush Uses

func (o *BubbleOverlay) Brush() gxui.Brush

func (*BubbleOverlay) DesiredSize Uses

func (o *BubbleOverlay) DesiredSize(min, max math.Size) math.Size

func (*BubbleOverlay) Hide Uses

func (o *BubbleOverlay) Hide()

func (*BubbleOverlay) Init Uses

func (o *BubbleOverlay) Init(outer BubbleOverlayOuter, theme gxui.Theme)

func (*BubbleOverlay) LayoutChildren Uses

func (o *BubbleOverlay) LayoutChildren()

func (*BubbleOverlay) Paint Uses

func (o *BubbleOverlay) Paint(c gxui.Canvas)

func (*BubbleOverlay) Pen Uses

func (o *BubbleOverlay) Pen() gxui.Pen

func (*BubbleOverlay) SetBrush Uses

func (o *BubbleOverlay) SetBrush(brush gxui.Brush)

func (*BubbleOverlay) SetPen Uses

func (o *BubbleOverlay) SetPen(pen gxui.Pen)

func (*BubbleOverlay) Show Uses

func (o *BubbleOverlay) Show(control gxui.Control, target math.Point)

type BubbleOverlayOuter Uses

type BubbleOverlayOuter interface {
    base.ContainerOuter
}

type Button Uses

type Button struct {
    LinearLayout
    parts.Focusable
    // contains filtered or unexported fields
}

func (*Button) Click Uses

func (b *Button) Click(ev gxui.MouseEvent) (consume bool)

InputEventHandler override

func (*Button) Init Uses

func (b *Button) Init(outer ButtonOuter, theme gxui.Theme)

func (*Button) IsChecked Uses

func (b *Button) IsChecked() bool

func (*Button) KeyPress Uses

func (b *Button) KeyPress(ev gxui.KeyboardEvent) (consume bool)

func (*Button) Label Uses

func (b *Button) Label() gxui.Label

func (*Button) SetChecked Uses

func (b *Button) SetChecked(checked bool)

func (*Button) SetText Uses

func (b *Button) SetText(text string)

func (*Button) SetType Uses

func (b *Button) SetType(buttonType gxui.ButtonType)

func (*Button) Text Uses

func (b *Button) Text() string

func (*Button) Type Uses

func (b *Button) Type() gxui.ButtonType

type ButtonOuter Uses

type ButtonOuter interface {
    LinearLayoutOuter
    IsChecked() bool
    SetChecked(bool)
}

type Cell Uses

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

func (Cell) AtColumn Uses

func (c Cell) AtColumn(x int) bool

func (Cell) AtRow Uses

func (c Cell) AtRow(y int) bool

type CodeEditor Uses

type CodeEditor struct {
    TextBox
    // contains filtered or unexported fields
}

func (*CodeEditor) Click Uses

func (e *CodeEditor) Click(ev gxui.MouseEvent) (consume bool)

mixins.List overrides

func (*CodeEditor) CreateLine Uses

func (e *CodeEditor) CreateLine(theme gxui.Theme, index int) (TextBoxLine, gxui.Control)

mixins.TextBox overrides

func (*CodeEditor) CreateSuggestionList Uses

func (e *CodeEditor) CreateSuggestionList() gxui.List

func (*CodeEditor) HideLines Uses

func (e *CodeEditor) HideLines(from int, to int)

func (*CodeEditor) HideSuggestionList Uses

func (e *CodeEditor) HideSuggestionList()

func (*CodeEditor) Init Uses

func (e *CodeEditor) Init(outer CodeEditorOuter, driver gxui.Driver, theme gxui.Theme, font gxui.Font)

func (*CodeEditor) IsSuggestionListShowing Uses

func (e *CodeEditor) IsSuggestionListShowing() bool

func (*CodeEditor) ItemSize Uses

func (e *CodeEditor) ItemSize(theme gxui.Theme) math.Size

func (*CodeEditor) KeyPress Uses

func (e *CodeEditor) KeyPress(ev gxui.KeyboardEvent) (consume bool)

func (*CodeEditor) KeyStroke Uses

func (e *CodeEditor) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool)

func (*CodeEditor) Line Uses

func (e *CodeEditor) Line(idx int) TextBoxLine

func (*CodeEditor) MaxLineWidth Uses

func (e *CodeEditor) MaxLineWidth() int

func (*CodeEditor) RevealLines Uses

func (e *CodeEditor) RevealLines(from int, to int)

func (*CodeEditor) ScrollToRune Uses

func (e *CodeEditor) ScrollToRune(i int)

func (*CodeEditor) SetHorizOffset Uses

func (e *CodeEditor) SetHorizOffset(offset int)

func (*CodeEditor) SetSize Uses

func (e *CodeEditor) SetSize(size math.Size)

func (*CodeEditor) SetSuggestionProvider Uses

func (e *CodeEditor) SetSuggestionProvider(provider gxui.CodeSuggestionProvider)

func (*CodeEditor) SetSyntaxLayers Uses

func (e *CodeEditor) SetSyntaxLayers(layers gxui.CodeSyntaxLayers)

func (*CodeEditor) SetTabSpaces Uses

func (e *CodeEditor) SetTabSpaces(useSpaces bool)

func (*CodeEditor) SetTabWidth Uses

func (e *CodeEditor) SetTabWidth(tabWidth int)

func (*CodeEditor) ShowSuggestionList Uses

func (e *CodeEditor) ShowSuggestionList()

func (*CodeEditor) SizeChanged Uses

func (e *CodeEditor) SizeChanged()

func (*CodeEditor) SortSuggestionList Uses

func (e *CodeEditor) SortSuggestionList()

func (*CodeEditor) SuggestionProvider Uses

func (e *CodeEditor) SuggestionProvider() gxui.CodeSuggestionProvider

func (*CodeEditor) SyntaxLayers Uses

func (e *CodeEditor) SyntaxLayers() gxui.CodeSyntaxLayers

func (*CodeEditor) TabSpaces Uses

func (e *CodeEditor) TabSpaces() bool

func (*CodeEditor) TabWidth Uses

func (e *CodeEditor) TabWidth() int

type CodeEditorLine Uses

type CodeEditorLine struct {
    DefaultTextBoxLine
    // contains filtered or unexported fields
}

CodeEditorLine

func (*CodeEditorLine) Init Uses

func (l *CodeEditorLine) Init(outer CodeEditorLineOuter, theme gxui.Theme, ce *CodeEditor, lineIndex int)

func (*CodeEditorLine) Paint Uses

func (l *CodeEditorLine) Paint(c gxui.Canvas)

DefaultTextBoxLine overrides

func (*CodeEditorLine) PaintBackgroundSpans Uses

func (l *CodeEditorLine) PaintBackgroundSpans(c gxui.Canvas, info CodeEditorLinePaintInfo)

func (*CodeEditorLine) PaintBorders Uses

func (l *CodeEditorLine) PaintBorders(c gxui.Canvas, info CodeEditorLinePaintInfo)

func (*CodeEditorLine) PaintEditorCarets Uses

func (l *CodeEditorLine) PaintEditorCarets(c gxui.Canvas, info CodeEditorLinePaintInfo)

func (*CodeEditorLine) PaintEditorSelections Uses

func (l *CodeEditorLine) PaintEditorSelections(c gxui.Canvas, info CodeEditorLinePaintInfo)

func (*CodeEditorLine) PaintGlyphs Uses

func (l *CodeEditorLine) PaintGlyphs(c gxui.Canvas, info CodeEditorLinePaintInfo)

func (*CodeEditorLine) PositionAt Uses

func (l *CodeEditorLine) PositionAt(runeIndex int) math.Point

func (*CodeEditorLine) RuneIndexAt Uses

func (l *CodeEditorLine) RuneIndexAt(p math.Point) int

type CodeEditorLineOuter Uses

type CodeEditorLineOuter interface {
    DefaultTextBoxLineOuter
    PaintEditorSelections(gxui.Canvas, CodeEditorLinePaintInfo)
    PaintEditorCarets(gxui.Canvas, CodeEditorLinePaintInfo)
    PaintBackgroundSpans(gxui.Canvas, CodeEditorLinePaintInfo)
    PaintGlyphs(gxui.Canvas, CodeEditorLinePaintInfo)
    PaintBorders(gxui.Canvas, CodeEditorLinePaintInfo)
}

type CodeEditorLinePaintInfo Uses

type CodeEditorLinePaintInfo struct {
    LineSpan     interval.IntData
    Runes        []rune
    GlyphOffsets []math.Point
    GlyphWidth   int
    LineHeight   int
    Font         gxui.Font
}

type CodeEditorOuter Uses

type CodeEditorOuter interface {
    TextBoxOuter
    CreateSuggestionList() gxui.List
}

type DefaultTextBoxLine Uses

type DefaultTextBoxLine struct {
    base.Control
    // contains filtered or unexported fields
}

DefaultTextBoxLine

func (*DefaultTextBoxLine) DesiredSize Uses

func (t *DefaultTextBoxLine) DesiredSize(min, max math.Size) math.Size

func (*DefaultTextBoxLine) Init Uses

func (t *DefaultTextBoxLine) Init(outer DefaultTextBoxLineOuter, theme gxui.Theme, textbox *TextBox, lineIndex int)

func (*DefaultTextBoxLine) MeasureRunes Uses

func (t *DefaultTextBoxLine) MeasureRunes(s, e int) math.Size

func (*DefaultTextBoxLine) Paint Uses

func (t *DefaultTextBoxLine) Paint(c gxui.Canvas)

func (*DefaultTextBoxLine) PaintCaret Uses

func (t *DefaultTextBoxLine) PaintCaret(c gxui.Canvas, top, bottom math.Point)

func (*DefaultTextBoxLine) PaintCarets Uses

func (t *DefaultTextBoxLine) PaintCarets(c gxui.Canvas)

func (*DefaultTextBoxLine) PaintSelection Uses

func (t *DefaultTextBoxLine) PaintSelection(c gxui.Canvas, top, bottom math.Point)

func (*DefaultTextBoxLine) PaintSelections Uses

func (t *DefaultTextBoxLine) PaintSelections(c gxui.Canvas)

func (*DefaultTextBoxLine) PaintText Uses

func (t *DefaultTextBoxLine) PaintText(c gxui.Canvas)

func (*DefaultTextBoxLine) PositionAt Uses

func (t *DefaultTextBoxLine) PositionAt(runeIndex int) math.Point

func (*DefaultTextBoxLine) RuneIndexAt Uses

func (t *DefaultTextBoxLine) RuneIndexAt(p math.Point) int

TextBoxLine compliance

func (*DefaultTextBoxLine) SetCaretWidth Uses

func (t *DefaultTextBoxLine) SetCaretWidth(width int)

func (*DefaultTextBoxLine) SetOffset Uses

func (t *DefaultTextBoxLine) SetOffset(offset int)

type DefaultTextBoxLineOuter Uses

type DefaultTextBoxLineOuter interface {
    base.ControlOuter
    MeasureRunes(s, e int) math.Size
    PaintText(c gxui.Canvas)
    PaintCarets(c gxui.Canvas)
    PaintCaret(c gxui.Canvas, top, bottom math.Point)
    PaintSelections(c gxui.Canvas)
    PaintSelection(c gxui.Canvas, top, bottom math.Point)
}
type DropDownList struct {
    base.Container
    parts.BackgroundBorderPainter
    parts.Focusable
    // contains filtered or unexported fields
}
func (l *DropDownList) Adapter() gxui.ListAdapter
func (l *DropDownList) BubbleOverlay() gxui.BubbleOverlay
func (l *DropDownList) Click(ev gxui.MouseEvent) (consume bool)

InputEventHandler override

func (l *DropDownList) DataReplaced()
func (l *DropDownList) DesiredSize(min, max math.Size) math.Size
func (l *DropDownList) HideList()
func (l *DropDownList) Init(outer DropDownListOuter, theme gxui.Theme)
func (l *DropDownList) KeyPress(ev gxui.KeyboardEvent) (consume bool)

InputEventHandler overrides

func (l *DropDownList) LayoutChildren()
func (l *DropDownList) List() gxui.List
func (l *DropDownList) ListShowing() bool
func (l *DropDownList) OnHideList(f func()) gxui.EventSubscription
func (l *DropDownList) OnSelectionChanged(f func(gxui.AdapterItem)) gxui.EventSubscription
func (l *DropDownList) OnShowList(f func()) gxui.EventSubscription
func (l *DropDownList) Paint(c gxui.Canvas)

parts.Container overrides

func (l *DropDownList) Select(item gxui.AdapterItem)
func (l *DropDownList) Selected() gxui.AdapterItem
func (l *DropDownList) SetAdapter(adapter gxui.ListAdapter)
func (l *DropDownList) SetBubbleOverlay(overlay gxui.BubbleOverlay)

gxui.DropDownList compliance

func (l *DropDownList) ShowList() bool
type DropDownListOuter interface {
    base.ContainerOuter
}

type Image Uses

type Image struct {
    base.Control
    parts.BackgroundBorderPainter
    // contains filtered or unexported fields
}

func (*Image) AspectMode Uses

func (i *Image) AspectMode() gxui.AspectMode

func (*Image) Canvas Uses

func (i *Image) Canvas() gxui.Canvas

func (*Image) DesiredSize Uses

func (i *Image) DesiredSize(min, max math.Size) math.Size

func (*Image) Init Uses

func (i *Image) Init(outer ImageOuter, theme gxui.Theme)

func (*Image) Paint Uses

func (i *Image) Paint(c gxui.Canvas)

func (*Image) PixelAt Uses

func (i *Image) PixelAt(p math.Point) (math.Point, bool)

func (*Image) ScalingMode Uses

func (i *Image) ScalingMode() gxui.ScalingMode

func (*Image) SetAspectMode Uses

func (i *Image) SetAspectMode(mode gxui.AspectMode)

func (*Image) SetCanvas Uses

func (i *Image) SetCanvas(canvas gxui.Canvas)

func (*Image) SetExplicitSize Uses

func (i *Image) SetExplicitSize(explicitSize math.Size)

func (*Image) SetScalingMode Uses

func (i *Image) SetScalingMode(mode gxui.ScalingMode)

func (*Image) SetTexture Uses

func (i *Image) SetTexture(tex gxui.Texture)

func (*Image) Texture Uses

func (i *Image) Texture() gxui.Texture

type ImageOuter Uses

type ImageOuter interface {
    base.ControlOuter
}

type Label Uses

type Label struct {
    base.Control
    // contains filtered or unexported fields
}

func (*Label) Color Uses

func (l *Label) Color() gxui.Color

func (*Label) DesiredSize Uses

func (l *Label) DesiredSize(min, max math.Size) math.Size

func (*Label) Font Uses

func (l *Label) Font() gxui.Font

func (*Label) HorizontalAlignment Uses

func (l *Label) HorizontalAlignment() gxui.HorizontalAlignment

func (*Label) Init Uses

func (l *Label) Init(outer LabelOuter, theme gxui.Theme, font gxui.Font, color gxui.Color)

func (*Label) Multiline Uses

func (l *Label) Multiline() bool

func (*Label) Paint Uses

func (l *Label) Paint(c gxui.Canvas)

parts.DrawPaint overrides

func (*Label) SetColor Uses

func (l *Label) SetColor(color gxui.Color)

func (*Label) SetFont Uses

func (l *Label) SetFont(font gxui.Font)

func (*Label) SetHorizontalAlignment Uses

func (l *Label) SetHorizontalAlignment(horizontalAlignment gxui.HorizontalAlignment)

func (*Label) SetMultiline Uses

func (l *Label) SetMultiline(multiline bool)

func (*Label) SetText Uses

func (l *Label) SetText(text string)

func (*Label) SetVerticalAlignment Uses

func (l *Label) SetVerticalAlignment(verticalAlignment gxui.VerticalAlignment)

func (*Label) Text Uses

func (l *Label) Text() string

func (*Label) VerticalAlignment Uses

func (l *Label) VerticalAlignment() gxui.VerticalAlignment

type LabelOuter Uses

type LabelOuter interface {
    base.ControlOuter
}

type LinearLayout Uses

type LinearLayout struct {
    base.Container
    parts.LinearLayout
    parts.BackgroundBorderPainter
}

func (*LinearLayout) Init Uses

func (l *LinearLayout) Init(outer LinearLayoutOuter, theme gxui.Theme)

func (*LinearLayout) Paint Uses

func (l *LinearLayout) Paint(c gxui.Canvas)

type LinearLayoutOuter Uses

type LinearLayoutOuter interface {
    base.ContainerOuter
}

type List Uses

type List struct {
    base.Container
    parts.BackgroundBorderPainter
    parts.Focusable
    // contains filtered or unexported fields
}

func (*List) Adapter Uses

func (l *List) Adapter() gxui.ListAdapter

gxui.List compliance

func (*List) ChangeHiddenCount Uses

func (l *List) ChangeHiddenCount(value int)

func (*List) ContainsItem Uses

func (l *List) ContainsItem(item gxui.AdapterItem) bool

func (*List) DataChanged Uses

func (l *List) DataChanged(recreateControls bool)

func (*List) DataReplaced Uses

func (l *List) DataReplaced()

func (*List) DesiredSize Uses

func (l *List) DesiredSize(min, max math.Size) math.Size

func (*List) Init Uses

func (l *List) Init(outer ListOuter, theme gxui.Theme)

func (*List) IsItemVisible Uses

func (l *List) IsItemVisible(item gxui.AdapterItem) bool

func (*List) ItemClicked Uses

func (l *List) ItemClicked(ev gxui.MouseEvent, item gxui.AdapterItem)

func (*List) ItemControl Uses

func (l *List) ItemControl(item gxui.AdapterItem) gxui.Control

func (*List) KeyPress Uses

func (l *List) KeyPress(ev gxui.KeyboardEvent) (consume bool)

func (*List) LayoutChildren Uses

func (l *List) LayoutChildren()

func (*List) MajorAxisItemSize Uses

func (l *List) MajorAxisItemSize() int

func (*List) MouseExit Uses

func (l *List) MouseExit(ev gxui.MouseEvent)

func (*List) MouseMove Uses

func (l *List) MouseMove(ev gxui.MouseEvent)

InputEventHandler override

func (*List) MouseScroll Uses

func (l *List) MouseScroll(ev gxui.MouseEvent) (consume bool)

func (*List) OnItemClicked Uses

func (l *List) OnItemClicked(f func(gxui.MouseEvent, gxui.AdapterItem)) gxui.EventSubscription

func (*List) OnSelectionChanged Uses

func (l *List) OnSelectionChanged(f func(gxui.AdapterItem)) gxui.EventSubscription

func (*List) Orientation Uses

func (l *List) Orientation() gxui.Orientation

func (*List) Paint Uses

func (l *List) Paint(c gxui.Canvas)

func (*List) PaintChild Uses

func (l *List) PaintChild(c gxui.Canvas, child *gxui.Child, idx int)

PaintChildren overrides

func (*List) PaintMouseOverBackground Uses

func (l *List) PaintMouseOverBackground(c gxui.Canvas, r math.Rect)

func (*List) PaintSelection Uses

func (l *List) PaintSelection(c gxui.Canvas, r math.Rect)

func (*List) RemoveAll Uses

func (l *List) RemoveAll()

func (*List) ScrollBarEnabled Uses

func (l *List) ScrollBarEnabled(bool) bool

func (*List) ScrollOffset Uses

func (l *List) ScrollOffset() int

func (*List) ScrollRound Uses

func (l *List) ScrollRound() bool

func (*List) ScrollTo Uses

func (l *List) ScrollTo(item gxui.AdapterItem)

func (*List) Select Uses

func (l *List) Select(item gxui.AdapterItem) bool

func (*List) SelectNext Uses

func (l *List) SelectNext()

func (*List) SelectPrevious Uses

func (l *List) SelectPrevious()

func (*List) Selected Uses

func (l *List) Selected() gxui.AdapterItem

func (*List) SetAdapter Uses

func (l *List) SetAdapter(adapter gxui.ListAdapter)

func (*List) SetOrientation Uses

func (l *List) SetOrientation(o gxui.Orientation)

func (*List) SetScrollBarEnabled Uses

func (l *List) SetScrollBarEnabled(enabled bool)

func (*List) SetScrollOffset Uses

func (l *List) SetScrollOffset(scrollOffset int)

func (*List) SetScrollRound Uses

func (l *List) SetScrollRound(value bool)

func (*List) SetSize Uses

func (l *List) SetSize(size math.Size)

func (*List) SizeChanged Uses

func (l *List) SizeChanged()

func (*List) UpdateItemMouseOver Uses

func (l *List) UpdateItemMouseOver()

func (*List) VisibleItemRange Uses

func (l *List) VisibleItemRange(includePartiallyVisible bool) (startIndex, endIndex int)

type ListOuter Uses

type ListOuter interface {
    base.ContainerOuter
    ContainsItem(gxui.AdapterItem) bool
    PaintBackground(c gxui.Canvas, r math.Rect)
    PaintMouseOverBackground(c gxui.Canvas, r math.Rect)
    PaintSelection(c gxui.Canvas, r math.Rect)
    PaintBorder(c gxui.Canvas, r math.Rect)
}

type PanelEntry Uses

type PanelEntry struct {
    Tab                   PanelTab
    Panel                 gxui.Control
    MouseDownSubscription gxui.EventSubscription
}

type PanelHolder Uses

type PanelHolder struct {
    base.Container
    // contains filtered or unexported fields
}

func (*PanelHolder) AddPanel Uses

func (p *PanelHolder) AddPanel(panel gxui.Control, name string)

gxui.PanelHolder compliance

func (*PanelHolder) AddPanelAt Uses

func (p *PanelHolder) AddPanelAt(panel gxui.Control, name string, index int)

func (*PanelHolder) Begin Uses

func (p *PanelHolder) Begin() int

func (*PanelHolder) DesiredSize Uses

func (p *PanelHolder) DesiredSize(min, max math.Size) math.Size

func (*PanelHolder) End Uses

func (p *PanelHolder) End() int

func (*PanelHolder) Init Uses

func (p *PanelHolder) Init(outer PanelHolderOuter, theme gxui.Theme)

func (*PanelHolder) LayoutChildren Uses

func (p *PanelHolder) LayoutChildren()

func (*PanelHolder) Panel Uses

func (p *PanelHolder) Panel(index int) gxui.Control

func (*PanelHolder) PanelCount Uses

func (p *PanelHolder) PanelCount() int

func (*PanelHolder) PanelIndex Uses

func (p *PanelHolder) PanelIndex(panel gxui.Control) int

func (*PanelHolder) RemovePanel Uses

func (p *PanelHolder) RemovePanel(panel gxui.Control)

func (*PanelHolder) Select Uses

func (p *PanelHolder) Select(index int)

func (*PanelHolder) SelectNext Uses

func (p *PanelHolder) SelectNext()

func (*PanelHolder) SelectPrev Uses

func (p *PanelHolder) SelectPrev()

func (*PanelHolder) SelectedPanel Uses

func (p *PanelHolder) SelectedPanel() gxui.Control

func (*PanelHolder) SetLeftSwitchButtonText Uses

func (p *PanelHolder) SetLeftSwitchButtonText(text string)

func (*PanelHolder) SetMaxLabelLength Uses

func (p *PanelHolder) SetMaxLabelLength(length int)

func (*PanelHolder) SetRightSwitchButtonText Uses

func (p *PanelHolder) SetRightSwitchButtonText(text string)

func (*PanelHolder) SetSwitchButtonMode Uses

func (p *PanelHolder) SetSwitchButtonMode(mode gxui.SwitchButtonMode)

func (*PanelHolder) SetSwitchMode Uses

func (p *PanelHolder) SetSwitchMode(mode gxui.SwitchMode)

func (*PanelHolder) SwitchButtonMode Uses

func (p *PanelHolder) SwitchButtonMode() gxui.SwitchButtonMode

func (*PanelHolder) SwitchMode Uses

func (p *PanelHolder) SwitchMode() gxui.SwitchMode

func (*PanelHolder) Tab Uses

func (p *PanelHolder) Tab(index int) gxui.Control

type PanelHolderOuter Uses

type PanelHolderOuter interface {
    base.ContainerNoControlOuter
    gxui.PanelHolder
    PanelTabCreater
}

type PanelTab Uses

type PanelTab interface {
    gxui.Control
    SetText(string)
    SetActive(bool)
    SetMaxLabelLength(int)
    LabelLength() int
    HasFixedLength() bool
}

type PanelTabCreater Uses

type PanelTabCreater interface {
    CreatePanelTab() PanelTab
}

type ProgressBar Uses

type ProgressBar struct {
    base.Control
    parts.BackgroundBorderPainter
    // contains filtered or unexported fields
}

func (*ProgressBar) DesiredSize Uses

func (b *ProgressBar) DesiredSize(min, max math.Size) math.Size

func (*ProgressBar) Init Uses

func (b *ProgressBar) Init(outer ProgressBarOuter, theme gxui.Theme)

func (*ProgressBar) Paint Uses

func (b *ProgressBar) Paint(c gxui.Canvas)

func (*ProgressBar) PaintProgress Uses

func (b *ProgressBar) PaintProgress(c gxui.Canvas, r math.Rect, frac float32)

func (*ProgressBar) Progress Uses

func (b *ProgressBar) Progress() int

func (*ProgressBar) SetDesiredSize Uses

func (b *ProgressBar) SetDesiredSize(size math.Size)

gxui.ProgressBar compliance

func (*ProgressBar) SetProgress Uses

func (b *ProgressBar) SetProgress(progress int)

func (*ProgressBar) SetTarget Uses

func (b *ProgressBar) SetTarget(target int)

func (*ProgressBar) Target Uses

func (b *ProgressBar) Target() int

type ProgressBarOuter Uses

type ProgressBarOuter interface {
    base.ControlOuter
    PaintProgress(gxui.Canvas, math.Rect, float32)
}

type ScrollBar Uses

type ScrollBar struct {
    base.Control
    // contains filtered or unexported fields
}

func (*ScrollBar) AutoHide Uses

func (s *ScrollBar) AutoHide() bool

func (*ScrollBar) BarBrush Uses

func (s *ScrollBar) BarBrush() gxui.Brush

func (*ScrollBar) BarPen Uses

func (s *ScrollBar) BarPen() gxui.Pen

func (*ScrollBar) Click Uses

func (s *ScrollBar) Click(ev gxui.MouseEvent) (consume bool)

InputEventHandler overrides

func (*ScrollBar) DesiredSize Uses

func (s *ScrollBar) DesiredSize(min, max math.Size) math.Size

func (*ScrollBar) Init Uses

func (s *ScrollBar) Init(outer ScrollBarOuter, theme gxui.Theme)

func (*ScrollBar) IsVisible Uses

func (s *ScrollBar) IsVisible() bool

func (*ScrollBar) MouseDown Uses

func (s *ScrollBar) MouseDown(ev gxui.MouseEvent)

func (*ScrollBar) OnScroll Uses

func (s *ScrollBar) OnScroll(f func(from, to int)) gxui.EventSubscription

func (*ScrollBar) Orientation Uses

func (s *ScrollBar) Orientation() gxui.Orientation

func (*ScrollBar) Paint Uses

func (s *ScrollBar) Paint(c gxui.Canvas)

func (*ScrollBar) RailBrush Uses

func (s *ScrollBar) RailBrush() gxui.Brush

func (*ScrollBar) RailPen Uses

func (s *ScrollBar) RailPen() gxui.Pen

func (*ScrollBar) ScrollFraction Uses

func (s *ScrollBar) ScrollFraction() (from, to float32)

func (*ScrollBar) ScrollLimit Uses

func (s *ScrollBar) ScrollLimit() int

func (*ScrollBar) ScrollPosition Uses

func (s *ScrollBar) ScrollPosition() (from, to int)

func (*ScrollBar) SetAutoHide Uses

func (s *ScrollBar) SetAutoHide(autoHide bool)

func (*ScrollBar) SetBarBrush Uses

func (s *ScrollBar) SetBarBrush(b gxui.Brush)

func (*ScrollBar) SetBarPen Uses

func (s *ScrollBar) SetBarPen(b gxui.Pen)

func (*ScrollBar) SetOrientation Uses

func (s *ScrollBar) SetOrientation(o gxui.Orientation)

func (*ScrollBar) SetRailBrush Uses

func (s *ScrollBar) SetRailBrush(b gxui.Brush)

func (*ScrollBar) SetRailPen Uses

func (s *ScrollBar) SetRailPen(b gxui.Pen)

func (*ScrollBar) SetScrollLimit Uses

func (s *ScrollBar) SetScrollLimit(l int)

func (*ScrollBar) SetScrollPosition Uses

func (s *ScrollBar) SetScrollPosition(from, to int)

type ScrollBarOuter Uses

type ScrollBarOuter interface {
    base.ControlOuter
}

type ScrollLayout Uses

type ScrollLayout struct {
    base.Container
    parts.BackgroundBorderPainter
    // contains filtered or unexported fields
}

func (*ScrollLayout) Child Uses

func (l *ScrollLayout) Child() gxui.Control

func (*ScrollLayout) DesiredSize Uses

func (l *ScrollLayout) DesiredSize(min, max math.Size) math.Size

func (*ScrollLayout) Init Uses

func (l *ScrollLayout) Init(outer ScrollLayoutOuter, theme gxui.Theme)

func (*ScrollLayout) LayoutChildren Uses

func (l *ScrollLayout) LayoutChildren()

func (*ScrollLayout) MouseScroll Uses

func (l *ScrollLayout) MouseScroll(ev gxui.MouseEvent) (consume bool)

InputEventHandler override

func (*ScrollLayout) ScrollAxis Uses

func (l *ScrollLayout) ScrollAxis() (horizontal, vertical bool)

func (*ScrollLayout) SetChild Uses

func (l *ScrollLayout) SetChild(control gxui.Control)

gxui.ScrollLayout complaince

func (*ScrollLayout) SetScrollAxis Uses

func (l *ScrollLayout) SetScrollAxis(horizontal, vertical bool)

func (*ScrollLayout) SetScrollOffset Uses

func (l *ScrollLayout) SetScrollOffset(scrollOffset math.Point) bool

type ScrollLayoutOuter Uses

type ScrollLayoutOuter interface {
    base.ContainerOuter
}

type SplitterBar Uses

type SplitterBar struct {
    base.Control
    // contains filtered or unexported fields
}

func (*SplitterBar) Init Uses

func (b *SplitterBar) Init(outer SplitterBarOuter, theme gxui.Theme)

func (*SplitterBar) IsDragging Uses

func (b *SplitterBar) IsDragging() bool

func (*SplitterBar) MouseDown Uses

func (b *SplitterBar) MouseDown(e gxui.MouseEvent)

InputEventHandler overrides

func (*SplitterBar) OnDragEnd Uses

func (b *SplitterBar) OnDragEnd(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*SplitterBar) OnDragStart Uses

func (b *SplitterBar) OnDragStart(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*SplitterBar) OnSplitterDragged Uses

func (b *SplitterBar) OnSplitterDragged(f func(wndPnt math.Point))

func (*SplitterBar) Paint Uses

func (b *SplitterBar) Paint(c gxui.Canvas)

parts.DrawPaint overrides

func (*SplitterBar) SetBackgroundColor Uses

func (b *SplitterBar) SetBackgroundColor(c gxui.Color)

func (*SplitterBar) SetForegroundColor Uses

func (b *SplitterBar) SetForegroundColor(c gxui.Color)

type SplitterBarOuter Uses

type SplitterBarOuter interface {
    base.ControlOuter
}

type SplitterLayout Uses

type SplitterLayout struct {
    base.Container
    // contains filtered or unexported fields
}

func (*SplitterLayout) AddChildAt Uses

func (l *SplitterLayout) AddChildAt(index int, control gxui.Control) *gxui.Child

func (*SplitterLayout) ChildWeight Uses

func (l *SplitterLayout) ChildWeight(child gxui.Control) float32

func (*SplitterLayout) CreateSplitterBar Uses

func (l *SplitterLayout) CreateSplitterBar() gxui.Control

func (*SplitterLayout) DesiredSize Uses

func (l *SplitterLayout) DesiredSize(min, max math.Size) math.Size

func (*SplitterLayout) Init Uses

func (l *SplitterLayout) Init(outer SplitterLayoutOuter, theme gxui.Theme)

func (*SplitterLayout) LayoutChildren Uses

func (l *SplitterLayout) LayoutChildren()

func (*SplitterLayout) Orientation Uses

func (l *SplitterLayout) Orientation() gxui.Orientation

func (*SplitterLayout) RemoveChildAt Uses

func (l *SplitterLayout) RemoveChildAt(index int)

func (*SplitterLayout) SetChildWeight Uses

func (l *SplitterLayout) SetChildWeight(child gxui.Control, weight float32)

func (*SplitterLayout) SetOrientation Uses

func (l *SplitterLayout) SetOrientation(o gxui.Orientation)

func (*SplitterLayout) SplitterDragged Uses

func (l *SplitterLayout) SplitterDragged(splitter gxui.Control, wndPnt math.Point)

type SplitterLayoutOuter Uses

type SplitterLayoutOuter interface {
    base.ContainerOuter
    CreateSplitterBar() gxui.Control
}

type SuggestionAdapter Uses

type SuggestionAdapter struct {
    gxui.FilteredListAdapter
}

func (*SuggestionAdapter) SetSuggestions Uses

func (a *SuggestionAdapter) SetSuggestions(suggestions []gxui.CodeSuggestion)

func (*SuggestionAdapter) Suggestion Uses

func (a *SuggestionAdapter) Suggestion(item gxui.AdapterItem) gxui.CodeSuggestion

type TableLayout Uses

type TableLayout struct {
    base.Container
    // contains filtered or unexported fields
}

func (*TableLayout) DesiredSize Uses

func (l *TableLayout) DesiredSize(min, max math.Size) math.Size

func (*TableLayout) Init Uses

func (l *TableLayout) Init(outer TableLayoutOuter, theme gxui.Theme)

func (*TableLayout) LayoutChildren Uses

func (l *TableLayout) LayoutChildren()

func (*TableLayout) RemoveChild Uses

func (l *TableLayout) RemoveChild(child gxui.Control)

func (*TableLayout) SetChildAt Uses

func (l *TableLayout) SetChildAt(x, y, w, h int, child gxui.Control) *gxui.Child

func (*TableLayout) SetGrid Uses

func (l *TableLayout) SetGrid(columns, rows int)

type TableLayoutOuter Uses

type TableLayoutOuter interface {
    base.ContainerOuter
}

type TextBox Uses

type TextBox struct {
    List
    gxui.AdapterBase
    parts.Focusable
    // contains filtered or unexported fields
}

TextBox is a mixin for text boxes. It is not guaranteed to be goroutine-safe, but simple accessors to the underlying text is controlled by gxui.TextBoxController, which is itself goroutine-safe.

It's encouraged to develop with the driver in debug mode so that functions that must be called on the UI goroutine will panic if they are called on non-UI goroutines.

func (*TextBox) Carets Uses

func (t *TextBox) Carets() []int

func (*TextBox) Click Uses

func (t *TextBox) Click(ev gxui.MouseEvent) (consume bool)

func (*TextBox) Controller Uses

func (t *TextBox) Controller() *gxui.TextBoxController

func (*TextBox) CreateLine Uses

func (t *TextBox) CreateLine(theme gxui.Theme, index int) (line TextBoxLine, container gxui.Control)

func (*TextBox) DesiredWidth Uses

func (t *TextBox) DesiredWidth() int

func (*TextBox) DoubleClick Uses

func (t *TextBox) DoubleClick(ev gxui.MouseEvent) (consume bool)

func (*TextBox) Font Uses

func (t *TextBox) Font() gxui.Font

func (*TextBox) HorizOffset Uses

func (t *TextBox) HorizOffset() int

func (*TextBox) Init Uses

func (t *TextBox) Init(outer TextBoxOuter, driver gxui.Driver, theme gxui.Theme, font gxui.Font)

func (*TextBox) KeyPress Uses

func (t *TextBox) KeyPress(ev gxui.KeyboardEvent) (consume bool)

func (*TextBox) KeyStroke Uses

func (t *TextBox) KeyStroke(ev gxui.KeyStrokeEvent) (consume bool)

func (*TextBox) LayoutChildren Uses

func (t *TextBox) LayoutChildren()

func (*TextBox) LineEnd Uses

func (t *TextBox) LineEnd(line int) int

func (*TextBox) LineIndex Uses

func (t *TextBox) LineIndex(runeIndex int) int

func (*TextBox) LineStart Uses

func (t *TextBox) LineStart(line int) int

func (*TextBox) MaxLineWidth Uses

func (t *TextBox) MaxLineWidth() int

func (*TextBox) MouseMove Uses

func (t *TextBox) MouseMove(ev gxui.MouseEvent)

func (*TextBox) Multiline Uses

func (t *TextBox) Multiline() bool

func (*TextBox) OnRedrawLines Uses

func (t *TextBox) OnRedrawLines(f func()) gxui.EventSubscription

func (*TextBox) OnSelectionChanged Uses

func (t *TextBox) OnSelectionChanged(f func()) gxui.EventSubscription

func (*TextBox) OnTextChanged Uses

func (t *TextBox) OnTextChanged(f func([]gxui.TextBoxEdit)) gxui.EventSubscription

func (*TextBox) Paint Uses

func (t *TextBox) Paint(c gxui.Canvas)

func (*TextBox) PaintChild Uses

func (t *TextBox) PaintChild(c gxui.Canvas, child *gxui.Child, idx int)

func (*TextBox) PaintMouseOverBackground Uses

func (t *TextBox) PaintMouseOverBackground(c gxui.Canvas, r math.Rect)

func (*TextBox) PaintSelection Uses

func (t *TextBox) PaintSelection(c gxui.Canvas, r math.Rect)

mixins.List overrides

func (*TextBox) RuneIndexAt Uses

func (t *TextBox) RuneIndexAt(pnt math.Point) (index int, found bool)

func (*TextBox) Runes Uses

func (t *TextBox) Runes() []rune

func (*TextBox) ScrollToLine Uses

func (t *TextBox) ScrollToLine(i int)

func (*TextBox) ScrollToRune Uses

func (t *TextBox) ScrollToRune(i int)

func (*TextBox) Select Uses

func (t *TextBox) Select(sel gxui.TextSelectionList)

func (*TextBox) SelectAll Uses

func (t *TextBox) SelectAll()

func (*TextBox) SelectSlice Uses

func (t *TextBox) SelectSlice(sel []gxui.TextSelection)

func (*TextBox) SelectionPoint Uses

func (t *TextBox) SelectionPoint() math.Point

func (*TextBox) SetDesiredWidth Uses

func (t *TextBox) SetDesiredWidth(desiredWidth int)

func (*TextBox) SetFont Uses

func (t *TextBox) SetFont(font gxui.Font)

func (*TextBox) SetHorizOffset Uses

func (t *TextBox) SetHorizOffset(offset int)

func (*TextBox) SetMultiline Uses

func (t *TextBox) SetMultiline(multiline bool)

func (*TextBox) SetSize Uses

func (t *TextBox) SetSize(size math.Size)

func (*TextBox) SetText Uses

func (t *TextBox) SetText(text string)

func (*TextBox) SetTextColor Uses

func (t *TextBox) SetTextColor(color gxui.Color)

func (*TextBox) SizeChanged Uses

func (t *TextBox) SizeChanged()

func (*TextBox) StartOffset Uses

func (t *TextBox) StartOffset() int

func (*TextBox) Text Uses

func (t *TextBox) Text() string

func (*TextBox) TextAt Uses

func (t *TextBox) TextAt(s, e int) string

func (*TextBox) TextColor Uses

func (t *TextBox) TextColor() gxui.Color

func (*TextBox) WordAt Uses

func (t *TextBox) WordAt(runeIndex int) string

type TextBoxAdapter Uses

type TextBoxAdapter struct {
    gxui.DefaultAdapter
    TextBox *TextBox
}

gxui.AdapterCompliance

func (*TextBoxAdapter) Count Uses

func (t *TextBoxAdapter) Count() int

func (*TextBoxAdapter) Create Uses

func (t *TextBoxAdapter) Create(theme gxui.Theme, index int) gxui.Control

func (*TextBoxAdapter) ItemAt Uses

func (t *TextBoxAdapter) ItemAt(index int) gxui.AdapterItem

func (*TextBoxAdapter) ItemIndex Uses

func (t *TextBoxAdapter) ItemIndex(item gxui.AdapterItem) int

func (*TextBoxAdapter) Size Uses

func (t *TextBoxAdapter) Size(theme gxui.Theme) math.Size

type TextBoxLine Uses

type TextBoxLine interface {
    gxui.Control
    RuneIndexAt(math.Point) int
    PositionAt(int) math.Point
    SetOffset(int)
}

type TextBoxOuter Uses

type TextBoxOuter interface {
    ListOuter
    MaxLineWidth() int
    CreateLine(theme gxui.Theme, index int) (line TextBoxLine, container gxui.Control)
}

type Tree Uses

type Tree struct {
    List
    parts.Focusable
    // contains filtered or unexported fields
}

func (*Tree) Adapter Uses

func (t *Tree) Adapter() gxui.TreeAdapter

func (*Tree) CollapseAll Uses

func (t *Tree) CollapseAll()

func (*Tree) ContainsItem Uses

func (t *Tree) ContainsItem(item gxui.AdapterItem) bool

func (*Tree) ExpandAll Uses

func (t *Tree) ExpandAll()

func (*Tree) Init Uses

func (t *Tree) Init(outer TreeOuter, theme gxui.Theme)

func (*Tree) KeyPress Uses

func (t *Tree) KeyPress(ev gxui.KeyboardEvent) (consume bool)

InputEventHandler override

func (*Tree) PaintChild Uses

func (t *Tree) PaintChild(c gxui.Canvas, child *gxui.Child, idx int)

List override

func (*Tree) PaintUnexpandedSelection Uses

func (t *Tree) PaintUnexpandedSelection(c gxui.Canvas, r math.Rect)

func (*Tree) SetAdapter Uses

func (t *Tree) SetAdapter(adapter gxui.TreeAdapter)

gxui.Tree complaince

func (*Tree) SetControlCreator Uses

func (t *Tree) SetControlCreator(c TreeControlCreator)

func (*Tree) Show Uses

func (t *Tree) Show(item gxui.AdapterItem)

type TreeControlCreator Uses

type TreeControlCreator interface {
    // Create returns a Control that contains control (returned by the backing
    // TreeNode) and visualizes the expanded state of node.
    Create(theme gxui.Theme, control gxui.Control, node *TreeToListNode) gxui.Control

    // Size returns the size that each of the controls returned by Create will
    // be displayed at for the given theme.
    // treeControlSize is the size returned the backing TreeNode.
    Size(theme gxui.Theme, treeControlSize math.Size) math.Size
}

Interface used to visualize tree nodes in as a list.

type TreeOuter Uses

type TreeOuter interface {
    ListOuter
    PaintUnexpandedSelection(c gxui.Canvas, r math.Rect)
}

type TreeToListAdapter Uses

type TreeToListAdapter struct {
    gxui.AdapterBase
    // contains filtered or unexported fields
}

TreeToListAdapter converts a TreeAdapter to a ListAdapter so that the tree can be visualized with a List.

func CreateTreeToListAdapter Uses

func CreateTreeToListAdapter(treeAdapter gxui.TreeAdapter, creator TreeControlCreator) *TreeToListAdapter

CreateTreeToListAdapter wraps the provided TreeAdapter with an adapter conforming to the ListAdapter interface.

func (*TreeToListAdapter) CollapseAll Uses

func (a *TreeToListAdapter) CollapseAll()

CollapseAll collapses this node and all child nodes.

func (*TreeToListAdapter) Contains Uses

func (a *TreeToListAdapter) Contains(item gxui.AdapterItem) bool

Contains returns true if item is part of the tree (regardless of whether it is part of the expanded tree or not).

func (*TreeToListAdapter) Count Uses

func (a *TreeToListAdapter) Count() int

Count returns the total number of expanded nodes in the tree.

func (*TreeToListAdapter) Create Uses

func (a *TreeToListAdapter) Create(theme gxui.Theme, index int) gxui.Control

Create returns a Control visualizing the item at the specified index in the list of all the expanded nodes treated as as a flattened list.

func (*TreeToListAdapter) DeepestNode Uses

func (a *TreeToListAdapter) DeepestNode(item gxui.AdapterItem) *TreeToListNode

DeepestNode returns the deepest expanded node to represent item. If the item is not found in the adapter, then nil is returned.

func (*TreeToListAdapter) ExpandAll Uses

func (a *TreeToListAdapter) ExpandAll()

ExpandAll expands this node and all child nodes.

func (*TreeToListAdapter) ExpandItem Uses

func (a *TreeToListAdapter) ExpandItem(item gxui.AdapterItem)

ExpandItem expands the tree to show item.

func (*TreeToListAdapter) ItemAt Uses

func (a *TreeToListAdapter) ItemAt(idx int) gxui.AdapterItem

ItemAt returns the idx'th item of all the expanded nodes treated as a flattened list. Index 0 represents the first root node, index 1 may represent the the second root node or the first child of the first root node, and so on.

func (*TreeToListAdapter) ItemIndex Uses

func (a *TreeToListAdapter) ItemIndex(item gxui.AdapterItem) int

ItemIndex returns the index of item in the list of all the expanded nodes treated as a flattened list. Index 0 represents the first root node, index 1 may represent the the second root node or the first child of the first root node, and so on.

func (*TreeToListAdapter) Size Uses

func (a *TreeToListAdapter) Size(theme gxui.Theme) math.Size

Size returns the size that each of the item's controls will be displayed at for the given theme.

type TreeToListNode Uses

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

func (*TreeToListNode) Children Uses

func (n *TreeToListNode) Children() []*TreeToListNode

Children returns all the immediate child nodes.

func (*TreeToListNode) Collapse Uses

func (n *TreeToListNode) Collapse() bool

Collapse attempts to collapse the node, returning true if the node collapses. If the node is already collapsed then Collapse returns false.

func (*TreeToListNode) CollapseAll Uses

func (n *TreeToListNode) CollapseAll()

CollapseAll collapses this node and all child nodes.

func (*TreeToListNode) Depth Uses

func (n *TreeToListNode) Depth() int

Depth returns the depth of this node.

func (*TreeToListNode) Descendants Uses

func (n *TreeToListNode) Descendants() int

Descendants returns the total number of descendants of this node.

func (*TreeToListNode) DirectItemIndex Uses

func (n *TreeToListNode) DirectItemIndex(item gxui.AdapterItem) int

DirectItemIndex returns the immediate child index that wraps or indirectly contains item. If no children contain item, the function returns -1.

func (*TreeToListNode) Expand Uses

func (n *TreeToListNode) Expand() bool

Expand attempts to expand the node, returning true if the node expands. If the node is already expanded or is a leaf then Expand returns false.

func (*TreeToListNode) ExpandAll Uses

func (n *TreeToListNode) ExpandAll()

ExpandAll expands this node and all child nodes.

func (*TreeToListNode) IsExpanded Uses

func (n *TreeToListNode) IsExpanded() bool

IsExpanded returns true if the node is currently expanded.

func (*TreeToListNode) IsLeaf Uses

func (n *TreeToListNode) IsLeaf() bool

IsLeaf returns true if the node is a leaf in the tree.

func (*TreeToListNode) Item Uses

func (n *TreeToListNode) Item() gxui.AdapterItem

Item returns the AdapterItem this node represents.

func (*TreeToListNode) ItemAt Uses

func (n *TreeToListNode) ItemAt(idx int) gxui.AdapterItem

ItemAt returns the idx'th item of all the expanded nodes treated as a flattened list. Index 0 represents the first child of n, index 1 may represent the the second child of n or the first grandchild of n, and so on.

func (*TreeToListNode) ItemIndex Uses

func (n *TreeToListNode) ItemIndex(item gxui.AdapterItem) int

ItemIndex returns the index of item in the list of all the expanded nodes treated as a flattened list. Index 0 represents the first child of n, index 1 may represent the the second child of n or the first grandchild of n, and so on.

func (*TreeToListNode) NodeAt Uses

func (n *TreeToListNode) NodeAt(idx int) *TreeToListNode

NodeAt returns the idx'th TreeToListNode of all the expanded nodes under this node treated as a flattened list. Index 0 represents the first child of n, index 1 may represent the the second child of n or the first grandchild of n, and so on.

func (*TreeToListNode) OnChange Uses

func (n *TreeToListNode) OnChange(f func()) gxui.EventSubscription

OnChange registers f to be called when the node is expanded, collapsed or has a change in the number of children.

func (*TreeToListNode) Parent Uses

func (n *TreeToListNode) Parent() *TreeToListNode

Parent returns the parent of this node, or nil if this node is a root.

func (*TreeToListNode) ToggleExpanded Uses

func (n *TreeToListNode) ToggleExpanded() bool

ToggleExpanded attempts to toggles the expanded state of the node, returning true if the state changed.

type Window Uses

type Window struct {
    parts.Attachable
    parts.BackgroundBorderPainter
    parts.Container
    parts.Paddable
    parts.PaintChildren
    // contains filtered or unexported fields
}

func (*Window) Click Uses

func (w *Window) Click(ev gxui.MouseEvent)

func (*Window) Close Uses

func (w *Window) Close()

func (*Window) DoubleClick Uses

func (w *Window) DoubleClick(ev gxui.MouseEvent)

func (*Window) Draw Uses

func (w *Window) Draw() gxui.Canvas

func (*Window) Focus Uses

func (w *Window) Focus() gxui.Focusable

func (*Window) Fullscreen Uses

func (w *Window) Fullscreen() bool

func (*Window) Hide Uses

func (w *Window) Hide()

func (*Window) Icon Uses

func (w *Window) Icon() image.Image

func (*Window) Init Uses

func (w *Window) Init(outer WindowOuter, driver gxui.Driver, width, height int, title string)

func (*Window) IsVisible Uses

func (w *Window) IsVisible() bool

func (*Window) KeyPress Uses

func (w *Window) KeyPress(ev gxui.KeyboardEvent)

func (*Window) KeyStroke Uses

func (w *Window) KeyStroke(gxui.KeyStrokeEvent)

func (*Window) LayoutChildren Uses

func (w *Window) LayoutChildren()

func (*Window) OnClick Uses

func (w *Window) OnClick(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnClose Uses

func (w *Window) OnClose(f func()) gxui.EventSubscription

func (*Window) OnDoubleClick Uses

func (w *Window) OnDoubleClick(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnKeyDown Uses

func (w *Window) OnKeyDown(f func(gxui.KeyboardEvent)) gxui.EventSubscription

func (*Window) OnKeyRepeat Uses

func (w *Window) OnKeyRepeat(f func(gxui.KeyboardEvent)) gxui.EventSubscription

func (*Window) OnKeyStroke Uses

func (w *Window) OnKeyStroke(f func(gxui.KeyStrokeEvent)) gxui.EventSubscription

func (*Window) OnKeyUp Uses

func (w *Window) OnKeyUp(f func(gxui.KeyboardEvent)) gxui.EventSubscription

func (*Window) OnMouseDown Uses

func (w *Window) OnMouseDown(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnMouseEnter Uses

func (w *Window) OnMouseEnter(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnMouseExit Uses

func (w *Window) OnMouseExit(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnMouseMove Uses

func (w *Window) OnMouseMove(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnMouseScroll Uses

func (w *Window) OnMouseScroll(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnMouseUp Uses

func (w *Window) OnMouseUp(f func(gxui.MouseEvent)) gxui.EventSubscription

func (*Window) OnResize Uses

func (w *Window) OnResize(f func()) gxui.EventSubscription

func (*Window) Paint Uses

func (w *Window) Paint(c gxui.Canvas)

func (*Window) Parent Uses

func (w *Window) Parent() gxui.Parent

func (*Window) Position Uses

func (w *Window) Position() math.Point

func (*Window) Redraw Uses

func (w *Window) Redraw()

func (*Window) Relayout Uses

func (w *Window) Relayout()

func (*Window) Scale Uses

func (w *Window) Scale() float32

func (*Window) SetFocus Uses

func (w *Window) SetFocus(c gxui.Control) bool

func (*Window) SetFullscreen Uses

func (w *Window) SetFullscreen(fullscreen bool)

func (*Window) SetIcon Uses

func (w *Window) SetIcon(i image.Image)

func (*Window) SetPosition Uses

func (w *Window) SetPosition(pos math.Point)

func (*Window) SetScale Uses

func (w *Window) SetScale(scale float32)

func (*Window) SetSize Uses

func (w *Window) SetSize(size math.Size)

func (*Window) SetTitle Uses

func (w *Window) SetTitle(t string)

func (*Window) Show Uses

func (w *Window) Show()

func (*Window) Size Uses

func (w *Window) Size() math.Size

func (*Window) Title Uses

func (w *Window) Title() string

func (*Window) Viewport Uses

func (w *Window) Viewport() gxui.Viewport

type WindowOuter Uses

type WindowOuter interface {
    gxui.Window
    outer.Attachable
    outer.IsVisibler
    outer.LayoutChildren
    outer.PaintChilder
    outer.Painter
    outer.Parenter
}

Directories

PathSynopsis
base
outer
parts

Package mixins imports 15 packages (graph) and is imported by 8 packages. Updated 2020-02-27. Refresh now. Tools for package owners.