summaryrefslogtreecommitdiff
path: root/pugl/pugl.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-18 19:49:48 +0000
committerDavid Robillard <d@drobilla.net>2013-03-18 19:49:48 +0000
commitcea41bcb9be36fdfe9d273133996e1622586f27b (patch)
treee93871a5fc04ad3be78ed37a8d819d875919f68a /pugl/pugl.h
parentd5bfc40d6dd1834d28db9e0739a8286878e3d77a (diff)
Addition of visible parameter and other minor fixes from FalkTX.
Diffstat (limited to 'pugl/pugl.h')
-rw-r--r--pugl/pugl.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 9be936b..7f68351 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -124,7 +124,7 @@ typedef enum {
PUGL_KEY_SHIFT,
PUGL_KEY_CTRL,
PUGL_KEY_ALT,
- PUGL_KEY_SUPER,
+ PUGL_KEY_SUPER
} PuglKey;
/**
@@ -134,7 +134,7 @@ typedef enum {
PUGL_MOD_SHIFT = 1, /**< Shift key */
PUGL_MOD_CTRL = 1 << 1, /**< Control key */
PUGL_MOD_ALT = 1 << 2, /**< Alt/Option key */
- PUGL_MOD_SUPER = 1 << 3, /**< Mod4/Command/Windows key */
+ PUGL_MOD_SUPER = 1 << 3 /**< Mod4/Command/Windows key */
} PuglMod;
/**
@@ -219,13 +219,15 @@ typedef void (*PuglSpecialFunc)(PuglView* view, bool press, PuglKey key);
@param width Window width in pixels.
@param height Window height in pixels.
@param resizable Whether window should be user resizable.
+ @param visible Whether window should be initially visible.
*/
PUGL_API PuglView*
puglCreate(PuglNativeWindow parent,
const char* title,
int width,
int height,
- bool resizable);
+ bool resizable,
+ bool visible);
/**
Set the handle to be passed to all callbacks.