2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef CSHARP_DEVEL_PROPERTY
19 #define CSHARP_DEVEL_PROPERTY
24 #include <dali/devel-api/actors/actor-devel.h>
25 #include <dali/devel-api/rendering/renderer-devel.h>
26 #include <dali-toolkit/devel-api/controls/control-devel.h>
27 #include <dali-toolkit/devel-api/controls/buttons/button-devel.h>
28 #include <dali-toolkit/devel-api/controls/buttons/button-devel.h>
29 #include <dali-toolkit/public-api/visuals/visual-properties.h>
30 #include <dali-toolkit/public-api/controls/text-controls/hidden-input-properties.h>
31 #include <dali-toolkit/devel-api/controls/text-controls/text-label-devel.h>
32 #include <dali-toolkit/devel-api/visuals/image-visual-actions-devel.h>
33 #include <dali-toolkit/devel-api/visuals/animated-image-visual-actions-devel.h>
37 using namespace Dali::Toolkit;
38 using signalType = DevelControl::VisualEventSignalType;
39 using visualSignalType = Signal< void(Control, Property::Index, Property::Index) >;
40 using SignalCallbackFuncType = void(*)(Control, Property::Index, Property::Index);
42 SWIGINTERN bool _CSharp_Dali_VisualEventSignal_Empty(signalType const *self) {
45 SWIGINTERN std::size_t _CSharp_Dali_VisualEventSignal_GetConnectionCount(signalType *self) {
46 return self->GetConnectionCount();
48 SWIGINTERN void _CSharp_Dali_VisualEventSignal_Connect(signalType *self, SignalCallbackFuncType func) {
51 SWIGINTERN void _CSharp_Dali_VisualEventSignal_Disconnect(signalType *self, SignalCallbackFuncType func) {
52 self->Disconnect(func);
54 SWIGINTERN void _CSharp_Dali_VisualEventSignal_Emit(signalType *self, Control arg1, Property::Index arg2, Property::Index arg3) {
55 self->Emit(arg1, arg2, arg3);
62 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SIBLING_ORDER_get() {
64 return Dali::DevelActor::Property::SIBLING_ORDER;
67 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_OPACITY_get() {
69 return Dali::DevelActor::Property::OPACITY;
72 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SCREEN_POSITION_get() {
74 return Dali::DevelActor::Property::SCREEN_POSITION;
77 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get() {
79 return Dali::DevelActor::Property::POSITION_USES_ANCHOR_POINT;
82 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_INHERIT_LAYOUT_DIRECTION_get() {
83 return Dali::DevelActor::Property::INHERIT_LAYOUT_DIRECTION;
86 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_LAYOUT_DIRECTION_get() {
87 return Dali::DevelActor::Property::LAYOUT_DIRECTION;
90 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_TOOLTIP_get() {
94 result = (int)Dali::Toolkit::DevelControl::Property::TOOLTIP;
95 jresult = (int)result;
99 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_STATE_get() {
103 result = (int)Dali::Toolkit::DevelControl::Property::STATE;
104 jresult = (int)result;
108 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_SUB_STATE_get() {
112 result = (int)Dali::Toolkit::DevelControl::Property::SUB_STATE;
113 jresult = (int)result;
117 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_LEFT_FOCUSABLE_ACTOR_ID_get() {
118 return Dali::Toolkit::DevelControl::Property::LEFT_FOCUSABLE_ACTOR_ID;
121 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get() {
122 return Dali::Toolkit::DevelControl::Property::RIGHT_FOCUSABLE_ACTOR_ID;
125 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_UP_FOCUSABLE_ACTOR_ID_get() {
126 return Dali::Toolkit::DevelControl::Property::UP_FOCUSABLE_ACTOR_ID;
129 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_DOWN_FOCUSABLE_ACTOR_ID_get() {
130 return Dali::Toolkit::DevelControl::Property::DOWN_FOCUSABLE_ACTOR_ID;
133 SWIGEXPORT int SWIGSTDCALL CSharp_ItemView_Property_LAYOUT_get() {
137 result = (int)Dali::Toolkit::ItemView::Property::LAYOUT;
138 jresult = (int)result;
142 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_UNSELECTED_VISUAL_get() {
146 result = (int)Dali::Toolkit::DevelButton::Property::UNSELECTED_VISUAL;
147 jresult = (int)result;
151 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_SELECTED_VISUAL_get() {
155 result = (int)Dali::Toolkit::DevelButton::Property::SELECTED_VISUAL;
156 jresult = (int)result;
160 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_SELECTED_VISUAL_get() {
164 result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_SELECTED_VISUAL;
165 jresult = (int)result;
169 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_UNSELECTED_VISUAL_get() {
173 result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_UNSELECTED_VISUAL;
174 jresult = (int)result;
178 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_UNSELECTED_BACKGROUND_VISUAL_get() {
182 result = (int)Dali::Toolkit::DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL;
183 jresult = (int)result;
187 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_SELECTED_BACKGROUND_VISUAL_get() {
191 result = (int)Dali::Toolkit::DevelButton::Property::SELECTED_BACKGROUND_VISUAL;
192 jresult = (int)result;
196 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get() {
200 result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL;
201 jresult = (int)result;
205 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get() {
209 result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_SELECTED_BACKGROUND_VISUAL;
210 jresult = (int)result;
214 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_LABEL_RELATIVE_ALIGNMENT_get() {
218 result = (int)Dali::Toolkit::DevelButton::Property::LABEL_RELATIVE_ALIGNMENT;
219 jresult = (int)result;
223 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_LABEL_PADDING_get() {
227 result = (int)Dali::Toolkit::DevelButton::Property::LABEL_PADDING;
228 jresult = (int)result;
232 SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_VISUAL_PADDING_get() {
236 result = (int)Dali::Toolkit::DevelButton::Property::VISUAL_PADDING;
237 jresult = (int)result;
241 SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_TRANSFORM_get() {
245 result = (int)Dali::Toolkit::Visual::Property::TRANSFORM;
246 jresult = (int)result;
250 SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_PREMULTIPLIED_ALPHA_get() {
254 result = (int)Dali::Toolkit::Visual::Property::PREMULTIPLIED_ALPHA;
255 jresult = (int)result;
259 SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_MIX_COLOR_get() {
263 result = (int)Dali::Toolkit::Visual::Property::MIX_COLOR;
264 jresult = (int)result;
268 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_PIXEL_SIZE_get() {
272 result = (int)Dali::Toolkit::TextLabel::Property::PIXEL_SIZE;
273 jresult = (int)result;
277 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_ELLIPSIS_get() {
281 result = (int)Dali::Toolkit::TextLabel::Property::ELLIPSIS;
282 jresult = (int)result;
286 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_AUTO_SCROLL_STOP_MODE_get() {
290 result = (int)Dali::Toolkit::TextLabel::Property::AUTO_SCROLL_STOP_MODE;
291 jresult = (int)result;
295 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get() {
299 result = (int)Dali::Toolkit::TextLabel::Property::AUTO_SCROLL_LOOP_DELAY;
300 jresult = (int)result;
304 SWIGEXPORT int SWIGSTDCALL CSharp_HIDDENINPUT_PROPERTY_MODE_get() {
310 result = (int)Dali::Toolkit::HiddenInput::Property::MODE;
311 } catch (std::out_of_range& e) {
313 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
315 } catch (std::exception& e) {
317 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
319 } catch (Dali::DaliException e) {
321 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
325 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
330 jresult = (int)result;
334 SWIGEXPORT int SWIGSTDCALL CSharp_HIDDENINPUT_PROPERTY_SUBSTITUTE_CHARACTER_get() {
340 result = (int)Dali::Toolkit::HiddenInput::Property::SUBSTITUTE_CHARACTER;
341 } catch (std::out_of_range& e) {
343 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
345 } catch (std::exception& e) {
347 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
349 } catch (Dali::DaliException e) {
351 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
355 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
360 jresult = (int)result;
364 SWIGEXPORT int SWIGSTDCALL CSharp_HIDDENINPUT_PROPERTY_SUBSTITUTE_COUNT_get() {
370 result = (int)Dali::Toolkit::HiddenInput::Property::SUBSTITUTE_COUNT;
371 } catch (std::out_of_range& e) {
373 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
375 } catch (std::exception& e) {
377 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
379 } catch (Dali::DaliException e) {
381 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
385 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
390 jresult = (int)result;
394 SWIGEXPORT int SWIGSTDCALL CSharp_HIDDENINPUT_PROPERTY_SHOW_LAST_CHARACTER_DURATION_get() {
400 result = (int)Dali::Toolkit::HiddenInput::Property::SHOW_LAST_CHARACTER_DURATION;
401 } catch (std::out_of_range& e) {
403 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
405 } catch (std::exception& e) {
407 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
409 } catch (Dali::DaliException e) {
411 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
415 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
420 jresult = (int)result;
424 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_LINE_COUNT_get() {
428 result = (int)Dali::Toolkit::TextLabel::Property::LINE_COUNT;
429 jresult = (int)result;
433 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_LINE_WRAP_MODE_get() {
437 result = (int)Dali::Toolkit::TextLabel::Property::LINE_WRAP_MODE;
438 jresult = (int)result;
442 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_TEXT_DIRECTION_get() {
446 result = (int)Dali::Toolkit::DevelTextLabel::Property::TEXT_DIRECTION;
447 jresult = (int)result;
451 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_VERTICAL_LINE_ALIGNMENT_get() {
455 result = (int)Dali::Toolkit::DevelTextLabel::Property::VERTICAL_LINE_ALIGNMENT;
456 jresult = (int)result;
460 SWIGEXPORT int SWIGSTDCALL CSharp_TextLabel_Property_MATCH_SYSTEM_LANGUAGE_DIRECTION_get() {
464 result = (int)Dali::Toolkit::DevelTextLabel::Property::MATCH_SYSTEM_LANGUAGE_DIRECTION;
465 jresult = (int)result;
469 SWIGEXPORT int SWIGSTDCALL CSharp_TextEditor_Property_LINE_WRAP_MODE_get() {
473 result = (int)Dali::Toolkit::TextEditor::Property::LINE_WRAP_MODE;
474 jresult = (int)result;
478 SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_RELOAD_get()
480 return (int)Dali::Toolkit::DevelImageVisual::Action::RELOAD;
483 SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_PLAY_get()
485 return (int)Dali::Toolkit::DevelAnimatedImageVisual::Action::PLAY;
488 SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_PAUSE_get()
490 return (int)Dali::Toolkit::DevelAnimatedImageVisual::Action::PAUSE;
493 SWIGEXPORT int SWIGSTDCALL CSharp_ImageView_IMAGE_VISUAL_ACTION_STOP_get()
495 return (int)Dali::Toolkit::DevelAnimatedImageVisual::Action::STOP;
500 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_VisualEventSignal_Empty(void * jarg1) {
501 unsigned int jresult;
502 signalType *arg1 = (signalType *)0;
505 arg1 = (signalType *)jarg1;
508 result = (bool)_CSharp_Dali_VisualEventSignal_Empty((signalType *)arg1);
509 } catch (std::out_of_range& e) {
511 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
513 } catch (std::exception& e) {
515 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
517 } catch (Dali::DaliException e) {
519 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
523 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
532 SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_VisualEventSignal_GetConnectionCount(void * jarg1) {
533 unsigned long jresult;
534 signalType *arg1 = (signalType *)0;
537 arg1 = (signalType *)jarg1;
540 result = _CSharp_Dali_VisualEventSignal_GetConnectionCount((signalType *)arg1);
541 } catch (std::out_of_range& e) {
543 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
545 } catch (std::exception& e) {
547 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
549 } catch (Dali::DaliException e) {
551 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
555 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
560 jresult = (unsigned long)result;
564 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VisualEventSignal_Connect(void * jarg1, void * jarg2) {
565 signalType *arg1 = (signalType *)0;
566 SignalCallbackFuncType arg2 = (SignalCallbackFuncType)0;
568 arg1 = (signalType *)jarg1;
569 arg2 = (SignalCallbackFuncType)jarg2;
572 _CSharp_Dali_VisualEventSignal_Connect(arg1, arg2);
573 } catch (std::out_of_range& e) {
575 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
577 } catch (std::exception& e) {
579 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
581 } catch (Dali::DaliException e) {
583 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
587 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
594 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VisualEventSignal_Disconnect(void * jarg1, void * jarg2) {
595 signalType *arg1 = (signalType *)0;
596 SignalCallbackFuncType arg2 = (SignalCallbackFuncType)0;
598 arg1 = (signalType *)jarg1;
599 arg2 = (SignalCallbackFuncType)jarg2;
602 _CSharp_Dali_VisualEventSignal_Disconnect(arg1, arg2);
603 } catch (std::out_of_range& e) {
605 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
607 } catch (std::exception& e) {
609 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
611 } catch (Dali::DaliException e) {
613 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
617 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
624 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_VisualEventSignal_Emit(void * jarg1, void * jarg2, int jarg3, int jarg4) {
625 signalType *arg1 = (signalType *)0;
626 Control *arg2 = (Control *)0;
627 Dali::Property::Index arg3 = 0;
628 Dali::Property::Index arg4 = 0;
630 arg1 = (signalType *)jarg1;
631 arg2 = (Control *)jarg2;
632 arg3 = (Dali::Property::Index)jarg3;
633 arg4 = (Dali::Property::Index)jarg4;
636 _CSharp_Dali_VisualEventSignal_Emit(arg1, *arg2, arg3, arg4);
637 } catch (std::out_of_range& e) {
639 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
641 } catch (std::exception& e) {
643 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
645 } catch (Dali::DaliException e) {
647 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
651 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
658 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_VisualEventSignal() {
660 signalType *result = 0;
664 result = (signalType *)new Dali::Signal< signalType >();
665 } catch (std::out_of_range& e) {
667 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
669 } catch (std::exception& e) {
671 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
673 } catch (Dali::DaliException e) {
675 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
679 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
684 jresult = (void *)result;
688 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_VisualEventSignal(void * jarg1) {
689 signalType *arg1 = (signalType *)0;
691 arg1 = (signalType *)jarg1;
695 } catch (std::out_of_range& e) {
697 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
699 } catch (std::exception& e) {
701 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
703 } catch (Dali::DaliException e) {
705 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
709 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
716 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_View_VisualEventSignal(void * jarg1) {
718 Control *arg1 = (Dali::Toolkit::Control *) 0;
719 visualSignalType *result;
721 arg1 = (Dali::Toolkit::Control *)jarg1;
724 result = (visualSignalType*)&(DevelControl::VisualEventSignal(*arg1));
725 } catch (std::out_of_range& e) {
727 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
729 } catch (std::exception& e) {
731 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
733 } catch (Dali::DaliException e) {
735 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
739 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
744 jresult = (void *)(result);