Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/
H A Daccessibility_property_test_ng.cpp66 AccessibilityProperty props; variable
154 AccessibilityProperty props; variable
172 props.SetActionCopy([]() {}); in __anon005966390302()
174 props.SetActionCut([]() {}); in __anon005966390402()
178 props.SetActionPaste([]() {}); in __anon005966390602()
184 props.SetActionSelect([]() {}); in __anon005966390902()
203 AccessibilityProperty props; variable
204 props.SetText("test");
217 EXPECT_FALSE(props.IsHint());
242 props.ResetSupportAction();
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/option/
H A Doption_pattern.cpp286 CHECK_NULL_VOID(props); in OnPress()
298 props->UpdatePress(true); in OnPress()
326 CHECK_NULL_VOID(props); in OnHover()
334 props->UpdateHover(true); in OnHover()
361 CHECK_NULL_VOID(props); in UpdateNextNodeDivider()
379 CHECK_NULL_VOID(props); in SetFontSize()
389 CHECK_NULL_VOID(props); in SetItalicFontStyle()
398 CHECK_NULL_VOID(props); in SetFontWeight()
407 CHECK_NULL_VOID(props); in SetFontFamily()
416 CHECK_NULL_VOID(props); in SetFontColor()
[all …]
H A Doption_paint_method.cpp45 CHECK_NULL_VOID(props); in PaintCustomDivider()
48 auto endMargin = static_cast<float>(props->GetDividerValue().endMargin.ConvertToPx()); in PaintCustomDivider()
66 auto dividerRtl = static_cast<float>(props->GetDividerValue().isRtl); in PaintCustomDivider()
79 auto props = DynamicCast<OptionPaintProperty>(paintWrapper->GetPaintProperty()); in PaintDivider() local
80 CHECK_NULL_VOID(props); in PaintDivider()
82 bool needDivider = props->GetNeedDivider().value_or(true); in PaintDivider()
83 bool press = props->GetPress().value_or(false); in PaintDivider()
84 bool hover = props->GetHover().value_or(false); in PaintDivider()
95 auto hasIcon = props->GetHasIcon().value_or(false); in PaintDivider()
111 if (props->HasDivider()) { in PaintDivider()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_item_layout_algorithm.cpp24 auto props = AceType::DynamicCast<GridItemLayoutProperty>(layoutWrapper->GetLayoutProperty()); in Measure() local
25 CHECK_NULL_VOID(props); in Measure()
36 auto props = AceType::DynamicCast<GridItemLayoutProperty>(layoutWrapper->GetLayoutProperty()); in CreateChildConstraint() local
37 auto layoutConstraint = props->CreateChildConstraint(); in CreateChildConstraint()
39 if (!props->GetNeedStretch()) { in CreateChildConstraint()
40 if (props->GetStretchChild()) { in CreateChildConstraint()
41 props->SetStretchChild(false); in CreateChildConstraint()
58 …if (props->GetStretchChild() || (!childConstraint->selfIdealSize.MainSize(props->GetAxis()).has_va… in CreateChildConstraint()
59 layoutConstraint.parentIdealSize.MainSize(props->GetAxis()).has_value())) { in CreateChildConstraint()
61 layoutConstraint.parentIdealSize.MainSize(props->GetAxis()), props->GetAxis()); in CreateChildConstraint()
[all …]
H A Dgrid_utils.cpp50 inline float GetRowGap(const RefPtr<GridLayoutProperty>& props, float frameHeight) in GetRowGap() argument
52 auto scale = props->GetLayoutConstraint()->scaleProperty; in GetRowGap()
53 return ConvertToPx(props->GetRowsGap().value_or(0.0_vp), scale, frameHeight).value_or(0); in GetRowGap()
56 inline float GetColumnGap(const RefPtr<GridLayoutProperty>& props, float frameWidth) in GetColumnGap() argument
58 auto scale = props->GetLayoutConstraint()->scaleProperty; in GetColumnGap()
59 return ConvertToPx(props->GetColumnsGap().value_or(0.0_vp), scale, frameWidth).value_or(0); in GetColumnGap()
63 float GridUtils::GetMainGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis a… in GetMainGap() argument
65 …return axis == Axis::HORIZONTAL ? GetColumnGap(props, frameSize.Width()) : GetRowGap(props, frameS… in GetMainGap()
68 float GridUtils::GetCrossGap(const RefPtr<GridLayoutProperty>& props, const SizeF& frameSize, Axis … in GetCrossGap() argument
70 …return axis == Axis::HORIZONTAL ? GetRowGap(props, frameSize.Height()) : GetColumnGap(props, frame… in GetCrossGap()
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dcollapse-and-expand.md92 Text(this.props.title)
135 RowItem({ props: item })
144 5. 根据步骤4最终的flag以及props的type值,判断折叠展开的效果实现。
152 if (!this.flag && this.props.type === 'DOWN' || this.flag && this.props.type === 'UP') {
160 this.props.onFlagChange()
211 props: {
249 private props: IRowItem;
254 Text(this.props.title)
267 … if (!this.flag && this.props.type === 'DOWN' || this.flag && this.props.type === 'UP') {
274 .onClick(() => this.props.onFlagChange())
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_paint_method.cpp35 auto props = DynamicCast<MenuItemGroupPaintProperty>(paintWrapper->GetPaintProperty()); in GetOverlayDrawFunction() local
36 CHECK_NULL_VOID(props); in GetOverlayDrawFunction()
37 bool needHeaderPadding = props->GetNeedHeaderPadding().value_or(false); in GetOverlayDrawFunction()
40 GroupDividerInfo info = group->PreparePaintData(pipeline, props, paintWrapper); in GetOverlayDrawFunction()
41 bool needHeaderDivider = props->GetNeedHeaderDivider().value_or(true); in GetOverlayDrawFunction()
42 bool needFooterDivider = props->GetNeedFooterDivider().value_or(true); in GetOverlayDrawFunction()
46 bool needFooterPadding = props->GetNeedFooterPadding().value_or(false); in GetOverlayDrawFunction()
73 if (props->GetStrokeWidth()->Unit() != DimensionUnit::INVALID) { in PreparePaintData()
78 if (props->GetStartMargin()->Unit() != DimensionUnit::INVALID) { in PreparePaintData()
83 if (props->GetEndMargin()->Unit() != DimensionUnit::INVALID) { in PreparePaintData()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/dialog/
H A Ddialog_model_test_ng.cpp203 DialogProperties props; variable
226 DialogProperties props; variable
249 DialogProperties props; variable
250 props.isModal = true;
274 DialogProperties props { variable
303 DialogProperties props { variable
335 DialogProperties props { variable
716 props.title = TITLE;
718 props.isModal = false;
727 props.shadow = shadow;
[all …]
H A Ddialog_test_ng.cpp962 props.title = TITLE;
983 props.isMenu = true;
1015 props.maskRect = Rect;
1058 props.maskRect = Rect;
1101 props.title = TITLE;
1167 props.title = TITLE;
1272 props.title = TITLE;
1689 props.isModal = true;
1894 props.title = TITLE;
1956 props.title = TITLE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/dialog/
H A Ddialog_layout_property.h37 auto props = MakeRefPtr<DialogLayoutProperty>(); in Clone() local
39 props->propDialogAlignment_ = CloneDialogAlignment(); in Clone()
40 props->propDialogOffset_ = CloneDialogOffset(); in Clone()
41 props->propGridCount_ = CloneGridCount(); in Clone()
42 props->propUseCustomStyle_ = CloneUseCustomStyle(); in Clone()
43 props->propAutoCancel_ = CloneAutoCancel(); in Clone()
45 props->propIsModal_ = CloneIsModal(); in Clone()
47 props->propWidth_ = CloneWidth(); in Clone()
48 props->propHeight_ = CloneHeight(); in Clone()
50 props->propHoverModeArea_ = CloneHoverModeArea(); in Clone()
[all …]
H A Ddialog_pattern.cpp216 CHECK_NULL_VOID(props); in HandleClick()
400 if (!props.title.empty() || !props.subtitle.empty()) { in BuildChild()
418 if (!props.customStyle) { in BuildChild()
435 if (props.type == DialogType::ACTION_SHEET && !props.sheetsInfo.empty()) { in BuildChild()
445 if (props.isMenu) { in BuildChild()
446 bool hasTitle = !props.title.empty() || !props.subtitle.empty(); in BuildChild()
453 auto buttonContainer = BuildButtons(props.buttons, props.buttonDirection); in BuildChild()
479 if (!props.customStyle) { in BuildCustomChild()
617 if (!props.title.empty() || !props.subtitle.empty()) { in BuildContent()
1168 CHECK_NULL_VOID(props); in UpdateAlignmentAndOffset()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/particle/
H A Dparticle_pattern.cpp69 auto props = GetEmitterProperty(); in ToJsonValue() local
70 if (props.size() > 0) { in ToJsonValue()
72 for (size_t i = 0; i < props.size(); i++) { in ToJsonValue()
74 object->Put("index", std::to_string(props[i].index).c_str()); in ToJsonValue()
75 if (props[i].emitRate.has_value()) { in ToJsonValue()
78 if (props[i].position.has_value()) { in ToJsonValue()
84 if (props[i].size.has_value()) { in ToJsonValue()
86 sizeObj->Put("x", std::to_string(props[i].size->x).c_str()); in ToJsonValue()
150 for (EmitterProperty& prop : props) { in updateEmitterPosition()
153 SetEmitterProperty(props); in updateEmitterPosition()
[all …]
/ohos5.0/drivers/hdf_core/framework/model/display/driver/backlight/
H A Dhdf_bl.c33 struct BacklightProperties props; member
70 props, sizeof(struct BacklightProperties)); in BlDevInstance()
105 blDev = BlDevInstance(name, props, ops); in RegisterBlDev()
156 blDev->props.fbStatus = status; in UpdateBacklightState()
169 if (brightness > blDev->props.maxBrightness) { in UpdateBrightness()
170 brightness = blDev->props.maxBrightness; in UpdateBrightness()
172 if (brightness < blDev->props.minBrightness) { in UpdateBrightness()
173 brightness = blDev->props.minBrightness; in UpdateBrightness()
176 if (brightness == blDev->props.brightness) { in UpdateBrightness()
189 blDev->props.brightness = brightness; in UpdateBrightness()
[all …]
/ohos5.0/foundation/communication/netmanager_base/frameworks/cj/connection/src/
H A Dnet_connection_callback.cpp121 if (props.linkAddressSize > 0) { in SetConnectionProp()
122props.linkAddresses = static_cast<CLinkAddress *>(malloc(sizeof(CLinkAddress) * props.linkAddressS… in SetConnectionProp()
124 props.linkAddressSize = 0; in SetConnectionProp()
134 if (props.dnsSize > 0) { in SetConnectionProp()
135 props.dnses = static_cast<CNetAddress *>(malloc(sizeof(CNetAddress) * props.dnsSize)); in SetConnectionProp()
136 if (props.dnses == nullptr) { in SetConnectionProp()
141 props.dnses[i] = in SetConnectionProp()
146 if (props.routeSize > 0) { in SetConnectionProp()
147 props.routes = static_cast<CRouteInfo *>(malloc(sizeof(CRouteInfo) * props.routeSize)); in SetConnectionProp()
148 if (props.routes == nullptr) { in SetConnectionProp()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item/
H A Dmenu_item_paint_method.cpp35 auto props = DynamicCast<MenuItemPaintProperty>(paintWrapper->GetPaintProperty()); in GetOverlayDrawFunction() local
36 CHECK_NULL_VOID(props); in GetOverlayDrawFunction()
37 if (!props->GetDividerColor().has_value()) { in GetOverlayDrawFunction()
40 bool needDivider = props->GetNeedDivider().value_or(true); in GetOverlayDrawFunction()
41 bool press = props->GetPress().value_or(false); in GetOverlayDrawFunction()
42 bool hover = props->GetHover().value_or(false); in GetOverlayDrawFunction()
59 …info.strokeWidth = props->GetStrokeWidth().value_or(strokeWidth).ConvertToPxWithSize(itemSize.Heig… in GetOverlayDrawFunction()
60 …info.startMargin = props->GetStartMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Widt… in GetOverlayDrawFunction()
61 …info.endMargin = props->GetEndMargin().value_or(horInterval).ConvertToPxWithSize(itemSize.Width()); in GetOverlayDrawFunction()
62 info.color = props->GetDividerColor().value_or(dividerColor); in GetOverlayDrawFunction()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-custom-props.md6props声明属性,父组件通过设置属性向子组件传递参数,props支持类型包括:String,Number,Boolean,Array,Object,Function。camelCase (驼峰命…
18 props: ['compProp'],
36 子组件可以通过固定值default设置默认值,当父组件没有设置该属性时,将使用其默认值。此情况下props属性必须为对象形式,不能用数组形式,示例如下:
48 props: {
68 父子组件之间数据的传递是单向的,只能从父组件传递给子组件,子组件不能直接修改父组件传递下来的值,可以将props传入的值用data接收后作为默认值,再对data的值进行修改。
73 props: ['defaultCount'],
92 props: ['title'],
110 props: ['title'],
/ohos5.0/foundation/multimedia/ringtone_library/test/unittest/ringtone_utils_test/src/
H A Dringtone_props_test.cpp45 RingtoneProps props(rdb);
46 auto ret = props.Init();
50 auto retStr = props.GetProp(name, defaultVal);
92 RingtoneProps props(rawRdb);
93 ret = props.Init();
111 RingtoneProps props(rawRdb);
112 ret = props.Init();
166 RingtoneProps props(rawRdb);
167 ret = props.Init();
177 RingtoneProps props(rdb);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_segmented_layout.cpp56 info_->axis_ = axis_ = props->GetAxis(); in Measure()
80 if (props->GetShowCachedItemsValue(false)) { in Measure()
113 const bool isReverse = props->IsReverse(); in Layout()
115 if (!props->HasCachedCount()) { in Layout()
123 cacheCount, props->GetShowCachedItemsValue(false)); in Layout()
222 auto scale = props->GetLayoutConstraint()->scaleProperty; in SegmentedInit()
253 auto rowsTemplate = props->GetRowsTemplate().value_or("1fr"); in RegularInit()
254 auto columnsTemplate = props->GetColumnsTemplate().value_or("1fr"); in RegularInit()
255 auto scale = props->GetLayoutConstraint()->scaleProperty; in RegularInit()
498 auto props = wrapper_->GetLayoutProperty(); in PostMeasureSelf() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/
H A Dwater_flow_layout_utils.cpp70 auto itemConstraint = props->CreateChildConstraint(); in CreateChildConstraint()
79 CHECK_NULL_RETURN(props->HasItemLayoutConstraint() && !params.haveUserDefSize, itemConstraint); in CreateChildConstraint()
84 auto itemMinSize = props->GetItemMinSize(); in CreateChildConstraint()
87 …ConvertToOptionalSize(itemMinSize.value(), props->GetLayoutConstraint()->scaleProperty, itemIdealS… in CreateChildConstraint()
89 auto itemMaxSize = props->GetItemMaxSize(); in CreateChildConstraint()
130 const auto& props = wrapper->GetLayoutProperty(); in PreMeasureSelf() local
131 …auto size = CreateIdealSize(props->GetLayoutConstraint().value(), axis, props->GetMeasureType(), t… in PreMeasureSelf()
136 MinusPaddingToSize(props->CreatePaddingAndBorder(), size); in PreMeasureSelf()
169 auto props = item->GetLayoutProperty(); in UpdateItemIdealSize() local
172 const auto& layoutConstraint = props->GetCalcLayoutConstraint(); in UpdateItemIdealSize()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-custom-basic-usage.md27 | props | Array/Object | props用于组件之间的通信,可以通过&lt;tag&nbsp;xxxx='value'&gt;方式传递给组件;props名称必须用小写,不能以$或…
121 ## props section
123 自定义组件可以通过props声明自定义属性,父组件通过设置属性向子组件传递参数。
127 子组件可以通过固定值default设置默认值,当父组件没有设置该属性时,将使用其默认值。此情况下props属性必须为对象形式,不能用数组形式,示例如下:
159 "props": {
192 父子组件之间数据的传递是单向的,只能从父组件传递给子组件,子组件不能直接修改父组件传递下来的值,可以将props传入的值用data接收后作为默认值,再对data的值进行修改。
194 更多说明请参考[props](../arkui-js/js-components-custom-props.md)文档。
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsbasescreenmanager_fuzzer/
H A Drsbasescreenmanager_fuzzer.cpp67 std::vector<RSScreenProps> props = {prop}; in RSScreenCapabilityFuzzTest() local
75 screenCapability.SetProps(props); in RSScreenCapabilityFuzzTest()
124 RSScreenProps props; in RSScreenPropsFuzzTest() local
126 props.SetPropertyName(propName); in RSScreenPropsFuzzTest()
127 props.SetPropId(GetData<uint32_t>()); in RSScreenPropsFuzzTest()
128 props.SetValue(GetData<uint64_t>()); in RSScreenPropsFuzzTest()
129 (void)props.GetPropertyName(); in RSScreenPropsFuzzTest()
130 (void)props.GetPropId(); in RSScreenPropsFuzzTest()
131 (void)props.GetValue(); in RSScreenPropsFuzzTest()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/
H A Dwater_flow_layout_sw.cpp35 info_->axis_ = axis_ = props->GetAxis(); in Measure()
57 if (props->GetShowCachedItemsValue(false)) { in Measure()
79 CHECK_NULL_VOID(props); in Layout()
81 if (!props->HasCachedCount()) { in Layout()
87 auto padding = props->CreatePaddingAndBorder(); in Layout()
90 const bool reverse = props->IsReverse(); in Layout()
99 props->GetShowCachedItemsValue(false)); in Layout()
272 CHECK_NULL_VOID(props); in MeasureBeforeAnimation()
276 props->GetShowCachedItemsValue(false)); in MeasureBeforeAnimation()
705 CHECK_NULL_VOID(props); in LayoutSection()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/
H A Drs_render_property_test.cpp169 std::vector<std::shared_ptr<RSRenderPropertyBase>> props; variable
187 for (auto& prop : props) {
212 std::vector<std::shared_ptr<RSRenderPropertyBase>> props; variable
213 props.push_back(std::make_shared<MockRSRenderProperty<float>>(
215 props.push_back(std::make_shared<MockRSRenderProperty<Color>>(
230 for (auto& prop : props) {
330 std::vector<std::shared_ptr<RSRenderPropertyBase>> props; variable
331 props.push_back(std::make_shared<MockRSRenderProperty<Color>>(
349 std::vector<std::shared_ptr<RSRenderPropertyBase>> props; variable
350 props.push_back(std::make_shared<MockRSRenderProperty<Color>>(
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/screen_manager/
H A Drs_screen_capability.cpp22 bool supportWriteBack, const std::vector<RSScreenProps>& props) in RSScreenCapability() argument
25 virtualDispCount_(virtualDispCount), supportWriteBack_(supportWriteBack), props_(props) in RSScreenCapability()
64 void RSScreenCapability::SetProps(const std::vector<RSScreenProps>& props) in SetProps() argument
66 props_ = props; in SetProps()
109 bool RSScreenCapability::WriteVector(const std::vector<RSScreenProps> &props, Parcel &parcel) const in WriteVector() argument
111 for (uint32_t propIndex = 0; propIndex < props.size(); propIndex++) { in WriteVector()
112 if (!parcel.WriteParcelable(&props[propIndex])) { in WriteVector()
174 std::vector<RSScreenProps> props; in Unmarshalling() local
199 if (!ReadVector(props, propCount, parcel)) { in Unmarshalling()
203 phyWidth, phyHeight, supportLayers, virtualDispCount, supportWriteBack, props); in Unmarshalling()
/ohos5.0/base/global/resource_management/interfaces/js/kits/src/
H A Dsendable_resource_manager_napi.cpp100 props.emplace_back(bundleName); in GetResourceProp()
101 props.emplace_back(moduleName); in GetResourceProp()
102 props.emplace_back(id); in GetResourceProp()
103 props.emplace_back(params); in GetResourceProp()
104 props.emplace_back(type); in GetResourceProp()
153 std::vector<napi_value> props; in InstanceResource() local
154 if (!GetResourceProp(env, info, props)) { in InstanceResource()
158 DECLARE_NAPI_DEFAULT_PROPERTY("bundleName", props[0]), in InstanceResource()
160 DECLARE_NAPI_DEFAULT_PROPERTY("id", props[2]), in InstanceResource()
165 napi_value params = props[3]; // index 3 in InstanceResource()
[all …]

12345678910>>...12