Calculator application context. More...

Data Fields | |
| struct wtk_basic_frame * | frame |
| Pointer to application frame. | |
| struct wtk_label * | display_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. | |
Calculator application context.
Definition at line 124 of file app_calc.c.
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().
| struct wtk_label* calc_context::display_lbl |
Pointer to display label for showing calc result.
Definition at line 128 of file app_calc.c.
Referenced by calc_update_display().
| struct wtk_basic_frame* calc_context::frame |
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().
| struct font calc_context::old_sysfont |
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().
1.6.3