/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_radio_button_unit_test.cpp | 112 EXPECT_EQ(radioBtn1->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 113 EXPECT_EQ(radioBtn2->GetState(), UICheckBox::UICheckBoxState::SELECTED); 114 EXPECT_EQ(radioBtn3->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 115 EXPECT_EQ(radioBtn4->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 116 EXPECT_EQ(radioBtn5->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 119 EXPECT_EQ(radioBtn1->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 120 EXPECT_EQ(radioBtn2->GetState(), UICheckBox::UICheckBoxState::SELECTED); 121 EXPECT_EQ(radioBtn3->GetState(), UICheckBox::UICheckBoxState::UNSELECTED); 122 EXPECT_EQ(radioBtn4->GetState(), UICheckBox::UICheckBoxState::SELECTED); 126 EXPECT_EQ(radioBtn1->GetState(), UICheckBox::UICheckBoxState::SELECTED); [all …]
|
H A D | ui_checkbox_unit_test.cpp | 29 static UICheckBox* checkBox_; 32 UICheckBox* UICheckBoxTest::checkBox_ = nullptr; 37 checkBox_ = new UICheckBox(); in SetUpTestCase() 78 EXPECT_EQ(checkBox_->GetState(), UICheckBox::SELECTED); 93 checkBox_->SetState(UICheckBox::UICheckBoxState::SELECTED); 94 EXPECT_EQ(checkBox_->GetState(), UICheckBox::UICheckBoxState::SELECTED); 95 checkBox_->SetState(UICheckBox::UICheckBoxState::UNSELECTED); 96 EXPECT_EQ(checkBox_->GetState(), UICheckBox::UICheckBoxState::UNSELECTED);
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_button/ |
H A D | ui_test_button.h | 106 UICheckBox::OnChangeListener** listener, 120 UICheckBox::OnChangeListener* checkBoxChangeListener_ = nullptr; 121 UICheckBox::OnChangeListener* checkBoxChangeListener1_ = nullptr; 122 UICheckBox::OnChangeListener* checkBoxChangeListener2_ = nullptr; 123 UICheckBox::OnChangeListener* radioChangeListener_ = nullptr; 124 UICheckBox::OnChangeListener* radioChangeListener1_ = nullptr; 125 UICheckBox::OnChangeListener* radioChangeListener2_ = nullptr; 126 UICheckBox::OnChangeListener* toggleChangeListener_ = nullptr; 127 UICheckBox::OnChangeListener* toggleChangeListener1_ = nullptr; 128 UICheckBox::OnChangeListener* toggleChangeListener2_ = nullptr;
|
H A D | ui_test_button.cpp | 160 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 162 if (state == UICheckBox::UICheckBoxState::SELECTED) { in OnChange() 208 UICheckBox* checkBox = nullptr; in CreateButtonGroup() 210 checkBox = static_cast<UICheckBox*>(new UIToggleButton()); in CreateButtonGroup() 212 checkBox = static_cast<UICheckBox*>(new UIRadioButton(name)); in CreateButtonGroup() 214 checkBox = new UICheckBox(); in CreateButtonGroup() 221 if (checkBox->GetState() == UICheckBox::SELECTED) { in CreateButtonGroup() 311 UICheckBox* checkbox = new UICheckBox(); in UIKitCheckBoxTest002() 318 UICheckBox* checkbox2 = new UICheckBox(); in UIKitCheckBoxTest002() 325 UICheckBox* checkbox3 = new UICheckBox(); in UIKitCheckBoxTest002() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_checkbox.cpp | 39 UICheckBox::UICheckBox() in UICheckBox() function in OHOS::UICheckBox 63 void UICheckBox::SetState(UICheckBoxState state, bool needAnimater) in SetState() 87 void UICheckBox::ReverseState() in ReverseState() 96 bool UICheckBox::OnClickEvent(const ClickEvent& event) in OnClickEvent() 115 void UICheckBox::CalculateSize() in CalculateSize() 128 void UICheckBox::SelectedStateSoftwareDrawing(BufferInfo& gfxDstBuffer, in SelectedStateSoftwareDrawing() 196 void UICheckBox::ResetCallback() in ResetCallback() 203 void UICheckBox::Callback(UIView* view) in Callback() 213 void UICheckBox::OnStop(UIView& view) in OnStop() 265 void UICheckBox::SetSelectedStateColor(ColorType color) in SetSelectedStateColor() [all …]
|
H A D | ui_toggle_button.cpp | 50 UICheckBox::SetState(SELECTED); in SetState() 52 UICheckBox::SetState(UNSELECTED); in SetState() 99 UICheckBox::OnDraw(gfxDstBuffer, invalidatedArea); in OnDraw()
|
H A D | ui_radio_button.cpp | 87 UICheckBox::OnDraw(gfxDstBuffer, invalidatedArea); in OnDraw()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | input_event_tdd_test.cpp | 1012 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); 1013 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::UNSELECTED)); 1055 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); 1106 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); 1244 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(GetComponent(page, "checkbox")); 1388 … EXPECT_TRUE((radio1 != nullptr) && (radio1->GetState() == UICheckBox::UICheckBoxState::SELECTED)); 1390 …EXPECT_TRUE((radio2 != nullptr) && (radio2->GetState() == UICheckBox::UICheckBoxState::UNSELECTED)… 1400 … EXPECT_TRUE((radio1 != nullptr) && (radio1->GetState() == UICheckBox::UICheckBoxState::SELECTED)); 1402 … EXPECT_TRUE((radio3 != nullptr) && (radio3->GetState() == UICheckBox::UICheckBoxState::SELECTED)); 1411 … EXPECT_TRUE((radio2 != nullptr) && (radio2->GetState() == UICheckBox::UICheckBoxState::SELECTED)); [all …]
|
H A D | input_tdd_test.cpp | 56 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 57 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::UNSELECTED)); 67 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::SELECTED)); 76 EXPECT_TRUE((checkbox != nullptr) && (checkbox->GetState() == UICheckBox::UNSELECTED)); 274 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 522 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 569 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 633 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 730 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); 776 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(component->GetComponentRootView()); [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_transform/ |
H A D | ui_test_transform.h | 72 UICheckBox::OnChangeListener* listener, const char* id); 92 class StateChangeListener : public UICheckBox::OnChangeListener { 96 bool OnChange(UICheckBox::UICheckBoxState state) override; 106 void SetListener(UICheckBox::OnChangeListener* listener); 108 UICheckBox::OnChangeListener* listener_ = nullptr;
|
H A D | ui_test_transform.cpp | 87 UICheckBox::UICheckBoxState::SELECTED); in AddRadioGroup() 261 … UICheckBox::OnChangeListener* listener, const char* id) in AddRadioButton() 271 if (radioButton->GetState() == UICheckBox::SELECTED) { in AddRadioButton() 272 listener->OnChange(UICheckBox::SELECTED); in AddRadioButton() 283 bool StateChangeListener::OnChange(UICheckBox::UICheckBoxState state) in OnChange() 285 if (state == UICheckBox::UICheckBoxState::SELECTED) { in OnChange() 304 void UITestRadioButton::SetListener(UICheckBox::OnChangeListener* listener) in SetListener()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | input_checkbox_component.cpp | 47 UICheckBox::UICheckBoxState state = in SetPrivateAttribute() 48 … checked ? UICheckBox::UICheckBoxState::SELECTED : UICheckBox::UICheckBoxState::UNSELECTED; in SetPrivateAttribute() 112 bool state = (checkbox_.GetState() == UICheckBox::UICheckBoxState::SELECTED); in DealEvent()
|
H A D | input_radio_component.cpp | 47 UICheckBox::UICheckBoxState state = in SetPrivateAttribute() 48 … checked ? UICheckBox::UICheckBoxState::SELECTED : UICheckBox::UICheckBoxState::UNSELECTED; in SetPrivateAttribute() 124 bool state = (radioButton_.GetState() == UICheckBox::UICheckBoxState::SELECTED); in DealEvent()
|
H A D | event_listener.h | 35 class StateChangeListener final : public UICheckBox::OnChangeListener { 41 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 43 bool stateRes = (state == UICheckBox::UICheckBoxState::SELECTED); in OnChange() 121 UICheckBox *checkbox = reinterpret_cast<UICheckBox *>(&view); in OnClick()
|
H A D | input_checkbox_component.h | 46 return const_cast<UICheckBox *>(&checkbox_); in GetComponentRootView() 51 UICheckBox checkbox_;
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_checkbox.h | 53 class UICheckBox : public UIView, public AnimatorCallback { 55 class UICheckBox : public UIView { 80 UICheckBox(); 88 virtual ~UICheckBox() {} in ~UICheckBox()
|
H A D | ui_toggle_button.h | 53 class UIToggleButton : public UICheckBox {
|
H A D | ui_radio_button.h | 50 class UIRadioButton : public UICheckBox {
|
/ohos5.0/foundation/arkui/ui_lite/ |
H A D | changelog.md | 11 7. 支持UICheckBox/UIRadioButton/UIToggleButton动效 74 7. 支持UICheckBox/UIRadioButton/UIToggleButton动效 76 (1)支持UICheckBox软件绘制和动效,默认为图片绘制,可以调用SetImages接口取消默认图片。
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/ |
H A D | ui_test_border_margin_padding.cpp | 40 class MarginListener : public UICheckBox::OnChangeListener { 49 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 51 if (state == UICheckBox::SELECTED) { in OnChange() 71 class BorderListener : public UICheckBox::OnChangeListener { 80 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 82 if (state == UICheckBox::SELECTED) { in OnChange() 97 class PaddingListener : public UICheckBox::OnChangeListener { 106 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 108 if (state == UICheckBox::SELECTED) { in OnChange() 532 UICheckBox* checkbox = new UICheckBox(); in UIKitUITestBorderMarginPaddingTest008()
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_view_bounds/ |
H A D | ui_test_view_bounds.cpp | 74 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange() 77 case UICheckBox::SELECTED: in OnChange() 81 case UICheckBox::UNSELECTED: in OnChange()
|
H A D | ui_test_view_bounds.h | 88 UICheckBox::OnChangeListener* viewBoundsChangeListener_ = nullptr;
|
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_ui_dump_dom_tree/ |
H A D | ui_test_dump_dom.cpp | 189 UICheckBox* checkBox = new UICheckBox(); in CreateButtons() 191 checkBox->SetState(UICheckBox::SELECTED); in CreateButtons() 196 radioButton->SetState(UICheckBox::UNSELECTED); in CreateButtons()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/dfx/ |
H A D | ui_dump_dom_tree.cpp | 96 const UICheckBox* tmpCheckBox = static_cast<const UICheckBox*>(view); in AddCheckboxField()
|