aboutsummaryrefslogtreecommitdiffstats
path: root/doc/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cpp')
-rw-r--r--doc/cpp/Doxyfile.in1
-rw-r--r--doc/cpp/event-loop.rst5
-rw-r--r--doc/cpp/view.rst4
3 files changed, 4 insertions, 6 deletions
diff --git a/doc/cpp/Doxyfile.in b/doc/cpp/Doxyfile.in
index 05deae7..3d0d45f 100644
--- a/doc/cpp/Doxyfile.in
+++ b/doc/cpp/Doxyfile.in
@@ -31,7 +31,6 @@ MACRO_EXPANSION = YES
PREDEFINED = PUGL_API \
PUGL_CONST_API= \
PUGL_CONST_FUNC= \
- PUGL_DISABLE_DEPRECATED \
PUGL_MALLOC_API= \
PUGL_MALLOC_FUNC=
diff --git a/doc/cpp/event-loop.rst b/doc/cpp/event-loop.rst
index 1d2ac41..3223069 100644
--- a/doc/cpp/event-loop.rst
+++ b/doc/cpp/event-loop.rst
@@ -24,14 +24,13 @@ while those that draw continuously may use a significant fraction of the frame p
Redrawing
*********
-Occasional redrawing can be requested by calling :func:`View::postRedisplay` or :func:`View::postRedisplayRect`.
+Occasional redrawing can be requested by calling :func:`View::obscure`.
After these are called,
a :type:`ExposeEvent` will be dispatched on the next call to :func:`World::update`.
Note, however, that this will not wake up a blocked :func:`World::update` call on MacOS
(which does not handle drawing via events).
-For continuous redrawing,
-call :func:`View::postRedisplay` while handling a :type:`UpdateEvent`.
+For continuous redrawing, obscure the view while handling a :type:`UpdateEvent`.
This event is sent just before views are redrawn,
so it can be used as a hook to expand the update region right before the view is exposed.
Anything else that needs to be done every frame can be handled similarly.
diff --git a/doc/cpp/view.rst b/doc/cpp/view.rst
index 49940c9..e2fc994 100644
--- a/doc/cpp/view.rst
+++ b/doc/cpp/view.rst
@@ -90,14 +90,14 @@ Embedding
To embed the view in another window,
you will need to somehow get the :type:`native view handle <pugl::NativeView>` for the parent,
-then set it with :func:`View::setParentWindow`.
+then set it with :func:`View::setParent`.
If the parent is a Pugl view,
the native handle can be accessed with :func:`View::nativeView`.
For example:
.. code-block:: cpp
- view.setParentWindow(view, parent.getNativeView());
+ view.setParent(view, parent.nativeView());
*****************
Setting a Backend