crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
3cfeb8ad
ROOT
/
widgets
/
button
/
options.go
Search
History
258 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Option
set
(*options)
option
set
(opts *options)
options
fillColor
:
cell.Color
focusedFillColor
:
*cell.Color
pressedFillColor
:
*cell.Color
textColor
:
cell.Color
textHorizontalPadding
:
int
shadowColor
:
cell.Color
disableShadow
:
bool
height
:
int
width
:
int
focusedKeys
:
map[keyboard.Key]bool
globalKeys
:
map[keyboard.Key]bool
keyUpDelay
:
time.Duration
keyScope
key
:
keyboard.Key
scope
:
widgetapi.KeyScope
newOptions
(text string)
:
*options
FillColor
(c cell.Color)
:
Option
FocusedFillColor
(c cell.Color)
:
Option
PressedFillColor
(c cell.Color)
:
Option
TextColor
(c cell.Color)
:
Option
ShadowColor
(c cell.Color)
:
Option
DefaultHeight
Height
(cells int)
:
Option
Width
(cells int)
:
Option
WidthFor
(text string)
:
Option
Key
(k keyboard.Key)
:
Option
GlobalKey
(k keyboard.Key)
:
Option
Keys
(keys ...keyboard.Key)
:
Option
GlobalKeys
(keys ...keyboard.Key)
:
Option
DefaultKeyUpDelay
KeyUpDelay
(d time.Duration)
:
Option
DisableShadow
()
:
Option
DefaultTextHorizontalPadding
TextHorizontalPadding
(p int)
:
Option
widthFor
(text string)
:
int
*options
validate
()
:
error
All occurrences
Please wait...
Page is in error, reload to recover