Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QXComponentId Class Reference

#include <qxcomponent.h>

Collaboration diagram for QXComponentId:

Public Types

enum class  RecognizedType { RenderXComponent , NativeNodeSubWindow , NativeNodeMainWindow , NativeNodeFloatWindow }

Public Member Functions

 QXComponentId (const QXComponentId &other)=default
QXComponentIdoperator= (const QXComponentId &other)=default
 QXComponentId (QXComponentId &&other)=default
QXComponentIdoperator= (QXComponentId &&other)=default
bool operator== (const QXComponentId &other) const
bool operator!= (const QXComponentId &other) const
bool operator< (const QXComponentId &other) const
std::string stringId () const
QNapi::Value toNapiValue (napi_env env) const
QOhosOptional< RecognizedTyperecognizedType () const

Static Public Member Functions

static QXComponentId createForNativeNodeMainWindow (const std::string &qAbilityInstanceId)
static QXComponentId createForNativeNodeSubWindow (QtOhos::InternalWindowId windowId)
static QXComponentId createForRenderXComponent (QtOhos::InternalWindowId windowId)
static QXComponentId createForNativeNodeFloatWindow (QtOhos::InternalWindowId windowId)
static QOhosOptional< QXComponentIdtryCreateFromXComponent (::OH_NativeXComponent *xComponent)

Detailed Description

Definition at line 46 of file qxcomponent.h.

Member Enumeration Documentation

◆ RecognizedType

enum class QXComponentId::RecognizedType
strong
Enumerator
RenderXComponent 
NativeNodeSubWindow 
NativeNodeMainWindow 
NativeNodeFloatWindow 

Definition at line 49 of file qxcomponent.h.

Constructor & Destructor Documentation

◆ QXComponentId() [1/2]

QXComponentId::QXComponentId ( const QXComponentId & other)
default

◆ QXComponentId() [2/2]

QXComponentId::QXComponentId ( QXComponentId && other)
default

Member Function Documentation

◆ createForNativeNodeFloatWindow()

QXComponentId QXComponentId::createForNativeNodeFloatWindow ( QtOhos::InternalWindowId windowId)
static

Definition at line 75 of file qxcomponent.cpp.

◆ createForNativeNodeMainWindow()

QXComponentId QXComponentId::createForNativeNodeMainWindow ( const std::string & qAbilityInstanceId)
static

Definition at line 60 of file qxcomponent.cpp.

References QT_BEGIN_NAMESPACE::xComponentPrefixForMainWindow.

Referenced by makeWindowProxyDataForExistingMainWindowInJsThread().

Here is the caller graph for this function:

◆ createForNativeNodeSubWindow()

QXComponentId QXComponentId::createForNativeNodeSubWindow ( QtOhos::InternalWindowId windowId)
static

Definition at line 65 of file qxcomponent.cpp.

◆ createForRenderXComponent()

QXComponentId QXComponentId::createForRenderXComponent ( QtOhos::InternalWindowId windowId)
static

Definition at line 70 of file qxcomponent.cpp.

◆ operator!=()

bool QXComponentId::operator!= ( const QXComponentId & other) const

Definition at line 50 of file qxcomponent.cpp.

◆ operator<()

bool QXComponentId::operator< ( const QXComponentId & other) const

Definition at line 55 of file qxcomponent.cpp.

◆ operator=() [1/2]

QXComponentId & QXComponentId::operator= ( const QXComponentId & other)
default

◆ operator=() [2/2]

QXComponentId & QXComponentId::operator= ( QXComponentId && other)
default

◆ operator==()

bool QXComponentId::operator== ( const QXComponentId & other) const

Definition at line 45 of file qxcomponent.cpp.

◆ recognizedType()

QOhosOptional< QXComponentId::RecognizedType > QXComponentId::recognizedType ( ) const

Definition at line 121 of file qxcomponent.cpp.

◆ stringId()

std::string QXComponentId::stringId ( ) const

Definition at line 86 of file qxcomponent.cpp.

Referenced by QT_BEGIN_NAMESPACE::takeNodeXComponentFromRegistryOrFail().

Here is the caller graph for this function:

◆ toNapiValue()

QNapi::Value QXComponentId::toNapiValue ( napi_env env) const

Definition at line 116 of file qxcomponent.cpp.

◆ tryCreateFromXComponent()

QOhosOptional< QXComponentId > QXComponentId::tryCreateFromXComponent ( ::OH_NativeXComponent * xComponent)
static

Definition at line 91 of file qxcomponent.cpp.


The documentation for this class was generated from the following files: