JWM Source Documentation
button.h
Go to the documentation of this file.
1 
10 #ifndef BUTTON_H
11 #define BUTTON_H
12 
13 #include "font.h"
14 #include "settings.h"
15 
16 struct IconNode;
17 
19 typedef unsigned char ButtonType;
20 #define BUTTON_LABEL 0
21 #define BUTTON_MENU 1
22 #define BUTTON_MENU_ACTIVE 2
23 #define BUTTON_TRAY 3
24 #define BUTTON_TRAY_ACTIVE 4
25 #define BUTTON_TASK 5
26 #define BUTTON_TASK_ACTIVE 6
29 typedef struct {
30 
34  char fill;
35  char border;
37  Drawable drawable;
39  int x, y;
40  int width, height;
42  struct IconNode *icon;
43  const char *text;
45 } ButtonNode;
46 
50 void DrawButton(ButtonNode *bp);
51 
56 void ResetButton(ButtonNode *bp, Drawable d);
57 
58 #endif /* BUTTON_H */

joewing.net / Projects / JWM