Documentation ¶
Overview ¶
Package styled provides a colored styled widget.
Index ¶
- type AttributeRange
- type BlinkIfSelectedForCopy
- type BoldIfSelectedForCopy
- type Options
- type ReverseIfSelectedForCopy
- type UsePaletteIfSelectedForCopy
- type Widget
- func New(inner gowid.IWidget, styler gowid.ICellStyler, opts ...Options) *Widget
- func NewExt(inner gowid.IWidget, notFocusStyler, focusStyler gowid.ICellStyler, ...) *Widget
- func NewFocus(inner gowid.IWidget, styler gowid.ICellStyler, opts ...Options) *Widget
- func NewInvertedFocus(inner gowid.IWidget, styler gowid.ICellStyler, opts ...Options) *Widget
- func NewNoFocus(inner gowid.IWidget, styler gowid.ICellStyler, opts ...Options) *Widget
- func NewWithRanges(inner gowid.IWidget, notFocusRange []AttributeRange, ...) *Widget
- 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 ¶
This section is empty.
Types ¶
type AttributeRange ¶
type AttributeRange struct { Start int End int Styler gowid.ICellStyler }
TODO - make a constructor to keep these fields unexported
type BlinkIfSelectedForCopy ¶
type BlinkIfSelectedForCopy struct{}
func (BlinkIfSelectedForCopy) AlterWidget ¶
type BoldIfSelectedForCopy ¶
type BoldIfSelectedForCopy struct{}
func (BoldIfSelectedForCopy) AlterWidget ¶
type Options ¶
type Options struct {
OverWrite bool // If true, then apply the style over any style below; if false, style underneath takes precedence
}
type ReverseIfSelectedForCopy ¶
type ReverseIfSelectedForCopy struct{}
func (ReverseIfSelectedForCopy) AlterWidget ¶
type UsePaletteIfSelectedForCopy ¶
type UsePaletteIfSelectedForCopy struct {
Entry string
}
func (UsePaletteIfSelectedForCopy) AlterWidget ¶
type Widget ¶
type Widget struct { gowid.IWidget *gowid.Callbacks gowid.SubWidgetCallbacks // contains filtered or unexported fields }
func NewInvertedFocus ¶
func NewNoFocus ¶
func NewWithRanges ¶
func NewWithRanges(inner gowid.IWidget, notFocusRange []AttributeRange, focusRange []AttributeRange, opts ...Options) *Widget
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.