Documentation ¶
Index ¶
- type Flashcard
- type Options
- type WordList
- func (w *WordList) Buffer() termui.Buffer
- func (w *WordList) GetHeight() int
- func (w *WordList) ScrollBottom()
- func (w *WordList) ScrollDown() (change bool)
- func (w *WordList) ScrollTop()
- func (w *WordList) ScrollUp() (change bool)
- func (w *WordList) SetWidth(width int)
- func (w *WordList) SetX(x int)
- func (w *WordList) SetY(y int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flashcard ¶
Flashcard is the definition of Flashcard component
func CreateFlashcard ¶
CreateFlashcard is the constructor for the Flashcard component
type Options ¶
Options is the definition of Options component
func CreateOptions ¶
CreateOptions is the constructor for the Options component
type WordList ¶
type WordList struct { List *termui.List Offset int // starting point for scrolling SelectedWord int // position of the highlighted word }
WordList is the definition of WordList component
func CreateWordList ¶
CreateWordList is the constructor for the WordList component
func (*WordList) ScrollBottom ¶
func (w *WordList) ScrollBottom()
ScrollBottom will move the cursor to the bottom of the list
func (*WordList) ScrollDown ¶
ScrollDown enables us to scroll through the word list when it overflows
func (*WordList) ScrollTop ¶
func (w *WordList) ScrollTop()
ScrollTop will move the cursor to the top of the list
Click to show internal directories.
Click to hide internal directories.