/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/ |
H A D | select_overlay_node.cpp | 142 const std::function<void()>& callback, int32_t overlayId, float& buttonWidth, bool isSelectAll = false) in BuildPasteButton() 171 buttonWidth = MeasureTextWidth(textStyle, buttonContent); in BuildPasteButton() 172 buttonWidth = buttonWidth + padding.Left().ConvertToPx() + padding.Right().ConvertToPx(); in BuildPasteButton() 174 buttonLayoutProperty->UpdateUserDefinedIdealSize({ CalcLength(buttonWidth), std::nullopt }); in BuildPasteButton() 177 { CalcLength(buttonWidth), CalcLength(textOverlayTheme->GetMenuButtonHeight()) }); in BuildPasteButton() 200 const std::shared_ptr<SelectOverlayInfo>& info, int32_t overlayId, const MenuOptionsParam& item, float& buttonWidth) in CreatePasteButtonForCreateMenu() 221 auto button = BuildPasteButton(onPaste, overlayId, buttonWidth); in CreatePasteButtonForCreateMenu() 227 float& buttonWidth, bool isSelectAll = false) in BuildButton() 261 buttonWidth in BuildButton() 141 BuildPasteButton( const std::function<void()>& callback, int32_t overlayId, float& buttonWidth, bool isSelectAll = false) BuildPasteButton() argument 199 CreatePasteButtonForCreateMenu( const std::shared_ptr<SelectOverlayInfo>& info, int32_t overlayId, const MenuOptionsParam& item, float& buttonWidth) CreatePasteButtonForCreateMenu() argument 226 BuildButton(const std::string& data, const std::function<void()>& callback, int32_t overlayId, float& buttonWidth, bool isSelectAll = false) BuildButton() argument 1469 float buttonWidth = 0.0f; ShowCut() local 1490 float buttonWidth = 0.0f; ShowCopy() local 1511 float buttonWidth = 0.0f; ShowPaste() local 1536 float buttonWidth = 0.0f; ShowCopyAll() local 1557 float buttonWidth = 0.0f; ShowAIWrite() local 1585 float buttonWidth = 0.0f; ShowShare() local 1632 float buttonWidth = 0.0f; ShowCamera() local 1696 float buttonWidth = 0.0f; AddCreateMenuItems() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/counter/ |
H A D | counter_layout_algorithm.cpp | 57 auto buttonWidth = counterTheme->GetControlWidth().ConvertToPx(); in Measure() local 77 subButtonSize.SetWidth(CalcLength(buttonWidth)); in Measure() 96 contentSize.SetWidth(CalcLength(selfContentSize.Width() - 2 * buttonWidth)); in Measure() 116 addButtonSize.SetWidth(CalcLength(buttonWidth)); in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/ |
H A D | stepper_layout_algorithm.cpp | 115 auto buttonWidth = (buttonLayoutConstraint.parentIdealSize.Width().value() / 2) - padding - margin; in MeasureLeftButton() local 124 buttonLayoutConstraint.maxSize = { buttonWidth, stepperHeight }; in MeasureLeftButton() 137 buttonLayoutConstraint.maxSize = { buttonWidth, buttonHeight }; in MeasureLeftButton() 156 auto buttonWidth = (buttonLayoutConstraint.parentIdealSize.Width().value() / 2) - padding - margin; in MeasureRightButton() local 165 buttonLayoutConstraint.maxSize = { buttonWidth, stepperHeight }; in MeasureRightButton() 188 buttonLayoutConstraint.maxSize = { buttonWidth, buttonHeight }; in MeasureRightButton()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_dialog.cpp | 369 uint16_t buttonWidth = (width - 2 * BUTTON_PADDING - (buttonNum_ - 1) * BUTTON_MID_PADDING) / buttonNum_; in MeasureSize() local 371 width = static_cast<uint32_t>(buttonWidth) * buttonNum_ + (buttonNum_ - 1) * BUTTON_MID_PADDING + in MeasureSize() 376 button1_->SetWidth(buttonWidth); in MeasureSize() 379 button2_->SetWidth(buttonWidth); in MeasureSize() 382 button3_->SetWidth(buttonWidth); in MeasureSize()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | side_bar_container_model_impl.cpp | 104 auto buttonWidth = width.ConvertToVp(); in SetControlButtonWidth() local 105 component->SetButtonWidth(buttonWidth); in SetControlButtonWidth()
|
/foundation/arkui/ui_lite/test/uitest/test_video/ |
H A D | ui_test_video.cpp | 100 int16_t buttonWidth = 60; // 60:button width in SetupTestButton() local 103 button->Resize(buttonWidth, buttonHeight); in SetupTestButton()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/ |
H A D | search_layout_algorithm.cpp | 128 auto buttonWidth = searchButtonSizeMeasure_.Width(); in TextFieldMeasure() local 148 textFieldWidth = textFieldWidth - buttonWidth - searchTheme->GetSearchDividerWidth().ConvertToPx() - in TextFieldMeasure() 716 auto buttonWidth = searchButtonSizeMeasure_.Width(); in LayoutDivider() local 721 leftOffset + buttonWidth + dividerSpace + searchButtonSpace + dividerFrameSize.Width() / 2.0f; in LayoutDivider() 723 dividerHorizontalOffset = params.searchFrameWidth - buttonWidth - dividerSpace - searchButtonSpace - in LayoutDivider()
|
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/ |
H A D | segmentbutton.js | 1100 this.s3 = new ObservedPropertyObjectPU(Array.from({ length: a1 }, (j3, index) => 0), this, "buttonWidth"); 1114 if (params.buttonWidth !== undefined) { 1115 this.buttonWidth = params.buttonWidth; 1288 get buttonWidth() { 1292 set buttonWidth(newValue) { 1306 this.buttonWidth[index] = value.width; 1423 this.buttonWidth[index] + 8 : this.buttonWidth[index],
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/ |
H A D | button_layout_algorithm.cpp | 139 auto buttonWidth = selfLayoutConstraint->selfIdealSize.Width().value(); in HandleLabelCircleButtonConstraint() local 141 minLength = std::min(buttonWidth, buttonHeight); in HandleLabelCircleButtonConstraint()
|
/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | calendar_theme.h | 109 Dimension buttonWidth; member 431 theme->cardCalendarTheme_.buttonWidth = in ParseCardCalendarThemePattern()
|
H A D | calendar_component.cpp | 463 button->SetWidth(calendarTheme.buttonWidth); in InitCardButton()
|