Class representing a default Emscripten graphics output. More...
#include <kanzi/core.ui/platform/graphics_output/emscripten/default_emscripten_graphics_output.hpp>
Public Member Functions | |
| DefaultEmscriptenGraphicsOutput (const DefaultEmscriptenGraphicsOutputProperties &properties) | |
| Constructor. | |
| void | gatherEvents (EventQueue &queue) override |
| Amends the given event queue with events received so far. | |
| KZ_NO_DISCARD optional< NativeEventHandle > | getNativeEventHandle () const noexcept override |
| Returns a waitable event handle for this event source, if available. | |
| KZ_NO_DISCARD Matrix4x4 | getTargetTransformation () const noexcept override |
| Returns the target transformation. | |
| KZ_NO_DISCARD optional< unsigned int > | getWindowHeight () const noexcept |
| Returns the active window height. | |
| KZ_NO_DISCARD optional< unsigned int > | getWindowWidth () const noexcept |
| Returns the active window width. | |
| void | logWindowSize () const noexcept |
| Prints the active window size to log. | |
Public Member Functions inherited from kanzi::GraphicsOutput | |
| KZ_NO_DISCARD Vector2 | getDpi () const noexcept |
| Returns the resolution of the target coordinate system in dots per inch. | |
| KZ_NO_DISCARD unsigned int | getHeight () const noexcept |
| Returns the height of layout area in the target coordinate system. | |
| KZ_NO_DISCARD unsigned int | getWidth () const noexcept |
| Returns the width of layout area in the target coordinate system. | |
| virtual | ~GraphicsOutput ()=default |
| Destructor. | |
Public Member Functions inherited from kanzi::EventSource | |
| virtual | ~EventSource ()=default |
| Destructor. | |
Public Member Functions inherited from kanzi::WakeupSignalSource | |
| WakeupSignalSource & | operator= (const WakeupSignalSource &)=default |
| Copy assignment operator. | |
| WakeupSignalSource & | operator= (WakeupSignalSource &&) noexcept=default |
| Move assignment operator. | |
| WakeupSignalSource ()=default | |
| Constructor. | |
| WakeupSignalSource (const WakeupSignalSource &)=default | |
| Copy constructor. | |
| WakeupSignalSource (WakeupSignalSource &&) noexcept=default | |
| Move constructor. | |
| virtual | ~WakeupSignalSource ()=default |
| Destructor. | |
Public Member Functions inherited from kanzi::FramebufferGraphicsOutput | |
| FramebufferGraphicsOutput () | |
| Constructor. | |
| KZ_NO_DISCARD const Framebuffer & | getFramebuffer () const noexcept |
| Returns the framebuffer for the Graphics Output. | |
| KZ_NO_DISCARD Framebuffer & | getFramebuffer () noexcept |
| Returns the framebuffer for the Graphics Output. | |
| virtual | ~FramebufferGraphicsOutput ()=default |
| Destructor. | |
Protected Member Functions | |
| void | setTargetTransformation (Matrix4x4 targetTransformation) noexcept |
| Sets the target transformation. | |
| bool | updateCachedValues (unsigned int width, unsigned int height) noexcept |
| Updates all cached values from given layout size. | |
Protected Member Functions inherited from kanzi::GraphicsOutput | |
| void | updateDpi (Vector2 dpi) |
| Updates the target layout area resolution. | |
| void | updateSize (unsigned int width, unsigned int height) |
| Updates the target layout area size. | |
Class representing a default Emscripten graphics output.
|
explicit |
Constructor.
| properties | Specifies properties to request for the graphics output. |
|
noexcept |
Prints the active window size to log.
|
overridevirtual |
Amends the given event queue with events received so far.
| queue | Event queue to be amended. Do not clear nor assume to be empty. |
Implements kanzi::EventSource.
|
overridevirtualnoexcept |
Returns a waitable event handle for this event source, if available.
| nullopt | Getting the event handle failed. |
Implements kanzi::WakeupSignalSource.
|
overridevirtualnoexcept |
Returns the target transformation.
Implements kanzi::FramebufferGraphicsOutput.
|
noexcept |
Returns the active window width.
| nullopt | Getting the width failed. |
|
noexcept |
Returns the active window height.
| nullopt | Getting the height failed. |
|
inlineprotectednoexcept |
Sets the target transformation.
| targetTransformation | The target transformation matrix. |
|
protectednoexcept |
Updates all cached values from given layout size.
| width | Layout area width in pixels. |
| height | Layout area height in pixels. |