Documentation ¶
Overview ¶
Package trackfocus provides a widget that issues callbacks when a widget loses or gains the focus.
Index ¶
- type FocusGainedCB
- type FocusLostCB
- type Widget
- func (w *Widget) OnFocusGained(f gowid.IWidgetChangedCallback)
- func (w *Widget) OnFocusLost(f gowid.IWidgetChangedCallback)
- func (w *Widget) RemoveOnFocusGained(f gowid.IIdentity)
- func (w *Widget) RemoveOnFocusLost(f gowid.IIdentity)
- func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *Widget) SetSubWidget(wi gowid.IWidget, app gowid.IApp)
- func (w *Widget) SubWidget() gowid.IWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FocusGainedCB ¶
type FocusGainedCB struct{}
type FocusLostCB ¶
type FocusLostCB struct{}
Markers to track the callbacks being added. These just need to be distinct from other markers.
type Widget ¶
func (*Widget) OnFocusGained ¶
func (w *Widget) OnFocusGained(f gowid.IWidgetChangedCallback)
func (*Widget) OnFocusLost ¶
func (w *Widget) OnFocusLost(f gowid.IWidgetChangedCallback)
Boilerplate to make the widget provide methods to add and remove callbacks.
func (*Widget) RemoveOnFocusGained ¶
func (*Widget) RemoveOnFocusLost ¶
Click to show internal directories.
Click to hide internal directories.