summaryrefslogtreecommitdiff
path: root/atari/gui.h
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2013-01-01 22:08:19 +0100
committerOle Loots <ole@monochrom.net>2013-01-01 22:08:19 +0100
commitc0e6cf65902f93bc2286c72e28d916341ec641a6 (patch)
tree4b60625e733639d49d631a6bfdde042cf66a27d5 /atari/gui.h
parentcecccf09edf7e7296e4765f7e70e4c42c5ad8805 (diff)
downloadnetsurf-c0e6cf65902f93bc2286c72e28d916341ec641a6.tar.gz
netsurf-c0e6cf65902f93bc2286c72e28d916341ec641a6.tar.bz2
Implemented caret redraw.
Diffstat (limited to 'atari/gui.h')
-rwxr-xr-xatari/gui.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/atari/gui.h b/atari/gui.h
index e12cf44f4..fafafbd30 100755
--- a/atari/gui.h
+++ b/atari/gui.h
@@ -19,10 +19,22 @@
#ifndef NS_ATARI_GUI_H_
#define NS_ATARI_GUI_H_
+#include <stdbool.h>
+#include <mt_gem.h>
+
#include "atari/redrawslots.h"
-#include "atari/caret.h"
#include "atari/gemtk/gemtk.h"
+#define CARET_STATE_VISIBLE 0x01
+#define CARET_STATE_ENABLED 0x02
+
+struct s_caret {
+ GRECT dimensions;
+ MFDB symbol;
+ int fd_size;
+ unsigned short state;
+};
+
struct point_s {
int x;
int y;
@@ -108,6 +120,7 @@ struct s_gui_win_root
struct bitmap * icon;
struct gui_window *active_gui_window;
struct s_redrw_slots redraw_slots;
+ struct s_caret caret;
/* current size of window on screen: */
GRECT loc;
};