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
4a87d527
ROOT
/
widgets
/
button
/
button.go
Search
History
356 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
CallbackFn
TextChunk
text
:
string
tOpts
:
*textOptions
NewChunk
(text string, tOpts ...TextOption)
:
*TextChunk
Button
text
:
strings.Builder
givenTOpts
:
[]*textOptions
tOptsTracker
:
*attrrange.Tracker
mouseFSM
:
*button.FSM
state
:
button.State
keyTriggerTime
:
*time.Time
callback
:
CallbackFn
mu
:
sync.Mutex
opts
:
*options
New
(text string, cFn CallbackFn, opts ...Option)
:
(*Button, error)
NewFromChunks
(chunks []*TextChunk, cFn CallbackFn, opts ...Option)
:
(*Button, error)
buttonRune
shadowRune
timeSince
*Button
SetCallback
(cFn CallbackFn)
Draw
(cvs *canvas.Canvas, meta *widgetapi.Meta)
:
error
drawText
(cvs *canvas.Canvas, meta *widgetapi.Meta, buttonAr image.Rectangle)
:
error
keyActivated
(k *terminalapi.Keyboard, meta *widgetapi.EventMeta)
:
bool
Keyboard
(k *terminalapi.Keyboard, meta *widgetapi.EventMeta)
:
error
mouseActivated
(m *terminalapi.Mouse)
:
bool
Mouse
(m *terminalapi.Mouse, meta *widgetapi.EventMeta)
:
error
shadowWidth
()
:
int
Options
()
:
widgetapi.Options
All occurrences
Please wait...
Page is in error, reload to recover