diff options
author | David Robillard <d@drobilla.net> | 2023-01-07 19:27:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-07 19:27:00 -0500 |
commit | 28631e2b202e661084039464f45228b9ce323a8f (patch) | |
tree | 6b8d7f586052093e3d47e33d6db04f71406c1bdb /src/types.h | |
parent | b6ecd23cfb3c82c2c3f05795ebd9c65314e6367c (diff) | |
download | pugl-28631e2b202e661084039464f45228b9ce323a8f.tar.gz pugl-28631e2b202e661084039464f45228b9ce323a8f.tar.bz2 pugl-28631e2b202e661084039464f45228b9ce323a8f.zip |
Replace visible flag with a more descriptive view "stage"
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 10 |
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 |