iPXE
|
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
unsigned int | jump_scroll_key (struct jump_scroller *scroll, int key) |
Jump scrolling. More... | |
unsigned int | jump_scroll_move (struct jump_scroller *scroll, unsigned int move) |
Move scroller. More... | |
int | jump_scroll (struct jump_scroller *scroll) |
Jump scroll to new page (if applicable) More... | |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
unsigned int jump_scroll_key | ( | struct jump_scroller * | scroll, |
int | key | ||
) |
Jump scrolling.
Handle keypress
scroll | Jump scroller |
key | Key pressed by user |
move | Scroller movement, or zero |
Definition at line 42 of file jumpscroll.c.
References assert(), jump_scroller::count, jump_scroller::current, jump_scroller::first, flags, key, KEY_DOWN, KEY_END, KEY_HOME, KEY_NPAGE, KEY_PPAGE, KEY_UP, jump_scroller::rows, SCROLL, SCROLL_WRAP, and TAB.
Referenced by form_loop(), main_loop(), and menu_loop().
unsigned int jump_scroll_move | ( | struct jump_scroller * | scroll, |
unsigned int | move | ||
) |
Move scroller.
scroll | Jump scroller |
move | Scroller movement |
move | Continuing scroller movement (if applicable) |
Definition at line 92 of file jumpscroll.c.
References assert(), jump_scroller::count, jump_scroller::current, move(), SCROLL, SCROLL_DELTA, SCROLL_FLAGS, and SCROLL_WRAP.
Referenced by form_loop(), main_loop(), and menu_loop().
int jump_scroll | ( | struct jump_scroller * | scroll | ) |
Jump scroll to new page (if applicable)
scroll | Jump scroller |
jumped | Jumped to a new page |
Definition at line 140 of file jumpscroll.c.
References assert(), jump_scroller::count, jump_scroller::current, jump_scroller::first, index, and jump_scroller::rows.
Referenced by main_loop(), menu_loop(), and show_menu().