minimenu: added special case for rightmost tab for davec, so can now specialise tab...
[pandora-libraries.git] / minimenu / mmui.h
index f06458d..d662b50 100644 (file)
@@ -17,7 +17,11 @@ typedef enum {
   IMG_DETAIL_BG,
   IMG_SELECTED_ALPHAMASK,
   IMG_TAB_SEL,
+  IMG_TAB_SEL_L,
+  IMG_TAB_SEL_R,
   IMG_TAB_UNSEL,
+  IMG_TAB_UNSEL_L,
+  IMG_TAB_UNSEL_R,
   IMG_TAB_LINE,
   IMG_TAB_LINEL,
   IMG_TAB_LINER,
@@ -27,6 +31,7 @@ typedef enum {
   IMG_ARROW_UP,
   IMG_ARROW_DOWN,
   IMG_ARROW_SCROLLBAR,
+  IMG_HOURGLASS,
   IMG_MAX, // before this point is loaded; after is generated
   IMG_TRUEMAX
 } mm_imgcache_e;
@@ -55,18 +60,15 @@ typedef enum {
 
 unsigned char ui_setup ( void );
 unsigned char ui_imagecache ( char *basepath );
+unsigned char ui_pick_skin ( void ); // return >0 if skin has changed
 
-#define CHANGED_NOTHING     (0)
-#define CHANGED_CATEGORY    (1<<0)  /* changed to different category */
-#define CHANGED_SELECTION   (1<<1)  /* changed app selection */
-#define CHANGED_DATAUPDATE  (1<<2)  /* deferred preview pic or icon came in */
-#define CHANGED_APPRELOAD   (1<<3)  /* new set of applications entirely */
-#define CHANGED_EVERYTHING  (0xFFFF) /* redraw it all! */
-void ui_render ( unsigned int render_mask );
+void ui_render ( void );
 
 void ui_loadscreen ( void );        // show screen while loading the menu
 void ui_discoverscreen ( unsigned char clearscreen ); // screen to show while scanning for apps
 void ui_cachescreen ( unsigned char clearscreen, char *filename ); // while caching icons, categories and preview-pics-Now-mode
+void ui_show_hourglass ( unsigned char updaterect );
+void ui_post_scan ( void );
 
 /* internal functions follow
  */
@@ -79,6 +81,7 @@ unsigned char ui_forkexec ( char *argv[] ); // argv[0] is proggy to exec; argv l
 
 // create a thread of this guy, and it'll try to load the preview pic in background and then signal the app
 unsigned char ui_threaded_defered_preview ( pnd_disco_t *p );
+unsigned char ui_threaded_defered_icon ( void * );
 
 // change the focus
 void ui_process_input ( unsigned char block_p );