Home
last modified time | relevance | path

Searched refs:XComponentType (Results 1 - 21 of 21) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/
H A Dxcomponent_model_ng.cpp22 void XComponentModelNG::Create(const std::optional<std::string>& id, XComponentType type, in Create()
34 ACE_UPDATE_LAYOUT_PROPERTY(XComponentLayoutProperty, XComponentType, type); in Create()
38 XComponentType type, const std::string& libraryname, in Create()
64 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in InitXComponent()
77 if (type == XComponentType::COMPONENT) { in GetLibraryName()
85 XComponentType XComponentModelNG::GetTypeImpl(const RefPtr<FrameNode>& frameNode) in GetTypeImpl()
87 CHECK_NULL_RETURN(frameNode, XComponentType::UNKNOWN); in GetTypeImpl()
89 CHECK_NULL_RETURN(layoutProperty, XComponentType::UNKNOWN); in GetTypeImpl()
93 XComponentType XComponentModelN
[all...]
H A Dxcomponent_model.h38 static bool IsBackGroundColorAvailable(const XComponentType& type) in IsBackGroundColorAvailable()
40 return type == XComponentType::TEXTURE || type == XComponentType::NODE || in IsBackGroundColorAvailable()
41 (type == XComponentType::SURFACE && Container::GreatOrEqualAPIVersion(PlatformVersion::VERSION_ELEVEN)); in IsBackGroundColorAvailable()
43 static bool IsCommonEventAvailable(const XComponentType& type, std::optional<std::string>& libraryName) in IsCommonEventAvailable()
45 return type == XComponentType::NODE || in IsCommonEventAvailable()
50 virtual void Create(const std::optional<std::string>& id, XComponentType type,
54 const std::string& /* id */, XComponentType /* type */, const std::string& /* libraryname */, in Create()
69 virtual XComponentType GetType() in GetType()
71 return XComponentType in GetType()
[all...]
H A Dxcomponent_layout_algorithm.cpp25 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in MeasureContent()
26 if (xcomponentType == XComponentType::COMPONENT) { in MeasureContent()
38 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in Measure()
39 if (xcomponentType == XComponentType::COMPONENT) { in Measure()
49 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in Layout()
50 if (xcomponentType == XComponentType::COMPONENT) { in Layout()
H A Dxcomponent_model_ng.h31 XComponentType type = XComponentType::SURFACE;
39 void Create(const std::optional<std::string>& id, XComponentType type,
43 const std::string& id, XComponentType type, const std::string& libraryname,
45 XComponentType GetType() override;
63 static XComponentType GetType(FrameNode* frameNode);
65 int32_t nodeId, const std::string& id, XComponentType type, const std::optional<std::string>& libraryname);
69 static void SetXComponentType(FrameNode* frameNode, XComponentType type);
72 static XComponentType GetXComponentType(FrameNode* frameNode);
87 static XComponentType GetTypeImp
[all...]
H A Dxcomponent_controller_ng.cpp27 if (pattern->GetType() != XComponentType::SURFACE) { in GetGlobalPosition()
42 if (pattern->GetType() != XComponentType::SURFACE) { in GetSize()
58 if (pattern->GetType() != XComponentType::SURFACE) { in SetExtController()
69 if (extPattern->GetType() != XComponentType::SURFACE) { in SetExtController()
82 if (pattern->GetType() != XComponentType::SURFACE) { in ResetExtController()
90 if (extPattern->GetType() != XComponentType::SURFACE) { in ResetExtController()
H A Dxcomponent_layout_property.h46 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(XComponentType, XComponentType, PROPERTY_UPDATE_MEASURE);
H A Dxcomponent_pattern.h58 XComponentPattern(const std::optional<std::string>& id, XComponentType type,
69 return type_ == XComponentType::SURFACE || type_ == XComponentType::TEXTURE || type_ == XComponentType::NODE;
89 if (type_ == XComponentType::TEXTURE) {
98 if (type_ == XComponentType::NODE) {
114 // for XComponentType::NODE in GetNativeXComponent()
172 XComponentType GetType() in GetType()
177 void SetType(XComponentType type) in SetType()
399 RenderSurface::RenderSurfaceType CovertToRenderSurfaceType(const XComponentType
[all...]
H A Dxcomponent_pattern.cpp61 std::string XComponentTypeToString(XComponentType type) in XComponentTypeToString()
64 case XComponentType::UNKNOWN: in XComponentTypeToString()
66 case XComponentType::SURFACE: in XComponentTypeToString()
68 case XComponentType::COMPONENT: in XComponentTypeToString()
70 case XComponentType::TEXTURE: in XComponentTypeToString()
72 case XComponentType::NODE: in XComponentTypeToString()
159 XComponentPattern::XComponentPattern(const std::optional<std::string>& id, XComponentType type, in XComponentPattern()
175 if ((type_ == XComponentType::SURFACE || type_ == XComponentType::TEXTURE) && libraryname_.has_value()) { in InitNativeXComponent()
208 if (type_ == XComponentType in InitSurface()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent.cpp36 XComponentType ConvertToXComponentType(const std::string& type) in ConvertToXComponentType()
39 return XComponentType::SURFACE; in ConvertToXComponentType()
42 return XComponentType::COMPONENT; in ConvertToXComponentType()
45 return XComponentType::NODE; in ConvertToXComponentType()
47 return XComponentType::SURFACE; in ConvertToXComponentType()
204 XComponentType xcomponentType = XComponentType::SURFACE; in Create()
208 xcomponentType = static_cast<XComponentType>(type->ToNumber<int32_t>()); in Create()
247 static_cast<XComponentType>(params.xcomponentType), params.libraryName, xcomponentController)); in Create()
486 backgroundColor = (type == XComponentType in JsBackgroundColor()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/
H A Dxcomponent_testtwo_ng.cpp53 std::optional<XComponentType> xcType = std::nullopt;
66 constexpr XComponentType XCOMPONENT_SURFACE_TYPE_VALUE = XComponentType::SURFACE;
67 constexpr XComponentType XCOMPONENT_TEXTURE_TYPE_VALUE = XComponentType::TEXTURE;
144 pattern->SetType(XComponentType::COMPONENT); in HWTEST_F()
146 EXPECT_EQ(pattern->GetType(), XComponentType::COMPONENT); in HWTEST_F()
148 pattern->SetType(XComponentType::NODE); in HWTEST_F()
150 EXPECT_EQ(pattern->GetType(), XComponentType::NODE); in HWTEST_F()
152 pattern->SetType(XComponentType in HWTEST_F()
[all...]
H A Dxcomponent_test_ng.cpp51 std::optional<XComponentType> xcType = std::nullopt;
66 constexpr XComponentType XCOMPONENT_SURFACE_TYPE_VALUE = XComponentType::SURFACE;
67 constexpr XComponentType XCOMPONENT_COMPONENT_TYPE_VALUE = XComponentType::COMPONENT;
68 constexpr XComponentType XCOMPONENT_TEXTURE_TYPE_VALUE = XComponentType::TEXTURE;
69 constexpr XComponentType XCOMPONENT_NODE_TYPE_VALUE = XComponentType::NODE;
560 * @tc.desc: Test XComponent type = XComponentType
[all...]
H A Dxcomponent_property_test_ng.cpp51 std::optional<XComponentType> xcType = std::nullopt;
68 constexpr XComponentType XCOMPONENT_SURFACE_TYPE_VALUE = XComponentType::SURFACE;
69 constexpr XComponentType XCOMPONENT_COMPONENT_TYPE_VALUE = XComponentType::COMPONENT;
70 constexpr XComponentType XCOMPONENT_TEXTURE_TYPE_VALUE = XComponentType::TEXTURE;
71 constexpr XComponentType XCOMPONENT_NODE_TYPE_VALUE = XComponentType::NODE;
179 xComponentLayoutProperty->GetXComponentType().value_or(XComponentType in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dxcomponent_model_impl.h25 void Create(const std::optional<std::string>& id, XComponentType type,
H A Dxcomponent_model_impl.cpp24 void XComponentModelImpl::Create(const std::optional<std::string>& id, XComponentType /* type */, in Create()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_xcomponent_modifier.cpp59 ViewAbstract::SetBackgroundColor(frameNode, (type == XComponentType::SURFACE) ? Color::BLACK : Color::TRANSPARENT); in ResetXComponentBackgroundColor()
96 XComponentModelNG::SetXComponentType(frameNode, static_cast<XComponentType>(type)); in SetXComponentType()
H A Dview_model.cpp291 auto frameNode = XComponentModelNG::CreateFrameNode(nodeId, "", XComponentType::SURFACE, ""); in createXComponentNode()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_xcomponent_bridge.cpp36 XComponentType XComponentBridge::ConvertToXComponentType(const std::string& type) in ConvertToXComponentType()
39 return XComponentType::SURFACE; in ConvertToXComponentType()
42 return XComponentType::COMPONENT; in ConvertToXComponentType()
45 return XComponentType::NODE; in ConvertToXComponentType()
47 return XComponentType::SURFACE; in ConvertToXComponentType()
77 xcParams->type = static_cast<XComponentType>(typeArg->Int32Value(vm)); in ParseParams()
270 XComponentType xcomponentType = XComponentType::SURFACE; in SetXComponentInitialize()
274 xcomponentType = static_cast<XComponentType>(typeArg->Int32Value(vm)); in SetXComponentInitialize()
H A Darkts_native_xcomponent_bridge.h81 static XComponentType ConvertToXComponentType(const std::string& type);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js2987 var XComponentType; variable
2988 (function (XComponentType) {
2989 XComponentType[XComponentType["SURFACE"] = 0] = "SURFACE";
2990 XComponentType[XComponentType["COMPONENT"] = 1] = "COMPONENT";
2991 XComponentType[XComponentType["TEXTURE"] = 2] = "TEXTURE";
2992 XComponentType[XComponentType["NOD
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dconstants.h750 enum class XComponentType { class
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_declarative_engine.cpp2206 if (type == XComponentType::SURFACE || type == XComponentType::TEXTURE) { in FireExternalEvent()

Completed in 25 milliseconds