aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/types.h b/src/types.h
index dc2e29f..28d8548 100644
--- a/src/types.h
+++ b/src/types.h
@@ -33,6 +33,14 @@ typedef struct {
size_t len; ///< Length of data in bytes
} PuglBlob;
+/// Stage of a view along its lifespan
+typedef enum {
+ PUGL_VIEW_STAGE_ALLOCATED,
+ PUGL_VIEW_STAGE_CREATED,
+ PUGL_VIEW_STAGE_CONFIGURED,
+ PUGL_VIEW_STAGE_MAPPED,
+} PuglViewStage;
+
/// Cross-platform view definition
struct PuglViewImpl {
PuglWorld* world;
@@ -47,7 +55,7 @@ struct PuglViewImpl {
PuglConfigureEvent lastConfigure;
PuglHints hints;
PuglViewSize sizeHints[PUGL_NUM_SIZE_HINTS];
- bool visible;
+ PuglViewStage stage;
};
/// Cross-platform world definition