Documentation
¶
Overview ¶
Package timer countdown duration
Index ¶
- type ITimer
- func (t *ITimer) GetRemainSec() int
- func (t *ITimer) GetTitle() string
- func (t *ITimer) Run(ctx context.Context) (int, error)
- func (t *ITimer) SetDuration(d int)
- func (t *ITimer) SetFontColor(c tcell.Color)
- func (t *ITimer) SetTitle(title string)
- func (t *ITimer) Start()
- func (t *ITimer) Stop()
- func (t *ITimer) Toggle()
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITimer ¶ added in v0.9.31
type ITimer struct {
// contains filtered or unexported fields
}
ITimer implements Timer interface.
func (*ITimer) GetRemainSec ¶ added in v0.9.31
GetRemainSec get remaining seconds of timer.
func (*ITimer) SetDuration ¶ added in v0.9.31
SetDuration sets remaining seconds.
func (*ITimer) SetFontColor ¶ added in v0.9.31
func (t *ITimer) SetFontColor(c tcell.Color)
SetFontColor sets cell color.
Click to show internal directories.
Click to hide internal directories.