Home
last modified time | relevance | path

Searched refs:ControlSize (Results 1 - 25 of 28) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Dbutton_theme.h153 theme->heightMap_.insert(std::pair<ControlSize, Dimension>(ControlSize::NORMAL, theme->height_)); in ParseSubStylePattern()
154 theme->heightMap_.insert(std::pair<ControlSize, Dimension>( in ParseSubStylePattern()
155 ControlSize::SMALL, buttonPattern->GetAttr<Dimension>("small_button_height", 0.0_vp))); in ParseSubStylePattern()
157 theme->textSizeMap_.insert(std::pair<ControlSize, Dimension>( in ParseSubStylePattern()
158 ControlSize::NORMAL, buttonPattern->GetAttr<Dimension>("button_font_size", 0.0_fp))); in ParseSubStylePattern()
159 theme->textSizeMap_.insert(std::pair<ControlSize, Dimension>( in ParseSubStylePattern()
160 ControlSize::SMALL, buttonPattern->GetAttr<Dimension>("small_button_font_size", 0.0_fp))); in ParseSubStylePattern()
162 theme->paddingMap_.insert(std::pair<ControlSize, Edge>(ControlSize in ParseSubStylePattern()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/select/
H A Dselect_theme.h104 std::pair<ControlSize, Dimension>(ControlSize::NORMAL, theme->fontSize_)); in Parse()
105 theme->selectFontSizeMap_.insert(std::pair<ControlSize, Dimension>( in Parse()
106 ControlSize::SMALL, pattern->GetAttr<Dimension>("small_text_font_size", 0.0_vp))); in Parse()
205 std::pair<ControlSize, Dimension>(ControlSize::NORMAL, theme->spinnerWidth_)); in ParsePartOne()
206 theme->selectSpinnerWidthMap_.insert(std::pair<ControlSize, Dimension>( in ParsePartOne()
207 ControlSize::SMALL, pattern->GetAttr<Dimension>("small_spinner_width", 0.0_vp))); in ParsePartOne()
216 std::pair<ControlSize, Dimension>(ControlSize in ParsePartTwo()
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/select/
H A Dselect_test_controlsize_ng.cpp159 * @tc.desc: Test SelectPattern ControlSize.
185 * @tc.steps: step2. Get ControlSize, compare the default value with the ControlSize::NORMAL. in HWTEST_F()
186 * @tc.expected: SelectPattern's default ControlSize and ControlSize::NORMAL are equal. in HWTEST_F()
188 EXPECT_EQ(pattern->GetControlSize(), ControlSize::NORMAL); in HWTEST_F()
193 * @tc.desc: Test SelectPattern ControlSize.
213 * @tc.steps: step2. Call SetControlSize and set ControlSize, in HWTEST_F()
214 * compare the set value with the ControlSize::SMALL. in HWTEST_F()
215 * @tc.expected: SelectPattern's ControlSize an in HWTEST_F()
[all...]
H A Dselect_pattern_test_controlsize_ng.cpp164 * @tc.desc: Test SelectPattern ControlSize.
185 * @tc.steps: step2. Get ControlSize, compare the default value with the ControlSize::NORMAL. in HWTEST_F()
186 * @tc.expected: SelectPattern's default ControlSize and ControlSize::NORMAL are equal. in HWTEST_F()
188 EXPECT_EQ(pattern->GetControlSize(), ControlSize::NORMAL); in HWTEST_F()
214 * @tc.steps: step2. Get ControlSize, compare the set value with the ControlSize. in HWTEST_F()
215 * @tc.expected: SelectPattern's ControlSize and the set value are equal. Restore the default value. in HWTEST_F()
218 auto settingControlSize = ControlSize in HWTEST_F()
[all...]
H A Dselect_pattern_test_ng.cpp1690 selectPattern->SetControlSize(ControlSize::SMALL); in HWTEST_F()
1692 EXPECT_EQ(ControlSize::SMALL, controlSize); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dselect_model_impl.h70 void SetControlSize(const std::optional<ControlSize>& controlSize) override {}
72 ControlSize GetControlSize() override { return ControlSize{}; }
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
H A Dselect_pattern.h197 void SetControlSize(const ControlSize& controlSize);
199 ControlSize GetControlSize();
313 ControlSize controlSize_ = ControlSize::NORMAL;
H A Dselect_model_ng.h84 void SetControlSize(const std::optional<ControlSize>& controlSize) override;
89 ControlSize GetControlSize() override;
93 static void SetControlSize(FrameNode* frameNode, const std::optional<ControlSize>& controlSize);
94 static ControlSize GetControlSize(FrameNode* frameNode);
H A Dselect_model.h101 virtual void SetControlSize(const std::optional<ControlSize>& controlSize);
103 virtual ControlSize GetControlSize();
H A Dselect_model_ng.cpp410 void SelectModelNG::SetControlSize(const std::optional<ControlSize>& controlSize) in SetControlSize()
436 void SelectModelNG::SetControlSize(FrameNode* frameNode, const std::optional<ControlSize>& controlSize) in SetControlSize()
445 ControlSize SelectModelNG::GetControlSize() in GetControlSize()
448 return ControlSize::NORMAL; in GetControlSize()
451 CHECK_NULL_RETURN(pattern, ControlSize::NORMAL); in GetControlSize()
455 ControlSize SelectModelNG::GetControlSize(FrameNode* frameNode) in GetControlSize()
458 CHECK_NULL_RETURN(pattern, ControlSize::NORMAL); in GetControlSize()
H A Dselect_pattern.cpp71 static std::string ConvertControlSizeToString(ControlSize controlSize) in ConvertControlSizeToString()
75 case ControlSize::SMALL: in ConvertControlSizeToString()
76 result = "ControlSize.SMALL"; in ConvertControlSizeToString()
78 case ControlSize::NORMAL: in ConvertControlSizeToString()
79 result = "ControlSize.NORMAL"; in ConvertControlSizeToString()
1402 if (controlSize_ == ControlSize::SMALL) { in ResetParams()
1412 void SelectPattern::SetControlSize(const ControlSize& controlSize) in SetControlSize()
1443 ControlSize SelectPattern::GetControlSize() in GetControlSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/button/
H A Dbutton_request_data.h33 std::optional<ControlSize> controlSize;
H A Dbutton_layout_property.h93 ACE_DEFINE_PROPERTY_ITEM_WITHOUT_GROUP(ControlSize, ControlSize, PROPERTY_UPDATE_MEASURE);
H A Dbutton_pattern.h223 ConvertControlSizeToString(layoutProperty->GetControlSize().value_or(ControlSize::NORMAL)) in ToJsonValueAttribute()
287 static std::string ConvertControlSizeToString(ControlSize controlSize) in ConvertControlSizeToString()
291 case ControlSize::SMALL: in ConvertControlSizeToString()
292 result = "ControlSize.SMALL"; in ConvertControlSizeToString()
294 case ControlSize::NORMAL: in ConvertControlSizeToString()
295 result = "ControlSize.NORMAL"; in ConvertControlSizeToString()
H A Dbutton_layout_algorithm.cpp347 ControlSize controlSize = layoutProperty->GetControlSize().value_or(ControlSize::NORMAL); in GetDefaultHeight()
361 ControlSize controlSize = layoutProperty->GetControlSize().value_or(ControlSize::NORMAL); in GetDefaultBorderRadius()
391 if (buttonLayoutProperty->HasControlSize() && buttonLayoutProperty->GetControlSize() == ControlSize::SMALL) { in NeedAgingMeasure()
H A Dbutton_model_ng.h58 void SetControlSize(const std::optional<ControlSize>& controlSize) override;
86 static void SetControlSize(FrameNode* frameNode, const std::optional<ControlSize>& controlSize);
H A Dbutton_model_ng.cpp113 void ButtonModelNG::SetControlSize(const std::optional<ControlSize>& controlSize) in SetControlSize()
116 ACE_UPDATE_LAYOUT_PROPERTY(ButtonLayoutProperty, ControlSize, controlSize.value()); in SetControlSize()
166 void ButtonModelNG::SetControlSize(FrameNode* frameNode, const std::optional<ControlSize>& controlSize) in SetControlSize()
169 ACE_UPDATE_NODE_LAYOUT_PROPERTY(ButtonLayoutProperty, ControlSize, controlSize.value(), frameNode); in SetControlSize()
515 auto themeFontSize = buttonTheme->GetTextSize(layoutProperty->GetControlSizeValue(ControlSize::NORMAL)); in SetLabelStyle()
H A Dbutton_model.h59 virtual void SetControlSize(const std::optional<ControlSize>& controlSize) {} in SetControlSize()
H A Dbutton_pattern.cpp157 ControlSize controlSize = layoutProperty->GetControlSize().value_or(ControlSize::NORMAL); in UpdateTextStyle()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dbutton_modifier.cpp567 ControlSize size = ControlSize::NORMAL; in SetButtonControlSize()
568 if (controlSize >= static_cast<uint32_t>(ControlSize::SMALL) && controlSize <= in SetButtonControlSize()
569 static_cast<uint32_t>(ControlSize::NORMAL)) { in SetButtonControlSize()
570 size = static_cast<ControlSize>(controlSize); in SetButtonControlSize()
579 ButtonModelNG::SetControlSize(frameNode, ControlSize::NORMAL); in ResetButtonControlSize()
631 ButtonModelNG::SetControlSize(frameNode, ControlSize::NORMAL); in ResetButtonOptions()
/foundation/arkui/ace_engine/test/unittest/core/pattern/button/
H A Dbutton_extend_test_ng.cpp90 std::optional<ControlSize> controlSize = std::nullopt;
135 buttonTheme->heightMap_.emplace(std::pair<ControlSize, Dimension>(ControlSize::SMALL, DEFAULT_HEIGTH)); in SetUpTestCase()
168 buttonModelNG.SetControlSize(AceType::RawPtr(buttonNode), ControlSize::SMALL); in HWTEST_F()
H A Dbutton_test_ng.cpp107 std::optional<ControlSize> controlSize = std::nullopt;
160 buttonTheme->heightMap_.emplace(std::pair<ControlSize, Dimension>(ControlSize::SMALL, DEFAULT_HEIGTH)); in SetUpTestCase()
1347 * @tc.desc: Test ButtonStyle and ControlSize
1357 testProperty.controlSize = ControlSize::SMALL; in HWTEST_F()
1371 EXPECT_EQ(buttonLayoutProperty->GetControlSizeValue(), ControlSize::SMALL); in HWTEST_F()
1398 * @tc.desc: Test ButtonStyle 、 ControlSize and ButtonRle
1408 testProperty.controlSize = ControlSize::NORMAL; in HWTEST_F()
1422 EXPECT_EQ(buttonLayoutProperty->GetControlSizeValue(), ControlSize::NORMAL); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_button.cpp215 int32_t value = static_cast<int32_t>(ControlSize::NORMAL); in SetControlSize()
218 if (valueT >= static_cast<int32_t>(ControlSize::SMALL) && valueT <= static_cast<int32_t>(ControlSize::NORMAL)) { in SetControlSize()
222 ButtonModel::GetInstance()->SetControlSize(static_cast<ControlSize>(value)); in SetControlSize()
724 para.controlSize = ControlSize::NORMAL; in ParseCreatePara()
728 if (controlSizeIntValue >= static_cast<int32_t>(ControlSize::SMALL) && in ParseCreatePara()
729 controlSizeIntValue <= static_cast<int32_t>(ControlSize::NORMAL)) { in ParseCreatePara()
730 para.controlSize = static_cast<ControlSize>(controlSizeIntValue); in ParseCreatePara()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsEnumStyle.js3244 var ControlSize; variable
3245 (function (ControlSize) {
3246 ControlSize[ControlSize["SMALL"] = 0] = "SMALL";
3247 ControlSize[ControlSize["NORMAL"] = 1] = "NORMAL";
3248 })(ControlSize || (ControlSize = {}));
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dconstants.h65 enum class ControlSize { SMALL, NORMAL }; class

Completed in 29 milliseconds

12