]> code.delx.au - refind/blobdiff - refind/menu.h
CD-eject feature & fix for GRUB 2 problems
[refind] / refind / menu.h
index b0cb5148cd7374d27b61ad358a24cdcaa56450b9..f9052d17d7ab331bec30ceac03a4629651f88cfb 100644 (file)
 #define MENU_EXIT_ESCAPE  (2)
 #define MENU_EXIT_DETAILS (3)
 #define MENU_EXIT_TIMEOUT (4)
+#define MENU_EXIT_EJECT   (5)
 
 #define TAG_RETURN       (99)
 
 // scrolling definitions
 
 typedef struct {
-   INTN CurrentSelection, LastSelection, MaxIndex;
+   INTN CurrentSelection, PreviousSelection, MaxIndex;
    INTN FirstVisible, LastVisible, MaxVisible;
+   INTN FinalRow0, InitialRow1;
+   INTN ScrollMode;
    BOOLEAN PaintAll, PaintSelection;
 } SCROLL_STATE;
 
@@ -76,6 +79,11 @@ typedef struct {
 #define SCROLL_FIRST      (4)
 #define SCROLL_LAST       (5)
 #define SCROLL_NONE       (6)
+#define SCROLL_LINE_RIGHT (7)
+#define SCROLL_LINE_LEFT  (8)
+
+#define SCROLL_MODE_TEXT  (0) /* Used in text mode & for GUI submenus */
+#define SCROLL_MODE_ICONS (1) /* Used for main GUI menu */
 
 struct _refit_menu_screen;