Home
last modified time | relevance | path

Searched refs:label2 (Results 1 - 10 of 10) sorted by relevance

/foundation/arkui/ui_lite/test/uitest/test_input_event/
H A Dui_test_input_event.cpp324 UILabel* label2 = new UILabel(); in InnerBubbleTest() local
325 parentContainer->Add(label2); in InnerBubbleTest()
326 label2->SetPosition(positionX_ + 2 * TEST_VIEW_GAP, 2 * GAP, TEXT_W, TEXT_H); // 2: tow gap in InnerBubbleTest()
327 label2->SetFont(DEFAULT_VECTOR_FONT_FILENAME, FONT_DEFAULT_SIZE); in InnerBubbleTest()
328 testView->SetLabel2(label2); in InnerBubbleTest()
331 SetViewAndContainerListeners(isBubble, parentContainer, testView, label1, label2); in InnerBubbleTest()
339 TestView* testView, UILabel* label1, UILabel* label2) in SetViewAndContainerListeners()
342 new TestOnClickListener(label2, const_cast<char*>("l-parent click"), isBubble); in SetViewAndContainerListeners()
349 new TestOnLongPressListener(label2, const_cast<char*>("l-parent long press"), isBubble); in SetViewAndContainerListeners()
356 label2, const_cas in SetViewAndContainerListeners()
338 SetViewAndContainerListeners(bool isBubble, OHOS::UIScrollView* parentContainer, TestView* testView, UILabel* label1, UILabel* label2) SetViewAndContainerListeners() argument
412 UILabel* label2 = new UILabel(); InnerBubbleDragTest() local
425 SetScrollsListeners(bool isBubble, OHOS::UIScrollView* parentScroll, OHOS::UIScrollView* childScroll, UILabel* label1, UILabel* label2) SetScrollsListeners() argument
[all...]
H A Dui_test_input_event.h441 TestView* testView, UILabel* label1, UILabel* label2);
443 OHOS::UIScrollView* childScroll, UILabel* label1, UILabel* label2);
/foundation/arkui/ui_lite/test/uitest/test_scroll_bar/
H A Dui_test_scroll_bar.cpp132 UILabelButton* label2 = new UILabelButton(); in UIKitScrollBarTESTScrollview001() local
133 scrollView_->Add(label2); in UIKitScrollBarTESTScrollview001()
134 label2->LayoutBottomToSibling("label1", LABEL_INTERVAL); in UIKitScrollBarTESTScrollview001()
135 label2->LayoutLeftOfParent(LABEL_LEFT_INTERVAL); in UIKitScrollBarTESTScrollview001()
136 label2->SetWidth(LABEL_WIDTH); in UIKitScrollBarTESTScrollview001()
137 label2->SetHeight(LABEL_HEIGHT); in UIKitScrollBarTESTScrollview001()
138 label2->SetViewId("label2"); in UIKitScrollBarTESTScrollview001()
139 label2->SetText("label2"); in UIKitScrollBarTESTScrollview001()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_font/
H A Dui_test_font.cpp343 UILabel* label2 = new UILabel(); in UIKitFontTestBaseline001() local
344 label2->SetPosition(positionX_ + (LABEL_WIDTH / 2), positionY_); // 2 : half in UIKitFontTestBaseline001()
345 label2->Resize(LABEL_WIDTH, LABEL_HEIGHT); in UIKitFontTestBaseline001()
348 label2->SetFont(ROBOTO_CONDENSED_REGULAR, FONT_SIZE); in UIKitFontTestBaseline001()
350 label2->SetFontId(F_ROBOTOCONDENSED_REGULAR_30_4); in UIKitFontTestBaseline001()
352 label2->SetText("hello, uikit"); in UIKitFontTestBaseline001()
355 container_->Add(label2); in UIKitFontTestBaseline001()
377 UILabel* label2 = new UILabel(); in UIKitFontTestBaseline002() local
378 label2->SetPosition(positionX_ + (LABEL_WIDTH / 2), positionY_); // 2 : half in UIKitFontTestBaseline002()
379 label2 in UIKitFontTestBaseline002()
411 UILabel* label2 = new UILabel(); UIKitFontTestLineHeight001() local
445 UILabel* label2 = new UILabel(); UIKitFontTestLineHeight002() local
[all...]
/foundation/arkui/ui_lite/test/uitest/test_label/
H A Dui_test_label.cpp125 UILabel* label2 = new UILabel(); in CreateLabels() local
126 uiViewGroup->Add(label2); in CreateLabels()
127 label2->SetPosition(24, 107, 288, 48); // 24: x-coordinate, 107: y-coordinate, 288: width; 48: height in CreateLabels()
128 label2->SetText("水平对齐方式"); in CreateLabels()
129 label2->SetFont(DEFAULT_VECTOR_FONT_FILENAME, FONT_DEFAULT_SIZE); in CreateLabels()
168 UILabel* label2 = new UILabel(); in UIKitUILabeTestDisplay002() local
169 uiViewGroup->Add(label2); in UIKitUILabeTestDisplay002()
170 label2->SetPosition(24, 107, 288, 48); // 24: x-coordinate, 107: y-coordinate, 288: width; 48: height in UIKitUILabeTestDisplay002()
171 label2->SetText("竖直对齐方式"); in UIKitUILabeTestDisplay002()
172 label2 in UIKitUILabeTestDisplay002()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_screenshot/
H A Dui_test_screenshot.cpp106 UILabel* label2 = GetTitleLabel("显示截屏图片 "); in UIKit_SCREENSHOT_TEST_001() local
107 container_->Add(label2); in UIKit_SCREENSHOT_TEST_001()
108 label2->SetPosition(VIEW_DISTANCE_TO_LEFT_SIDE, 255, // 255: y-coordinate in UIKit_SCREENSHOT_TEST_001()
/foundation/arkui/ui_lite/test/uitest/test_layout/
H A Dui_test_basic_layout.cpp135 UILabel* label2 = new UILabel(); in UIKitLayoutTestBasicLayout001() local
136 uiViewGroup2->Add(label2); in UIKitLayoutTestBasicLayout001()
138 label2->SetPosition(VIEW_DISTANCE_TO_LEFT_SIDE2, TEXT_DISTANCE_TO_TOP_SIDE, 288, 48); in UIKitLayoutTestBasicLayout001()
139 label2->SetText("布局效果"); in UIKitLayoutTestBasicLayout001()
140 label2->SetFont(DEFAULT_VECTOR_FONT_FILENAME, FONT_DEFAULT_SIZE); in UIKitLayoutTestBasicLayout001()
/foundation/arkui/ui_lite/test/uitest/test_opacity/
H A Dui_test_opacity.cpp113 UILabel* label2 = CreateTestCaseUILabel("轻量级GUI-100", 100); // 100: opacity in UIKitOpacityTestUILabel001() local
114 label2->SetX(220); // 220: width in UIKitOpacityTestUILabel001()
116 group->Add(label2); in UIKitOpacityTestUILabel001()
128 UILabel* label2 = CreateTestCaseUILabel("轻量级GUI-100", -1); // -1: opacity in UIKitOpacityTestUILabel002() local
129 label2->SetX(220); // 220: width in UIKitOpacityTestUILabel002()
131 group->Add(label2); in UIKitOpacityTestUILabel002()
233 UIArcLabel* label2 = CreateTestCaseUIArcLabel("01234567", 100); // 100: opacity in UIKitOpacityTestUIArcLabel001() local
234 label2->SetArcTextCenter(CENTER_X + 200, CENTER_Y + 20); // 200: width 20 : height in UIKitOpacityTestUIArcLabel001()
235 group->Add(label2); in UIKitOpacityTestUIArcLabel001()
/foundation/arkui/ui_lite/test/uitest/test_image/
H A Dui_test_image.cpp110 UILabel* label2 = new UILabel(); in UIKitUIImageTestSetImage001() local
112 label2->SetPosition(160, g_height + 65, 300, TITLE_LABEL_DEFAULT_HEIGHT); in UIKitUIImageTestSetImage001()
113 label2->SetText(GetCharByImageSrcType(imageView->GetSrcType())); in UIKitUIImageTestSetImage001()
114 label2->SetFont(DEFAULT_VECTOR_FONT_FILENAME, FONT_DEFAULT_SIZE); in UIKitUIImageTestSetImage001()
115 label2->SetStyle(STYLE_TEXT_COLOR, Color::Black().full); in UIKitUIImageTestSetImage001()
116 label2->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full); in UIKitUIImageTestSetImage001()
117 label2->SetStyle(STYLE_BACKGROUND_OPA, OPA_OPAQUE); in UIKitUIImageTestSetImage001()
119 container_->Add(label2); in UIKitUIImageTestSetImage001()
/foundation/arkui/ui_lite/test/uitest/test_ui_dump_dom_tree/
H A Dui_test_dump_dom.cpp392 UILabel* label2 = GetTitleLabel("UILabel"); in UIKitTestDumpDom005() local
393 label2->SetFont(DEFAULT_VECTOR_FONT_FILENAME, BUTTON_LABEL_SIZE); in UIKitTestDumpDom005()
394 label2->SetPosition(48, 58, 90, 29); // 48: x position, 58: y position, 90: width, 29: height in UIKitTestDumpDom005()
395 label2->SetViewId("dump_label"); in UIKitTestDumpDom005()
396 group3->Add(label2); in UIKitTestDumpDom005()

Completed in 8 milliseconds