Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::qnx Namespace Reference

Classes

class  DefaultQnxEGLGraphicsOutput
 Class representing a default QNX EGL graphics output. More...
 
struct  DefaultQnxEGLGraphicsOutputProperties
 The structure that represents the default QNX EGL graphics output properties. More...
 
struct  DefaultQnxInputEventContext
 Structure representing the default context for an async input event. More...
 
class  DefaultQnxPulseHandler
 
class  QnxChannelID
 Class representing Qnx communication channel ID. More...
 
class  QnxConnectionID
 Class representing Qnx connection ID. More...
 
class  QnxContext
 Class representing a Qnx context. More...
 
class  QnxDisplay
 Class representing a Qnx display. More...
 
class  QnxEGLPBufferGraphicsOutput
 Class representing a QNX EGL pixel buffer graphics output. More...
 
struct  QnxEGLPBufferGraphicsOutputProperties
 
class  QnxEGLWindow
 Class representing a Qnx EGL window. More...
 
class  QnxEvent
 Class representing a Qnx event. More...
 
class  QnxSigEvent
 Class representing Qnx sig event. More...
 
class  QnxWindow
 Class representing a Qnx window. More...
 

Typedefs

typedef screen_context_t QnxScreenContextHandleType
 Alias for the Qnx context handle type. More...
 
typedef screen_display_t QnxScreenDisplayHandleType
 Alias for the Qnx display handle type. More...
 
typedef screen_event_t QnxScreenEventHandleType
 Alias for the Qnx event handle type. More...
 
typedef screen_window_t QnxScreenWindowHandleType
 Alias for the Qnx window handle type. More...
 

Enumerations

enum  QnxPulseCode : int { QnxPulseCode::Disconnect, QnxPulseCode::Input }
 Qnx pulse codes. More...
 

Functions

bool bringToFront (QnxWindow &window) noexcept
 Brings the window to forefront. More...
 
bool isKeyReleased (int keyFlags) noexcept
 Tests if key is released for a keyboard event. More...
 
KZ_NO_DISCARD kanzi::KeyModifier qnxKeyModifiersToLogicalKeyModifiers (unsigned int qnxKeyModifiers) noexcept
 Maps native Qnx key modifiers to Kanzi logical key modifiers. More...
 
KZ_NO_DISCARD kanzi::LogicalKey qnxKeyToLogicalKey (unsigned int qnxKey) noexcept
 Maps native Qnx key to Kanzi logical key. More...
 
bool setWindowPipelineID (QnxWindow &window, int id) noexcept
 Sets pipeline ID for given window. More...
 
bool setWindowTitle (QnxWindow &window, string_view windowTitle) noexcept
 Sets a window title. More...
 
KZ_NO_DISCARD PointerButton translateQnxPointerButtonsToKanzi (int qnxPointerButtons) noexcept
 Translates Qnx pointer buttons to Kanzi pointer buttons. More...
 
KZ_NO_DISCARD optional< int > tryGetButtonsProperty (const QnxEvent &qnxEvent) noexcept
 Tries to get the buttons property (SCREEN_PROPERTY_BUTTONS) of the Qnx event. More...
 
KZ_NO_DISCARD optional< int > tryGetEventType (const QnxEvent &qnxEvent) noexcept
 Tries to get the type (SCREEN_PROPERTY_TYPE) of the Qnx event. More...
 
KZ_NO_DISCARD optional< int > tryGetFlagsProperty (const QnxEvent &qnxEvent) noexcept
 Tries to get the key flags property (SCREEN_PROPERTY_FLAGS for Qnx version 700 and above or SCREEN_PROPERTY_KEY_FLAGS for below) of the Qnx event. More...
 
KZ_NO_DISCARD optional< int > tryGetKeySymProperty (const QnxEvent &qnxEvent) noexcept
 Tries to get the key sym property (SCREEN_PROPERTY_SYM for Qnx version 700 and above or SCREEN_PROPERTY_KEY_SYM for below) of the Qnx event. More...
 
KZ_NO_DISCARD optional< int > tryGetModifiersProperty (const QnxEvent &qnxEvent) noexcept
 Tries to get the modifiers property (SCREEN_PROPERTY_MODIFIERS for Qnx version 700 and above or SCREEN_PROPERTY_KEY_MODIFIERS for below) of the Qnx event. More...
 
KZ_NO_DISCARD optional< windowing::PositiontryGetPositionProperty (const QnxEvent &qnxEvent) noexcept
 Tries to get the position property (SCREEN_PROPERTY_POSITION) of the Qnx event. More...
 
KZ_NO_DISCARD int tryGetScreenUsageFlags (const EGLDisplay &eglDisplay, const EGLConfig &eglConfig) noexcept
 Queries the screen usage flags for the given display and EGL config. More...
 
KZ_NO_DISCARD optional< windowing::SizeUtryGetWindowSizeU (const QnxWindow &window) noexcept
 Tries to get the size for this window in unsigned format. More...
 
KZ_NO_DISCARD optional< string > tryGetWindowTitle (const QnxWindow &window) noexcept
 Tries to get the window title. More...
 

Variables

constexpr int QnxMouseButtonsBitMask
 Bitmask for Qnx mouse button events. More...
 

Typedef Documentation

typedef screen_context_t kanzi::qnx::QnxScreenContextHandleType

Alias for the Qnx context handle type.

typedef screen_display_t kanzi::qnx::QnxScreenDisplayHandleType

Alias for the Qnx display handle type.

typedef screen_event_t kanzi::qnx::QnxScreenEventHandleType

Alias for the Qnx event handle type.

typedef screen_window_t kanzi::qnx::QnxScreenWindowHandleType

Alias for the Qnx window handle type.

Enumeration Type Documentation

enum kanzi::qnx::QnxPulseCode : int
strong

Qnx pulse codes.

Enumerator
Disconnect 
Input 

Function Documentation

KZ_NO_DISCARD int kanzi::qnx::tryGetScreenUsageFlags ( const EGLDisplay eglDisplay,
const EGLConfig eglConfig 
)
noexcept

Queries the screen usage flags for the given display and EGL config.

Parameters
eglDisplayThe EGL display to use.
eglConfigThe EGL config to use.
Returns
The compatible screen usage flags. Zero for failure.
KZ_NO_DISCARD kanzi::LogicalKey kanzi::qnx::qnxKeyToLogicalKey ( unsigned int  qnxKey)
noexcept

Maps native Qnx key to Kanzi logical key.

Parameters
qnxKeyThe Qnx key to map.
Returns
Logical key.
KZ_NO_DISCARD kanzi::KeyModifier kanzi::qnx::qnxKeyModifiersToLogicalKeyModifiers ( unsigned int  qnxKeyModifiers)
noexcept

Maps native Qnx key modifiers to Kanzi logical key modifiers.

Parameters
qnxKeyModifiersThe Qnx key modifiers to map.
Returns
Logical key modifiers.
KZ_NO_DISCARD PointerButton kanzi::qnx::translateQnxPointerButtonsToKanzi ( int  qnxPointerButtons)
noexcept

Translates Qnx pointer buttons to Kanzi pointer buttons.

Parameters
qnxPointerButtonsQnx pointer buttons to translate.
Precondition
qnxPointerButtons must not be greater than the Qnx pointer button bitmask.
Returns
Translated Kanzi pointer buttons.
KZ_NO_DISCARD optional<int> kanzi::qnx::tryGetEventType ( const QnxEvent qnxEvent)
noexcept

Tries to get the type (SCREEN_PROPERTY_TYPE) of the Qnx event.

Parameters
qnxEventQnx event to get the type of.
Return values
nulloptTrying to get the type of the Qnx event has failed.
Returns
Qnx event type.
KZ_NO_DISCARD optional<int> kanzi::qnx::tryGetKeySymProperty ( const QnxEvent qnxEvent)
noexcept

Tries to get the key sym property (SCREEN_PROPERTY_SYM for Qnx version 700 and above or SCREEN_PROPERTY_KEY_SYM for below) of the Qnx event.

Parameters
qnxEventQnx event to get the sym property of.
Return values
nulloptTrying to get the key sym property has failed.
Returns
Key sym property.
KZ_NO_DISCARD optional<int> kanzi::qnx::tryGetModifiersProperty ( const QnxEvent qnxEvent)
noexcept

Tries to get the modifiers property (SCREEN_PROPERTY_MODIFIERS for Qnx version 700 and above or SCREEN_PROPERTY_KEY_MODIFIERS for below) of the Qnx event.

Parameters
qnxEventQnx event to get the modifiers property of.
Return values
nulloptTrying to get the modifiers property has failed.
Returns
Modifiers property.
KZ_NO_DISCARD optional<int> kanzi::qnx::tryGetFlagsProperty ( const QnxEvent qnxEvent)
noexcept

Tries to get the key flags property (SCREEN_PROPERTY_FLAGS for Qnx version 700 and above or SCREEN_PROPERTY_KEY_FLAGS for below) of the Qnx event.

Parameters
qnxEventQnx event to get the flags property of.
Return values
nulloptTrying to get the key flags property has failed.
Returns
Key flags property.
KZ_NO_DISCARD optional<int> kanzi::qnx::tryGetButtonsProperty ( const QnxEvent qnxEvent)
noexcept

Tries to get the buttons property (SCREEN_PROPERTY_BUTTONS) of the Qnx event.

Parameters
qnxEventQnx event to get the buttons property of.
Return values
nulloptTrying to get the buttons property has failed.
Returns
Button property.
KZ_NO_DISCARD optional<windowing::Position> kanzi::qnx::tryGetPositionProperty ( const QnxEvent qnxEvent)
noexcept

Tries to get the position property (SCREEN_PROPERTY_POSITION) of the Qnx event.

Parameters
qnxEventQnx event to get the position property of.
Return values
nulloptTrying to get the position property has failed.
Returns
Position property.
bool kanzi::qnx::isKeyReleased ( int  keyFlags)
noexcept

Tests if key is released for a keyboard event.

Parameters
keyFlagsScreen property flags.
Returns
True if released, otherwise false.
KZ_NO_DISCARD optional<windowing::SizeU> kanzi::qnx::tryGetWindowSizeU ( const QnxWindow window)
noexcept

Tries to get the size for this window in unsigned format.

Parameters
windowWindow to get the size for.
Return values
nulloptGetting the size failed.
Returns
Window size in pixels.
bool kanzi::qnx::setWindowTitle ( QnxWindow window,
string_view  windowTitle 
)
noexcept

Sets a window title.

Parameters
windowWindow to set the title for.
windowTitleWindow title to set.
Returns
True on success, false on failure.
KZ_NO_DISCARD optional<string> kanzi::qnx::tryGetWindowTitle ( const QnxWindow window)
noexcept

Tries to get the window title.

Parameters
windowWindow to get the title from.
Return values
nulloptGetting the title failed.
Returns
True on success, false on failure.
bool kanzi::qnx::bringToFront ( QnxWindow window)
noexcept

Brings the window to forefront.

Parameters
windowWindow to bring to front.
Returns
True on success, false on failure.
bool kanzi::qnx::setWindowPipelineID ( QnxWindow window,
int  id 
)
noexcept

Sets pipeline ID for given window.

Sets also SCREEN_USAGE_OVERLAY usage flag.

Parameters
windowReference to the window object.
idValue for pipeline ID.
Returns
True on success, false on failure.

Variable Documentation

constexpr int kanzi::qnx::QnxMouseButtonsBitMask

Bitmask for Qnx mouse button events.