Documentation ¶
Overview ¶
Package palettemap provides a widget that can change the color and style of an inner widget.
Index ¶
- func Render(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- type IPaletteMap
- type IPaletteMapper
- type IWidget
- type Map
- type PaletteOverride
- type Widget
- func (w *Widget) FocusMap() IPaletteMapper
- func (w *Widget) NotFocusMap() IPaletteMapper
- func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func (w *Widget) SetSubWidget(inner gowid.IWidget, app gowid.IApp)
- func (w *Widget) String() string
- func (w *Widget) SubWidget() gowid.IWidget
- func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
- func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPaletteMap ¶
type IPaletteMap interface { FocusMap() IPaletteMapper NotFocusMap() IPaletteMapper }
type IPaletteMapper ¶
type IWidget ¶
type IWidget interface { gowid.ICompositeWidget IPaletteMap }
type PaletteOverride ¶
func NewOverride ¶
func NewOverride(app gowid.IApp, newattrs gowid.IPalette) *PaletteOverride
func (*PaletteOverride) CellStyler ¶
func (a *PaletteOverride) CellStyler(name string) (gowid.ICellStyler, bool)
func (*PaletteOverride) RangeOverPalette ¶
func (a *PaletteOverride) RangeOverPalette(f func(k string, v gowid.ICellStyler) bool)
type Widget ¶
type Widget struct { gowid.IWidget *gowid.Callbacks gowid.SubWidgetCallbacks // contains filtered or unexported fields }
Widget that adjusts the palette used - if the rendering context provides for a foreground color of red (when focused), this widget can provide a map from red -> green to change its display
func (*Widget) FocusMap ¶
func (w *Widget) FocusMap() IPaletteMapper
func (*Widget) NotFocusMap ¶
func (w *Widget) NotFocusMap() IPaletteMapper
func (*Widget) RenderSize ¶
func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func (*Widget) SubWidgetSize ¶
func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
Click to show internal directories.
Click to hide internal directories.