[4.0] TextLabel sets vertical line alignment to MIDDLE for C# NUI 15/164915/1
authoradam.b <adam.b@samsung.com>
Wed, 13 Dec 2017 18:30:22 +0000 (18:30 +0000)
committeradam.b <adam.b@samsung.com>
Thu, 21 Dec 2017 18:09:22 +0000 (18:09 +0000)
Change-Id: Icc2ca051a61346470f62c84669efb75a7e7251ef

dali-csharp-binder/src/dali_wrap.cpp

index e3cee47..fee1113 100755 (executable)
@@ -468,12 +468,11 @@ void SWIG_CSharpException(int code, const char *msg) {
 
 #include <dali-toolkit/public-api/controls/scrollable/item-view/item-view-declarations.h>
 
-#include <dali/devel-api/adaptor-framework/widget.h>
-#include <dali/devel-api/adaptor-framework/widget-impl.h>
-#include <dali/devel-api/adaptor-framework/widget-application.h>
+#include <dali-toolkit/devel-api/controls/text-controls/text-label-devel.h>
+#include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
 
-#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
-#include <dali/devel-api/adaptor-framework/image-loading.h>
+#include <dali-toolkit/devel-api/controls/text-controls/text-label-devel.h>
+#include <dali-toolkit/devel-api/text/text-enumerations-devel.h>
 
 // add here SWIG version check
 
@@ -84295,6 +84294,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_0() {
   {
     try {
       result = Dali::Toolkit::TextLabel::New();
+
+      // default behaviour of NUI TextLabel
+      result.SetProperty( Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, Dali::Toolkit::DevelText::VerticalLineAlignment::MIDDLE );
     } catch (std::out_of_range& e) {
       {
         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
@@ -84333,6 +84335,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_New__SWIG_1(char * jarg1) {
   {
     try {
       result = Dali::Toolkit::TextLabel::New((std::string const &)*arg1);
+
+      // default behaviour of NUI TextLabel
+      result.SetProperty( Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT, Dali::Toolkit::DevelText::VerticalLineAlignment::MIDDLE );
     } catch (std::out_of_range& e) {
       {
         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;