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

Header file for button functions.

Author:
Joe Wingbermuehle
Date:
2004-2006

Definition in file button.h.


Enumeration Type Documentation

Alignment of content in a button.

Enumerator:
ALIGN_LEFT 

Left align.

ALIGN_CENTER 

Center align.

Definition at line 27 of file button.h.

enum ButtonType

Button types.

Enumerator:
BUTTON_LABEL 

Label.

BUTTON_MENU 

Menu item.

BUTTON_MENU_ACTIVE 

Active menu item.

BUTTON_TASK 

Item in the task list.

BUTTON_TASK_ACTIVE 

Active item in the task list.

Definition at line 18 of file button.h.


Function Documentation

void DrawButton ( ButtonNode bp)

Draw a button.

Parameters:
bpThe button to draw.
void ResetButton ( ButtonNode bp,
Drawable  d,
GC  g 
)

Reset the contents of a ButtonNode structure.

Parameters:
bpThe structure to reset.
dThe drawable to use.
gThe graphics context to use.