Class representing a Qnx context. More...
#include <kanzi/core.ui/platform/windowing_ng/qnx_screen/qnx_screen_context.hpp>
Public Member Functions | |
bool | flush () noexcept |
Flushes any pending requests. More... | |
KZ_NO_DISCARD QnxScreenContextHandleType | getNativeHandle () const noexcept |
Gets Qnx context handle. More... | |
QnxContext (int contextFlags) | |
Constructor. More... | |
QnxContext (const QnxScreenContextHandleType contextHandle) | |
Constructor. More... | |
KZ_NO_DISCARD optional< size_t > | tryGetDisplayCount () const noexcept |
Tries to get the number of displays associated with the context. More... | |
KZ_NO_DISCARD optional< QnxEvent > | tryGetNextEvent (int timeOut) const noexcept |
Gets a next event from the context. More... | |
KZ_NO_DISCARD optional< vector< QnxScreenDisplayHandleType > > | tryGetQnxDisplayHandles () const noexcept |
Tries to get the native display handles associated with the context. More... | |
~QnxContext () | |
Destructor. More... | |
Class representing a Qnx context.
|
explicit |
Constructor.
contextFlags | Qnx screen context bit flags. |
|
explicit |
Constructor.
contextHandle | Qnx context handle. |
kanzi::qnx::QnxContext::~QnxContext | ( | ) |
Destructor.
|
noexcept |
Gets a next event from the context.
timeOut | Maximum time (in nanoseconds) to wait for an event to occur. -1 indicates that the call will block until an event is ready. |
nullopt | Trying to get an event has failed. |
|
noexcept |
Tries to get the number of displays associated with the context.
nullopt | Trying to get the number of displays has failed. |
|
noexcept |
Tries to get the native display handles associated with the context.
nullopt | Trying to get the displays has failed. |
|
noexcept |
Flushes any pending requests.
|
noexcept |
Gets Qnx context handle.