JWM Source Documentation
Data Fields
ButtonNode Struct Reference

Data used for drawing a button. More...

#include <button.h>

Data Fields

ButtonType type
 The type of button to draw.
 
AlignmentType alignment
 Alignment of the button content.
 
FontType font
 The font for button text.
 
char fill
 Determine if we should fill.
 
char border
 Determine if we should draw a border.
 
Drawable drawable
 The place to put the button.
 
int x
 
int y
 The coordinates to render the button.
 
int width
 
int height
 The size of the button.
 
struct IconNodeicon
 Icon used in the button.
 
const char * text
 Text used in the button.
 

Detailed Description

Data used for drawing a button.

Definition at line 29 of file button.h.

Field Documentation

AlignmentType ButtonNode::alignment

Alignment of the button content.

Definition at line 32 of file button.h.

Referenced by DrawButton(), DrawButtons(), DrawMenuItem(), and ResetButton().

char ButtonNode::border

Determine if we should draw a border.

Definition at line 35 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), Render(), and ResetButton().

Drawable ButtonNode::drawable

The place to put the button.

Definition at line 37 of file button.h.

Referenced by DrawButton(), and ResetButton().

char ButtonNode::fill

Determine if we should fill.

Definition at line 34 of file button.h.

Referenced by DrawButton(), and ResetButton().

FontType ButtonNode::font

The font for button text.

Definition at line 33 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

int ButtonNode::height

The size of the button.

Definition at line 40 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

struct IconNode* ButtonNode::icon

Icon used in the button.

Definition at line 42 of file button.h.

Referenced by Draw(), DrawButton(), DrawMenuItem(), Render(), and ResetButton().

const char* ButtonNode::text

Text used in the button.

Definition at line 43 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

ButtonType ButtonNode::type

The type of button to draw.

Definition at line 31 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

int ButtonNode::width

Definition at line 40 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

int ButtonNode::x

Definition at line 39 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().

int ButtonNode::y

The coordinates to render the button.

Definition at line 39 of file button.h.

Referenced by Draw(), DrawButton(), DrawButtons(), DrawMenuItem(), Render(), and ResetButton().


The documentation for this struct was generated from the following file:

joewing.net / Projects / JWM