Home
last modified time | relevance | path

Searched refs:button1 (Results 1 - 11 of 11) sorted by relevance

/foundation/ability/ability_lite/frameworks/ability_lite/example/entry/src/main/cpp/
H A Dsecond_ability_slice.cpp41 auto button1 = new UILabel(); in OnStart() local
42 button1->SetPosition(BUTTON1_POSITION_X, BUTTON1_POSITION_Y); in OnStart()
43 button1->SetText("Next AA"); in OnStart()
44 button1->Resize(BUTTON_WIDTH, BUTTON_HEIGHT); in OnStart()
45 button1->SetFontId(FONT_ID); in OnStart()
46 button1->SetStyle(STYLE_TEXT_COLOR, Color::Black().full); in OnStart()
47 button1->SetStyle(STYLE_TEXT_OPA, ROOT_VIEW_OPACITY); in OnStart()
48 button1->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full); in OnStart()
49 button1->SetStyle(STYLE_BACKGROUND_OPA, ROOT_VIEW_OPACITY); in OnStart()
56 rootView_->Add(button1); in OnStart()
[all...]
H A Dnext_ability_slice.cpp41 auto button1 = new UILabel(); in OnStart() local
42 button1->SetPosition(BUTTON1_POSITION_X, BUTTON1_POSITION_Y); in OnStart()
43 button1->SetText("鸿蒙应用框架 Next AS"); in OnStart()
44 button1->Resize(BUTTON_WIDTH, BUTTON_HEIGHT); in OnStart()
45 button1->SetFontId(FONT_ID); in OnStart()
46 button1->SetStyle(STYLE_TEXT_COLOR, Color::Black().full); in OnStart()
47 button1->SetStyle(STYLE_TEXT_OPA, ROOT_VIEW_OPACITY); in OnStart()
48 button1->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full); in OnStart()
49 button1->SetStyle(STYLE_BACKGROUND_OPA, ROOT_VIEW_OPACITY); in OnStart()
56 rootView_->Add(button1); in OnStart()
[all...]
H A Dmain_ability_slice.cpp76 auto button1 = new UILabel(); in OnStart() local
77 button1->SetPosition(BUTTON1_POSITION_X, BUTTON1_POSITION_Y); in OnStart()
78 button1->SetText("鸿蒙应用框架 Main AS"); in OnStart()
79 button1->Resize(BUTTON_WIDTH, BUTTON_HEIGHT); in OnStart()
80 button1->SetFontId(FONT_ID); in OnStart()
82 button1->SetStyle(STYLE_TEXT_COLOR, Color::Black().full); in OnStart()
83 button1->SetStyle(STYLE_TEXT_OPA, ROOT_VIEW_OPACITY); in OnStart()
84 button1->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full); in OnStart()
85 button1->SetStyle(STYLE_BACKGROUND_OPA, ROOT_VIEW_OPACITY); in OnStart()
92 rootView_->Add(button1); in OnStart()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_ui_scroll_view/
H A Dui_test_ui_scroll_view.cpp123 UILabelButton* button1 = new UILabelButton(); in UIKitUIScrollViewTestbar001() local
124 button1->SetPosition(0, 0, g_buttonW, g_buttonH); in UIKitUIScrollViewTestbar001()
125 button1->SetText("button1"); in UIKitUIScrollViewTestbar001()
126 scroll->Add(button1); in UIKitUIScrollViewTestbar001()
149 UIButton* button1 = new UIButton(); in UIKitUIScrollViewTestbar002() local
150 button1->SetPosition(0, 0, g_smallButtonW, g_smallButtonH); in UIKitUIScrollViewTestbar002()
151 scroll->Add(button1); in UIKitUIScrollViewTestbar002()
174 UILabelButton* button1 = new UILabelButton(); in UIKitUIScrollViewTestbar003() local
175 button1 in UIKitUIScrollViewTestbar003()
204 UIButton* button1 = new UIButton(); UIKitUIScrollViewTestbar004() local
233 UILabelButton* button1 = new UILabelButton(); UIKitUIScrollViewTestScrollableSet001() local
261 UILabelButton* button1 = new UILabelButton(); UIKitUIScrollViewTestScrollableSet002() local
289 UILabelButton* button1 = new UILabelButton(); UIKitUIScrollViewTestScrollBlankSet001() local
313 UILabelButton* button1 = new UILabelButton(); UIKitUIScrollViewTestScrolllistener001() local
[all...]
/foundation/arkui/ui_lite/test/uitest/test_ui_list_view/
H A Dui_test_list_layout.cpp75 UILabelButton* button1 = new UILabelButton(); in UIKitListVerticalAddTestAutoSize001() local
76 button1->SetPosition(0, 0, g_buttonW, g_buttonH); in UIKitListVerticalAddTestAutoSize001()
77 button1->SetText("button1"); in UIKitListVerticalAddTestAutoSize001()
78 list->Add(button1); in UIKitListVerticalAddTestAutoSize001()
82 list->Insert(button1, button2); in UIKitListVerticalAddTestAutoSize001()
115 UILabelButton* button1 = new UILabelButton(); in UIKitListVerticalRemoveTestAutoSize001() local
116 button1->SetPosition(0, 0, g_buttonW, g_buttonH); in UIKitListVerticalRemoveTestAutoSize001()
117 button1->SetText("button1"); in UIKitListVerticalRemoveTestAutoSize001()
142 UILabelButton* button1 = new UILabelButton(); UIKitListVerticalRemoveTestAutoSize002() local
169 UILabelButton* button1 = new UILabelButton(); UIKitListHorAddTestAutoSize001() local
195 UILabelButton* button1 = new UILabelButton(); UIKitListHorRemoveTestAutoSize001() local
222 UILabelButton* button1 = new UILabelButton(); UIKitListHorRemoveTestAutoSize002() local
[all...]
/foundation/arkui/ui_lite/test/uitest/test_ui_swipe_view/
H A Dui_test_ui_swipe_view.cpp100 UILabelButton* button1 = new UILabelButton(); in UIKitSwipeViewTestHorizontal001() local
101 button1->SetPosition(0, 0, g_buttonW, g_buttonH); in UIKitSwipeViewTestHorizontal001()
102 button1->SetText("button1"); in UIKitSwipeViewTestHorizontal001()
103 button1->SetViewId(UI_TEST_HOR_001_BUTTON1); in UIKitSwipeViewTestHorizontal001()
104 swipe->Add(button1); in UIKitSwipeViewTestHorizontal001()
131 UILabelButton* button1 = new UILabelButton(); in UIKitSwipeViewTestHorizontal002() local
132 button1->SetPosition(0, 0, g_buttonW, g_buttonH); in UIKitSwipeViewTestHorizontal002()
133 button1->SetText("button1"); in UIKitSwipeViewTestHorizontal002()
168 UILabelButton* button1 = new UILabelButton(); UIKitSwipeViewTestHorizontal003() local
205 UILabelButton* button1 = new UILabelButton(); UIKitSwipeViewTestVer001() local
237 UILabelButton* button1 = new UILabelButton(); UIKitSwipeViewTestVer002() local
336 UILabelButton* button1 = new UILabelButton(); UIKitSwipeViewTestAlign001() local
[all...]
/foundation/window/window_manager_lite/test/
H A Dsample_window.cpp142 UIButton* button1 = new UIButton(); in AddButton() local
143 button1->SetPosition(30, 10); // 30: x, 10: y in AddButton()
144 button1->SetWidth(60); // 60: width in AddButton()
145 button1->SetHeight(60); // 60: height in AddButton()
146 button1->SetStyle(STYLE_BACKGROUND_COLOR, Color::Green().full); in AddButton()
147 button1->SetStyle(STYLE_BACKGROUND_OPA, 200); // 200: background opacity in AddButton()
148 button1->SetStyle(STYLE_BORDER_RADIUS, 3); // 3: border radius in AddButton()
149 g_rootView1->Add(button1); in AddButton()
/foundation/arkui/ui_lite/test/uitest/test_ui_analog_clock/
H A Dui_test_analog_clock.cpp214 UILabelButton* button1 = SetUpButton("切换模式", UI_TEST_SWITCH_MODE_1); in CreateButtons001() local
215 group->Add(button1); in CreateButtons001()
217 button1->SetPosition(curFace->GetWidth() + 58, 48, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons001()
220 new TestBtnOnClickChangeModeListener(static_cast<UIView*>(button1), clock)); in CreateButtons001()
222 button1->SetOnClickListener(changeModeListener_); in CreateButtons001()
324 UILabelButton* button1 = SetUpButton("切换模式", UI_TEST_SWITCH_MODE_2); in CreateButtons002() local
325 group->Add(button1); in CreateButtons002()
327 button1->SetPosition(curFace->GetWidth() + 58, 48, BUTTON_WIDTH, BUTTON_HEIGHT); in CreateButtons002()
330 new TestBtnOnClickChangeModeListener(static_cast<UIView*>(button1), clock)); in CreateButtons002()
332 button1 in CreateButtons002()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_input_event/
H A Dui_test_input_event.cpp400 UILabelButton* button1 = new UILabelButton(); in InnerBubbleDragTest() local
401 button1->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full); in InnerBubbleDragTest()
402 button1->SetText("button1"); in InnerBubbleDragTest()
403 button1->SetPosition(offset, offset, itemH3 * 2, itemH3); // 2: tow width in InnerBubbleDragTest()
404 childScroll->Add(button1); in InnerBubbleDragTest()
/foundation/arkui/ui_lite/test/uitest/test_event_injector/
H A Dui_test_event_injector.cpp347 UILabelButton* button1 = new UILabelButton(); in SetUpScrollView() local
348 button1->SetText("button1"); in SetUpScrollView()
349 button1->SetPosition(0, 0, SCROLL_BUTTON_W, SCROLL_BUTTON_H); in SetUpScrollView()
353 scrollTestView_->Add(button1); in SetUpScrollView()
/foundation/arkui/ui_lite/test/uitest/test_opacity/
H A Dui_test_opacity.cpp467 UILabelButton* button1 = new UILabelButton(); in UIKitOpacityTestUISwipeView001() local
468 button1->SetPosition(0, 0, BUTTON_WIDTH, BUTTON_HEIGHT >> 1); in UIKitOpacityTestUISwipeView001()
469 button1->SetText("button1"); in UIKitOpacityTestUISwipeView001()
470 swipe->Add(button1); in UIKitOpacityTestUISwipeView001()

Completed in 9 milliseconds