11 /* attribute recognised by some compilers to avoid 'unused' warnings */
13 # if defined(__GNUC__)
14 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
15 # define SWIGUNUSED __attribute__ ((__unused__))
20 # define SWIGUNUSED __attribute__ ((__unused__))
26 /* internal SWIG method */
28 # define SWIGINTERN static SWIGUNUSED
32 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
33 # if defined(STATIC_LINKED)
36 # define SWIGEXPORT __declspec(dllexport)
39 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
40 # define SWIGEXPORT __attribute__ ((visibility("default")))
52 #define SWIG_UnknownError -1
53 #define SWIG_IOError -2
54 #define SWIG_RuntimeError -3
55 #define SWIG_IndexError -4
56 #define SWIG_TypeError -5
57 #define SWIG_DivisionByZero -6
58 #define SWIG_OverflowError -7
59 #define SWIG_SyntaxError -8
60 #define SWIG_ValueError -9
61 #define SWIG_SystemError -10
62 #define SWIG_AttributeError -11
63 #define SWIG_MemoryError -12
64 #define SWIG_NullReferenceError -13
66 /* Support for throwing C# exceptions from C/C++. There are two types:
67 * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
69 SWIG_CSharpApplicationException,
70 SWIG_CSharpArithmeticException,
71 SWIG_CSharpDivideByZeroException,
72 SWIG_CSharpIndexOutOfRangeException,
73 SWIG_CSharpInvalidCastException,
74 SWIG_CSharpInvalidOperationException,
75 SWIG_CSharpIOException,
76 SWIG_CSharpNullReferenceException,
77 SWIG_CSharpOutOfMemoryException,
78 SWIG_CSharpOverflowException,
79 SWIG_CSharpSystemException
80 } SWIG_CSharpExceptionCodes;
83 SWIG_CSharpArgumentException,
84 SWIG_CSharpArgumentNullException,
85 SWIG_CSharpArgumentOutOfRangeException
86 } SWIG_CSharpExceptionArgumentCodes;
88 typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
89 typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
92 SWIG_CSharpExceptionCodes code;
93 SWIG_CSharpExceptionCallback_t callback;
94 } SWIG_CSharpException_t;
97 SWIG_CSharpExceptionArgumentCodes code;
98 SWIG_CSharpExceptionArgumentCallback_t callback;
99 } SWIG_CSharpExceptionArgument_t;
101 static SWIG_CSharpException_t SWIG_csharp_exceptions[] = {
102 { SWIG_CSharpApplicationException, NULL },
103 { SWIG_CSharpArithmeticException, NULL },
104 { SWIG_CSharpDivideByZeroException, NULL },
105 { SWIG_CSharpIndexOutOfRangeException, NULL },
106 { SWIG_CSharpInvalidCastException, NULL },
107 { SWIG_CSharpInvalidOperationException, NULL },
108 { SWIG_CSharpIOException, NULL },
109 { SWIG_CSharpNullReferenceException, NULL },
110 { SWIG_CSharpOutOfMemoryException, NULL },
111 { SWIG_CSharpOverflowException, NULL },
112 { SWIG_CSharpSystemException, NULL }
115 static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = {
116 { SWIG_CSharpArgumentException, NULL },
117 { SWIG_CSharpArgumentNullException, NULL },
118 { SWIG_CSharpArgumentOutOfRangeException, NULL }
121 static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) {
122 SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
123 if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) {
124 callback = SWIG_csharp_exceptions[code].callback;
129 static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
130 SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
131 if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
132 callback = SWIG_csharp_exceptions_argument[code].callback;
134 callback(msg, param_name);
137 SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
138 if (code == SWIG_ValueError) {
139 SWIG_CSharpExceptionArgumentCodes exception_code = SWIG_CSharpArgumentOutOfRangeException;
140 SWIG_CSharpSetPendingExceptionArgument(exception_code, msg, 0);
142 SWIG_CSharpExceptionCodes exception_code = SWIG_CSharpApplicationException;
144 case SWIG_MemoryError:
145 exception_code = SWIG_CSharpOutOfMemoryException;
147 case SWIG_IndexError:
148 exception_code = SWIG_CSharpIndexOutOfRangeException;
150 case SWIG_DivisionByZero:
151 exception_code = SWIG_CSharpDivideByZeroException;
154 exception_code = SWIG_CSharpIOException;
156 case SWIG_OverflowError:
157 exception_code = SWIG_CSharpOverflowException;
159 case SWIG_RuntimeError:
161 case SWIG_SyntaxError:
162 case SWIG_SystemError:
163 case SWIG_UnknownError:
165 exception_code = SWIG_CSharpApplicationException;
168 SWIG_CSharpSetPendingException(exception_code, msg);
179 #include <dali/dali.h>
180 #include <dali-toolkit/dali-toolkit.h>
182 using namespace Dali;
183 using namespace Dali::Toolkit;