/foundation/graphic/ui/frameworks/components/ |
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::GetStyleForState(uint8_t key, ButtonState state) const in GetStyleForState() 131 void UIButton::SetStyleForState(uint8_t key, int64_t value, ButtonState state) in SetStyleForState() 157 bool UIButton::OnPressEvent(const PressEvent& event) in OnPressEvent() [all …]
|
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()
|
D | ui_dialog.cpp | 228 …button->SetStyleForState(STYLE_BACKGROUND_COLOR, Color::White().full, UIButton::ButtonState::RELEA… in AddButton() 229 …button->SetStyleForState(STYLE_BACKGROUND_COLOR, Color::Black().full, UIButton::ButtonState::PRESS… 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() 577 … button1_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton::ButtonState::RELEASED); in SetButtonColor() 578 … button1_->SetStyleForState(STYLE_BACKGROUND_OPA, color.alpha, UIButton::ButtonState::RELEASED); in SetButtonColor() 584 … button2_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton::ButtonState::RELEASED); in SetButtonColor() 585 … button2_->SetStyleForState(STYLE_BACKGROUND_OPA, color.alpha, UIButton::ButtonState::RELEASED); in SetButtonColor() 591 … button3_->SetStyleForState(STYLE_BACKGROUND_COLOR, color.full, UIButton::ButtonState::RELEASED); in SetButtonColor() [all …]
|
/foundation/graphic/ui/test/unittest/components/ |
D | ui_button_unit_test.cpp | 36 UIButton* button_; 42 button_ = new UIButton(); in SetUp() 127 button_->SetStateForStyle(UIButton::ButtonState::PRESSED); 130 …EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::PRESSED), Color… 145 button_->SetStateForStyle(UIButton::ButtonState::INACTIVE); 148 …EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::INACTIVE), Colo… 163 button_->SetStateForStyle(UIButton::ButtonState::RELEASED); 166 …EXPECT_EQ(button_->GetStyleForState(STYLE_BACKGROUND_COLOR, UIButton::ButtonState::RELEASED), Colo… 206 button_->SetStyleForState(STYLE_PADDING_LEFT, paddingdLeft, UIButton::ButtonState::RELEASED); 207 button_->SetStyleForState(STYLE_BORDER_WIDTH, borderWidth, UIButton::ButtonState::RELEASED); [all …]
|
/foundation/graphic/ui/test/uitest/test_border_margin_padding/ |
D | ui_test_border_margin_padding.cpp | 391 UIButton* button = new UIButton(); in UIKit_UITestBorderMarginPadding_Test_005() 460 UIButton* button = new UIButton(); in UIKit_UITestBorderMarginPadding_Test_008() 461 button->SetStyleForState(STYLE_MARGIN_LEFT, style_.marginLeft_, UIButton::RELEASED); in UIKit_UITestBorderMarginPadding_Test_008() 462 button->SetStyleForState(STYLE_MARGIN_LEFT, style_.marginLeft_, UIButton::PRESSED); in UIKit_UITestBorderMarginPadding_Test_008() 463 button->SetStyleForState(STYLE_MARGIN_TOP, style_.marginTop_, UIButton::RELEASED); in UIKit_UITestBorderMarginPadding_Test_008() 464 button->SetStyleForState(STYLE_MARGIN_TOP, style_.marginTop_, UIButton::PRESSED); in UIKit_UITestBorderMarginPadding_Test_008() 465 button->SetStyleForState(STYLE_MARGIN_RIGHT, style_.marginRight_, UIButton::RELEASED); in UIKit_UITestBorderMarginPadding_Test_008() 466 button->SetStyleForState(STYLE_MARGIN_RIGHT, style_.marginRight_, UIButton::PRESSED); in UIKit_UITestBorderMarginPadding_Test_008() 467 button->SetStyleForState(STYLE_MARGIN_BOTTOM, style_.marginBottom_, UIButton::RELEASED); in UIKit_UITestBorderMarginPadding_Test_008() 468 button->SetStyleForState(STYLE_MARGIN_BOTTOM, style_.marginBottom_, UIButton::PRESSED); in UIKit_UITestBorderMarginPadding_Test_008() [all …]
|
/foundation/graphic/ui/test/uitest/test_screenshot/ |
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::RELEA… in SetUpButton() 54 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 55 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_view_bitmap/ |
D | ui_test_view_bitmap.cpp | 160 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in UIKit_Bitmap_Test_GetViewBitmap_001() 161 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in UIKit_Bitmap_Test_GetViewBitmap_001() 162 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in UIKit_Bitmap_Test_GetViewBitmap_001() 163 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in UIKit_Bitmap_Test_GetViewBitmap_001() 164 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in UIKit_Bitmap_Test_GetViewBitmap_001() 165 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in UIKit_Bitmap_Test_GetViewBitmap_001() 177 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in UIKit_Bitmap_Test_GetScreenBitmap_001() 178 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in UIKit_Bitmap_Test_GetScreenBitmap_001() 179 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in UIKit_Bitmap_Test_GetScreenBitmap_001() 180 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in UIKit_Bitmap_Test_GetScreenBitmap_001() [all …]
|
/foundation/graphic/ui/test/framework/src/ |
D | ui_test_app.cpp | 106 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::RELEASED); in InitMainMenu() 107 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::PRESSED); in InitMainMenu() 108 autoTestBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::INACTIVE); in InitMainMenu() 109 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::RELEASED); in InitMainMenu() 110 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::PRESSED); in InitMainMenu() 111 autoTestBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::INACTIVE); in InitMainMenu() 152 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::RELEASED); in InitBackBtn() 153 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::PRESSED); in InitBackBtn() 154 backBtn_->SetStyleForState(STYLE_BORDER_RADIUS, 0, UIButton::INACTIVE); in InitBackBtn() 155 backBtn_->SetStyleForState(STYLE_BACKGROUND_OPA, 0, UIButton::RELEASED); in InitBackBtn() [all …]
|
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::RELE… in GetView() [all …]
|
/foundation/graphic/ui/test/uitest/test_view_percent/ |
D | ui_test_view_percent.h | 47 … btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 48 … btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 49 … btn.SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 50 …btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEAS… in SetUpButton() 51 …btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSE… in SetUpButton() 52 …btn.SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTI… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_ui_analog_clock/ |
D | ui_test_analog_clock.h | 78 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 79 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 80 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 81 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in SetUpButton() 82 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 83 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_label/ |
D | ui_test_label.h | 81 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); 82 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); 83 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); 84 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… 85 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… 86 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT…
|
/foundation/graphic/ui/test/uitest/test_layout/ |
D | ui_test_basic_layout.h | 108 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); 109 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); 110 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); 111 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… 112 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… 113 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT…
|
D | ui_test_advanced_layout.h | 99 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 100 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 101 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 102 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in SetUpButton() 103 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 104 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/interfaces/kits/components/ |
D | ui_button.h | 51 class UIButton : public UIView { 59 UIButton(); 70 UIButton(const char* id) : UIButton() in UIButton() function 81 virtual ~UIButton(); 439 ButtonAnimator(UIButton& button) : animator_(this, nullptr, 0, false), button_(button) {} in ButtonAnimator() 451 UIButton& button_;
|
/foundation/ace/ace_engine_lite/frameworks/src/core/components/ |
D | input_button_component.cpp | 40 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in CreateNativeViews() 42 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in CreateNativeViews() 129 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in ApplyPrivateStyle() 131 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in ApplyPrivateStyle() 148 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in SetBackgroundColor() 150 button_.SetStateForStyle(UIButton::ButtonState::RELEASED); in SetBackgroundColor() 214 button_.SetStateForStyle(UIButton::ButtonState::PRESSED); in PostRender()
|
/foundation/graphic/ui/test/uitest/test_chart/ |
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::RELEA… in SetUpButton() 212 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 213 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_opacity/ |
D | ui_test_opacity.cpp | 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() 176 UIButton* button = CreateTestCaseUIButton(200); // 200: opacity in UIKitOpacityTestUIButton002() 178 UIButton* button2 = CreateTestCaseUIButton(100); // 100: opacity in UIKitOpacityTestUIButton002() 346 UIButton* button = new UIButton(); in UIKitOpacityTestUIViewGroup001() 348 UIButton* button2 = new UIButton(); in UIKitOpacityTestUIViewGroup001()
|
/foundation/graphic/ui/test/uitest/test_event_injector/ |
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::RELEA… in InnerTest() 320 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in InnerTest() 321 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… 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::RELEA… in SetUpButton() [all …]
|
/foundation/graphic/ui/test/uitest/test_texture_mapper/ |
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::RELEA… in SetUpButton() 120 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 121 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_render/ |
D | ui_test_render.cpp | 138 …labelButton_->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RE… in UIKit_Render_Test_RenderMeasure_001() 139 …labelButton_->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PR… in UIKit_Render_Test_RenderMeasure_001() 140 …>SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in UIKit_Render_Test_RenderMeasure_001() 141 …->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_PRESS, UIButton::PRESSED); in UIKit_Render_Test_RenderMeasure_001()
|
/foundation/graphic/ui/test/uitest/test_clip/ |
D | ui_test_clip.cpp | 150 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 151 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 152 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 153 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in SetUpButton() 154 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 155 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_picker/ |
D | ui_test_ui_picker.cpp | 257 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::RELEASED); in SetUpButton() 258 btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRESSED); in SetUpButton() 259 … btn->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INACTIVE); in SetUpButton() 260 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEA… in SetUpButton() 261 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 262 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_transform/ |
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::RELEA… in SetUpButton() 153 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESS… in SetUpButton() 154 …btn->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACT… in SetUpButton()
|
/foundation/graphic/ui/test/uitest/test_button/ |
D | ui_test_button.cpp | 564 ((UIButton*)uiView_)->Invalidate(); in OnClick() 588 static_cast<UIButton*>(uiView_)->EnableButtonAnimation(enableAnimation_); in OnClick() 612 UILabelButton* GetTestUIButton(const char* buttonText, int16_t x, int16_t y, UIButton* button) in GetTestUIButton() 624 …labelButton->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::PRE… in GetTestUIButton() 625 …labelButton->SetStyleForState(STYLE_BORDER_RADIUS, BUTTON_STYLE_BORDER_RADIUS_VALUE, UIButton::INA… in GetTestUIButton() 626 …>SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::RELEASED); in GetTestUIButton() 627 …->SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::PRESSED); in GetTestUIButton() 628 …>SetStyleForState(STYLE_BACKGROUND_COLOR, BUTTON_STYLE_BACKGROUND_COLOR_VALUE, UIButton::INACTIVE); in GetTestUIButton() 632 void UITestBUTTON::UIKit_Button_Test_002(UIScrollView* container, UIButton* button) in UIKit_Button_Test_002() 729 UIButton* button = new UIButton(); in UIKit_Button_Test_001()
|