Documentation ¶
Index ¶
- Constants
- func MakeTableGroup(cw []int, align []Alignment, wts ...*WidgetTheme) (*w.ATable, *DataProviderTable)
- type AppTmpl
- func (app *AppTmpl) AddToStorage(id string, param interface{})
- func (app *AppTmpl) ClearFocus()
- func (app *AppTmpl) Close()
- func (app *AppTmpl) Err(msg string)
- func (app *AppTmpl) Focus() string
- func (app *AppTmpl) GetParam(id string) interface{}
- func (app *AppTmpl) Info(msg string)
- func (app *AppTmpl) Render()
- func (app *AppTmpl) SetFocus(id string)
- func (app *AppTmpl) Warn(msg string)
- type CellDetail
- func (cd *CellDetail) GetName() string
- func (cd *CellDetail) GetRowIdx() uint8
- func (cd *CellDetail) GetSchema() (*GridSchema, error)
- func (cd *CellDetail) GetWidget() (Drawable, error)
- func (cd *CellDetail) IsSchema() bool
- func (cd *CellDetail) SetName(name string)
- func (cd *CellDetail) SetSchema(schema *GridSchema)
- func (cd *CellDetail) SetWidget(widget interface{})
- type GridSchema
- type GridSchemaBuilder
- type TUIAppTmpl
- func (app *TUIAppTmpl) ClearFocus()
- func (app *TUIAppTmpl) Close()
- func (app *TUIAppTmpl) Draw(wgd Drawable)
- func (app *TUIAppTmpl) GetSize() image.Rectangle
- func (app *TUIAppTmpl) Listen()
- func (app *TUIAppTmpl) Render()
- func (app *TUIAppTmpl) SetFocus(id string)
- func (app *TUIAppTmpl) SetGrid(grid *Grid)
Constants ¶
View Source
const ( LoggerId = "logger:id" HelperId = "helper:id" )
Variables ¶
This section is empty.
Functions ¶
func MakeTableGroup ¶
Types ¶
type AppTmpl ¶
type AppTmpl struct { Mx sync.RWMutex ModeEdit bool // true is edit, false read Size image.Rectangle Theme *WidgetTheme Grid *Grid ChanLog chan *w.LogRecord ChanDraw chan Drawable ChanEvent chan *Event // contains filtered or unexported fields }
func NewAppTmpl ¶
NewAppTmpl - создает шаблон приложения @chanSizes: 0 - log, 1 - draw, 2 - events
func (*AppTmpl) AddToStorage ¶
func (*AppTmpl) ClearFocus ¶
func (app *AppTmpl) ClearFocus()
type CellDetail ¶
type CellDetail struct {
// contains filtered or unexported fields
}
func MakeCellDetailWithSchema ¶
func MakeCellDetailWithSchema(row, col uint8, w AdaptiveSize, schema *GridSchema) *CellDetail
func MakeCellDetailWithWidget ¶
func MakeCellDetailWithWidget(row, col uint8, w AdaptiveSize, widget interface{}) *CellDetail
func NewCellDetail ¶
func NewCellDetail(row, col uint8, size AdaptiveSize) *CellDetail
func (*CellDetail) GetName ¶
func (cd *CellDetail) GetName() string
func (*CellDetail) GetRowIdx ¶
func (cd *CellDetail) GetRowIdx() uint8
func (*CellDetail) GetSchema ¶
func (cd *CellDetail) GetSchema() (*GridSchema, error)
func (*CellDetail) GetWidget ¶
func (cd *CellDetail) GetWidget() (Drawable, error)
func (*CellDetail) IsSchema ¶
func (cd *CellDetail) IsSchema() bool
func (*CellDetail) SetName ¶
func (cd *CellDetail) SetName(name string)
func (*CellDetail) SetSchema ¶
func (cd *CellDetail) SetSchema(schema *GridSchema)
func (*CellDetail) SetWidget ¶
func (cd *CellDetail) SetWidget(widget interface{})
type GridSchema ¶
type GridSchema struct {
// contains filtered or unexported fields
}
func NewGridSchema ¶
func NewGridSchema(sizes ...AdaptiveSize) *GridSchema
func (*GridSchema) AddCell ¶
func (gs *GridSchema) AddCell(rowInSchema uint8, cd *CellDetail)
func (*GridSchema) AddSchema ¶
func (gs *GridSchema) AddSchema(rowInSchema uint8, schema *GridSchema)
func (*GridSchema) Build ¶
func (gs *GridSchema) Build() []interface{}
Build - по количеству строк в схеме
func (*GridSchema) BuildGrid ¶
func (gs *GridSchema) BuildGrid(maxX, maxY int) *Grid
func (*GridSchema) GetWidgets ¶
func (gs *GridSchema) GetWidgets() map[string]Drawable
type GridSchemaBuilder ¶
type GridSchemaBuilder struct {
// contains filtered or unexported fields
}
type TUIAppTmpl ¶
type TUIAppTmpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(isRealBuf bool, theme *WidgetTheme) *TUIAppTmpl
New - создать новый шаблон приложения
func (*TUIAppTmpl) ClearFocus ¶
func (app *TUIAppTmpl) ClearFocus()
func (*TUIAppTmpl) Close ¶
func (app *TUIAppTmpl) Close()
func (*TUIAppTmpl) Draw ¶
func (app *TUIAppTmpl) Draw(wgd Drawable)
func (*TUIAppTmpl) GetSize ¶
func (app *TUIAppTmpl) GetSize() image.Rectangle
func (*TUIAppTmpl) Listen ¶
func (app *TUIAppTmpl) Listen()
func (*TUIAppTmpl) Render ¶
func (app *TUIAppTmpl) Render()
func (*TUIAppTmpl) SetFocus ¶
func (app *TUIAppTmpl) SetFocus(id string)
func (*TUIAppTmpl) SetGrid ¶
func (app *TUIAppTmpl) SetGrid(grid *Grid)
SetGrid - если сетка была сформирована во вне
Click to show internal directories.
Click to hide internal directories.