X-Git-Url: https://git.subgeniuskitty.com/xmenu/.git/blobdiff_plain/71b4db9241be4617b44b3504cd970a1c94c0bc5c..675a2008a6c9ad34d199aebdac6447d33a9cb53e:/xmenu.h diff --git a/xmenu.h b/xmenu.h index b636114..efecca4 100644 --- a/xmenu.h +++ b/xmenu.h @@ -17,30 +17,27 @@ enum {NetWMName, NetWMWindowType, NetWMWindowTypePopupMenu, NetLast}; /* configuration structure */ struct Config { + /* the values below are set by config.h */ const char *font; - const char *background_color; const char *foreground_color; const char *selbackground_color; const char *selforeground_color; const char *separator_color; const char *border_color; - int width_pixels; int height_pixels; int border_pixels; int separator_pixels; int gap_pixels; - int triangle_width; int triangle_height; - int iconpadding; int horzpadding; + /* the values below are computed by xmenu */ int iconsize; - - int cursx, cursy; /* cursor position */ + int posx, posy; /* cursor position */ int screenw, screenh; /* screen width and height */ }; @@ -66,6 +63,7 @@ struct Item { struct Item *prev; /* previous item */ struct Item *next; /* next item */ struct Menu *submenu; /* submenu spawned by clicking on item */ + Drawable sel, unsel; /* pixmap for selected and unselected icons */ Imlib_Image icon; };