X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=minimenu%2Fmmui.h;h=d662b50c5a77e3d2a9d2c43d41666676e1bb0737;hb=6e3432ebb454c1784dd521ce06accb5ed769ea38;hp=f06458ddc09a880b22b8c74a4edf0a0d4fe8f6a5;hpb=4b5eccba1cbca411d9007b1d56af5d06a972657c;p=pandora-libraries.git diff --git a/minimenu/mmui.h b/minimenu/mmui.h index f06458d..d662b50 100644 --- a/minimenu/mmui.h +++ b/minimenu/mmui.h @@ -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 );