Documentation ¶
Index ¶
- type Elementer
- type FileGetter
- type Locator
- func (f *Locator) GainedFocus()
- func (f *Locator) HasFocus() bool
- func (f *Locator) Init(driver gxui.Driver, theme *basic.Theme, mod Mod)
- func (f *Locator) IsFocusable() bool
- func (f *Locator) KeyDown(event gxui.KeyboardEvent)
- func (f *Locator) KeyPress(event gxui.KeyboardEvent) bool
- func (f *Locator) KeyRepeat(event gxui.KeyboardEvent)
- func (f *Locator) KeyStroke(event gxui.KeyStrokeEvent) bool
- func (f *Locator) KeyUp(event gxui.KeyboardEvent)
- func (f *Locator) LoadDir(control gxui.Control)
- func (f *Locator) LostFocus()
- func (f *Locator) OnGainedFocus(callback func()) gxui.EventSubscription
- func (f *Locator) OnLostFocus(callback func()) gxui.EventSubscription
- func (f *Locator) Paint(c gxui.Canvas)
- func (f *Locator) Path() string
- func (f *Locator) SetPath(filePath string)
- type Mod
- type Projecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elementer ¶
type Elementer interface {
Elements() []interface{}
}
Elementer is used to find child elements of an element.
type FileGetter ¶
type FileGetter interface {
CurrentFile() string
}
FileGetter is used to get the currently open file.
TODO: replace this with hooks on opening a file.
type Locator ¶
type Locator struct { mixins.LinearLayout // contains filtered or unexported fields }
Locator is a type of UI element which prompts the user for a file path. It has completion features to help with locating existing files and folders.
func NewLocator ¶
NewLocator initializes and returns a *Locator.
func (*Locator) GainedFocus ¶
func (f *Locator) GainedFocus()
func (*Locator) Init ¶
Init is provided for legacy reasons, as a way to initialize an uninitialized *Locator value. NewLocator should be used instead.
func (*Locator) IsFocusable ¶
func (*Locator) KeyDown ¶
func (f *Locator) KeyDown(event gxui.KeyboardEvent)
func (*Locator) KeyRepeat ¶
func (f *Locator) KeyRepeat(event gxui.KeyboardEvent)
func (*Locator) KeyUp ¶
func (f *Locator) KeyUp(event gxui.KeyboardEvent)
func (*Locator) OnGainedFocus ¶
func (f *Locator) OnGainedFocus(callback func()) gxui.EventSubscription
func (*Locator) OnLostFocus ¶
func (f *Locator) OnLostFocus(callback func()) gxui.EventSubscription
Click to show internal directories.
Click to hide internal directories.