Documentation ¶
Overview ¶
Package framed provides a widget that draws a frame around an inner widget.
Index ¶
- Variables
- func Render(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
- func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func SubWidgetSize(w IFramed, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
- func UserInput(w IWidget, ev interface{}, size gowid.IRenderSize, focus gowid.Selector, ...) bool
- type FrameIfSelectedForCopy
- type FrameRunes
- type IFramed
- type IWidget
- type Options
- type Title
- type Widget
- func (w *Widget) GetTitle() string
- func (w *Widget) GetTitleWidget() gowid.IWidget
- func (w *Widget) OnSetTitle(f gowid.IWidgetChangedCallback)
- func (w *Widget) Opts() Options
- func (w *Widget) RemoveOnSetAlign(f gowid.IIdentity)
- 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(wi gowid.IWidget, app gowid.IApp)
- func (w *Widget) SetTitle(title string, app gowid.IApp)
- func (w *Widget) SetTitleWidget(widget 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 ¶
View Source
var ( AsciiFrame = FrameRunes{'-', '-', '-', '-', '-', '-', '|', '|'} UnicodeFrame = FrameRunes{'┏', '┓', '┗', '┛', '━', '━', '┃', '┃'} UnicodeAltFrame = FrameRunes{'▛', '▜', '▙', '▟', '▀', '▄', '▌', '▐'} UnicodeAlt2Frame = FrameRunes{'╔', '╗', '╚', '╝', '═', '═', '║', '║'} SpaceFrame = FrameRunes{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '} )
Functions ¶
func RenderSize ¶
func RenderSize(w IWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func SubWidgetSize ¶
func SubWidgetSize(w IFramed, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
Types ¶
type FrameIfSelectedForCopy ¶
type FrameIfSelectedForCopy struct{}
func (FrameIfSelectedForCopy) AlterWidget ¶
type FrameRunes ¶
type IWidget ¶
type IWidget interface { gowid.ICompositeWidget IFramed }
type Options ¶
type Options struct { Frame FrameRunes Title string TitleWidget gowid.IWidget Style gowid.ICellStyler }
type Widget ¶
type Widget struct { gowid.IWidget // Embed for Selectable method Params Options *gowid.Callbacks gowid.SubWidgetCallbacks }
func NewUnicode ¶
func NewUnicodeAlt ¶
func NewUnicodeAlt2 ¶
func (*Widget) GetTitleWidget ¶
func (*Widget) OnSetTitle ¶
func (w *Widget) OnSetTitle(f gowid.IWidgetChangedCallback)
func (*Widget) RemoveOnSetAlign ¶
func (*Widget) RenderSize ¶
func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func (*Widget) SetTitleWidget ¶
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.