/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_button.cpp | 27 UIButton::UIButton() in UIButton() function in OHOS::UIButton 47 UIButton::~UIButton() in ~UIButton() 68 void UIButton::DrawImg(BufferInfo& gfxDstBuffer, const Rect& invalidatedArea, OpacityType opaScale) in DrawImg() 90 void UIButton::OnDraw(BufferInfo& gfxDstBuffer, const Rect& invalidatedArea) in OnDraw() 97 void UIButton::SetupThemeStyles() in SetupThemeStyles() 113 int64_t UIButton::GetStyle(uint8_t key) const in GetStyle() 118 void UIButton::SetStyle(uint8_t key, int64_t value) in SetStyle() 123 int64_t UIButton [all...] |
H A D | ui_repeat_button.cpp | 30 UIButton::OnDraw(gfxDstBuffer, invalidatedArea); in OnDraw() 38 return UIButton::OnReleaseEvent(event); in OnReleaseEvent() 44 return UIButton::OnClickEvent(event); in OnClickEvent() 49 UIButton::OnClickEvent(event_); in HandleTickEvent() 56 return UIButton::OnLongPressEvent(event); in OnLongPressEvent()
|
H A D | ui_dialog.cpp | 228 button->SetStyleForState(STYLE_BACKGROUND_COLOR, Color::White().full, UIButton::ButtonState::RELEASED); in AddButton() 229 button->SetStyleForState(STYLE_BACKGROUND_COLOR, Color::Black().full, UIButton::ButtonState::PRESSED); in AddButton() 230 button->SetStyleForState(STYLE_BACKGROUND_OPA, BUTTON_PRESS_OPA, UIButton::ButtonState::PRESSED); in AddButton() 231 button->SetStyleForState(STYLE_BORDER_WIDTH, 0, UIButton::ButtonState::RELEASED); in AddButton() 232 button->SetStyleForState(STYLE_BORDER_WIDTH, 0, UIButton::ButtonState::PRESSED); in AddButton() 583 button1_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton::ButtonState::RELEASED); in SetButtonColor() 584 button1_->SetStyleForState(STYLE_BACKGROUND_OPA, color.alpha, UIButton::ButtonState::RELEASED); in SetButtonColor() 590 button2_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton::ButtonState::RELEASED); in SetButtonColor() 591 button2_->SetStyleForState(STYLE_BACKGROUND_OPA, color.alpha, UIButton::ButtonState::RELEASED); in SetButtonColor() 597 button3_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton in SetButtonColor() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_view_bitmap/ |
H A D | ui_test_view_bitmap.cpp | 319 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in UIKitBitmapTestGetViewBitmap001() 320 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in UIKitBitmapTestGetViewBitmap001() 321 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in UIKitBitmapTestGetViewBitmap001() 322 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in UIKitBitmapTestGetViewBitmap001() 323 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in UIKitBitmapTestGetViewBitmap001() 324 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in UIKitBitmapTestGetViewBitmap001() 336 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in UIKitBitmapTestGetViewBitmap002() 337 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in UIKitBitmapTestGetViewBitmap002() 338 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in UIKitBitmapTestGetViewBitmap002() 339 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton in UIKitBitmapTestGetViewBitmap002() [all...] |
/foundation/arkui/ui_lite/test/framework/src/ |
H A D | ui_test_app.cpp | 100 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::RELEASED); in InitAutoTestBtn() 101 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::PRESSED); in InitAutoTestBtn() 102 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::INACTIVE); in InitAutoTestBtn() 103 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::RELEASED); in InitAutoTestBtn() 104 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::PRESSED); in InitAutoTestBtn() 105 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::INACTIVE); in InitAutoTestBtn() 124 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::RELEASED); in InitBackBtn() 125 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::PRESSED); in InitBackBtn() 126 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::INACTIVE); in InitBackBtn() 127 backBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton in InitBackBtn() [all...] |
H A D | test_case_list_adapter.cpp | 151 item->SetStyleForState(STYLE_BORDER_WIDTH, STYLE_BORDER_WIDTH_VALUE, UIButton::RELEASED); in GetView() 152 item->SetStyleForState(STYLE_BORDER_WIDTH, STYLE_BORDER_WIDTH_VALUE, UIButton::PRESSED); in GetView() 153 item->SetStyleForState(STYLE_BORDER_WIDTH, STYLE_BORDER_WIDTH_VALUE, UIButton::INACTIVE); in GetView() 154 item->SetStyleForState(STYLE_BORDER_OPA, 0, UIButton::RELEASED); in GetView() 155 item->SetStyleForState(STYLE_BORDER_OPA, 0, UIButton::PRESSED); in GetView() 156 item->SetStyleForState(STYLE_BORDER_OPA, 0, UIButton::INACTIVE); in GetView() 182 item->SetStyleForState(STYLE_BORDER_RADIUS, STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in GetView() 183 item->SetStyleForState(STYLE_BORDER_RADIUS, STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in GetView() 184 item->SetStyleForState(STYLE_BORDER_RADIUS, STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in GetView() 185 item->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton in GetView() [all...] |
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_button_unit_test.cpp | 37 UIButton* button_; 43 button_ = new UIButton(); in SetUp() 128 button_->SetStateForStyle(UIButton::ButtonState::PRESSED); in HWTEST_F() 131 EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::PRESSED), Color::Blue().full); in HWTEST_F() 146 button_->SetStateForStyle(UIButton::ButtonState::INACTIVE); in HWTEST_F() 149 EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::INACTIVE), Color::Red().full); in HWTEST_F() 164 button_->SetStateForStyle(UIButton::ButtonState::RELEASED); in HWTEST_F() 167 EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::RELEASED), Color::Green().full); in HWTEST_F() 207 button_->SetStyleForState(STYLE_PADDING_LEFT, paddingdLeft, UIButton::ButtonState::RELEASED); in HWTEST_F() 208 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/ |
H A D | ui_test_border_margin_padding.cpp | 434 UIButton* button = new UIButton(); in UIKitUITestBorderMarginPaddingTest005() 503 UIButton* button = new UIButton(); in UIKitUITestBorderMarginPaddingTest008() 504 button->SetStyleForState(STYLE_MARGIN_LEFT, style_.marginLeft_, UIButton::RELEASED); in UIKitUITestBorderMarginPaddingTest008() 505 button->SetStyleForState(STYLE_MARGIN_LEFT, style_.marginLeft_, UIButton::PRESSED); in UIKitUITestBorderMarginPaddingTest008() 506 button->SetStyleForState(STYLE_MARGIN_TOP, style_.marginTop_, UIButton::RELEASED); in UIKitUITestBorderMarginPaddingTest008() 507 button->SetStyleForState(STYLE_MARGIN_TOP, style_.marginTop_, UIButton::PRESSED); in UIKitUITestBorderMarginPaddingTest008() 508 button->SetStyleForState(STYLE_MARGIN_RIGHT, style_.marginRight_, UIButton::RELEASED); in UIKitUITestBorderMarginPaddingTest008() 509 button->SetStyleForState(STYLE_MARGIN_RIGHT, style_.marginRight_, UIButton in UIKitUITestBorderMarginPaddingTest008() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_screenshot/ |
H A D | ui_test_screenshot.h | 50 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 51 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 52 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 53 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 54 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 55 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_view_percent/ |
H A D | ui_test_view_percent.h | 54 btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 55 btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 56 btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 57 btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 58 btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 59 btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_ui_analog_clock/ |
H A D | ui_test_analog_clock.h | 90 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 91 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 92 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 93 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 94 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 95 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_label/ |
H A D | ui_test_label.h | 84 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 85 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 86 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 87 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 88 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 89 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_layout/ |
H A D | ui_test_basic_layout.h | 109 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 110 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 111 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 112 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 113 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 114 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
H A D | ui_test_advanced_layout.h | 102 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 103 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 104 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 105 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 106 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 107 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | input_button_component.cpp | 40 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in CreateNativeViews() 42 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in CreateNativeViews() 107 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in ApplyPrivateStyle() 109 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in ApplyPrivateStyle() 124 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in SetBackgroundColor() 126 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in SetBackgroundColor() 191 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in PostRender()
|
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_button.h | 51 class UIButton : public UIView { class 54 * @brief A constructor used to create a <b>UIButton</b> instance. 59 UIButton(); 62 * @brief A constructor used to create a <b>UIButton</b> instance based on the button ID. 70 explicit UIButton(const char* id) : UIButton() in UIButton() function in OHOS::UIButton 76 * @brief A destructor used to delete the <b>UIButton</b> instance. 81 virtual ~UIButton(); 96 * @fn virtual bool UIButton::OnPreDraw(Rect& invalidatedArea) override 107 * @fn virtual bool UIButton [all...] |
/foundation/arkui/ui_lite/test/uitest/test_event_injector/ |
H A D | ui_test_event_injector.cpp | 316 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in InnerTest() 317 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in InnerTest() 318 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in InnerTest() 319 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in InnerTest() 320 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in InnerTest() 321 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in InnerTest() 386 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 387 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 388 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 389 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton in SetUpButton() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_button/ |
H A D | ui_test_button.h | 104 void UIKitButtonTest002(UIScrollView* container, UIButton* button); 113 void EnableAnimator(UIScrollView* container, UIButton* button); 115 void InitButtonListeners001(UIButton* button); 116 void InitButtonListeners002(UIButton* button);
|
/foundation/arkui/ui_lite/test/uitest/test_texture_mapper/ |
H A D | ui_test_texture_mapper.cpp | 116 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 117 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 118 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 119 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 120 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 121 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_chart/ |
H A D | ui_test_chart_pillar.cpp | 208 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 209 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 210 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 211 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 212 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 213 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_opacity/ |
H A D | ui_test_opacity.cpp | 140 UIViewGroup* group = CreateTestCaseGroup(" display UIButton with opacity 200 and 100"); in UIKitOpacityTestUIButton001() 144 UIButton* button = new UIButton(); in UIKitOpacityTestUIButton001() 147 UIButton* button2 = new UIButton(); in UIKitOpacityTestUIButton001() 158 UIButton* UITestOpacity::CreateTestCaseUIButton(uint8_t opaScale) const in CreateTestCaseUIButton() 160 UIButton* button = new UIButton(); in CreateTestCaseUIButton() 172 UIViewGroup* group = CreateTestCaseGroup(" display UIButton Image with opacity 200 and 100"); in UIKitOpacityTestUIButton002() 176 UIButton* butto in UIKitOpacityTestUIButton002() [all...] |
/foundation/arkui/ui_lite/test/uitest/test_render/ |
H A D | ui_test_render.cpp | 138 labelButton_->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in UIKitRenderTestRenderMeasure001() 139 labelButton_->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in UIKitRenderTestRenderMeasure001() 140 labelButton_->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in UIKitRenderTestRenderMeasure001() 141 labelButton_->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_PRESS, UIButton::PRESSED); in UIKitRenderTestRenderMeasure001()
|
/foundation/arkui/ui_lite/test/uitest/test_transform/ |
H A D | ui_test_transform.cpp | 149 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 150 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 151 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 152 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 153 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 154 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_clip/ |
H A D | ui_test_clip.cpp | 152 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 153 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 154 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 155 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 156 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 157 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|
/foundation/arkui/ui_lite/test/uitest/test_picker/ |
H A D | ui_test_ui_picker.cpp | 256 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 257 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 258 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 259 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in SetUpButton() 260 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in SetUpButton() 261 btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in SetUpButton()
|