… | |
… | |
42 | menuitem_t *item; /* current item */ |
42 | menuitem_t *item; /* current item */ |
43 | char *name; /* menu name */ |
43 | char *name; /* menu name */ |
44 | short len; /* strlen (name) */ |
44 | short len; /* strlen (name) */ |
45 | short width; /* maximum menu width [chars] */ |
45 | short width; /* maximum menu width [chars] */ |
46 | Window win; /* window of the menu */ |
46 | Window win; /* window of the menu */ |
|
|
47 | struct rxvt_drawable *drawable; |
47 | short x; /* x location [pixels] (chars if parent == NULL) */ |
48 | short x; /* x location [pixels] (chars if parent == NULL) */ |
48 | short y; /* y location [pixels] */ |
49 | short y; /* y location [pixels] */ |
49 | short w, h; /* window width, height [pixels] */ |
50 | short w, h; /* window width, height [pixels] */ |
50 | } menu_t; |
51 | } menu_t; |
51 | |
52 | |
… | |
… | |
68 | #define HSPACE 1 /* one space */ |
69 | #define HSPACE 1 /* one space */ |
69 | #define isSeparator(name) ((name)[0] == '\0') |
70 | #define isSeparator(name) ((name)[0] == '\0') |
70 | #define HEIGHT_SEPARATOR (SHADOW + 1) |
71 | #define HEIGHT_SEPARATOR (SHADOW + 1) |
71 | #define HEIGHT_TEXT (Height2Pixel(1) + 2) |
72 | #define HEIGHT_TEXT (Height2Pixel(1) + 2) |
72 | |
73 | |
73 | #define MENU_DELAY_USEC 250000 /* 1/4 sec */ |
74 | #define MENU_DELAY_USEC 0 /* no delay */ |
74 | |
|
|
75 | |
75 | |
76 | #define SEPARATOR_NAME "-" |
76 | #define SEPARATOR_NAME "-" |
77 | #define MENUITEM_BEG '{' |
77 | #define MENUITEM_BEG '{' |
78 | #define MENUITEM_END '}' |
78 | #define MENUITEM_END '}' |
79 | #define COMMENT_CHAR '#' |
79 | #define COMMENT_CHAR '#' |