summaryrefslogtreecommitdiffstats
path: root/libmenu/menu_list.h
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-30 02:52:54 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-30 02:52:54 +0000
commit9c301c3e16546f00e9230abfbe36a45793bd9389 (patch)
tree6a9d061f301f41be8a36c1329543bc283d1f8b92 /libmenu/menu_list.h
parent22e18ebe856009ba68761c24fae14a166b7f0fe5 (diff)
downloadmpv-9c301c3e16546f00e9230abfbe36a45793bd9389.tar.bz2
mpv-9c301c3e16546f00e9230abfbe36a45793bd9389.tar.xz
Add a function to draw flat boxes and use it to make the list
menu and console look much cooler. Idea take from Otvos Atilla's patches (oattila_At_chello--.--hu). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17994 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmenu/menu_list.h')
-rw-r--r--libmenu/menu_list.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/libmenu/menu_list.h b/libmenu/menu_list.h
index b7e143fde9..7c218e773a 100644
--- a/libmenu/menu_list.h
+++ b/libmenu/menu_list.h
@@ -29,6 +29,9 @@ typedef struct menu_priv_s {
int w,h;
int vspace, minb;
char* ptr;
+ int title_bg,title_bg_alpha;
+ int item_bg,item_bg_alpha;
+ int ptr_bg,ptr_bg_alpha;
} menu_list_priv_t;
typedef void (*free_entry_t)(list_entry_t* entry);
@@ -52,7 +55,10 @@ extern const menu_list_priv_t menu_list_priv_dflt;
-1,-1, \
0,0, \
5, 3, \
- ">" \
+ NULL, \
+ 0x80, 0x80, \
+ 0x40, 0x80, \
+ 0x70, 0x80 \
}
@@ -63,5 +69,15 @@ extern const menu_list_priv_t menu_list_priv_dflt;
{ "y", M_ST_OFF(menu_list_priv_t,y), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
{ "w", M_ST_OFF(menu_list_priv_t,w), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
{ "h", M_ST_OFF(menu_list_priv_t,h), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "ptr", M_ST_OFF(menu_list_priv_t,ptr), CONF_TYPE_STRING, 0, 0, 0, NULL }
+ { "ptr", M_ST_OFF(menu_list_priv_t,ptr), CONF_TYPE_STRING, 0, 0, 0, NULL }, \
+ { "title-bg", M_ST_OFF(menu_list_priv_t,title_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
+ { "title-bg-alpha", M_ST_OFF(menu_list_priv_t,title_bg_alpha), \
+ CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL }, \
+ { "item-bg", M_ST_OFF(menu_list_priv_t,item_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
+ { "item-bg-alpha", M_ST_OFF(menu_list_priv_t,item_bg_alpha), \
+ CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL }, \
+ { "ptr-bg", M_ST_OFF(menu_list_priv_t,ptr_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
+ { "ptr-bg-alpha", M_ST_OFF(menu_list_priv_t,ptr_bg_alpha), \
+ CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL } \
+