The RenderApp::WM inner class is an Attorney that allow access to some private member functions of the RenderApp class to the WindowManagerType class.
More...
#include <vclib/render/render_app.h>
|
static void | init (RenderApp *r) |
| The WindowManagerType calls this member function when the window render backend is initialized. The RenderApp propagates the init event to the CanvasType and to each Drawer object, by calling the onInit(uint) member function.
|
|
static void | resize (RenderApp *r, uint width, uint height) |
| The WindowManagerType calls this member function when the window is resized, telling the new width and height. The RenderApp propagates the resize event to the CanvasType and to each Drawer object, by calling the onResize(uint, uint) member function.
|
|
static void | paint (RenderApp *r) |
| The WindowManagerType calls this member function when the window triggers a paint event.
|
|
static void | setModifiers (RenderApp *r, const KeyModifiers &modifiers) |
| The WindowManagerType calls this member function when the current modifiers are updated.
|
|
static void | keyPress (RenderApp *r, Key::Enum key) |
| The WindowManagerType calls this member function when a key is pressed.
|
|
static void | keyRelease (RenderApp *r, Key::Enum key) |
| The WindowManagerType calls this member function when a key is released.
|
|
static void | mouseMove (RenderApp *r, double x, double y) |
| The WindowManagerType calls this member function when the mouse cursor is moved.
|
|
static void | mousePress (RenderApp *r, MouseButton::Enum button, double x, double y) |
| The WindowManagerType calls this member function when a mouse button is pressed.
|
|
static void | mouseRelease (RenderApp *r, MouseButton::Enum button, double x, double y) |
| The WindowManagerType calls this member function when a mouse button is released.
|
|
static void | mouseDoubleClick (RenderApp *r, MouseButton::Enum button, double x, double y) |
| The WindowManagerType calls this member function when a mouse button is double clicked.
|
|
static void | mouseScroll (RenderApp *r, double x, double y) |
| The WindowManagerType calls this member function when the mouse wheel is scrolled.
|
|
The RenderApp::WM inner class is an Attorney that allow access to some private member functions of the RenderApp class to the WindowManagerType class.
The member functions of the RenderApp::WM inner class can be called only by the WindowManagerType class. For example, to call the init member function, the WindowManagerType can call it in the following way:
static void init(RenderApp *r)
The WindowManagerType calls this member function when the window render backend is initialized....
Definition render_app.h:397
The RenderApp class is a template class that combines a canvas, a window manager, and a set of drawer...
Definition render_app.h:67
◆ keyPress()
The WindowManagerType calls this member function when a key is pressed.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onKeyPress(Key::Enum, KeyModifiers)
member function.
- Parameters
-
◆ keyRelease()
The WindowManagerType calls this member function when a key is released.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onKeyRelease(Key::Enum, KeyModifiers)
member function.
- Parameters
-
◆ mouseDoubleClick()
The WindowManagerType calls this member function when a mouse button is double clicked.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onMouseDoubleClick(MouseButton::Enum, double, double, KeyModifiers)
member function.
- Parameters
-
◆ mouseMove()
The WindowManagerType calls this member function when the mouse cursor is moved.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onMouseMove(double, double, KeyModifiers)
member function.
- Parameters
-
◆ mousePress()
The WindowManagerType calls this member function when a mouse button is pressed.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onMousePress(MouseButton::Enum, double, double, KeyModifiers)
member function.
- Parameters
-
◆ mouseRelease()
The WindowManagerType calls this member function when a mouse button is released.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onMouseRelease(MouseButton::Enum, double, double, KeyModifiers)
member function.
- Parameters
-
◆ mouseScroll()
The WindowManagerType calls this member function when the mouse wheel is scrolled.
The event (along with the current key modifiers) is propagated to each Drawer object that is a EventDrawer object, by calling the onMouseScroll(double, double, KeyModifiers)
member function.
- Parameters
-
◆ resize()
The WindowManagerType calls this member function when the window is resized, telling the new width and height. The RenderApp propagates the resize event to the CanvasType and to each Drawer object, by calling the onResize(uint, uint)
member function.
- Parameters
-
The documentation for this class was generated from the following file: