1 #ifndef CSHARP_VIEW_WRAPPER_IMPL_H
2 #define CSHARP_VIEW_WRAPPER_IMPL_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/devel-api/controls/control-wrapper.h>
23 #include <dali-toolkit/devel-api/controls/control-wrapper-impl.h>
28 class SwigDirector_ViewWrapperImpl : public Dali::Toolkit::Internal::ControlWrapper
32 SwigDirector_ViewWrapperImpl(Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour behaviourFlags);
33 virtual ~SwigDirector_ViewWrapperImpl();
34 virtual void OnSceneConnection(int depth);
35 virtual void OnSceneConnectionSwigPublic(int depth)
37 Dali::Toolkit::Internal::Control::OnSceneConnection(depth);
39 virtual void OnSceneDisconnection();
40 virtual void OnSceneDisconnectionSwigPublic()
42 Dali::Toolkit::Internal::Control::OnSceneDisconnection();
44 virtual void OnChildAdd(Dali::Actor &child);
45 virtual void OnChildAddSwigPublic(Dali::Actor &child)
47 Dali::Toolkit::Internal::Control::OnChildAdd(child);
49 virtual void OnChildRemove(Dali::Actor &child);
50 virtual void OnChildRemoveSwigPublic(Dali::Actor &child)
52 Dali::Toolkit::Internal::Control::OnChildRemove(child);
54 virtual void OnPropertySet(Dali::Property::Index index, const Dali::Property::Value& propertyValue);
55 virtual void OnSizeSet(Dali::Vector3 const &targetSize);
56 virtual void OnSizeSetSwigPublic(Dali::Vector3 const &targetSize)
58 Dali::Toolkit::Internal::Control::OnSizeSet(targetSize);
60 virtual void OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize);
61 virtual void OnSizeAnimationSwigPublic(Dali::Animation &animation, Dali::Vector3 const &targetSize)
63 Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
65 virtual bool OnKeyEvent(Dali::KeyEvent const &event);
66 virtual bool OnKeyEventSwigPublic(Dali::KeyEvent const &event)
68 return Dali::Toolkit::Internal::Control::OnKeyEvent(event);
70 virtual void OnRelayout(Dali::Vector2 const &size, Dali::RelayoutContainer &container);
71 virtual void OnRelayoutSwigPublic(Dali::Vector2 const &size, Dali::RelayoutContainer &container)
73 Dali::Toolkit::Internal::Control::OnRelayout(size,container);
75 virtual void OnSetResizePolicy(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension);
76 virtual void OnSetResizePolicySwigPublic(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension)
78 Dali::Toolkit::Internal::Control::OnSetResizePolicy(policy,dimension);
80 virtual Dali::Vector3 GetNaturalSize();
81 virtual Dali::Vector3 GetNaturalSizeSwigPublic()
83 return Dali::Toolkit::Internal::Control::GetNaturalSize();
85 virtual float CalculateChildSize(Dali::Actor const &child, Dali::Dimension::Type dimension);
86 virtual float CalculateChildSizeSwigPublic(Dali::Actor const &child, Dali::Dimension::Type dimension)
88 return Dali::Toolkit::Internal::Control::CalculateChildSize(child,dimension);
90 virtual float GetHeightForWidth(float width);
91 virtual float GetHeightForWidthSwigPublic(float width)
93 return Dali::Toolkit::Internal::Control::GetHeightForWidth(width);
95 virtual float GetWidthForHeight(float height);
96 virtual float GetWidthForHeightSwigPublic(float height)
98 return Dali::Toolkit::Internal::Control::GetWidthForHeight(height);
100 virtual bool RelayoutDependentOnChildren(Dali::Dimension::Type dimension = Dali::Dimension::ALL_DIMENSIONS);
101 virtual bool RelayoutDependentOnChildrenSwigPublic(Dali::Dimension::Type dimension = Dali::Dimension::ALL_DIMENSIONS)
103 return Dali::Toolkit::Internal::Control::RelayoutDependentOnChildren(dimension);
105 virtual void OnCalculateRelayoutSize(Dali::Dimension::Type dimension);
106 virtual void OnCalculateRelayoutSizeSwigPublic(Dali::Dimension::Type dimension)
108 Dali::Toolkit::Internal::Control::OnCalculateRelayoutSize(dimension);
110 virtual void OnLayoutNegotiated(float size, Dali::Dimension::Type dimension);
111 virtual void OnLayoutNegotiatedSwigPublic(float size, Dali::Dimension::Type dimension)
113 Dali::Toolkit::Internal::Control::OnLayoutNegotiated(size,dimension);
115 virtual void OnInitialize();
116 virtual void OnStyleChange(Dali::Toolkit::StyleManager styleManager, Dali::StyleChange::Type change);
117 virtual bool OnAccessibilityActivated();
118 virtual bool OnAccessibilityPan(Dali::PanGesture gesture);
119 virtual bool OnAccessibilityValueChange(bool isIncrease);
120 virtual bool OnAccessibilityZoom();
122 Dali::Toolkit::DevelControl::ControlAccessible* CreateAccessibleObject() override;
124 virtual void OnKeyInputFocusGained();
125 virtual void OnKeyInputFocusLost();
126 virtual Dali::Actor GetNextKeyboardFocusableActor(Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled);
127 virtual void OnKeyboardFocusChangeCommitted(Dali::Actor commitedFocusableActor);
128 virtual bool OnKeyboardEnter();
129 virtual void OnPinch(Dali::PinchGesture const &pinch);
130 virtual void OnPan(Dali::PanGesture const &pan);
131 virtual void OnTap(Dali::TapGesture const &tap);
132 virtual void OnLongPress(Dali::LongPressGesture const &longPress);
133 virtual Dali::Toolkit::Internal::Control::Extension *GetControlExtension();
135 typedef void (SWIGSTDCALL* SWIG_Callback0_t)(int);
136 typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
137 typedef void (SWIGSTDCALL* SWIG_Callback2_t)(void *);
138 typedef void (SWIGSTDCALL* SWIG_Callback3_t)(void *);
139 typedef void (SWIGSTDCALL* SWIG_Callback4_t)(int, void *);
140 typedef void (SWIGSTDCALL* SWIG_Callback5_t)(void *);
141 typedef void (SWIGSTDCALL* SWIG_Callback6_t)(void *, void *);
142 typedef bool (SWIGSTDCALL* SWIG_Callback9_t)(void *);
143 typedef void (SWIGSTDCALL* SWIG_Callback11_t)(void *, void *);
144 typedef void (SWIGSTDCALL* SWIG_Callback12_t)(int, int);
145 typedef void * (SWIGSTDCALL* SWIG_Callback13_t)();
146 typedef float (SWIGSTDCALL* SWIG_Callback14_t)(void *, int);
147 typedef float (SWIGSTDCALL* SWIG_Callback15_t)(float);
148 typedef float (SWIGSTDCALL* SWIG_Callback16_t)(float);
149 typedef bool (SWIGSTDCALL* SWIG_Callback17_t)(int);
150 typedef bool (SWIGSTDCALL* SWIG_Callback18_t)();
151 typedef void (SWIGSTDCALL* SWIG_Callback19_t)(int);
152 typedef void (SWIGSTDCALL* SWIG_Callback20_t)(float, int);
153 typedef void (SWIGSTDCALL* SWIG_Callback21_t)();
154 typedef void (SWIGSTDCALL* SWIG_Callback22_t)(void *);
155 typedef void (SWIGSTDCALL* SWIG_Callback23_t)(void *);
156 typedef void (SWIGSTDCALL* SWIG_Callback24_t)(void *, int);
157 typedef bool (SWIGSTDCALL* SWIG_Callback25_t)();
158 typedef bool (SWIGSTDCALL* SWIG_Callback26_t)(void *);
159 typedef bool (SWIGSTDCALL* SWIG_Callback28_t)(bool);
160 typedef bool (SWIGSTDCALL* SWIG_Callback29_t)();
161 typedef void (SWIGSTDCALL* SWIG_Callback30_t)();
162 typedef void (SWIGSTDCALL* SWIG_Callback31_t)();
163 typedef void * (SWIGSTDCALL* SWIG_Callback32_t)(void *, int, bool);
164 typedef void (SWIGSTDCALL* SWIG_Callback33_t)(void *);
165 typedef bool (SWIGSTDCALL* SWIG_Callback34_t)();
166 typedef void (SWIGSTDCALL* SWIG_Callback35_t)(void *);
167 typedef void (SWIGSTDCALL* SWIG_Callback36_t)(void *);
168 typedef void (SWIGSTDCALL* SWIG_Callback37_t)(void *);
169 typedef void (SWIGSTDCALL* SWIG_Callback38_t)(void *);
170 typedef void (SWIGSTDCALL* SWIG_Callback39_t)(void *, void *);
171 typedef void (SWIGSTDCALL* SWIG_Callback40_t)(void *, void *);
172 void swig_connect_director(SWIG_Callback0_t callbackOnSceneConnection, SWIG_Callback1_t callbackOnSceneDisconnection, SWIG_Callback2_t callbackOnChildAdd, SWIG_Callback3_t callbackOnChildRemove, SWIG_Callback4_t callbackOnPropertySet, SWIG_Callback5_t callbackOnSizeSet, SWIG_Callback6_t callbackOnSizeAnimation, SWIG_Callback9_t callbackOnKeyEvent, SWIG_Callback11_t callbackOnRelayout, SWIG_Callback12_t callbackOnSetResizePolicy, SWIG_Callback13_t callbackGetNaturalSize, SWIG_Callback14_t callbackCalculateChildSize, SWIG_Callback15_t callbackGetHeightForWidth, SWIG_Callback16_t callbackGetWidthForHeight, SWIG_Callback17_t callbackRelayoutDependentOnChildren__SWIG_0, SWIG_Callback18_t callbackRelayoutDependentOnChildren__SWIG_1, SWIG_Callback19_t callbackOnCalculateRelayoutSize, SWIG_Callback20_t callbackOnLayoutNegotiated, SWIG_Callback21_t callbackOnInitialize, SWIG_Callback24_t callbackOnStyleChange, SWIG_Callback25_t callbackOnAccessibilityActivated, SWIG_Callback26_t callbackOnAccessibilityPan, SWIG_Callback28_t callbackOnAccessibilityValueChange, SWIG_Callback29_t callbackOnAccessibilityZoom, SWIG_Callback30_t callbackOnKeyInputFocusGained, SWIG_Callback31_t callbackOnKeyInputFocusLost, SWIG_Callback32_t callbackGetNextKeyboardFocusableActor, SWIG_Callback33_t callbackOnKeyboardFocusChangeCommitted, SWIG_Callback34_t callbackOnKeyboardEnter, SWIG_Callback35_t callbackOnPinch, SWIG_Callback36_t callbackOnPan, SWIG_Callback37_t callbackOnTap, SWIG_Callback38_t callbackOnLongPress, SWIG_Callback39_t callbackSignalConnected, SWIG_Callback40_t callbackSignalDisconnected);
175 SWIG_Callback0_t swig_callbackOnSceneConnection;
176 SWIG_Callback1_t swig_callbackOnSceneDisconnection;
177 SWIG_Callback2_t swig_callbackOnChildAdd;
178 SWIG_Callback3_t swig_callbackOnChildRemove;
179 SWIG_Callback4_t swig_callbackOnPropertySet;
180 SWIG_Callback5_t swig_callbackOnSizeSet;
181 SWIG_Callback6_t swig_callbackOnSizeAnimation;
182 SWIG_Callback9_t swig_callbackOnKeyEvent;
183 SWIG_Callback11_t swig_callbackOnRelayout;
184 SWIG_Callback12_t swig_callbackOnSetResizePolicy;
185 SWIG_Callback13_t swig_callbackGetNaturalSize;
186 SWIG_Callback14_t swig_callbackCalculateChildSize;
187 SWIG_Callback15_t swig_callbackGetHeightForWidth;
188 SWIG_Callback16_t swig_callbackGetWidthForHeight;
189 SWIG_Callback17_t swig_callbackRelayoutDependentOnChildren__SWIG_0;
190 SWIG_Callback18_t swig_callbackRelayoutDependentOnChildren__SWIG_1;
191 SWIG_Callback19_t swig_callbackOnCalculateRelayoutSize;
192 SWIG_Callback20_t swig_callbackOnLayoutNegotiated;
193 SWIG_Callback21_t swig_callbackOnInitialize;
194 SWIG_Callback24_t swig_callbackOnStyleChange;
195 SWIG_Callback25_t swig_callbackOnAccessibilityActivated;
196 SWIG_Callback26_t swig_callbackOnAccessibilityPan;
197 SWIG_Callback28_t swig_callbackOnAccessibilityValueChange;
198 SWIG_Callback29_t swig_callbackOnAccessibilityZoom;
199 SWIG_Callback30_t swig_callbackOnKeyInputFocusGained;
200 SWIG_Callback31_t swig_callbackOnKeyInputFocusLost;
201 SWIG_Callback32_t swig_callbackGetNextKeyboardFocusableActor;
202 SWIG_Callback33_t swig_callbackOnKeyboardFocusChangeCommitted;
203 SWIG_Callback34_t swig_callbackOnKeyboardEnter;
204 SWIG_Callback35_t swig_callbackOnPinch;
205 SWIG_Callback36_t swig_callbackOnPan;
206 SWIG_Callback37_t swig_callbackOnTap;
207 SWIG_Callback38_t swig_callbackOnLongPress;
208 SWIG_Callback39_t swig_callbackSignalConnected;
209 SWIG_Callback40_t swig_callbackSignalDisconnected;
210 void swig_init_callbacks();
213 #endif /* CSHARP_VIEW_WRAPPER_IMPL_H */