#include <libpatchwork/patchwork.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
◆ LABEL_HEIGHT
| #define LABEL_HEIGHT (42) |
Definition at line 8 of file main.c.
◆ LABEL_ID
Definition at line 7 of file main.c.
◆ LABEL_WIDTH
◆ NUMPAD_BUTTON_WIDTH
| #define NUMPAD_BUTTON_WIDTH (64) |
◆ NUMPAD_COLUMN_TO_WINDOW
◆ NUMPAD_COLUMNS
◆ NUMPAD_PADDING
◆ NUMPAD_ROW_TO_WINDOW
◆ NUMPAD_ROWS
◆ WINDOW_HEIGHT
◆ WINDOW_WIDTH
◆ main()
Definition at line 195 of file main.c.
References CLOCKS_NEVER, display_dispatch(), display_free(), display_new(), display_next(), ERR, EXIT_FAILURE, EXIT_SUCCESS, NULL, procedure(), RECT_INIT_DIM, SURFACE_WINDOW, WINDOW_DECO, window_free(), WINDOW_HEIGHT, window_new(), window_set_visible(), and WINDOW_WIDTH.
◆ numpad_button_create()
◆ procedure()
Definition at line 46 of file main.c.
References calculator_t::accumulator, ACTION_RELEASE, ALIGN_MAX, buffer, display_disconnect(), element_find(), element_get_private(), element_get_text_props(), ELEMENT_NONE, element_redraw(), element_set_private(), element_set_text(), ERR, text_props_t::font, font_free(), font_new(), free(), id, calculator_t::input, LABEL_HEIGHT, LABEL_ID, label_new(), LABEL_WIDTH, event_t::lAction, calculator_t::largeFont, LEVENT_ACTION, LEVENT_DEINIT, LEVENT_INIT, LEVENT_QUIT, malloc(), NULL, numpad_button_create(), NUMPAD_PADDING, calculator_t::operation, RECT_INIT_DIM, levent_action_t::source, levent_action_t::type, event_t::type, ulltoa(), window_get_display(), and text_props_t::xAlign.
Referenced by element_new(), element_new_raw(), element_new_root(), main(), and window_new().