aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-05-16 21:18:02 +0200
committerDavid Robillard <d@drobilla.net>2020-05-16 21:18:02 +0200
commitfe96ed3c451548278197e2da74d3d53b1d6a8dd9 (patch)
tree6c4e3e751ddd13cd4898fac0fae4f4aed7079f36 /pugl/pugl.hpp
parent3200cda25e06887e809fc5b47780aaf950253172 (diff)
downloadpugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.tar.gz
pugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.tar.bz2
pugl-fe96ed3c451548278197e2da74d3d53b1d6a8dd9.zip
Add default and maximum size
Diffstat (limited to 'pugl/pugl.hpp')
-rw-r--r--pugl/pugl.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp
index 52ac52c..2e18306 100644
--- a/pugl/pugl.hpp
+++ b/pugl/pugl.hpp
@@ -186,6 +186,7 @@ enum class Status {
failure, ///< @copydoc PUGL_FAILURE
unknownError, ///< @copydoc PUGL_UNKNOWN_ERROR
badBackend, ///< @copydoc PUGL_BAD_BACKEND
+ badConfiguration, ///< @copydoc PUGL_BAD_CONFIGURATION
badParameter, ///< @copydoc PUGL_BAD_PARAMETER
backendFailed, ///< @copydoc PUGL_BACKEND_FAILED
registrationFailed, ///< @copydoc PUGL_REGISTRATION_FAILED
@@ -406,12 +407,24 @@ public:
return static_cast<Status>(puglSetFrame(cobj(), frame));
}
+ /// @copydoc puglSetDefaultSize
+ Status setDefaultSize(int width, int height)
+ {
+ return static_cast<Status>(puglSetDefaultSize(cobj(), width, height));
+ }
+
/// @copydoc puglSetMinSize
Status setMinSize(int width, int height)
{
return static_cast<Status>(puglSetMinSize(cobj(), width, height));
}
+ /// @copydoc puglSetMaxSize
+ Status setMaxSize(int width, int height)
+ {
+ return static_cast<Status>(puglSetMaxSize(cobj(), width, height));
+ }
+
/// @copydoc puglSetAspectRatio
Status setAspectRatio(int minX, int minY, int maxX, int maxY)
{