summaryrefslogtreecommitdiff
path: root/src/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/button.h')
-rw-r--r--src/button.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/button.h b/src/button.h
index 21c5dca..4e7ebe9 100644
--- a/src/button.h
+++ b/src/button.h
@@ -1,6 +1,6 @@
/*
* LiberTI - TI-like calculator designed for LibreCalc
- * Copyright (C) 2016 Delwink, LLC
+ * Copyright (C) 2016-2017 Delwink, LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
@@ -21,41 +21,41 @@
#include "screen.h"
enum cursor_direction
- {
- UP = -16,
- DOWN = 16,
- LEFT = -1,
- RIGHT = 1
- };
+{
+ UP = -16,
+ DOWN = 16,
+ LEFT = -1,
+ RIGHT = 1
+};
enum button_action_type
- {
- CHANGE_MODES,
- CHAR_INSERT,
- CURSOR_MOVE,
- TOGGLE_2ND,
- TOGGLE_ALPHA,
- TOGGLE_INSERT
- };
+{
+ CHANGE_MODES,
+ CHAR_INSERT,
+ CURSOR_MOVE,
+ TOGGLE_2ND,
+ TOGGLE_ALPHA,
+ TOGGLE_INSERT
+};
union button_action
{
- int char_insert;
- enum cursor_direction cursor_move;
- enum screen_mode mode_open;
+ int char_insert;
+ enum cursor_direction cursor_move;
+ enum screen_mode mode_open;
};
struct button_action_set
{
- enum button_action_type type;
- union button_action which;
+ enum button_action_type type;
+ union button_action which;
};
struct button
{
- struct button_action_set actions[NUM_SCREEN_MODES][NUM_ACTION_STATES];
- struct point2d pos;
- struct point2d size;
+ struct button_action_set actions[NUM_SCREEN_MODES][NUM_ACTION_STATES];
+ struct point2d pos;
+ struct point2d size;
};
#endif