JWM Source Documentation
button.h File Reference
Header file for button functions. More...
#include "font.h"Go to the source code of this file.
Data Structures | |
| struct | ButtonNode |
| Data used for drawing a button. More... | |
Enumerations | |
| enum | ButtonType { BUTTON_LABEL, BUTTON_MENU, BUTTON_MENU_ACTIVE, BUTTON_TASK, BUTTON_TASK_ACTIVE } |
| Button types. More... | |
| enum | AlignmentType { ALIGN_LEFT, ALIGN_CENTER } |
| Alignment of content in a button. More... | |
Functions | |
| void | DrawButton (ButtonNode *bp) |
| Draw a button. | |
| void | ResetButton (ButtonNode *bp, Drawable d, GC g) |
| Reset the contents of a ButtonNode structure. | |
Detailed Description
Enumeration Type Documentation
| enum AlignmentType |
| enum ButtonType |
Function Documentation
| void DrawButton | ( | ButtonNode * | bp | ) |
Draw a button.
- Parameters:
-
bp The button to draw.
| void ResetButton | ( | ButtonNode * | bp, |
| Drawable | d, | ||
| GC | g | ||
| ) |
Reset the contents of a ButtonNode structure.
- Parameters:
-
bp The structure to reset. d The drawable to use. g The graphics context to use.