Lines Matching defs:Box

15 type Box struct {  struct
17 x, y, width, height int
20 innerX, innerY, innerWidth, innerHeight int
23 paddingTop, paddingBottom, paddingLeft, paddingRight int
26 backgroundColor tcell.Color
30 border bool
33 borderColor tcell.Color
36 borderAttributes tcell.AttrMask
39 title string
42 titleColor tcell.Color
45 titleAlign int
49 focus Focusable
52 hasFocus bool
57 inputCapture func(event *tcell.EventKey) *tcell.EventKey
60 draw func(screen tcell.Screen, x, y, width, height int) (int, int, int, int)
79 func (b *Box) SetBorderPadding(top, bottom, left, right int) *Box {
86 func (b *Box) GetRect() (int, int, int, int) {
93 func (b *Box) GetInnerRect() (int, int, int, int) {
122 func (b *Box) SetRect(x, y, width, height int) {
138 …SetDrawFunc(handler func(screen tcell.Screen, x, y, width, height int) (int, int, int, int)) *Box {
145 …nc (b *Box) GetDrawFunc() func(screen tcell.Screen, x, y, width, height int) (int, int, int, int) {
154 …r(inputHandler func(*tcell.EventKey, func(p Primitive))) func(*tcell.EventKey, func(p Primitive)) {
166 func (b *Box) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) {
184 func (b *Box) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Box {
191 func (b *Box) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey {
196 func (b *Box) SetBackgroundColor(color tcell.Color) *Box {
203 func (b *Box) SetBorder(show bool) *Box {
209 func (b *Box) SetBorderColor(color tcell.Color) *Box {
218 func (b *Box) SetBorderAttributes(attr tcell.AttrMask) *Box {
224 func (b *Box) SetTitle(title string) *Box {
230 func (b *Box) SetTitleColor(color tcell.Color) *Box {
237 func (b *Box) SetTitleAlign(align int) *Box {
243 func (b *Box) Draw(screen tcell.Screen) {
338 func (b *Box) Focus(delegate func(p Primitive)) {
343 func (b *Box) Blur() {
348 func (b *Box) HasFocus() bool {
353 func (b *Box) GetFocusable() Focusable {