projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
starting the material window
[retroray]
/
src
/
rtk_impl.h
diff --git
a/src/rtk_impl.h
b/src/rtk_impl.h
index
d9ee120
..
566e254
100644
(file)
--- a/
src/rtk_impl.h
+++ b/
src/rtk_impl.h
@@
-2,14
+2,21
@@
#define RTK_IMPL_H_
#include <assert.h>
#define RTK_IMPL_H_
#include <assert.h>
-#include "inttypes.h"
+#include "sizeint.h"
#include "rtk.h"
enum {
VISIBLE = 0x001,
ENABLED = 0x002,
#include "rtk.h"
enum {
VISIBLE = 0x001,
ENABLED = 0x002,
+ HOVER = 0x010,
+ PRESS = 0x020,
GEOMCHG = 0x100,
GEOMCHG = 0x100,
- DIRTY = 0x200
+ DIRTY = 0x200,
+
+ /* window flags */
+ FRAME = RTK_WIN_FRAME << 16,
+ MOVABLE = RTK_WIN_MOVABLE << 16,
+ RESIZABLE = RTK_WIN_RESIZABLE << 16
};
typedef struct rtk_any {
};
typedef struct rtk_any {
@@
-31,6
+38,7
@@
typedef struct rtk_window {
typedef struct rtk_button {
rtk_any any;
typedef struct rtk_button {
rtk_any any;
+ int mode;
rtk_icon *icon;
} rtk_button;
rtk_icon *icon;
} rtk_button;
@@
-41,14
+49,6
@@
typedef union rtk_widget {
rtk_button bn;
} rtk_widget;
rtk_button bn;
} rtk_widget;
-typedef struct rtk_icon {
- char *name;
- int width, height, scanlen;
- uint32_t *pixels;
-
- struct rtk_icon *next;
-} rtk_icon;
-
typedef struct rtk_iconsheet {
int width, height;
uint32_t *pixels;
typedef struct rtk_iconsheet {
int width, height;
uint32_t *pixels;