Documentation ¶
Overview ¶
Package boxadapter provides a widget that will allow a box widget to be used in a flow context. Based on urwid's BoxAdapter - http://urwid.org/reference/widget.html#boxadapter.
Index ¶
- func Render(w IBoxAdapterWidget, size gowid.IRenderSize, focus gowid.Selector, ...) gowid.ICanvas
- func RenderSize(w IBoxAdapter, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
- func SubWidgetSize(w IBoxAdapter, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
- func UserInput(w IBoxAdapterWidget, ev interface{}, size gowid.IRenderSize, ...) bool
- type IBoxAdapter
- type IBoxAdapterWidget
- type 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) Rows() int
- func (w *Widget) SetRows(rows int, app gowid.IApp)
- func (w *Widget) SetSubWidget(wi 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 ¶
func Render ¶
func Render(w IBoxAdapterWidget, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas
func RenderSize ¶
func RenderSize(w IBoxAdapter, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox
func SubWidgetSize ¶
func SubWidgetSize(w IBoxAdapter, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize
SubWidgetSize is the same as RenderSize for this widget - the inner widget will be rendered as a box with the specified number of columns and the widget's set number of rows.
func UserInput ¶
func UserInput(w IBoxAdapterWidget, ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool
Ensure that a valid mouse interaction with a flow widget will result in a mouse interaction with the subwidget
Types ¶
type IBoxAdapter ¶
type IBoxAdapter interface {
Rows() int
}
type IBoxAdapterWidget ¶
type IBoxAdapterWidget interface { gowid.ICompositeWidget IBoxAdapter }
type Widget ¶
type Widget struct { gowid.IWidget *gowid.Callbacks gowid.SubWidgetCallbacks // contains filtered or unexported fields }
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.