Revert "[4.0] Line spacing for TextLabel and vertical line alignment feature" 01/165201/1 accepted/tizen/4.0/unified/20171228.065049 submit/tizen_4.0/20171227.063609
authorhuiyu,eun <huiyu.eun@samsung.com>
Wed, 27 Dec 2017 04:39:10 +0000 (13:39 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Wed, 27 Dec 2017 05:33:04 +0000 (14:33 +0900)
This reverts commit 332c759a5024fd462f1ec0cec8a0dc3ae2ec829e.

Change-Id: If99593fb091b7660ccbd9f4dacc4aee71a551e8c

20 files changed:
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Controller.cpp
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Layout.cpp
automated-tests/src/dali-toolkit-internal/utc-Dali-Text-Typesetter.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/devel-api/controls/text-controls/text-label-devel.h
dali-toolkit/devel-api/text/text-enumerations-devel.h
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-editor-impl.h
dali-toolkit/internal/controls/text-controls/text-label-impl.cpp
dali-toolkit/internal/text/layouts/layout-engine.cpp
dali-toolkit/internal/text/line-run.h
dali-toolkit/internal/text/rendering/text-typesetter.cpp
dali-toolkit/internal/text/rendering/view-model.cpp
dali-toolkit/internal/text/rendering/view-model.h
dali-toolkit/internal/text/text-controller.cpp
dali-toolkit/internal/text/text-controller.h
dali-toolkit/internal/text/text-model-interface.h
dali-toolkit/internal/text/text-model.cpp
dali-toolkit/internal/text/text-model.h
dali-toolkit/internal/visuals/text/text-visual.h

index 6c63ce1..02f2e66 100644 (file)
@@ -535,125 +535,3 @@ int UtcDaliTextControllerSetGetTapLongPressAction(void)
 
   END_TEST;
 }
-
-int UtcDaliTextControllerSetGetLineSpacingProperty(void)
-{
-  tet_infoline(" UtcDaliTextControllerSetGetLineSpacingProperty");
-  ToolkitTestApplication application;
-
-  const Size size( Dali::Stage::GetCurrent().GetSize() );
-
-  // single line text
-  const std::string textSingle("A Quick Brown Fox Jumps Over The Lazy Dog");
-
-  // multi-line text
-  const std::string textMulti("A Quick Brown\nFox Jumps Over\nThe Lazy Dog");
-
-  // Creates a text controller.
-  ControllerPtr controller = Controller::New();
-
-  ConfigureTextLabel(controller);
-
-  // single line, line spacing = 0px
-  {
-    const float EXPECTED_SPACING = 0.0f;
-    const Vector2 EXPECTED_LAYOUT_SIZE( 326.0f, 19.0f);
-    const Vector3 EXPECTED_NATURAL_SIZE( 326.0f, 20.0f, 0.0f );
-
-    controller->SetText(textSingle);
-    controller->Relayout(size);
-    controller->SetMultiLineEnabled( false );
-
-    Vector3 naturalSize  = controller->GetNaturalSize();
-    Vector2 layoutSize   = controller->GetTextModel()->GetLayoutSize();
-    float lineSpacing0 = controller->GetDefaultLineSpacing();
-
-    DALI_TEST_EQUALS( EXPECTED_SPACING, lineSpacing0, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_LAYOUT_SIZE, layoutSize, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_NATURAL_SIZE, naturalSize, TEST_LOCATION );
-  }
-
-  // single line, line spacing = 20px
-  {
-    const float EXPECTED_SPACING = 20.0f;
-    const Vector2 EXPECTED_LAYOUT_SIZE( 326.0f, 19.0f );
-    const Vector3 EXPECTED_NATURAL_SIZE( 326.0f, 40.0f, 0.0f );
-
-    controller->SetText(textSingle);
-    controller->Relayout(size);
-    controller->SetDefaultLineSpacing( 20 );
-    controller->SetMultiLineEnabled( false );
-
-    Vector3 naturalSize  = controller->GetNaturalSize();
-    Vector2 layoutSize   = controller->GetTextModel()->GetLayoutSize();
-    float lineSpacing0 = controller->GetDefaultLineSpacing();
-
-    DALI_TEST_EQUALS( EXPECTED_SPACING, lineSpacing0, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_LAYOUT_SIZE, layoutSize, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_NATURAL_SIZE, naturalSize, TEST_LOCATION );
-  }
-
-  // multi-line, line spacing = 0px
-  {
-    const float EXPECTED_SPACING = 0.0f;
-    const Vector2 EXPECTED_LAYOUT_SIZE( 318.0f, 39.0f );
-    const Vector3 EXPECTED_NATURAL_SIZE( 116.0f, 58.0f, 0.0f );
-
-    controller->SetText(textMulti);
-    controller->Relayout(size);
-    controller->SetMultiLineEnabled( true );
-    controller->SetDefaultLineSpacing( 0 );
-
-    Vector3 naturalSize  = controller->GetNaturalSize();
-    Vector2 layoutSize   = controller->GetTextModel()->GetLayoutSize();
-    float lineSpacing0 = controller->GetDefaultLineSpacing();
-
-    DALI_TEST_EQUALS( EXPECTED_SPACING, lineSpacing0, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_LAYOUT_SIZE, layoutSize, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_NATURAL_SIZE, naturalSize, TEST_LOCATION );
-  }
-
-  // multi-line, line spacing = 20px
-  {
-    const float EXPECTED_SPACING = 20.0f;
-    const Vector2 EXPECTED_LAYOUT_SIZE( 115.0f, 57.0f );
-    const Vector3 EXPECTED_NATURAL_SIZE( 116.0f, 118.0f, 0.0f );
-
-    controller->SetText(textMulti);
-    controller->Relayout(size);
-    controller->SetMultiLineEnabled( true );
-    controller->SetDefaultLineSpacing( 20 );
-
-    Vector3 naturalSize  = controller->GetNaturalSize();
-    Vector2 layoutSize   = controller->GetTextModel()->GetLayoutSize();
-    float lineSpacing0 = controller->GetDefaultLineSpacing();
-
-    DALI_TEST_EQUALS( EXPECTED_SPACING, lineSpacing0, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_LAYOUT_SIZE, layoutSize, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_NATURAL_SIZE, naturalSize, TEST_LOCATION );
-  }
-
-  // multi-line, line spacing = 30px
-  {
-    const float EXPECTED_SPACING = 30.0f;
-    const Vector2 EXPECTED_LAYOUT_SIZE( 115.0f, 117.0f );
-    const Vector3 EXPECTED_NATURAL_SIZE( 116.0f, 148.0f, 0.0f );
-
-    controller->SetText(textMulti);
-    controller->Relayout(size);
-    controller->SetMultiLineEnabled( true );
-    controller->SetDefaultLineSpacing( 30 );
-
-    Vector3 naturalSize  = controller->GetNaturalSize();
-    Vector2 layoutSize   = controller->GetTextModel()->GetLayoutSize();
-    float lineSpacing0 = controller->GetDefaultLineSpacing();
-
-    DALI_TEST_EQUALS( EXPECTED_SPACING, lineSpacing0, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_LAYOUT_SIZE, layoutSize, TEST_LOCATION );
-    DALI_TEST_EQUALS( EXPECTED_NATURAL_SIZE, naturalSize, TEST_LOCATION );
-  }
-
-
-  END_TEST;
-
-}
\ No newline at end of file
index 48c4476..b521976 100644 (file)
@@ -716,7 +716,6 @@ int UtcDaliTextLayoutSmallTextArea02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -807,7 +806,6 @@ int UtcDaliTextLayoutMultilineText01(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -820,7 +818,6 @@ int UtcDaliTextLayoutMultilineText01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -833,7 +830,6 @@ int UtcDaliTextLayoutMultilineText01(void)
     -4.f,
     5.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -846,7 +842,6 @@ int UtcDaliTextLayoutMultilineText01(void)
     -4.f,
     5.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -859,7 +854,6 @@ int UtcDaliTextLayoutMultilineText01(void)
     -4.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1007,7 +1001,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1020,7 +1013,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1033,7 +1025,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1046,7 +1037,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1059,7 +1049,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1072,7 +1061,6 @@ int UtcDaliTextLayoutMultilineText02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1154,7 +1142,6 @@ int UtcDaliTextLayoutMultilineText03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1167,7 +1154,6 @@ int UtcDaliTextLayoutMultilineText03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1180,7 +1166,6 @@ int UtcDaliTextLayoutMultilineText03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1268,7 +1253,6 @@ int UtcDaliTextLayoutMultilineText04(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1371,7 +1355,6 @@ int UtcDaliTextLayoutMultilineText05(void)
     -8.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1384,7 +1367,6 @@ int UtcDaliTextLayoutMultilineText05(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1703,7 +1685,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1716,7 +1697,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1729,7 +1709,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1742,7 +1721,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1755,7 +1733,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1768,7 +1745,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1781,7 +1757,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1794,7 +1769,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1807,7 +1781,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1820,7 +1793,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1833,7 +1805,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1846,7 +1817,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1859,7 +1829,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1872,7 +1841,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1885,7 +1853,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1898,7 +1865,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1911,7 +1877,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1924,7 +1889,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -1937,7 +1901,6 @@ int UtcDaliTextUpdateLayout01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2278,7 +2241,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2291,7 +2253,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2304,7 +2265,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2317,7 +2277,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2330,7 +2289,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2343,7 +2301,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2356,7 +2313,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2369,7 +2325,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2382,7 +2337,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2395,7 +2349,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2408,7 +2361,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2421,7 +2373,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2434,7 +2385,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2447,7 +2397,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2460,7 +2409,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2473,7 +2421,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2486,7 +2433,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2499,7 +2445,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2512,7 +2457,6 @@ int UtcDaliTextUpdateLayout02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2853,7 +2797,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2866,7 +2809,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2879,7 +2821,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2892,7 +2833,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2905,7 +2845,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2918,7 +2857,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2931,7 +2869,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2944,7 +2881,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2957,7 +2893,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2970,7 +2905,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2983,7 +2917,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -2996,7 +2929,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3009,7 +2941,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3022,7 +2953,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3035,7 +2965,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3048,7 +2977,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3061,7 +2989,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3074,7 +3001,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3087,7 +3013,6 @@ int UtcDaliTextUpdateLayout03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3179,7 +3104,6 @@ int UtcDaliTextLayoutEllipsis01(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     true
   };
@@ -3256,7 +3180,6 @@ int UtcDaliTextLayoutEllipsis02(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3269,7 +3192,6 @@ int UtcDaliTextLayoutEllipsis02(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     true
   };
@@ -3414,7 +3336,6 @@ int UtcDaliTextLayoutEllipsis03(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     true
   };
@@ -3557,7 +3478,6 @@ int UtcDaliTextLayoutEllipsis04(void)
     -5.f,
     3.f,
     0.f,
-    0.f,
     false,
     false
   };
@@ -3570,7 +3490,6 @@ int UtcDaliTextLayoutEllipsis04(void)
     -5.f,
     4.f,
     0.f,
-    0.f,
     false,
     true
   };
@@ -3647,7 +3566,6 @@ int UtcDaliTextLayoutEllipsis05(void)
     -5.f,
     0.f,
     0.f,
-    0.f,
     false,
     true
   };
index 14f352c..50ca75d 100644 (file)
@@ -141,57 +141,3 @@ int UtcDaliTextRenderingControllerRender(void)
   tet_result(TET_PASS);
   END_TEST;
 }
-
-int UtcDaliTextTypesetterVerticalLineAlignment(void)
-{
-  tet_infoline(" UtcDaliTextTypesetter");
-  ToolkitTestApplication application;
-
-  // Creates a text controller.
-  ControllerPtr controller = Controller::New();
-
-  // Configures the text controller similarly to the text-label.
-  ConfigureTextLabel( controller );
-
-  // Sets the text.
-  controller->SetMarkupProcessorEnabled( true );
-  controller->SetText( "<font family='TizenSansRegular'>Hello world</font>" );
-
-  // Creates the text's model and relais-out the text.
-  const Size relayoutSize( 120.f, 60.f );
-  controller->Relayout( relayoutSize );
-
-  // Tests the rendering controller has been created.
-  TypesetterPtr renderingController = Typesetter::New( controller->GetTextModel() );
-  DALI_TEST_CHECK( renderingController );
-
-  {
-    controller->SetVerticalLineAlignment(Dali::Toolkit::DevelText::VerticalLineAlignment::TOP);
-    controller->Relayout(relayoutSize);
-
-    // Renders the text and creates the final bitmap.
-    auto bitmap = renderingController->Render(relayoutSize);
-    DALI_TEST_EQUALS( 60u, bitmap.GetHeight(), TEST_LOCATION );
-  }
-
-  {
-    controller->SetVerticalLineAlignment(Dali::Toolkit::DevelText::VerticalLineAlignment::MIDDLE);
-    controller->Relayout(relayoutSize);
-
-    // Renders the text and creates the final bitmap.
-    auto bitmap = renderingController->Render(relayoutSize);
-    DALI_TEST_EQUALS( 60u, bitmap.GetHeight(), TEST_LOCATION );
-  }
-
-  {
-    controller->SetVerticalLineAlignment(Dali::Toolkit::DevelText::VerticalLineAlignment::BOTTOM);
-    controller->Relayout(relayoutSize);
-
-    // Renders the text and creates the final bitmap.
-    auto bitmap = renderingController->Render(relayoutSize);
-    DALI_TEST_EQUALS( 60u, bitmap.GetHeight(), TEST_LOCATION );
-  }
-
-  tet_result(TET_PASS);
-  END_TEST;
-}
\ No newline at end of file
index cf36a87..f8d7497 100644 (file)
@@ -429,35 +429,14 @@ int UtcDaliToolkitTextLabelSetPropertyP(void)
   label.SetProperty( TextLabel::Property::AUTO_SCROLL_STOP_MODE, TextLabel::AutoScrollStopMode::FINISH_LOOP );
   DALI_TEST_EQUALS( STOP_FINISH_LOOP, label.GetProperty<std::string>( TextLabel::Property::AUTO_SCROLL_STOP_MODE ), TEST_LOCATION );
 
-  // test natural size with multi-line and line spacing
-  {
-    TextLabel label3 = TextLabel::New("Some text here\nend there\nend here");
-    Vector3 expected0(414.f, 192.f, 0.0f);
-    Vector3 expected1(414.f, 252.f, 0.0f);
-    label3.SetProperty(TextLabel::Property::MULTI_LINE, true);
-    label3.SetProperty(TextLabel::Property::LINE_SPACING, 0);
-    DALI_TEST_EQUALS(expected0, label3.GetNaturalSize(), TEST_LOCATION);
-    label3.SetProperty(TextLabel::Property::LINE_SPACING, 20);
-    DALI_TEST_EQUALS(expected1, label3.GetNaturalSize(), TEST_LOCATION);
-  }
 
-  // single line, line spacing must not affect natural size
-  {
-    const Vector3 expected0(948.f, 64.f, 0.0f);
-    const Vector3 expected1(948.f, 84.f, 0.0f);
-    TextLabel label3 = TextLabel::New("Some text here end there end here");
-    label3.SetProperty(TextLabel::Property::MULTI_LINE, false);
-    label3.SetProperty(TextLabel::Property::LINE_SPACING, 0);
-    DALI_TEST_EQUALS(expected0, label3.GetNaturalSize(), TEST_LOCATION);
-    label3.SetProperty(TextLabel::Property::LINE_SPACING, 20);
-    DALI_TEST_EQUALS(expected1, label3.GetNaturalSize(), TEST_LOCATION);
-  }
   // Check the line spacing property
   DALI_TEST_EQUALS( label.GetProperty<float>( TextLabel::Property::LINE_SPACING ), 0.0f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
   label.SetProperty( TextLabel::Property::LINE_SPACING, 10.f );
   DALI_TEST_EQUALS( label.GetProperty<float>( TextLabel::Property::LINE_SPACING ), 10.0f, Math::MACHINE_EPSILON_1000, TEST_LOCATION );
 
   // Check the underline property
+
   underlineMapSet.Clear();
   underlineMapSet.Insert( "enable", "true" );
   underlineMapSet.Insert( "color", "red" );
@@ -1241,26 +1220,3 @@ int UtcDaliToolkitTextlabelTextDirection(void)
 
   END_TEST;
 }
-
-int UtcDaliToolkitTextlabelVerticalLineAlignment(void)
-{
-  ToolkitTestApplication application;
-  tet_infoline(" UtcDaliToolkitTextlabelVerticalLineAlignment");
-
-  TextLabel label = TextLabel::New();
-
-  label.SetProperty( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, DevelText::VerticalLineAlignment::TOP  );
-  label.SetProperty( TextLabel::Property::TEXT, "Hello world" );
-  label.SetProperty( TextLabel::Property::POINT_SIZE, 15 );
-  label.SetProperty( TextLabel::Property::LINE_SPACING, 12 );
-  Stage::GetCurrent().Add( label );
-  DALI_TEST_EQUALS( label.GetProperty< int >( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT ), static_cast< int >( Toolkit::DevelText::VerticalLineAlignment::TOP ), TEST_LOCATION );
-
-  label.SetProperty( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, DevelText::VerticalLineAlignment::MIDDLE  );
-  DALI_TEST_EQUALS( label.GetProperty< int >( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT ), static_cast< int >( Toolkit::DevelText::VerticalLineAlignment::MIDDLE ), TEST_LOCATION );
-
-  label.SetProperty( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, DevelText::VerticalLineAlignment::BOTTOM  );
-  DALI_TEST_EQUALS( label.GetProperty< int >( DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT ), static_cast< int >( Toolkit::DevelText::VerticalLineAlignment::BOTTOM ), TEST_LOCATION );
-
-  END_TEST;
-}
\ No newline at end of file
index 3238c61..2838a00 100644 (file)
@@ -67,19 +67,10 @@ namespace Property
 
     /**
      * @brief The direction of the layout.
-     * @details Name "textDirection", type [Type](@ref Dali::Toolkit::DevelText::TextDirection::Type) (Property::INTEGER), Read/Write
-     * @note The text direction can be changed only by replacing the text itself.
+     * @details Name "textDirection", type Property::Integer, Read-Only.
      * @see TextDirection::Type for supported values.
      */
     TEXT_DIRECTION,
-
-    /**
-     * @brief Alignment of text within area of single line
-     * @details Name "verticalLineAlignment", type [Type](@ref Dali::Toolkit::DevelText::VerticalLineAlignment::Type) (Property::INTEGER), Read/Write
-     * @note The default value is TOP
-     * @see VerticalLineAlignment::Type for supported values
-     */
-    VERTICAL_LINE_ALIGNMENT,
   };
 
 } // namespace Property
index 4e9b278..5062417 100644 (file)
@@ -38,18 +38,6 @@ enum Type
 
 } // namespace TextDirection
 
-namespace VerticalLineAlignment
-{
-
-enum Type
-{
-  TOP,
-  MIDDLE,
-  BOTTOM
-};
-
-} // namespace VerticalLineAlignment
-
 } // namespace DevelText
 
 } // namespace Toolkit
index 77974d5..a75d703 100644 (file)
@@ -511,14 +511,8 @@ void TextEditor::SetProperty( BaseObject* object, Property::Index index, const P
       {
         if( impl.mController )
         {
-
-          // The line spacing isn't supported by the TextEditor. Since it's supported
-          // by the TextLabel for now it must be ignored. The property is being shadowed
-          // locally so its value isn't affected.
           const float lineSpacing = value.Get<float>();
-          impl.mLineSpacing = lineSpacing;
-          // set it to 0.0 due to missing implementation
-          impl.mController->SetDefaultLineSpacing( 0.0f );
+          impl.mController->SetDefaultLineSpacing( lineSpacing );
           impl.mRenderer.Reset();
         }
         break;
@@ -979,9 +973,7 @@ Property::Value TextEditor::GetProperty( BaseObject* object, Property::Index ind
       {
         if( impl.mController )
         {
-          // LINE_SPACING isn't implemented for the TextEditor. Returning
-          // only shadowed value, not the real one.
-          value = impl.mLineSpacing;
+          value = impl.mController->GetDefaultLineSpacing();
         }
         break;
       }
@@ -1807,7 +1799,6 @@ TextEditor::TextEditor()
   mIdleCallback( NULL ),
   mAlignmentOffset( 0.f ),
   mScrollAnimationDuration( 0.f ),
-  mLineSpacing( 0.f ),
   mRenderingBackend( DEFAULT_RENDERING_BACKEND ),
   mHasBeenStaged( false ),
   mScrollAnimationEnabled( false ),
index a3a8854..f121799 100644 (file)
@@ -300,7 +300,6 @@ private: // Data
 
   float mAlignmentOffset;
   float mScrollAnimationDuration;
-  float mLineSpacing;
   int mRenderingBackend;
   bool mHasBeenStaged:1;
   bool mScrollAnimationEnabled:1;
index 3f420b5..cd96e00 100644 (file)
@@ -116,7 +116,6 @@ DALI_PROPERTY_REGISTRATION( Toolkit,           TextLabel, "autoScrollStopMode",
 DALI_PROPERTY_REGISTRATION_READ_ONLY( Toolkit, TextLabel, "lineCount",                 INTEGER, LINE_COUNT                 )
 DALI_PROPERTY_REGISTRATION( Toolkit,           TextLabel, "lineWrapMode",              INTEGER, LINE_WRAP_MODE             )
 DALI_DEVEL_PROPERTY_REGISTRATION_READ_ONLY( Toolkit, TextLabel, "textDirection",       INTEGER, TEXT_DIRECTION             )
-DALI_DEVEL_PROPERTY_REGISTRATION( Toolkit, TextLabel, "verticalLineAlignment",         INTEGER, VERTICAL_LINE_ALIGNMENT    )
 DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT( Toolkit, TextLabel, "textColor",      Color::BLACK,     TEXT_COLOR     )
 DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit,    TextLabel, "textColorRed",   TEXT_COLOR_RED,   TEXT_COLOR, 0  )
 DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit,    TextLabel, "textColorGreen", TEXT_COLOR_GREEN, TEXT_COLOR, 1  )
@@ -411,12 +410,8 @@ void TextLabel::SetProperty( BaseObject* object, Property::Index index, const Pr
         if( impl.mController )
         {
           const float lineSpacing = value.Get<float>();
-
-          // Don't trigger anything if the line spacing didn't change
-          if( impl.mController->SetDefaultLineSpacing( lineSpacing ) )
-          {
-            impl.mTextUpdateNeeded = true;
-          }
+          impl.mController->SetDefaultLineSpacing( lineSpacing );
+          impl.mTextUpdateNeeded = true;
         }
         break;
       }
@@ -494,37 +489,8 @@ void TextLabel::SetProperty( BaseObject* object, Property::Index index, const Pr
         }
         break;
       }
-      case Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT:
-      {
-        if( impl.mController && impl.mController->GetTextModel() )
-        {
-          DevelText::VerticalLineAlignment::Type alignment = static_cast<DevelText::VerticalLineAlignment::Type>( value.Get<int>() );
-
-          impl.mController->SetVerticalLineAlignment( alignment );
-
-          // Property doesn't affect the layout, only Visual must be updated
-          TextVisual::EnableRendererUpdate( impl.mVisual );
-
-          // No need to trigger full re-layout. Instead call UpdateRenderer() directly
-          TextVisual::UpdateRenderer( impl.mVisual );
-        }
-        break;
-      }
-    }
-
-    // Request relayout when text update is needed. It's necessary to call it
-    // as changing the property not via UI interaction brings no effect if only
-    // the mTextUpdateNeeded is changed.
-    if( impl.mTextUpdateNeeded )
-    {
-      // need to request relayout as size of text may have changed
-      impl.RequestTextRelayout();
     }
   }
-
-
-
-
 }
 
 Property::Value TextLabel::GetProperty( BaseObject* object, Property::Index index )
@@ -795,14 +761,6 @@ Property::Value TextLabel::GetProperty( BaseObject* object, Property::Index inde
         }
         break;
       }
-      case Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT:
-      {
-        if( impl.mController )
-        {
-          value = impl.mController->GetVerticalLineAlignment();
-        }
-        break;
-      }
     }
   }
 
index af831cb..59db8b0 100644 (file)
@@ -70,8 +70,7 @@ struct LineLayout
     extraWidth( 0.f ),
     wsLengthEndOfLine( 0.f ),
     ascender( 0.f ),
-    descender( MAX_FLOAT ),
-    lineSpacing( 0.f )
+    descender( MAX_FLOAT )
   {}
 
   ~LineLayout()
@@ -101,7 +100,6 @@ struct LineLayout
   float          wsLengthEndOfLine;  ///< The length of the white spaces at the end of the line.
   float          ascender;           ///< The maximum ascender of all fonts in the line.
   float          descender;          ///< The minimum descender of all fonts in the line.
-  float          lineSpacing;        ///< The line spacing
 };
 
 struct Engine::Impl
@@ -135,9 +133,6 @@ struct Engine::Impl
     {
       lineLayout.descender = fontMetrics.descender;
     }
-
-    // set the line spacing
-    lineLayout.lineSpacing = mDefaultLineSpacing;
   }
 
   /**
@@ -570,7 +565,7 @@ struct Engine::Impl
         // Get the last line and layout it again with the 'completelyFill' flag to true.
         lineRun = linesBuffer + ( numberOfLines - 1u );
 
-        penY -= layout.ascender - lineRun->descender + lineRun->lineSpacing;
+        penY -= layout.ascender - lineRun->descender;
 
         ellipsisLayout.glyphIndex = lineRun->glyphRun.glyphIndex;
       }
@@ -603,7 +598,7 @@ struct Engine::Impl
       layoutSize.width = layoutParameters.boundingBox.width;
       if( layoutSize.height < Math::MACHINE_EPSILON_1000 )
       {
-        layoutSize.height += ( lineRun->ascender + -lineRun->descender ) + lineRun->lineSpacing;
+        layoutSize.height += ( lineRun->ascender + -lineRun->descender );
       }
 
       SetGlyphPositions( layoutParameters.glyphsBuffer + lineRun->glyphRun.glyphIndex,
@@ -641,8 +636,6 @@ struct Engine::Impl
     lineRun.glyphRun.numberOfGlyphs = layout.numberOfGlyphs;
     lineRun.characterRun.characterIndex = layout.characterIndex;
     lineRun.characterRun.numberOfCharacters = layout.numberOfCharacters;
-    lineRun.lineSpacing = mDefaultLineSpacing;
-
     if( isLastLine && !layoutParameters.isLastNewParagraph )
     {
       const float width = layout.extraBearing + layout.length + layout.extraWidth + layout.wsLengthEndOfLine;
@@ -673,7 +666,7 @@ struct Engine::Impl
       layoutSize.width = lineRun.width;
     }
 
-    layoutSize.height += ( lineRun.ascender + -lineRun.descender ) + lineRun.lineSpacing;
+    layoutSize.height += ( lineRun.ascender + -lineRun.descender );
   }
 
   /**
@@ -713,9 +706,8 @@ struct Engine::Impl
     lineRun.alignmentOffset = 0.f;
     lineRun.direction = !RTL;
     lineRun.ellipsis = false;
-    lineRun.lineSpacing = mDefaultLineSpacing;
 
-    layoutSize.height += ( lineRun.ascender + -lineRun.descender ) + lineRun.lineSpacing;
+    layoutSize.height += ( lineRun.ascender + -lineRun.descender );
   }
 
   /**
@@ -739,7 +731,7 @@ struct Engine::Impl
         layoutSize.width = line.width;
       }
 
-      layoutSize.height += ( line.ascender + -line.descender ) + line.lineSpacing;
+      layoutSize.height += ( line.ascender + -line.descender );
     }
   }
 
@@ -975,7 +967,7 @@ struct Engine::Impl
                            glyphPositionsBuffer + index - layoutParameters.startGlyphIndex );
 
         // Updates the vertical pen's position.
-        penY += -layout.descender + layout.lineSpacing + mDefaultLineSpacing;
+        penY += -layout.descender;
 
         // Increase the glyph index.
         index = nextIndex;
@@ -1208,7 +1200,6 @@ struct Engine::Impl
     line.alignmentOffset = 0.f;
     line.direction = !RTL;
     line.ellipsis = false;
-    line.lineSpacing = mDefaultLineSpacing;
   }
 
   Type mLayout;
index 9023121..52df79e 100644 (file)
@@ -43,7 +43,6 @@ struct LineRun
   float              descender;       ///< The line's descender.
   float              extraLength;     ///< The length of the white spaces at the end of the line.
   float              alignmentOffset; ///< The horizontal alignment offset.
-  float              lineSpacing;     ///< The line's spacing
   CharacterDirection direction : 1;   ///< Direction of the first character of the paragraph.
   bool               ellipsis  : 1;   ///< Wheter ellipsis is added to the line.
 };
index c46a8c1..410b782 100755 (executable)
 #include <dali-toolkit/internal/text/rendering/text-typesetter.h>
 
 // EXTERNAL INCLUDES
-#include <memory.h>
 #include <dali/devel-api/text-abstraction/font-client.h>
+#include <memory.h>
 #include <dali/public-api/common/constants.h>
 
 // INTERNAL INCLUDES
 #include <dali-toolkit/internal/text/rendering/view-model.h>
-#include <dali-toolkit/devel-api/controls/text-controls/text-label-devel.h>
 
 namespace Dali
 {
@@ -299,29 +298,6 @@ PixelData Typesetter::Render( const Vector2& size, RenderBehaviour behaviour, bo
     }
   }
 
-  // Calculate vertical line alignment
-  switch( mModel->GetVerticalLineAlignment() )
-  {
-    case DevelText::VerticalLineAlignment::TOP:
-    {
-      break;
-    }
-    case DevelText::VerticalLineAlignment::MIDDLE:
-    {
-      const auto& line = *mModel->GetLines();
-      penY -= line.descender;
-      penY += static_cast<int>(line.lineSpacing*0.5f + line.descender);
-      break;
-    }
-    case DevelText::VerticalLineAlignment::BOTTOM:
-    {
-      const auto& line = *mModel->GetLines();
-      const auto lineHeight = line.ascender + (-line.descender) + line.lineSpacing;
-      penY += static_cast<int>(lineHeight - (line.ascender - line.descender));
-      break;
-    }
-  }
-
   // Generate the image buffers of the text for each different style first,
   // then combine all of them together as one final image buffer. We try to
   // do all of these in CPU only, so that once the final texture is generated,
@@ -455,12 +431,6 @@ Devel::PixelBuffer Typesetter::CreateImageBuffer( const unsigned int bufferWidth
     // Increases the vertical offset with the line's ascender.
     glyphData.verticalOffset += static_cast<int>( line.ascender );
 
-    // Include line spacing after first line
-    if( lineIndex > 0u )
-    {
-      glyphData.verticalOffset += static_cast<int>( line.lineSpacing );
-    }
-
     // Retrieves the glyph's outline width
     float outlineWidth = mModel->GetOutlineWidth();
 
index 4d87891..1721a1c 100755 (executable)
@@ -71,11 +71,6 @@ VerticalAlignment::Type ViewModel::GetVerticalAlignment() const
   return mModel->GetVerticalAlignment();
 }
 
-DevelText::VerticalLineAlignment::Type ViewModel::GetVerticalLineAlignment() const
-{
-  return mModel->GetVerticalLineAlignment();
-}
-
 bool ViewModel::IsTextElideEnabled() const
 {
   return mModel->IsTextElideEnabled();
index 46c618f..0c0bb01 100755 (executable)
@@ -24,7 +24,6 @@
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/text/text-enumerations.h>
 #include <dali-toolkit/internal/text/text-model-interface.h>
-#include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
 
 namespace Dali
 {
@@ -84,11 +83,6 @@ public:
   virtual Text::VerticalAlignment::Type GetVerticalAlignment() const;
 
   /**
- * @copydoc ModelInterface::GetVerticalLineAlignment()
- */
-  virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const;
-
-  /**
    * @copydoc ModelInterface::IsTextElideEnabled()
    */
   virtual bool IsTextElideEnabled() const;
index 2de12e8..b9fc9d5 100755 (executable)
@@ -1253,15 +1253,10 @@ const std::string& Controller::GetDefaultOutlineProperties() const
   return EMPTY_STRING;
 }
 
-bool Controller::SetDefaultLineSpacing( float lineSpacing )
+void Controller::SetDefaultLineSpacing( float lineSpacing )
 {
-  if( std::abs(lineSpacing - mImpl->mLayoutEngine.GetDefaultLineSpacing()) > Math::MACHINE_EPSILON_1000 )
-  {
-    mImpl->mLayoutEngine.SetDefaultLineSpacing(lineSpacing);
-    mImpl->mRecalculateNaturalSize = true;
-    return true;
-  }
-  return false;
+  //TODO finish implementation
+  mImpl->mLayoutEngine.SetDefaultLineSpacing( lineSpacing );
 }
 
 float Controller::GetDefaultLineSpacing() const
@@ -2146,16 +2141,6 @@ Toolkit::DevelText::TextDirection::Type Controller::GetTextDirection()
   return Toolkit::DevelText::TextDirection::LEFT_TO_RIGHT;
 }
 
-Toolkit::DevelText::VerticalLineAlignment::Type Controller::GetVerticalLineAlignment() const
-{
-  return mImpl->mModel->GetVerticalLineAlignment();
-}
-
-void Controller::SetVerticalLineAlignment( Toolkit::DevelText::VerticalLineAlignment::Type alignment )
-{
-  mImpl->mModel->mVerticalLineAlignment = alignment;
-}
-
 // public : Relayout.
 
 Controller::UpdateTextType Controller::Relayout( const Size& size )
index defb8b5..dc2b4c4 100755 (executable)
@@ -891,10 +891,8 @@ public: // Default style & Input style
    * @brief Sets the default line spacing.
    *
    * @param[in] lineSpacing The line spacing.
-   *
-   * @return True if lineSpacing has been updated, false otherwise
    */
-  bool SetDefaultLineSpacing( float lineSpacing );
+  void SetDefaultLineSpacing( float lineSpacing );
 
   /**
    * @brief Retrieves the default line spacing.
@@ -1176,18 +1174,6 @@ public: // Queries & retrieves.
    */
   Toolkit::DevelText::TextDirection::Type GetTextDirection();
 
-  /**
-   * @brief Retrieves vertical line alignment
-   * @return The vertical line alignment
-   */
-  Toolkit::DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const;
-
-  /**
-   * @brief Sets vertical line alignment
-   * @param[in] alignment The vertical line alignment for the text
-   */
-  void SetVerticalLineAlignment( Toolkit::DevelText::VerticalLineAlignment::Type alignment );
-
 public: // Relayout.
 
   /**
index ab21d62..ca575ce 100755 (executable)
@@ -26,7 +26,6 @@
 #include <dali-toolkit/internal/text/line-run.h>
 #include <dali-toolkit/internal/text/script-run.h>
 #include <dali-toolkit/internal/text/text-definitions.h>
-#include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
 
 namespace Dali
 {
@@ -85,13 +84,6 @@ public:
   virtual VerticalAlignment::Type GetVerticalAlignment() const = 0;
 
   /**
-   * @brief Retrieves the text's vertical line alignment.
-   *
-   * @return The vertical line alignment.
-   */
-  virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const = 0;
-
-  /**
    * @brief Whether the text elide property is enabled.
    *
    * @return @e true if the text elide property is enabled, @e false otherwise.
index 7f23aac..7b6536d 100755 (executable)
@@ -57,11 +57,6 @@ VerticalAlignment::Type Model::GetVerticalAlignment() const
   return mVerticalAlignment;
 }
 
-DevelText::VerticalLineAlignment::Type Model::GetVerticalLineAlignment() const
-{
-  return mVerticalLineAlignment;
-}
-
 bool Model::IsTextElideEnabled() const
 {
   return mElideEnabled;
@@ -174,7 +169,6 @@ Model::Model()
   mScrollPositionLast(),
   mHorizontalAlignment( Text::HorizontalAlignment::BEGIN ),
   mVerticalAlignment( Text::VerticalAlignment::TOP ),
-  mVerticalLineAlignment( DevelText::VerticalLineAlignment::TOP ),
   mLineWrapMode( Text::LineWrap::WORD ),
   mAlignmentOffset( 0.0f ),
   mElideEnabled( false )
index 9422996..da7fd24 100755 (executable)
@@ -84,11 +84,6 @@ public:
   virtual VerticalAlignment::Type GetVerticalAlignment() const;
 
   /**
-   * @copydoc ModelInterface::GetVerticalLineAlignment()
-   */
-  virtual DevelText::VerticalLineAlignment::Type GetVerticalLineAlignment() const override;
-
-  /**
    * @copydoc ModelInterface::IsTextElideEnabled()
    */
   virtual bool IsTextElideEnabled() const;
@@ -220,14 +215,13 @@ public:
    * 0,0 means that the top-left corner of the layout matches the top-left corner of the UI control.
    * Typically this will have a negative value with scrolling occurs.
    */
-  Vector2                                   mScrollPosition;        ///< The text is offset by this position when scrolling.
-  Vector2                                   mScrollPositionLast;    ///< The last offset value of mScrollPosition
-  HorizontalAlignment::Type                 mHorizontalAlignment;   ///< The layout's horizontal alignment.
-  VerticalAlignment::Type                   mVerticalAlignment;     ///< The layout's vertical alignment.
-  DevelText::VerticalLineAlignment::Type    mVerticalLineAlignment; ///< The layout's vertical line alignment.
-  Text::LineWrap::Mode                      mLineWrapMode;          ///< The text wrap mode
-  float                                     mAlignmentOffset;       ///< The alignment offset.
-  bool                                      mElideEnabled:1;        ///< Whether the text's elide is enabled.
+  Vector2                            mScrollPosition;      ///< The text is offset by this position when scrolling.
+  Vector2                            mScrollPositionLast;  ///< The last offset value of mScrollPosition
+  HorizontalAlignment::Type          mHorizontalAlignment; ///< The layout's horizontal alignment.
+  VerticalAlignment::Type            mVerticalAlignment;   ///< The layout's vertical alignment.
+  Text::LineWrap::Mode               mLineWrapMode;        ///< The text wrap mode
+  float                              mAlignmentOffset;     ///< The alignment offset.
+  bool                               mElideEnabled:1;      ///< Whether the text's elide is enabled.
 };
 
 } // namespace Text
index 765b9bf..ef5890e 100644 (file)
@@ -114,15 +114,6 @@ public:
     GetVisualObject( visual ).mRendererUpdateNeeded = true;
   };
 
-  /**
-   * @brief Instantly updates the renderer
-   * @param[in] visual The text visual.
-   */
-  static void UpdateRenderer( Toolkit::Visual::Base visual )
-  {
-    GetVisualObject( visual ).UpdateRenderer();
-  };
-
 public: // from Visual::Base
 
   /**