calc_context Struct Reference
[Calculator application]

Calculator application context. More...

Collaboration diagram for calc_context:
Collaboration graph
[legend]

Data Fields

struct wtk_basic_frameframe
 Pointer to application frame.
struct wtk_labeldisplay_lbl
 Pointer to display label for showing calc result.
struct font old_sysfont
 Copy of the sysfont before it is modified by the application.
struct gfx_bitmap background
 Background bitmap for application.
struct gfx_bitmap label_background
 Background bitmap for display label.
char text [MAX_DIGITS]
 Buffer for converting text to show on calc display.
int32_t stack_value
 Current value in stack.
int32_t disp_value
 Current value on display.
char operator
 Current operator (+,-,*,/) to use when = is pressed.
enum calc_mode mode
 Mode selected for displaying the result.

Detailed Description

Calculator application context.

Definition at line 124 of file app_calc.c.


Field Documentation

Background bitmap for application.

Definition at line 132 of file app_calc.c.

Current value on display.

Definition at line 141 of file app_calc.c.

Referenced by calc_frame_command_handler(), and calc_update_display().

Pointer to display label for showing calc result.

Definition at line 128 of file app_calc.c.

Referenced by calc_update_display().

Pointer to application frame.

Definition at line 126 of file app_calc.c.

Background bitmap for display label.

Definition at line 134 of file app_calc.c.

Mode selected for displaying the result.

Definition at line 145 of file app_calc.c.

Referenced by calc_frame_command_handler(), and calc_update_display().

Copy of the sysfont before it is modified by the application.

Definition at line 130 of file app_calc.c.

Referenced by calc_frame_command_handler().

Current operator (+,-,*,/) to use when = is pressed.

Definition at line 143 of file app_calc.c.

Referenced by calc_frame_command_handler().

Current value in stack.

Definition at line 139 of file app_calc.c.

Referenced by calc_frame_command_handler().

char calc_context::text[MAX_DIGITS]

Buffer for converting text to show on calc display.

Definition at line 137 of file app_calc.c.

Referenced by calc_update_display().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 29 14:10:02 2010 for display-demo by  doxygen 1.6.3