Home
last modified time | relevance | path

Searched refs:buttonLayoutProperty (Results 1 – 25 of 37) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dbutton_layout_algorithm.cpp56 CHECK_NULL_VOID(buttonLayoutProperty); in Measure()
57 if (buttonLayoutProperty->HasLabel()) { in Measure()
75 CHECK_NULL_VOID(buttonLayoutProperty); in HandleChildLayoutConstraint()
76 if (!buttonLayoutProperty->HasLabel()) { in HandleChildLayoutConstraint()
143 CHECK_NULL_VOID(buttonLayoutProperty); in HandleAdaptiveText()
155 if (buttonLayoutProperty->HasFontSize() || buttonLayoutProperty->HasControlSize()) { in HandleAdaptiveText()
179 CHECK_NULL_VOID(buttonLayoutProperty); in HandleBorderRadius()
204 CHECK_NULL_VOID(buttonLayoutProperty); in PerformMeasureSelf()
346 …if (buttonLayoutProperty->HasControlSize() && buttonLayoutProperty->GetControlSize() == ControlSiz… in NeedAgingMeasure()
378 if (buttonLayoutProperty->HasType() && buttonLayoutProperty->GetType() == ButtonType::CIRCLE) { in IsAging()
[all …]
H A Dbutton_pattern.cpp522 auto buttonLayoutProperty = node->GetLayoutProperty<ButtonLayoutProperty>(); in OnColorConfigurationUpdate() local
523 CHECK_NULL_VOID(buttonLayoutProperty); in OnColorConfigurationUpdate()
524 if (buttonLayoutProperty->GetCreateWithLabelValue(true)) { in OnColorConfigurationUpdate()
530 …ButtonStyleMode buttonStyle = buttonLayoutProperty->GetButtonStyle().value_or(ButtonStyleMode::EMP… in OnColorConfigurationUpdate()
531 ButtonRole buttonRole = buttonLayoutProperty->GetButtonRole().value_or(ButtonRole::NORMAL); in OnColorConfigurationUpdate()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar_picker/
H A Dcalendar_picker_test_update.cpp178 ASSERT_NE(buttonLayoutProperty, nullptr);
190 ASSERT_NE(buttonLayoutProperty, nullptr);
196 ASSERT_NE(buttonLayoutProperty, nullptr);
230 ASSERT_NE(buttonLayoutProperty, nullptr);
240 ASSERT_NE(buttonLayoutProperty, nullptr);
274 ASSERT_NE(buttonLayoutProperty, nullptr);
284 ASSERT_NE(buttonLayoutProperty, nullptr);
319 ASSERT_NE(buttonLayoutProperty, nullptr);
329 ASSERT_NE(buttonLayoutProperty, nullptr);
365 ASSERT_NE(buttonLayoutProperty, nullptr);
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/button/
H A Dbutton_test_ng.cpp408 ASSERT_NE(buttonLayoutProperty, nullptr);
428 ASSERT_NE(buttonLayoutProperty, nullptr);
453 ASSERT_NE(buttonLayoutProperty, nullptr);
515 ASSERT_NE(buttonLayoutProperty, nullptr);
605 ASSERT_NE(buttonLayoutProperty, nullptr);
671 ASSERT_NE(buttonLayoutProperty, nullptr);
773 auto buttonLayoutProperty = variable
775 ASSERT_NE(buttonLayoutProperty, nullptr);
805 ASSERT_NE(buttonLayoutProperty, nullptr);
809 buttonLayoutProperty->UpdateMaxLines(10);
[all …]
H A Dbutton_content_modifier_test_ng.cpp148 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::BOLD); in FontWeightTest()
152 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::BOLDER); in FontWeightTest()
172 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W100); in FontWeightTest()
176 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W200); in FontWeightTest()
180 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W300); in FontWeightTest()
184 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W400); in FontWeightTest()
188 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W500); in FontWeightTest()
192 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W600); in FontWeightTest()
196 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W700); in FontWeightTest()
200 buttonLayoutProperty->UpdateFontWeight(Ace::FontWeight::W800); in FontWeightTest()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_view.cpp300 CHECK_NULL_RETURN(buttonLayoutProperty, nullptr); in CreateTitleImageNode()
301 buttonLayoutProperty->UpdateType(ButtonType::CIRCLE); in CreateTitleImageNode()
302 buttonLayoutProperty->UpdateUserDefinedIdealSize( in CreateTitleImageNode()
313 buttonLayoutProperty->UpdateMargin(margin); in CreateTitleImageNode()
555 CHECK_NULL_RETURN(buttonLayoutProperty, nullptr); in CreateButtonNode()
570 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonLayoutProperty()
577 buttonLayoutProperty->UpdateLabel( in UpdateButtonLayoutProperty()
582 buttonLayoutProperty->UpdateFlexShrink(1.0); in UpdateButtonLayoutProperty()
609 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyles()
647 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyleAndRole()
[all …]
H A Dcalendar_dialog_view.h78 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
92 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_model_ng.cpp193 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetDefaultBackgroundButton() local
194 CHECK_NULL_VOID(buttonLayoutProperty); in SetDefaultBackgroundButton()
205 buttonLayoutProperty->UpdateBorderWidth(widthProp); in SetDefaultBackgroundButton()
210 buttonLayoutProperty->UpdateBorderRadius(BorderRadiusProperty(buttonRadius)); in SetDefaultBackgroundButton()
212 buttonLayoutProperty->UpdateType(static_cast<ButtonType>(type)); in SetDefaultBackgroundButton()
217 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetInvisibleBackgroundButton() local
218 CHECK_NULL_VOID(buttonLayoutProperty); in SetInvisibleBackgroundButton()
222 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in SetInvisibleBackgroundButton()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_pattern.cpp138 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateLeftButtonNode() local
139 CHECK_NULL_VOID(buttonLayoutProperty); in CreateLeftButtonNode()
140 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in CreateLeftButtonNode()
141 buttonLayoutProperty->UpdateMeasureType(MeasureType::MATCH_CONTENT); in CreateLeftButtonNode()
291 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateArrowRightButtonNode() local
292 CHECK_NULL_VOID(buttonLayoutProperty); in CreateArrowRightButtonNode()
293 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in CreateArrowRightButtonNode()
294 buttonLayoutProperty->UpdateMeasureType(MeasureType::MATCH_CONTENT); in CreateArrowRightButtonNode()
401 CHECK_NULL_VOID(buttonLayoutProperty); in CreateArrowlessRightButtonNode()
402 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in CreateArrowlessRightButtonNode()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/
H A Dclose_icon_pattern.cpp42 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in InitCloseIcon() local
44 CHECK_NULL_VOID(buttonLayoutProperty); in InitCloseIcon()
45 buttonLayoutProperty->UpdateUserDefinedIdealSize( in InitCloseIcon()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_node.cpp181 buttonLayoutProperty->UpdateUserDefinedIdealSize( in BuildPasteButton()
259 CHECK_NULL_RETURN(buttonLayoutProperty, button); in BuildButton()
272 buttonLayoutProperty->UpdateUserDefinedIdealSize( in BuildButton()
275 buttonLayoutProperty->UpdateFlexShrink(0); in BuildButton()
361 CHECK_NULL_RETURN(buttonLayoutProperty, button); in BuildButton()
366 buttonLayoutProperty->UpdateUserDefinedIdealSize( in BuildButton()
369 buttonLayoutProperty->UpdateFlexShrink(0); in BuildButton()
459 CHECK_NULL_RETURN(buttonLayoutProperty, button); in BuildCreateMenuItemButton()
464 buttonLayoutProperty->UpdateUserDefinedIdealSize( in BuildCreateMenuItemButton()
467 buttonLayoutProperty->UpdateFlexShrink(0); in BuildCreateMenuItemButton()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtimepicker_dialog_view.cpp801 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyles()
808 buttonLayoutProperty->UpdateType(buttonInfos[index].type.value()); in UpdateButtonStyles()
815 buttonLayoutProperty->UpdateFontColor(buttonInfos[index].fontColor.value()); in UpdateButtonStyles()
818 buttonLayoutProperty->UpdateFontWeight(buttonInfos[index].fontWeight.value()); in UpdateButtonStyles()
821 buttonLayoutProperty->UpdateFontStyle(buttonInfos[index].fontStyle.value()); in UpdateButtonStyles()
824 buttonLayoutProperty->UpdateFontFamily(buttonInfos[index].fontFamily.value()); in UpdateButtonStyles()
841 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyleAndRole()
845 buttonLayoutProperty->UpdateButtonRole(buttonInfos[index].role.value()); in UpdateButtonStyleAndRole()
855 buttonLayoutProperty->UpdateFontColor(textColor); in UpdateButtonStyleAndRole()
858 buttonLayoutProperty->UpdateButtonStyle(buttonInfos[index].buttonStyle.value()); in UpdateButtonStyleAndRole()
[all …]
H A Dtimepicker_row_pattern.cpp87 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetButtonIdeaSize() local
88 buttonLayoutProperty->UpdateMeasureType(MeasureType::MATCH_PARENT_MAIN_AXIS); in SetButtonIdeaSize()
89 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in SetButtonIdeaSize()
90 buttonLayoutProperty->UpdateBorderRadius(BorderRadiusProperty(PRESS_RADIUS)); in SetButtonIdeaSize()
91 buttonLayoutProperty->UpdateUserDefinedIdealSize( in SetButtonIdeaSize()
211 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateAmPmNode() local
219 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateAmPmNode() local
220 buttonLayoutProperty->UpdateMeasureType(MeasureType::MATCH_PARENT_MAIN_AXIS); in CreateAmPmNode()
221 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in CreateAmPmNode()
222 buttonLayoutProperty->UpdateBorderRadius(BorderRadiusProperty(PRESS_RADIUS)); in CreateAmPmNode()
[all …]
H A Dtimepicker_dialog_view.h61 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
63 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_dialog_view.cpp731 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyles()
738 buttonLayoutProperty->UpdateType(buttonInfos[index].type.value()); in UpdateButtonStyles()
745 buttonLayoutProperty->UpdateFontColor(buttonInfos[index].fontColor.value()); in UpdateButtonStyles()
748 buttonLayoutProperty->UpdateFontWeight(buttonInfos[index].fontWeight.value()); in UpdateButtonStyles()
751 buttonLayoutProperty->UpdateFontStyle(buttonInfos[index].fontStyle.value()); in UpdateButtonStyles()
754 buttonLayoutProperty->UpdateFontFamily(buttonInfos[index].fontFamily.value()); in UpdateButtonStyles()
771 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyleAndRole()
775 buttonLayoutProperty->UpdateButtonRole(buttonInfos[index].role.value()); in UpdateButtonStyleAndRole()
785 buttonLayoutProperty->UpdateFontColor(textColor); in UpdateButtonStyleAndRole()
788 buttonLayoutProperty->UpdateButtonStyle(buttonInfos[index].buttonStyle.value()); in UpdateButtonStyleAndRole()
[all …]
H A Dtextpicker_dialog_view.h116 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
118 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/
H A Dcontainer_modal_view.cpp258 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in BuildControlButton() local
259 CHECK_NULL_RETURN(buttonLayoutProperty, nullptr); in BuildControlButton()
260 buttonLayoutProperty->UpdateType(ButtonType::CIRCLE); in BuildControlButton()
261 buttonLayoutProperty->UpdateUserDefinedIdealSize( in BuildControlButton()
266 buttonLayoutProperty->UpdateMargin(margin); in BuildControlButton()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Dsheet_view.cpp163 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateCloseIconButtonNode() local
164 CHECK_NULL_VOID(buttonLayoutProperty); in CreateCloseIconButtonNode()
170 buttonLayoutProperty->UpdateBorderRadius( in CreateCloseIconButtonNode()
172 buttonLayoutProperty->UpdateUserDefinedIdealSize( in CreateCloseIconButtonNode()
174 buttonLayoutProperty->UpdateVisibility(VisibleType::GONE); in CreateCloseIconButtonNode()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_dialog_view.cpp866 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyles()
873 buttonLayoutProperty->UpdateType(buttonInfos[index].type.value()); in UpdateButtonStyles()
880 buttonLayoutProperty->UpdateFontColor(buttonInfos[index].fontColor.value()); in UpdateButtonStyles()
883 buttonLayoutProperty->UpdateFontWeight(buttonInfos[index].fontWeight.value()); in UpdateButtonStyles()
886 buttonLayoutProperty->UpdateFontStyle(buttonInfos[index].fontStyle.value()); in UpdateButtonStyles()
889 buttonLayoutProperty->UpdateFontFamily(buttonInfos[index].fontFamily.value()); in UpdateButtonStyles()
906 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonStyleAndRole()
910 buttonLayoutProperty->UpdateButtonRole(buttonInfos[index].role.value()); in UpdateButtonStyleAndRole()
920 buttonLayoutProperty->UpdateFontColor(textColor); in UpdateButtonStyleAndRole()
923 buttonLayoutProperty->UpdateButtonStyle(buttonInfos[index].buttonStyle.value()); in UpdateButtonStyleAndRole()
[all …]
H A Ddatepicker_dialog_view.h122 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
124 …const RefPtr<ButtonLayoutProperty>& buttonLayoutProperty, const RefPtr<RenderContext>& buttonRende…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_arrow_pattern.cpp366 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in UpdateArrowContent() local
367 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateArrowContent()
368 buttonLayoutProperty->UpdateUserDefinedIdealSize( in UpdateArrowContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_month_pattern.cpp736 auto buttonLayoutProperty = frameNode->GetLayoutProperty<ButtonLayoutProperty>(); in UpdateButtonNodeWithoutTheme() local
737 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateButtonNodeWithoutTheme()
738buttonLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(CalcLength(dayWidth), CalcLength(dayHeig… in UpdateButtonNodeWithoutTheme()
769 auto buttonLayoutProperty = frameNode->GetLayoutProperty<ButtonLayoutProperty>(); in UpdateAccessibilityButtonNode() local
770 CHECK_NULL_VOID(buttonLayoutProperty); in UpdateAccessibilityButtonNode()
771buttonLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(CalcLength(dayWidth), CalcLength(dayHeig… in UpdateAccessibilityButtonNode()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/side_bar/
H A Dside_bar_container_pattern.cpp177 auto buttonLayoutProperty = buttonFrameNode->GetLayoutProperty<ButtonLayoutProperty>(); in OnUpdateShowControlButton() local
178 CHECK_NULL_VOID(buttonLayoutProperty); in OnUpdateShowControlButton()
180buttonLayoutProperty->UpdateVisibility(showControlButton ? VisibleType::VISIBLE : VisibleType::GON… in OnUpdateShowControlButton()
607 auto buttonLayoutProperty = buttonNode->GetLayoutProperty<ButtonLayoutProperty>(); in CreateControlButton() local
608 CHECK_NULL_RETURN(buttonLayoutProperty, nullptr); in CreateControlButton()
609 buttonLayoutProperty->UpdateType(ButtonType::NORMAL); in CreateControlButton()
611 buttonLayoutProperty->UpdateBorderRadius(BorderRadiusProperty(butttonRadius)); in CreateControlButton()
612 buttonLayoutProperty->UpdateCreateWithLabel(false); in CreateControlButton()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_model_ng.cpp305 auto buttonLayoutProperty = buttonFrameNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetSearchButtonFontSize() local
306 CHECK_NULL_VOID(buttonLayoutProperty); in SetSearchButtonFontSize()
308 buttonLayoutProperty->UpdateFontSize(value); in SetSearchButtonFontSize()
321 auto buttonLayoutProperty = buttonFrameNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetSearchButtonFontColor() local
322 CHECK_NULL_VOID(buttonLayoutProperty); in SetSearchButtonFontColor()
324 buttonLayoutProperty->UpdateFontColor(color); in SetSearchButtonFontColor()
1204 auto buttonLayoutProperty = buttonFrameNode->GetLayoutProperty<ButtonLayoutProperty>(); in SetSearchButtonFontSize() local
1205 CHECK_NULL_VOID(buttonLayoutProperty); in SetSearchButtonFontSize()
1207 buttonLayoutProperty->UpdateFontSize(value); in SetSearchButtonFontSize()
1220 CHECK_NULL_VOID(buttonLayoutProperty); in SetSearchButtonFontColor()
[all …]
H A Dsearch_layout_algorithm.cpp256 …auto buttonLayoutProperty = AceType::DynamicCast<ButtonLayoutProperty>(buttonWrapper->GetLayoutPro… in SearchButtonMeasure() local
257 CHECK_NULL_VOID(buttonLayoutProperty); in SearchButtonMeasure()
283 buttonLayoutProperty->UpdateUserDefinedIdealSize(searchButtonCalcSize); in SearchButtonMeasure()
292 buttonLayoutProperty->ClearUserDefinedIdealSize(false, true); in SearchButtonMeasure()
302 buttonLayoutProperty->UpdatePixelRound(pixelRound); in SearchButtonMeasure()

12