Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldView ¶
type FieldView struct {
// contains filtered or unexported fields
}
FieldView is a Viewer for a field. Cursor is an element for drawing in selected field
func New ¶
func New(fielder FocusFielder, font *impress.Font, foreground fn.Color, cursor view.Viewer) *FieldView
New creates a FieldView
type FieldWithFocused ¶
type FieldWithFocused struct { Fielder // contains filtered or unexported fields }
FieldWithFocused contains a field with focused state func
func WithFocused ¶
func WithFocused(field Fielder, isFocused fn.Bool) *FieldWithFocused
WithFocused returns a FieldWithFocused
func (*FieldWithFocused) Focused ¶
func (m *FieldWithFocused) Focused() bool
Focused returns a focused flag
type FocusFielder ¶
FocusFielder is an interface of a field model with a focused flag
Click to show internal directories.
Click to hide internal directories.