From 6f7cd67c493a476b376d0b0111bbca2b02ddfb3e Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 2 Feb 2018 15:06:56 +0000 Subject: [PATCH] Ported downstream changes into devel/master Latest tizenfx Tizen.NUI requires some features from tizen_4.0 branch that aren't present in devel/master; but tizen_4.0 branch doesn't build for desktop. Fixes: Application::New argument list handling New class: FontClient APIs: ImfManager::Finalize TextLabel::VERTICAL_LINE_ALIGNMENT TextField::ENABLE_SHIFT_SELECTION TextEditor::ENABLE_SHIFT_SELECTION Change-Id: I3a0e8b6758e55804d18e517da163a985b23f1b4e Signed-off-by: David Steele --- dali-csharp-binder/file.list | 3 +- dali-csharp-binder/src/application.cpp | 130 +- dali-csharp-binder/src/dali_wrap.cpp | 11 +- dali-csharp-binder/src/devel-property-wrap.cpp | 10 +- dali-csharp-binder/src/font-client.cpp | 2498 ++++++++++++++++++++++++ dali-csharp-binder/src/imf-manager.cpp | 17 + dali-csharp-binder/src/text-editor.cpp | 7 + dali-csharp-binder/src/text-field.cpp | 5 + 8 files changed, 2599 insertions(+), 82 deletions(-) create mode 100755 dali-csharp-binder/src/font-client.cpp diff --git a/dali-csharp-binder/file.list b/dali-csharp-binder/file.list index 78579bd..ee05667 100755 --- a/dali-csharp-binder/file.list +++ b/dali-csharp-binder/file.list @@ -42,7 +42,8 @@ dali_csharp_binder_src_files_tizen = \ src/key-grab.cpp \ src/watch.cpp \ src/adaptor.cpp \ - src/extents.cpp + src/extents.cpp \ + src/font-client.cpp dali_csharp_binder_header_files = \ src/common.h diff --git a/dali-csharp-binder/src/application.cpp b/dali-csharp-binder/src/application.cpp index 7e8ee4e..72bd1f2 100755 --- a/dali-csharp-binder/src/application.cpp +++ b/dali-csharp-binder/src/application.cpp @@ -137,34 +137,25 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_0() { SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_1(int jarg1) { void * jresult ; - int *arg1 = (int *) 0 ; - char ***arg2 ; - Dali::Application result; + int arg1 = 1; + char ***arg2; + Dali::Application result; { - // Todo generate argv data from the C# args - char **array; // two dimensional array - int numStrings = 1; // number of strings - int stringLength = 30; // max string length. - array = (char **)malloc( (numStrings + 1 )* sizeof(char *) ); - argV = array; + std::string app_name = "dali-csharp-app"; + int stringLength = app_name.length(); + argV = new char*[arg1 + 1]; + argV[0] = new char[stringLength + 1]; - // allocate the string data - for( int i=0; i < numStrings; i++) - { - array[i]=(char *)malloc( stringLength * sizeof(char) ); - } - array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part + strncpy(argV[0], app_name.c_str(), stringLength); + argV[0][stringLength] = '\0'; + argV[1] = NULL; - std::string temp = "dali-csharp-app"; - array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0'; - - arg1 = &argC; arg2 = &argV; } { try { - result = Dali::Application::New(arg1,arg2); + result = Dali::Application::New(&arg1, arg2); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -191,41 +182,35 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_1(int jarg1) { SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_2(int jarg1, char * jarg3) { void * jresult ; - int *arg1 = (int *) 0 ; - char ***arg2 ; - std::string *arg3 = 0 ; - Dali::Application result; + int arg1 = 1; + char ***arg2; + std::string *arg3 = 0; + Dali::Application result; { - // Todo generate argv data from the C# args - char **array; // two dimensional array - int numStrings = 1; // number of strings - int stringLength = 30; // max string length. - array = (char **)malloc( (numStrings + 1 )* sizeof(char *) ); - argV = array; + std::string app_name = "dali-csharp-app"; + int stringLength = app_name.length(); + argV = new char*[arg1 + 1]; + argV[0] = new char[stringLength + 1]; - // allocate the string data - for( int i=0; i < numStrings; i++) - { - array[i]=(char *)malloc( stringLength * sizeof(char) ); - } - array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part - - std::string temp = "dali-csharp-app"; - array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0'; + strncpy(argV[0], app_name.c_str(), stringLength); + argV[0][stringLength] = '\0'; + argV[1] = NULL; - arg1 = &argC; arg2 = &argV; + } if (!jarg3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + delete []arg2[0]; + delete []arg2; return 0; } std::string arg3_str(jarg3); arg3 = &arg3_str; { try { - result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3); + result = Dali::Application::New(&arg1, arg2,(std::string const &)*arg3); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -255,35 +240,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_2(int jarg1, cha SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_3(int jarg1, char * jarg3, int jarg4) { void * jresult ; - int *arg1 = (int *) 0 ; - char ***arg2 ; - std::string *arg3 = 0 ; - Dali::Application::WINDOW_MODE arg4 ; - Dali::Application result; + int arg1 = 1; + char ***arg2; + std::string *arg3 = 0; + Dali::Application::WINDOW_MODE arg4; + Dali::Application result; { - // Todo generate argv data from the C# args - char **array; // two dimensional array - int numStrings = 1; // number of strings - int stringLength = 30; // max string length. - array = (char **)malloc( (numStrings + 1 )* sizeof(char *) ); - argV = array; + std::string app_name = "dali-csharp-app"; + int stringLength = app_name.length(); + argV = new char*[arg1 + 1]; + argV[0] = new char[stringLength + 1]; - // allocate the string data - for( int i=0; i < numStrings; i++) - { - array[i]=(char *)malloc( stringLength * sizeof(char) ); - } - array[ numStrings ] = NULL; // we allocated +1 for hold the NULL part + strncpy(argV[0], app_name.c_str(), stringLength); + argV[0][stringLength] = '\0'; + argV[1] = NULL; - std::string temp = "dali-csharp-app"; - array[0][temp.copy(array[0], strlen(array[0])-1)] = '\0'; - - arg1 = &argC; arg2 = &argV; } if (!jarg3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + delete []arg2[0]; + delete []arg2; return 0; } std::string arg3_str(jarg3); @@ -291,7 +269,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__SWIG_3(int jarg1, cha arg4 = (Dali::Application::WINDOW_MODE)jarg4; { try { - result = Dali::Application::New(arg1,arg2,(std::string const &)*arg3,arg4); + result = Dali::Application::New(&arg1, arg2,(std::string const &)*arg3,arg4); } catch (std::out_of_range& e) { { SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; @@ -329,23 +307,28 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__MANUAL_4(int jarg1, c { // Todo generate argv data from the C# args int index = 0; - char *retPtr; + int length = 0; + char *retPtr = NULL; char *nextPtr; argV = new char*[jarg1 + 1]; - retPtr = strtok_r(jarg2," ", &nextPtr); - argV[index] = new char[strlen(retPtr)+1]; - strncpy( argV[index], retPtr, strlen(retPtr) ); - argV[index][strlen(retPtr)] = '\0'; - index++; + for(retPtr = strtok_r(jarg2, " ", &nextPtr); + retPtr != NULL && index < jarg1; + retPtr = strtok_r(NULL, " ", &nextPtr)) + { + length = 0; + length = strlen(retPtr); + argV[ index ] = new char[ length + 1 ]; + strncpy( argV[ index ], retPtr, length ); + argV[ index ][ length ] = '\0'; + index++; + } while( index < jarg1 ) { - retPtr = strtok_r(NULL," ", &nextPtr); - argV[index] = new char[strlen(retPtr)+1]; - strncpy( argV[index], retPtr, strlen(retPtr) ); - argV[index][strlen(retPtr)] = '\0'; + //if jarg1 - index >1, maybe cause error. + argV[index] = NULL; index++; } @@ -354,7 +337,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_New__MANUAL_4(int jarg1, c arg1 = &argC; arg2 = &argV; - } std::string arg3_str(jarg3); diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index e1c80a1..dcae147 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -8,7 +8,6 @@ * interface file instead. * ----------------------------------------------------------------------------- */ - #ifndef SWIGCSHARP #define SWIGCSHARP #endif @@ -438,8 +437,6 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include -#include -#include #include @@ -454,11 +451,14 @@ void SWIG_CSharpException(int code, const char *msg) { #include #include #include +#include +#include #include #include #include + #include #include #include @@ -468,8 +468,8 @@ void SWIG_CSharpException(int code, const char *msg) { #include -#include -#include +#include +#include // add here SWIG version check @@ -102328,4 +102328,3 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GetMaxTextureSize() { #ifdef __cplusplus } #endif - diff --git a/dali-csharp-binder/src/devel-property-wrap.cpp b/dali-csharp-binder/src/devel-property-wrap.cpp index 2604ac1..6375d63 100755 --- a/dali-csharp-binder/src/devel-property-wrap.cpp +++ b/dali-csharp-binder/src/devel-property-wrap.cpp @@ -426,6 +426,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_TEXT_DIRECTION_get() { return jresult; } +SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_VERTICAL_LINE_ALIGNMENT_get() { + int jresult ; + int result; + + result = (int)Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT; + jresult = (int)result; + return jresult; +} + SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_LINE_WRAP_MODE_get() { int jresult ; int result; @@ -458,4 +467,3 @@ SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_STOP_get() #ifdef __cplusplus } #endif - diff --git a/dali-csharp-binder/src/font-client.cpp b/dali-csharp-binder/src/font-client.cpp new file mode 100755 index 0000000..58a1d65 --- /dev/null +++ b/dali-csharp-binder/src/font-client.cpp @@ -0,0 +1,2498 @@ +/** Copyright (c) 2017 Samsung Electronics Co., Ltd. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ +#ifndef CSHARP_FONT_CLIENT +#define CSHARP_FONT_CLIENT +#endif + +#include "common.h" +#include +#include +#include +#include +#include +#include + +/* Callback for returning strings to C# without leaking memory */ +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +extern SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback; + + +typedef std::string FontPath; +typedef std::string FontFamily; +typedef std::string FontStyle; +typedef std::vector FontList; + +typedef uint32_t FontId; +typedef uint32_t PointSize26Dot6; +typedef uint32_t FaceIndex; +typedef uint32_t GlyphIndex; +typedef uint32_t Character; +typedef uint32_t CharacterIndex; +typedef uint32_t Length; +typedef uint32_t BidiInfoIndex; +typedef char LineBreakInfo; +typedef char WordBreakInfo; +typedef bool CharacterDirection; + + +#ifdef __cplusplus +extern "C" { +#endif + + +SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_FontClient_SWIGUpcast(Dali::TextAbstraction::FontClient *jarg1) { + return (Dali::BaseHandle *)jarg1; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontWidthName_get() { + void * jresult ; + char **result = 0 ; + + result = (char **)(char **)Dali::TextAbstraction::FontWidth::Name; + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontWeightName_get() { + void * jresult ; + char **result = 0 ; + + result = (char **)(char **)Dali::TextAbstraction::FontWeight::Name; + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontSlantName_get() { + void * jresult ; + char **result = 0 ; + + result = (char **)(char **)Dali::TextAbstraction::FontSlant::Name; + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontDescription() { + void * jresult ; + Dali::TextAbstraction::FontDescription *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::FontDescription *)new Dali::TextAbstraction::FontDescription(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FontDescription(void * jarg1) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontDescription_path_set(void * jarg1, char * jarg2) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + if (arg1) (arg1)->path = *arg2; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_FontDescription_path_get(void * jarg1) { + char * jresult ; + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontPath *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + result = (Dali::TextAbstraction::FontPath *) & ((arg1)->path); + jresult = SWIG_csharp_string_callback(result->c_str()); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontDescription_family_set(void * jarg1, char * jarg2) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontFamily *arg2 = 0 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + Dali::TextAbstraction::FontFamily arg2_str(jarg2); + arg2 = &arg2_str; + if (arg1) (arg1)->family = *arg2; +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_FontDescription_family_get(void * jarg1) { + char * jresult ; + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontFamily *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + result = (Dali::TextAbstraction::FontFamily *) & ((arg1)->family); + jresult = SWIG_csharp_string_callback(result->c_str()); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontDescription_width_set(void * jarg1, int jarg2) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontWidth::Type arg2 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + arg2 = (Dali::TextAbstraction::FontWidth::Type)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FontDescription_width_get(void * jarg1) { + int jresult ; + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontWidth::Type result; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + result = (Dali::TextAbstraction::FontWidth::Type) ((arg1)->width); + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontDescription_weight_set(void * jarg1, int jarg2) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontWeight::Type arg2 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + arg2 = (Dali::TextAbstraction::FontWeight::Type)jarg2; + if (arg1) (arg1)->weight = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FontDescription_weight_get(void * jarg1) { + int jresult ; + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontWeight::Type result; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + result = (Dali::TextAbstraction::FontWeight::Type) ((arg1)->weight); + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontDescription_slant_set(void * jarg1, int jarg2) { + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontSlant::Type arg2 ; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + arg2 = (Dali::TextAbstraction::FontSlant::Type)jarg2; + if (arg1) (arg1)->slant = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FontDescription_slant_get(void * jarg1) { + int jresult ; + Dali::TextAbstraction::FontDescription *arg1 = (Dali::TextAbstraction::FontDescription *) 0 ; + Dali::TextAbstraction::FontSlant::Type result; + + arg1 = (Dali::TextAbstraction::FontDescription *)jarg1; + result = (Dali::TextAbstraction::FontSlant::Type) ((arg1)->slant); + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontMetrics__SWIG_0() { + void * jresult ; + Dali::TextAbstraction::FontMetrics *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::FontMetrics *)new Dali::TextAbstraction::FontMetrics(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontMetrics__SWIG_1(float jarg1, float jarg2, float jarg3, float jarg4, float jarg5) { + void * jresult ; + float arg1 ; + float arg2 ; + float arg3 ; + float arg4 ; + float arg5 ; + Dali::TextAbstraction::FontMetrics *result = 0 ; + + arg1 = (float)jarg1; + arg2 = (float)jarg2; + arg3 = (float)jarg3; + arg4 = (float)jarg4; + arg5 = (float)jarg5; + { + try { + result = (Dali::TextAbstraction::FontMetrics *)new Dali::TextAbstraction::FontMetrics(arg1,arg2,arg3,arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontMetrics_ascender_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->ascender = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FontMetrics_ascender_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + result = (float) ((arg1)->ascender); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontMetrics_descender_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->descender = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FontMetrics_descender_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + result = (float) ((arg1)->descender); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontMetrics_height_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FontMetrics_height_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + result = (float) ((arg1)->height); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontMetrics_underlinePosition_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->underlinePosition = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FontMetrics_underlinePosition_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + result = (float) ((arg1)->underlinePosition); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontMetrics_underlineThickness_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->underlineThickness = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FontMetrics_underlineThickness_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + result = (float) ((arg1)->underlineThickness); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FontMetrics(void * jarg1) { + Dali::TextAbstraction::FontMetrics *arg1 = (Dali::TextAbstraction::FontMetrics *) 0 ; + + arg1 = (Dali::TextAbstraction::FontMetrics *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LINE_MUST_BREAK_get() { + int jresult ; + int result; + + { + try { + result = (int)Dali::TextAbstraction::LINE_MUST_BREAK; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LINE_ALLOW_BREAK_get() { + int jresult ; + int result; + + { + try { + result = (int)Dali::TextAbstraction::LINE_ALLOW_BREAK; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LINE_NO_BREAK_get() { + int jresult ; + int result; + + { + try { + result = (int)Dali::TextAbstraction::LINE_NO_BREAK; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WORD_BREAK_get() { + int jresult ; + int result; + + { + try { + result = (int)Dali::TextAbstraction::WORD_BREAK; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_WORD_NO_BREAK_get() { + int jresult ; + int result; + + { + try { + result = (int)Dali::TextAbstraction::WORD_NO_BREAK; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VectorBlob_r_set(void * jarg1, unsigned char jarg2) { + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char arg2 ; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->r = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_Dali_VectorBlob_r_get(void * jarg1) { + unsigned char jresult ; + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char result; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + result = (unsigned char) ((arg1)->r); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VectorBlob_g_set(void * jarg1, unsigned char jarg2) { + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char arg2 ; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->g = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_Dali_VectorBlob_g_get(void * jarg1) { + unsigned char jresult ; + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char result; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + result = (unsigned char) ((arg1)->g); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VectorBlob_b_set(void * jarg1, unsigned char jarg2) { + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char arg2 ; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->b = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_Dali_VectorBlob_b_get(void * jarg1) { + unsigned char jresult ; + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char result; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + result = (unsigned char) ((arg1)->b); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VectorBlob_a_set(void * jarg1, unsigned char jarg2) { + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char arg2 ; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->a = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_Dali_VectorBlob_a_get(void * jarg1) { + unsigned char jresult ; + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + unsigned char result; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + result = (unsigned char) ((arg1)->a); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VectorBlob() { + void * jresult ; + Dali::TextAbstraction::VectorBlob *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::VectorBlob *)new Dali::TextAbstraction::VectorBlob(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_VectorBlob(void * jarg1) { + Dali::TextAbstraction::VectorBlob *arg1 = (Dali::TextAbstraction::VectorBlob *) 0 ; + + arg1 = (Dali::TextAbstraction::VectorBlob *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GlyphInfo__SWIG_0() { + void * jresult ; + Dali::TextAbstraction::GlyphInfo *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::GlyphInfo *)new Dali::TextAbstraction::GlyphInfo(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GlyphInfo__SWIG_1(unsigned int jarg1, unsigned int jarg2) { + void * jresult ; + Dali::TextAbstraction::FontId arg1 ; + Dali::TextAbstraction::GlyphIndex arg2 ; + Dali::TextAbstraction::GlyphInfo *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontId)jarg1; + arg2 = (Dali::TextAbstraction::GlyphIndex)jarg2; + { + try { + result = (Dali::TextAbstraction::GlyphInfo *)new Dali::TextAbstraction::GlyphInfo(arg1,arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_fontId_set(void * jarg1, unsigned int jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + if (arg1) (arg1)->fontId = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GlyphInfo_fontId_get(void * jarg1) { + unsigned int jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = ((arg1)->fontId); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_index_set(void * jarg1, unsigned int jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + Dali::TextAbstraction::GlyphIndex arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (Dali::TextAbstraction::GlyphIndex)jarg2; + if (arg1) (arg1)->index = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_GlyphInfo_index_get(void * jarg1) { + unsigned int jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + Dali::TextAbstraction::GlyphIndex result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = ((arg1)->index); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_width_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_width_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->width); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_height_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_height_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->height); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_xBearing_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->xBearing = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_xBearing_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->xBearing); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_yBearing_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->yBearing = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_yBearing_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->yBearing); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_advance_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->advance = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_advance_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->advance); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GlyphInfo_scaleFactor_set(void * jarg1, float jarg2) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float arg2 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + arg2 = (float)jarg2; + if (arg1) (arg1)->scaleFactor = arg2; +} + + +SWIGEXPORT float SWIGSTDCALL CSharp_Dali_GlyphInfo_scaleFactor_get(void * jarg1) { + float jresult ; + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + float result; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + result = (float) ((arg1)->scaleFactor); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_GlyphInfo(void * jarg1) { + Dali::TextAbstraction::GlyphInfo *arg1 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + + arg1 = (Dali::TextAbstraction::GlyphInfo *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_DEFAULT_POINT_SIZE_get() { + unsigned int jresult ; + Dali::TextAbstraction::PointSize26Dot6 result; + + result = (Dali::TextAbstraction::PointSize26Dot6)Dali::TextAbstraction::FontClient::DEFAULT_POINT_SIZE; + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontClient_GlyphBufferData() { + void * jresult ; + Dali::TextAbstraction::FontClient::GlyphBufferData *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::FontClient::GlyphBufferData *)new Dali::TextAbstraction::FontClient::GlyphBufferData(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FontClient_GlyphBufferData(void * jarg1) { + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + +/* +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_buffer_set(void * jarg1, unsigned char* jarg2) { + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned char *arg2 = (unsigned char *) 0 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + arg2 = jarg2; + if (arg1) (arg1)->buffer = arg2; + + +} + + +SWIGEXPORT unsigned char* SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_buffer_get(void * jarg1) { + unsigned char* jresult ; + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned char *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + result = (unsigned char *) ((arg1)->buffer); + jresult = (void *)result; + return jresult; +} +*/ + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_width_set(void * jarg1, unsigned int jarg2) { + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned int arg2 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->width = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_width_get(void * jarg1) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned int result; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + result = (unsigned int) ((arg1)->width); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_height_set(void * jarg1, unsigned int jarg2) { + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned int arg2 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + arg2 = (unsigned int)jarg2; + if (arg1) (arg1)->height = arg2; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_height_get(void * jarg1) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + unsigned int result; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + result = (unsigned int) ((arg1)->height); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_format_set(void * jarg1, int jarg2) { + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + Dali::Pixel::Format arg2 ; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + arg2 = (Dali::Pixel::Format)jarg2; + if (arg1) (arg1)->format = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FontClient_GlyphBufferData_format_get(void * jarg1) { + int jresult ; + Dali::TextAbstraction::FontClient::GlyphBufferData *arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *) 0 ; + Dali::Pixel::Format result; + + arg1 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg1; + result = (Dali::Pixel::Format) ((arg1)->format); + jresult = (int)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontClient_Get() { + void * jresult ; + Dali::TextAbstraction::FontClient result; + + { + try { + result = Dali::TextAbstraction::FontClient::Get(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::TextAbstraction::FontClient((const Dali::TextAbstraction::FontClient &)result); + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontClient__SWIG_0() { + void * jresult ; + Dali::TextAbstraction::FontClient *result = 0 ; + + { + try { + result = (Dali::TextAbstraction::FontClient *)new Dali::TextAbstraction::FontClient(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FontClient(void * jarg1) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + { + try { + delete arg1; + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_FontClient__SWIG_1(void * jarg1) { + void * jresult ; + Dali::TextAbstraction::FontClient *arg1 = 0 ; + Dali::TextAbstraction::FontClient *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!arg1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontClient const & type is null", 0); + return 0; + } + { + try { + result = (Dali::TextAbstraction::FontClient *)new Dali::TextAbstraction::FontClient((Dali::TextAbstraction::FontClient const &)*arg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontClient_Assign(void * jarg1, void * jarg2) { + void * jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontClient *arg2 = 0 ; + Dali::TextAbstraction::FontClient *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontClient *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontClient const & type is null", 0); + return 0; + } + { + try { + result = (Dali::TextAbstraction::FontClient *) &(arg1)->operator =((Dali::TextAbstraction::FontClient const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_SetDpi(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + unsigned int arg2 ; + unsigned int arg3 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned int)jarg3; + { + try { + (arg1)->SetDpi(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetDpi(void * jarg1, void * jarg2, void * jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + unsigned int *arg2 = 0 ; + unsigned int *arg3 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (unsigned int *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "unsigned int & type is null", 0); + return ; + } + arg3 = (unsigned int *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "unsigned int & type is null", 0); + return ; + } + { + try { + (arg1)->GetDpi(*arg2,*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FontClient_GetDefaultFontSize(void * jarg1) { + int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + int result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + { + try { + result = (int)(arg1)->GetDefaultFontSize(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_ResetSystemDefaults(void * jarg1) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + { + try { + (arg1)->ResetSystemDefaults(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetDefaultFonts(void * jarg1, void * jarg2) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontList *arg2 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontList *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontList & type is null", 0); + return ; + } + { + try { + (arg1)->GetDefaultFonts(*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetDefaultPlatformFontDescription(void * jarg1, void * jarg2) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription & type is null", 0); + return ; + } + { + try { + (arg1)->GetDefaultPlatformFontDescription(*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetSystemFonts(void * jarg1, void * jarg2) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontList *arg2 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontList *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontList & type is null", 0); + return ; + } + { + try { + (arg1)->GetSystemFonts(*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetDescription(void * jarg1, unsigned int jarg2, void * jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::FontDescription *arg3 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::FontDescription *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription & type is null", 0); + return ; + } + { + try { + (arg1)->GetDescription(arg2,*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetPointSize(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::PointSize26Dot6 result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + { + try { + result = (arg1)->GetPointSize(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_IsCharacterSupportedByFont(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::Character arg3 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::Character)jarg3; + { + try { + result = (bool)(arg1)->IsCharacterSupportedByFont(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindDefaultFont__SWIG_0(void * jarg1, unsigned int jarg2, unsigned int jarg3, unsigned int jarg4) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + bool arg4 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + arg4 = jarg4 ? true : false; + { + try { + result = (arg1)->FindDefaultFont(arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindDefaultFont__SWIG_1(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + { + try { + result = (arg1)->FindDefaultFont(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindDefaultFont__SWIG_2(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + { + try { + result = (arg1)->FindDefaultFont(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindFallbackFont__SWIG_0(void * jarg1, unsigned int jarg2, void * jarg3, unsigned int jarg4, unsigned int jarg5) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::FontDescription *arg3 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg4 ; + bool arg5 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + arg3 = (Dali::TextAbstraction::FontDescription *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + arg4 = (Dali::TextAbstraction::PointSize26Dot6)jarg4; + arg5 = jarg5 ? true : false; + { + try { + result = (arg1)->FindFallbackFont(arg2,(Dali::TextAbstraction::FontDescription const &)*arg3,arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindFallbackFont__SWIG_1(void * jarg1, unsigned int jarg2, void * jarg3, unsigned int jarg4) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::FontDescription *arg3 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg4 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + arg3 = (Dali::TextAbstraction::FontDescription *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + arg4 = (Dali::TextAbstraction::PointSize26Dot6)jarg4; + { + try { + result = (arg1)->FindFallbackFont(arg2,(Dali::TextAbstraction::FontDescription const &)*arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_FindFallbackFont__SWIG_2(void * jarg1, unsigned int jarg2, void * jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::Character arg2 ; + Dali::TextAbstraction::FontDescription *arg3 = 0 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::Character)jarg2; + arg3 = (Dali::TextAbstraction::FontDescription *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + { + try { + result = (arg1)->FindFallbackFont(arg2,(Dali::TextAbstraction::FontDescription const &)*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_0(void * jarg1, char * jarg2, unsigned int jarg3, unsigned int jarg4) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + Dali::TextAbstraction::FaceIndex arg4 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + arg4 = (Dali::TextAbstraction::FaceIndex)jarg4; + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontPath const &)*arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_1(void * jarg1, char * jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontPath const &)*arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_2(void * jarg1, char * jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontPath const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_3(void * jarg1, void * jarg2, unsigned int jarg3, unsigned int jarg4) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + Dali::TextAbstraction::FaceIndex arg4 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + arg4 = (Dali::TextAbstraction::FaceIndex)jarg4; + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontDescription const &)*arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_4(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg3 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + arg3 = (Dali::TextAbstraction::PointSize26Dot6)jarg3; + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontDescription const &)*arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetFontId__SWIG_5(void * jarg1, void * jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + Dali::TextAbstraction::FontId result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + { + try { + result = (arg1)->GetFontId((Dali::TextAbstraction::FontDescription const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_IsScalable__SWIG_0(void * jarg1, char * jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + result = (bool)(arg1)->IsScalable((Dali::TextAbstraction::FontPath const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_IsScalable__SWIG_1(void * jarg1, void * jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return 0; + } + { + try { + result = (bool)(arg1)->IsScalable((Dali::TextAbstraction::FontDescription const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetFixedSizes__SWIG_0(void * jarg1, char * jarg2, void * jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > *arg3 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return ; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + arg3 = (Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > & type is null", 0); + return ; + } + { + try { + (arg1)->GetFixedSizes((Dali::TextAbstraction::FontPath const &)*arg2,*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetFixedSizes__SWIG_1(void * jarg1, void * jarg2, void * jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontDescription *arg2 = 0 ; + Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > *arg3 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontDescription *)jarg2; + if (!arg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontDescription const & type is null", 0); + return ; + } + arg3 = (Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Vector< Dali::TextAbstraction::PointSize26Dot6,Dali::TypeTraits< Dali::TextAbstraction::PointSize26Dot6 >::IS_TRIVIAL_TYPE==true > & type is null", 0); + return ; + } + { + try { + (arg1)->GetFixedSizes((Dali::TextAbstraction::FontDescription const &)*arg2,*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_GetFontMetrics(void * jarg1, unsigned int jarg2, void * jarg3) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::FontMetrics *arg3 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::FontMetrics *)jarg3; + if (!arg3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontMetrics & type is null", 0); + return ; + } + { + try { + (arg1)->GetFontMetrics(arg2,*arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetGlyphIndex(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::Character arg3 ; + Dali::TextAbstraction::GlyphIndex result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::Character)jarg3; + { + try { + result = (arg1)->GetGlyphIndex(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetGlyphMetrics__SWIG_0(void * jarg1, void * jarg2, unsigned int jarg3, int jarg4, unsigned int jarg5) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::GlyphInfo *arg2 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + uint32_t arg3 ; + Dali::TextAbstraction::GlyphType arg4 ; + bool arg5 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::GlyphInfo *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (Dali::TextAbstraction::GlyphType)jarg4; + arg5 = jarg5 ? true : false; + { + try { + result = (bool)(arg1)->GetGlyphMetrics(arg2,arg3,arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_GetGlyphMetrics__SWIG_1(void * jarg1, void * jarg2, unsigned int jarg3, int jarg4) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::GlyphInfo *arg2 = (Dali::TextAbstraction::GlyphInfo *) 0 ; + uint32_t arg3 ; + Dali::TextAbstraction::GlyphType arg4 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::GlyphInfo *)jarg2; + arg3 = (uint32_t)jarg3; + arg4 = (Dali::TextAbstraction::GlyphType)jarg4; + { + try { + result = (bool)(arg1)->GetGlyphMetrics(arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_CreateBitmap__SWIG_0(void * jarg1, unsigned int jarg2, unsigned int jarg3, void * jarg4, int jarg5) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::GlyphIndex arg3 ; + Dali::TextAbstraction::FontClient::GlyphBufferData *arg4 = 0 ; + int arg5 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::GlyphIndex)jarg3; + arg4 = (Dali::TextAbstraction::FontClient::GlyphBufferData *)jarg4; + if (!arg4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::FontClient::GlyphBufferData & type is null", 0); + return ; + } + arg5 = (int)jarg5; + { + try { + (arg1)->CreateBitmap(arg2,arg3,*arg4,arg5); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontClient_CreateBitmap__SWIG_1(void * jarg1, unsigned int jarg2, unsigned int jarg3, int jarg4) { + void * jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::GlyphIndex arg3 ; + int arg4 ; + Dali::PixelData result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::GlyphIndex)jarg3; + arg4 = (int)jarg4; + { + try { + result = (arg1)->CreateBitmap(arg2,arg3,arg4); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::PixelData((const Dali::PixelData &)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FontClient_CreateVectorBlob(void * jarg1, unsigned int jarg2, unsigned int jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::GlyphIndex arg3 ; + Dali::TextAbstraction::VectorBlob **arg4 = 0 ; + unsigned int *arg5 = 0 ; + unsigned int *arg6 = 0 ; + unsigned int *arg7 = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::GlyphIndex)jarg3; + arg4 = (Dali::TextAbstraction::VectorBlob **)jarg4; + if (!arg4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::TextAbstraction::VectorBlob *& type is null", 0); + return ; + } + arg5 = (unsigned int *)jarg5; + if (!arg5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "unsigned int & type is null", 0); + return ; + } + arg6 = (unsigned int *)jarg6; + if (!arg6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "unsigned int & type is null", 0); + return ; + } + arg7 = (unsigned int *)jarg7; + if (!arg7) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "unsigned int & type is null", 0); + return ; + } + { + try { + (arg1)->CreateVectorBlob(arg2,arg3,*arg4,*arg5,*arg6,*arg7); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; + }; + } + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FontClient_GetEllipsisGlyph(void * jarg1, unsigned int jarg2) { + void * jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::PointSize26Dot6 arg2 ; + Dali::TextAbstraction::GlyphInfo *result = 0 ; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::PointSize26Dot6)jarg2; + { + try { + result = (Dali::TextAbstraction::GlyphInfo *) &(arg1)->GetEllipsisGlyph(arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_IsColorGlyph(void * jarg1, unsigned int jarg2, unsigned int jarg3) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontId arg2 ; + Dali::TextAbstraction::GlyphIndex arg3 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + arg2 = (Dali::TextAbstraction::FontId)jarg2; + arg3 = (Dali::TextAbstraction::GlyphIndex)jarg3; + { + try { + result = (bool)(arg1)->IsColorGlyph(arg2,arg3); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_FontClient_AddCustomFontDirectory(void * jarg1, char * jarg2) { + unsigned int jresult ; + Dali::TextAbstraction::FontClient *arg1 = (Dali::TextAbstraction::FontClient *) 0 ; + Dali::TextAbstraction::FontPath *arg2 = 0 ; + bool result; + + arg1 = (Dali::TextAbstraction::FontClient *)jarg1; + if (!jarg2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0); + return 0; + } + Dali::TextAbstraction::FontPath arg2_str(jarg2); + arg2 = &arg2_str; + { + try { + result = (bool)(arg1)->AddCustomFontDirectory((Dali::TextAbstraction::FontPath const &)*arg2); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = result; + return jresult; +} + +#ifdef __cplusplus +} +#endif + diff --git a/dali-csharp-binder/src/imf-manager.cpp b/dali-csharp-binder/src/imf-manager.cpp index 99803bc..aa681c6 100755 --- a/dali-csharp-binder/src/imf-manager.cpp +++ b/dali-csharp-binder/src/imf-manager.cpp @@ -459,6 +459,23 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ImfManager_ImfCallbackData(void * } catch (Dali::DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; } } } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ImfManager_Finalize(void * jarg1) { + Dali::ImfManager *arg1 = (Dali::ImfManager *) 0 ; + + arg1 = (Dali::ImfManager *)jarg1; + { + try { + (arg1)->Finalize(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return ; + }; + } catch (Dali::DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; } } +} SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ImfManager_Get() { void * jresult ; diff --git a/dali-csharp-binder/src/text-editor.cpp b/dali-csharp-binder/src/text-editor.cpp index 7055b3e..944939e 100755 --- a/dali-csharp-binder/src/text-editor.cpp +++ b/dali-csharp-binder/src/text-editor.cpp @@ -1441,6 +1441,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ScrollStateChangedSignal(void * j } + +SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_ENABLE_SHIFT_SELECTION_get() +{ + return (int)Dali::Toolkit::DevelTextEditor::Property::ENABLE_SHIFT_SELECTION; +} + + #ifdef __cplusplus } #endif diff --git a/dali-csharp-binder/src/text-field.cpp b/dali-csharp-binder/src/text-field.cpp index 021d6a2..b29fa2f 100755 --- a/dali-csharp-binder/src/text-field.cpp +++ b/dali-csharp-binder/src/text-field.cpp @@ -20,6 +20,7 @@ #include "common.h" #include +#include SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__Empty(Dali::Signal< void (Dali::Toolkit::TextField) > const *self){ return self->Empty(); @@ -1209,6 +1210,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextFieldSignal(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_TextField_Property_ENABLE_SHIFT_SELECTION_get() +{ + return (int)Dali::Toolkit::DevelTextField::Property::ENABLE_SHIFT_SELECTION; +} #ifdef __cplusplus } -- 2.7.4