Home
last modified time | relevance | path

Searched refs:XComponentType (Results 1 – 25 of 49) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/
H A Dxcomponent_model_ng.cpp69 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in InitXComponent()
95 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetSoPath()
121 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetOnLoad()
134 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetOnLoad()
155 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetOnDestroy()
168 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetOnDestroy()
214 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetDetachCallback()
227 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetControllerOnCreated()
240 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetControllerOnChanged()
253 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in SetControllerOnDestroyed()
[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_ELE… in IsBackGroundColorAvailable()
43 …static bool IsCommonEventAvailable(const XComponentType& type, std::optional<std::string>& library… 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() argument
69 virtual XComponentType GetType() in GetType()
71 return XComponentType::UNKNOWN; in GetType()
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>& libr…
69 static void SetXComponentType(FrameNode* frameNode, XComponentType type);
72 static XComponentType GetXComponentType(FrameNode* frameNode);
88 static XComponentType GetTypeImpl(const RefPtr<FrameNode>& frameNode);
H A Dxcomponent_layout_algorithm.cpp26 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in MeasureContent()
27 if (xcomponentType == XComponentType::COMPONENT) { in MeasureContent()
39 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in Measure()
40 if (xcomponentType == XComponentType::COMPONENT) { in Measure()
50 auto xcomponentType = layoutProperty->GetXComponentType().value_or(XComponentType::SURFACE); in Layout()
51 if (xcomponentType == XComponentType::COMPONENT) { in Layout()
H A Dxcomponent_controller_ng.cpp30 if (pattern->GetType() != XComponentType::SURFACE) { in GetGlobalPosition()
45 if (pattern->GetType() != XComponentType::SURFACE) { in GetSize()
61 if (pattern->GetType() != XComponentType::SURFACE) { in SetExtController()
72 if (extPattern->GetType() != XComponentType::SURFACE) { in SetExtController()
85 if (pattern->GetType() != XComponentType::SURFACE) { in ResetExtController()
93 if (extPattern->GetType() != XComponentType::SURFACE) { in ResetExtController()
H A Dxcomponent_pattern.h58 XComponentPattern(const std::optional<std::string>& id, XComponentType type,
69 …return type_ == XComponentType::SURFACE || type_ == XComponentType::TEXTURE || type_ == XComponent… in IsAtomicNode()
89 if (type_ == XComponentType::TEXTURE) { in CreateNodePaintMethod()
98 if (type_ == XComponentType::NODE) { in GetFocusPattern()
172 XComponentType GetType() in GetType()
177 void SetType(XComponentType type) in SetType()
397 RenderSurface::RenderSurfaceType CovertToRenderSurfaceType(const XComponentType& hostType);
404 XComponentType type_;
H A Dxcomponent_pattern.cpp64 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()
265 if (type_ == XComponentType::SURFACE || type_ == XComponentType::TEXTURE) { in Initialize()
320 case XComponentType::SURFACE: in CovertToRenderSurfaceType()
473 if (type_ == XComponentType::SURFACE || type_ == XComponentType::TEXTURE) { in OnDetachFromFrameNode()
579 if (type_ == XComponentType::COMPONENT || type_ == XComponentType::NODE || config.skipMeasure) { in BeforeSyncGeometryProperties()
1801 (type_ != XComponentType::SURFACE && type_ != XComponentType::TEXTURE)) { in OnWindowHide()
[all …]
H A Dxcomponent_layout_property.h46 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(XComponentType, XComponentType, PROPERTY_UPDATE_MEASURE);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_xcomponent.cpp39 return XComponentType::SURFACE; in ConvertToXComponentType()
42 return XComponentType::COMPONENT; in ConvertToXComponentType()
45 return XComponentType::NODE; in ConvertToXComponentType()
47 return XComponentType::SURFACE; in ConvertToXComponentType()
235 XComponentType xcomponentType = XComponentType::SURFACE; in Create()
534 if (type != XComponentType::NODE) { in JsBackgroundImage()
543 if (type != XComponentType::NODE) { in JsBackgroundImageSize()
552 if (type != XComponentType::NODE) { in JsBackgroundImagePosition()
562 if (type == XComponentType::SURFACE || type == XComponentType::COMPONENT) { in JsOpacity()
697 if (type == XComponentType::COMPONENT || type == XComponentType::NODE) { in JsEnableAnalyzer()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_xcomponent_modifier.cpp63 …ViewAbstract::SetBackgroundColor(frameNode, (type == XComponentType::SURFACE) ? Color::BLACK : Col… in ResetXComponentBackgroundColor()
100 XComponentModelNG::SetXComponentType(frameNode, static_cast<XComponentType>(type)); in SetXComponentType()
194 if (type == XComponentType::TEXTURE) { in SetXComponentRenderFit()
206 if (type == XComponentType::TEXTURE) { in ResetXComponentRenderFit()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-xcomponentNode.md21 constructor(uiContext: UIContext, options: RenderOptions, id: string, type: XComponentType, library…
34 | type | [XComponentType](arkui-ts/ts-appendix-enums.md#xcomponenttype10) | 是 | 用于指定XCompo…
99 }, "xComponentId", XComponentType.SURFACE, this.soName);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/
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;
1059 …xComponentLayoutProperty->GetXComponentType().value_or(XComponentType::SURFACE), XCOMPONENT_SURFAC…
1079 EXPECT_EQ(xComponentLayoutProperty2->GetXComponentType().value_or(XComponentType::SURFACE),
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;
178 …xComponentLayoutProperty->GetXComponentType().value_or(XComponentType::SURFACE), XCOMPONENT_SURFAC…
198 EXPECT_EQ(xComponentLayoutProperty2->GetXComponentType().value_or(XComponentType::SURFACE),
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-xcomponentNode.md23 constructor(uiContext: UIContext, options: RenderOptions, id: string, type: XComponentType, library…
36 | type | [XComponentType](arkui-ts/ts-appendix-enums.md#xcomponenttype10) | Yes | Type of t…
101 }, "xComponentId", XComponentType.SURFACE, this.soName);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-xcomponent.md31 XComponent(value: {id: string, type: XComponentType, libraryname?: string, controller?: XComponentC…
44 | type | [XComponentType](ts-appendix-enums.md#xcomponenttype10) | 是 | 用于指定XComponent组件类…
77 | type | [XComponentType](ts-appendix-enums.md#xcomponenttype10) | 是 | 用于指定XComponent组件类型…
583 type: XComponentType.SURFACE,
618 type: XComponentType.SURFACE,
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_xcomponent_bridge.cpp91 XComponentType XComponentBridge::ConvertToXComponentType(const std::string& type) in ConvertToXComponentType()
94 return XComponentType::SURFACE; in ConvertToXComponentType()
97 return XComponentType::COMPONENT; in ConvertToXComponentType()
100 return XComponentType::NODE; in ConvertToXComponentType()
102 return XComponentType::SURFACE; in ConvertToXComponentType()
132 xcParams->type = static_cast<XComponentType>(typeArg->Int32Value(vm)); in ParseParams()
295 XComponentType xcomponentType = XComponentType::SURFACE; in SetXComponentInitialize()
299 xcomponentType = static_cast<XComponentType>(typeArg->Int32Value(vm)); in SetXComponentInitialize()
H A Darkts_native_xcomponent_bridge.h83 static XComponentType ConvertToXComponentType(const std::string& type);
/ohos5.0/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.cpp25 void XComponentModelImpl::Create(const std::optional<std::string>& id, XComponentType /* type */, in Create() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_node/src/
H A Dxcomponent_node.ts21 id: string, type: XComponentType, libraryname?: string, controller?: XComponentController) {
H A Dindex.d.ts63 declare enum XComponentType {
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js2982 var XComponentType; variable
2983 (function (XComponentType) {
2984 XComponentType[XComponentType["SURFACE"] = 0] = "SURFACE";
2985 XComponentType[XComponentType["COMPONENT"] = 1] = "COMPONENT";
2986 XComponentType[XComponentType["TEXTURE"] = 2] = "TEXTURE";
2987 XComponentType[XComponentType["NODE"] = 3] = "NODE";
2988 })(XComponentType || (XComponentType = {}));
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-components-xcomponent.md31 XComponent(value: {id: string, type: XComponentType, libraryname?: string, controller?: XComponentC…
44 | type | [XComponentType](ts-appendix-enums.md#xcomponenttype10) | Yes | Type of the comp…
77 | type | [XComponentType](ts-appendix-enums.md#xcomponenttype10) | Yes | Type of the compo…
579 type: XComponentType.SURFACE,
614 type: XComponentType.SURFACE,
/ohos5.0/docs/zh-cn/application-dev/displaymanager/
H A DvirtualScreen-guideline.md62 type: XComponentType.SURFACE,
/ohos5.0/docs/zh-cn/application-dev/media/camera/
H A Dcamera-foldable-display.md20 type: XComponentType.SURFACE,
112 type: XComponentType.SURFACE,

12