JWM Source Documentation
button.h
Go to the documentation of this file.
00001 00010 #ifndef BUTTON_H 00011 #define BUTTON_H 00012 00013 #include "font.h" 00014 00015 struct IconNode; 00016 00018 typedef enum { 00019 BUTTON_LABEL, 00020 BUTTON_MENU, 00021 BUTTON_MENU_ACTIVE, 00022 BUTTON_TASK, 00023 BUTTON_TASK_ACTIVE 00024 } ButtonType; 00025 00027 typedef enum { 00028 ALIGN_LEFT, 00029 ALIGN_CENTER 00030 } AlignmentType; 00031 00033 typedef struct { 00034 00035 ButtonType type; 00036 Drawable drawable; 00037 GC gc; 00038 FontType font; 00039 AlignmentType alignment; 00041 int x, y; 00042 int width, height; 00044 struct IconNode *icon; 00045 const char *text; 00047 } ButtonNode; 00048 00052 void DrawButton(ButtonNode *bp); 00053 00059 void ResetButton(ButtonNode *bp, Drawable d, GC g); 00060 00061 #endif /* BUTTON_H */ 00062