iPXE
|
Jump scrolling. More...
Go to the source code of this file.
Data Structures | |
struct | jump_scroller |
A jump scroller. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static int | jump_scroll_is_first (struct jump_scroller *scroll) |
Check if jump scroller is currently on first page. More... | |
static int | jump_scroll_is_last (struct jump_scroller *scroll) |
Check if jump scroller is currently on last page. More... | |
int | jump_scroll_key (struct jump_scroller *scroll, int key) |
Jump scrolling. More... | |
int | jump_scroll_move (struct jump_scroller *scroll, int move) |
Move scroller. More... | |
int | jump_scroll (struct jump_scroller *scroll) |
Jump scroll to new page (if applicable) More... | |
Jump scrolling.
Definition in file jumpscroll.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Check if jump scroller is currently on first page.
scroll | Jump scroller |
is_first | Scroller is currently on first page |
Definition at line 30 of file jumpscroll.h.
References jump_scroller::first.
Referenced by draw_menu_items(), and draw_setting_rows().
|
inlinestatic |
Check if jump scroller is currently on last page.
scroll | Jump scroller |
is_last | Scroller is currently on last page |
Definition at line 41 of file jumpscroll.h.
References jump_scroller::count, jump_scroller::first, and jump_scroller::rows.
Referenced by draw_menu_items(), and draw_setting_rows().
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, key, KEY_DOWN, KEY_END, KEY_HOME, KEY_NPAGE, KEY_PPAGE, KEY_UP, and jump_scroller::rows.
Referenced by main_loop(), and menu_loop().
int jump_scroll_move | ( | struct jump_scroller * | scroll, |
int | move | ||
) |
Move scroller.
scroll | Jump scroller |
move | Scroller movement |
move | Continuing scroller movement (if applicable) |
Definition at line 78 of file jumpscroll.c.
References assert(), jump_scroller::count, jump_scroller::current, last, and move().
Referenced by 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 119 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().