-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalculator_app.h
37 lines (30 loc) · 973 Bytes
/
calculator_app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <furi.h>
#include <gui/gui.h>
#include "calculator_functions.h"
#include "calculator_display.h"
#include "calculator.h"
/*typedef struct {
// CalculatorFunctionType type;
// CalculatorCalculateFunctionOneInput* function_one;
// CalculatorCalculateFunctionTwoInput* function_two;
const CalculatorFunction* function;
double value;
} CalculatorCalculation;
typedef struct {
char* framed_number;
FuriMessageQueue* operation_queue; // To be added all together Type CalculatorCalculation
} Calculator;*/
// struct CalculatorDisplayButton;
// typedef struct CalculatorApp CalculatorApp;
// struct CalculatorDisplayButton;
typedef struct CalculatorApp {
ViewPort* vp;
Gui* gui;
FuriMessageQueue* msq;
// TODO: Mutex
Calculator* calculator;
FuriMutex* mutex;
// CalculatorDisplayElementGridLocation selected_grid_element;
struct CalculatorDisplayButton const* selected_button;
} CalculatorApp;