Home
last modified time | relevance | path

Searched refs:UICheckBox (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_radio_button_unit_test.cpp112 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 Dui_checkbox_unit_test.cpp29 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 Dui_test_button.h106 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 Dui_test_button.cpp160 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 Dui_checkbox.cpp39 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 Dui_toggle_button.cpp50 UICheckBox::SetState(SELECTED); in SetState()
52 UICheckBox::SetState(UNSELECTED); in SetState()
99 UICheckBox::OnDraw(gfxDstBuffer, invalidatedArea); in OnDraw()
H A Dui_radio_button.cpp87 UICheckBox::OnDraw(gfxDstBuffer, invalidatedArea); in OnDraw()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dinput_event_tdd_test.cpp1012 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 Dinput_tdd_test.cpp56 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 Dui_test_transform.h72 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 Dui_test_transform.cpp87 UICheckBox::UICheckBoxState::SELECTED); in AddRadioGroup()
261UICheckBox::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 Dinput_checkbox_component.cpp47 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 Dinput_radio_component.cpp47 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 Devent_listener.h35 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 Dinput_checkbox_component.h46 return const_cast<UICheckBox *>(&checkbox_); in GetComponentRootView()
51 UICheckBox checkbox_;
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_checkbox.h53 class UICheckBox : public UIView, public AnimatorCallback {
55 class UICheckBox : public UIView {
80 UICheckBox();
88 virtual ~UICheckBox() {} in ~UICheckBox()
H A Dui_toggle_button.h53 class UIToggleButton : public UICheckBox {
H A Dui_radio_button.h50 class UIRadioButton : public UICheckBox {
/ohos5.0/foundation/arkui/ui_lite/
H A Dchangelog.md11 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 Dui_test_border_margin_padding.cpp40 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 Dui_test_view_bounds.cpp74 bool OnChange(UICheckBox::UICheckBoxState state) override in OnChange()
77 case UICheckBox::SELECTED: in OnChange()
81 case UICheckBox::UNSELECTED: in OnChange()
H A Dui_test_view_bounds.h88 UICheckBox::OnChangeListener* viewBoundsChangeListener_ = nullptr;
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_ui_dump_dom_tree/
H A Dui_test_dump_dom.cpp189 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 Dui_dump_dom_tree.cpp96 const UICheckBox* tmpCheckBox = static_cast<const UICheckBox*>(view); in AddCheckboxField()