aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-23 17:00:37 -0500
committerDavid Robillard <d@drobilla.net>2025-01-23 18:02:52 -0500
commitef551ed4b85bc29b3eb48775faeadcf41596c40a (patch)
tree9ce41788cd4c06b9e9e3ce3f6fbfa01cd4931e8b /bindings
parentd7a93950b3af397580572adf2e366f3b162104a9 (diff)
downloadpugl-ef551ed4b85bc29b3eb48775faeadcf41596c40a.tar.gz
pugl-ef551ed4b85bc29b3eb48775faeadcf41596c40a.tar.bz2
pugl-ef551ed4b85bc29b3eb48775faeadcf41596c40a.zip
Replace puglPostRedisplayRect() with puglObscureRegion()HEADmain
Diffstat (limited to 'bindings')
-rw-r--r--bindings/cpp/include/pugl/pugl.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp
index c74962b..bf87ed3 100644
--- a/bindings/cpp/include/pugl/pugl.hpp
+++ b/bindings/cpp/include/pugl/pugl.hpp
@@ -615,10 +615,13 @@ public:
return static_cast<Status>(puglObscureView(cobj()));
}
- /// @copydoc puglPostRedisplayRect
- Status postRedisplayRect(const Rect& rect) noexcept
+ /// "Obscure" a region so it will be exposed in the next render
+ Status obscure(const int x,
+ const int y,
+ const unsigned width,
+ const unsigned height)
{
- return static_cast<Status>(puglPostRedisplayRect(cobj(), rect));
+ return static_cast<Status>(puglObscureRegion(cobj(), x, y, width, height));
}
/**