Class representing a Qnx context.
More...
#include <kanzi/core.ui/platform/windowing_ng/qnx_screen/qnx_screen_context.hpp>
Class representing a Qnx context.
◆ QnxContext() [1/2]
kanzi::qnx::QnxContext::QnxContext |
( |
int |
contextFlags | ) |
|
|
explicit |
Constructor.
- Parameters
-
contextFlags | Qnx screen context bit flags. |
◆ QnxContext() [2/2]
Constructor.
- Parameters
-
contextHandle | Qnx context handle. |
- Precondition
- contextHandle must be a valid context handle.
◆ ~QnxContext()
kanzi::qnx::QnxContext::~QnxContext |
( |
| ) |
|
◆ tryGetNextEvent()
Gets a next event from the context.
- Parameters
-
timeOut | Maximum time (in nanoseconds) to wait for an event to occur. -1 indicates that the call will block until an event is ready. |
- Return values
-
nullopt | Trying to get an event has failed. |
- Returns
- Qnx event.
◆ tryGetDisplayCount()
KZ_NO_DISCARD optional<size_t> kanzi::qnx::QnxContext::tryGetDisplayCount |
( |
| ) |
const |
|
noexcept |
Tries to get the number of displays associated with the context.
- Return values
-
nullopt | Trying to get the number of displays has failed. |
- Returns
- Display count.
◆ tryGetQnxDisplayHandles()
Tries to get the native display handles associated with the context.
- Return values
-
nullopt | Trying to get the displays has failed. |
- Returns
- Displays.
◆ flush()
bool kanzi::qnx::QnxContext::flush |
( |
| ) |
|
|
noexcept |
Flushes any pending requests.
- Returns
- True on success, false on failure.
◆ getNativeHandle()
Gets Qnx context handle.
- Returns
- Qnx context handle.
The documentation for this class was generated from the following file: