--- /dev/null
+To build C# binding for Ubuntu desktop for the first time:
+
+set dali_env
+
+cd build
+./autogen.sh --install
+./configure
+make
+
+To build C# binding for Ubuntu desktop using SWIG after updating:
+
+make maintainer-clean
+./configure
+make
+
+To build C# examples with the C# binding together for Ubuntu desktop:
+
+make check
+
+To run examples on Ubuntu desktop:
+
+cd examples
+DALI_WINDOW_WIDTH=480 DALI_WINDOW_HEIGHT=800 ./hello-world.exe
+
PKG_CHECK_MODULES(DALIADAPTOR, dali-adaptor)
PKG_CHECK_MODULES(DALITOOLKIT, dali-toolkit)
+
+AC_SUBST(CXXFLAGS)
+
AC_PATH_PROGS([MCS], [gmcs mcs gmcs2])
AM_CONDITIONAL(HAVE_MCS, test "x${MCS}" != "x")
+++ /dev/null
-*.dll
-examples/*.exe
-autom4te.cache/
-aclocal.m4
-config/
-config.*
-automatic/*
-configure
+++ /dev/null
-# Copyright (c) 2016 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.
-
-CLEANFILES = automatic/cpp/dali_wrap.* automatic/csharp/*.cs *.so *.dll \
- manual/cpp/*.o \
- examples/*.so examples/*.dll examples/*.exe
-
-BUILT_SOURCES = automatic/cpp/dali_wrap.cpp automatic/cpp/dali_wrap.h
-
-if HAVE_MCS
-if BUILD_MCS
-
-all-local: libNDalic.so NDali.dll
-
-libNDalic.so: automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o manual/cpp/view-wrapper-impl-wrap.o manual/cpp/event-thread-callback-wrap.o manual/cpp/devel-property-wrap.o
- g++ -shared automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o manual/cpp/view-wrapper-impl-wrap.o manual/cpp/event-thread-callback-wrap.o manual/cpp/devel-property-wrap.o -o libNDalic.so $(DALICORE_LIBS) $(DALIADAPTOR_LIBS) $(DALITOOLKIT_LIBS)
-
-automatic/cpp/dali_wrap.o: $(BUILT_SOURCES)
- g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) automatic/cpp/dali_wrap.cpp -o automatic/cpp/dali_wrap.o
-
-manual/cpp/keyboard_focus_manager_wrap.o: $(BUILT_SOURCES)
- g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/keyboard_focus_manager_wrap.cpp -o manual/cpp/keyboard_focus_manager_wrap.o
-
-manual/cpp/view-wrapper-impl-wrap.o: $(BUILT_SOURCES)
- g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/view-wrapper-impl-wrap.cpp -o manual/cpp/view-wrapper-impl-wrap.o
-
-manual/cpp/event-thread-callback-wrap.o: $(BUILT_SOURCES)
- g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/event-thread-callback-wrap.cpp -o manual/cpp/event-thread-callback-wrap.o
-
-manual/cpp/devel-property-wrap.o: $(BUILT_SOURCES)
- g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/devel-property-wrap.cpp -o manual/cpp/devel-property-wrap.o
-
-NDali.dll: $(BUILT_SOURCES)
- $(MCS) -nologo -target:library -out:NDali.dll automatic/csharp/*.cs manual/csharp/*.cs views/*.cs
-
-check-local: examples/dali-test.exe \
- examples/hello-world.exe \
- examples/scroll-view.exe \
- examples/custom-control.exe \
- examples/date-picker.exe \
- examples/control-dashboard.exe \
- examples/date-picker-using-json.exe \
- examples/json-loader.exe \
- examples/user-alphafunction.exe \
- examples/image-view.exe \
- examples/visuals-example.exe \
- examples/visuals-using-custom-view.exe \
- examples/libNDalic.so examples/NDali.dll
-
-examples/%.exe: examples/%.cs
- $(MCS) -nologo -target:exe -out:$@ -reference:NDali.dll $<
-
-examples/visuals-using-custom-view.exe: examples/visuals-using-custom-view/*.cs
- $(MCS) -nologo -target:exe -out:$@ -reference:NDali.dll $^
-
-examples/libNDalic.so: libNDalic.so
- cd examples && ln -sf ../libNDalic.so
-
-examples/NDali.dll: NDali.dll
- cd examples && ln -sf ../NDali.dll
-
-endif
-endif
-
-# use swig to generate the CS wrapper code
-# then call our property-wrapper to inject DALi property getters / setters
-$(BUILT_SOURCES): SWIG/*.i
- rm -f automatic/csharp/*.cs
- mkdir -p automatic/csharp
- $(SWIG) -csharp -c++ -outdir automatic/csharp \
- $(DALI_CFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) -namespace Dali -o automatic/cpp/dali_wrap.cpp SWIG/dali.i
- ./property-wrapper.rb
- ./constructor-generator.rb
-
-# have manual binding for View now, but cannot stop swig generating binding for
-# it as otherwise swig will not generate correct binding for any classes inherited
-# from it, therefore have to delete the automatic binding for View in the end
- rm -f automatic/csharp/View.cs
-
-dist-hook: $(BUILT_SOURCES)
- mkdir -p $(distdir)/automatic/cpp
- cp ./automatic/cpp/*.cpp $(distdir)/automatic/cpp
- cp ./automatic/cpp/*.h $(distdir)/automatic/cpp
- mkdir -p $(distdir)/manual/cpp
- cp ./manual/cpp/*.cpp $(distdir)/manual/cpp
- cp ./manual/cpp/*.h $(distdir)/manual/cpp
- mkdir -p $(distdir)/automatic/csharp
- cp ./automatic/csharp/*.cs $(distdir)/automatic/csharp
- mkdir -p $(distdir)/manual/csharp
- cp ./manual/csharp/*.cs $(distdir)/manual/csharp
- mkdir -p $(distdir)/examples
- cp ./examples/*.csproj $(distdir)/examples
- cp ./examples/*.cs $(distdir)/examples
-
-
+++ /dev/null
-To add the Mono Project GPG signing key and the package repository (http://www.mono-project.com/docs/getting-started/install/linux/):
-
-sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
-echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
-sudo apt-get update
-
-To install Mono:
-
-sudo apt-get install mono-devel
-sudo apt-get install mono-complete
-sudo apt-get install referenceassemblies-pcl
-sudo apt-get install ca-certificates-mono
-
-To install SWIG:
-
-a) Download Swig-3.0.10 from http://www.swig.org/download.html
-b) Untar the files and refer "INSTALL" file to install Swig as mentioned below:
- 1) ./configure --with-csharp-compiler=/usr/bin/mcs
- (/usr/bin/mcs is the mono compiler path from step 1)
- 2) make
- 3) sudo make install
-
-To build C# binding for Ubuntu desktop using SWIG for the first time:
-
-./autogen.sh
-./configure
-make
-
-To build C# binding for Ubuntu desktop using SWIG after updating:
-
-make maintainer-clean
-./configure
-make
-
-To build C# examples with the C# binding together for Ubuntu desktop:
-
-make check
-
-To run examples on Ubuntu desktop:
-
-cd examples
-DALI_WINDOW_WIDTH=480 DALI_WINDOW_HEIGHT=800 ./hello-world.exe
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%typemap(csimports) Dali::Window %{
- using System;
- using System.Runtime.InteropServices;
-%}
-
-
-%typemap(cscode) Dali::Window %{
-
- public void SetAcceptFocus( bool accept )
- {
- NDalicPINVOKE.SetAcceptFocus(swigCPtr, accept);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public bool IsFocusAcceptable()
- {
- return NDalicPINVOKE.IsFocusAcceptable(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Show()
- {
- NDalicPINVOKE.Show(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Hide()
- {
- NDalicPINVOKE.Hide(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void IsVisible()
- {
- NDalicPINVOKE.IsVisible(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public class WindowFocusChangedEventArgs : EventArgs
- {
- public bool FocusGained
- {
- get;
- set;
- }
- }
-
- private WindowFocusChangedEventCallbackType _windowFocusChangedEventCallback;
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void WindowFocusChangedEventCallbackType(bool focusGained);
- private event EventHandler<WindowFocusChangedEventArgs> _windowFocusChangedEventHandler;
-
- public event EventHandler<WindowFocusChangedEventArgs> WindowFocusChanged
- {
- add
- {
- if (_windowFocusChangedEventHandler == null)
- {
- _windowFocusChangedEventCallback = OnWindowFocusedChanged;
- WindowFocusChangedSignal().Connect(_windowFocusChangedEventCallback);
- }
-
- _windowFocusChangedEventHandler += value;
- }
- remove
- {
- _windowFocusChangedEventHandler -= value;
-
- if (_windowFocusChangedEventHandler == null && _windowFocusChangedEventCallback != null)
- {
- WindowFocusChangedSignal().Disconnect(_windowFocusChangedEventCallback);
- }
- }
- }
-
- private void OnWindowFocusedChanged(bool focusGained)
- {
- WindowFocusChangedEventArgs e = new WindowFocusChangedEventArgs();
-
- e.FocusGained = focusGained;
-
- if (_windowFocusChangedEventHandler != null)
- {
- _windowFocusChangedEventHandler(this, e);
- }
- }
-
- public WindowFocusSignalType WindowFocusChangedSignal() {
- WindowFocusSignalType ret = new WindowFocusSignalType(NDalicPINVOKE.FocusChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%ignore Dali::Window::IndicatorVisibilityChangedSignal();
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%typemap(cscode) Dali::AlphaFunction %{
- public AlphaFunction(System.Delegate func) : this(NDalicPINVOKE.new_AlphaFunction__SWIG_2(SWIGTYPE_p_f_float__float.getCPtr(new SWIGTYPE_p_f_float__float(System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func), true))), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-%}
-
-
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%ignore *::Application(Internal::Adaptor::Application*);
-%ignore *::DragAndDropDetector(Internal::Adaptor::DragAndDropDetector*);
-%ignore *::Timer(Internal::Adaptor::Timer*);
-%ignore *::Window(Internal::Adaptor::Window*);
-
-%rename(StyleChangeType) Dali::StyleChange::Type;
-
-%include <dali/public-api/adaptor-framework/style-change.h>
-%include <dali/public-api/adaptor-framework/timer.h>
-%include <dali/devel-api/adaptor-framework/drag-and-drop-detector.h>
-%include <dali/devel-api/adaptor-framework/application-extensions.h>
-%include <dali/public-api/adaptor-framework/window.h>
-%include <dali/devel-api/adaptor-framework/window-devel.h>
-
-#if defined(SWIGCSHARP)
-
-// %include <arrays_csharp.i>
-// CSHARP_ARRAYS(char **, string)
-// %typemap(imtype, inattributes="[global::System.Runtime.InteropServices.In, global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPArray, SizeParamIndex=0, ArraySubType=global::System.Runtime.InteropServices.UnmanagedType.LPStr)]") char **INPUT[] "string[]"
-// %apply int *INPUT { int *argc };
-// %apply char **INPUT[] { char **argv[] };
-
-%{
- // keep argcs and argv so they're always available to DALi
- int argC = 1;
- char **argV = NULL;
-%}
-
-// Temporary hack to generate argv. Todo... support conversions from the C# strings[] in the argv that is generated below
-
-%typemap(in) ( int* argc, char **argv[] ) {
-
- // 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;
-
- // 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
-
- strcpy( array[0], "dali-csharp-app");
-
- $1 = &argC;
- $2 = &argV;
-}
-
-// add interop services to the file
-//%typemap(csimports) Dali::Application "using System.Runtime.InteropServices;"
-
-%csmethodmodifiers Dali::Application::New() "
- /**
- * Outer::outer_method(int)
- */
- public";
-
-%typemap(in) ( int* argc, char **argv[] ) {
-
- // 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;
-
- // 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
-
- strcpy( array[0], "dali-csharp-app");
-
- $1 = &argC;
- $2 = &argV;
-}
-
-%apply int* INPUT { int* argc };
-
-#endif
-
-%include <dali/public-api/adaptor-framework/application.h>
-
-%template(ApplicationSignal) Dali::Signal<void(Dali::Application&)>;
-%template(ApplicationControlSignal) Dali::Signal<void(Dali::Application&, void*)>;
-%template(TimerSignalType) Dali::Signal<bool()>;
-%template(WindowFocusSignalType) Dali::Signal<void(bool)>;
-
-
-// Application specialisation
-// Macro to convert from a void * callback to a DALi C# object
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%apply int& INOUT { int& integerValue };
-%apply float& INOUT { float& floatValue };
-%apply bool& INOUT { bool& boolValue };
-%apply float& OUTPUT { float& localX };
-%apply float& OUTPUT { float& localY };
-%apply float& OUTPUT { float& viewportX };
-%apply float& OUTPUT { float& viewportY };
-
-%include arrays_csharp.i
-%apply unsigned char INPUT[] { unsigned char* pixelBuffer}
-%apply unsigned char INPUT[] { unsigned char* buffer}
-%apply unsigned char INPUT[] { unsigned char* at}
-%apply unsigned char INPUT[] { unsigned char* iterator}
-%apply unsigned char INPUT[] { unsigned char* first}
-//%apply unsigned char OUTPUT[] { unsigned char* GetBuffer}
-//%apply unsigned char OUTPUT[] { unsigned char* Begin}
-//%apply unsigned char OUTPUT[] { unsigned char* End}
-%apply unsigned char OUTPUT[] { unsigned char* ValueOfIndex}
-%apply unsigned short INPUT[] { unsigned short* indices}
-%apply float INPUT[] { float* array }
-
-%ignore *::Animation(Internal::Animation*);
-%ignore *::Actor(Internal::Actor*);
-%ignore *::BufferImage(Internal::BufferImage*);
-%ignore *::CameraActor(Internal::CameraActor*);
-%ignore *::CustomActor(Internal::CustomActor*);
-%ignore *::EncodedBufferImage(Internal::EncodedBufferImage*);
-%ignore *::FrameBuffer(Internal::FrameBuffer*);
-%ignore *::FrameBufferImage(Internal::FrameBufferImage*);
-%ignore *::Geometry(Internal::Geometry*);
-%ignore *::Handle(Dali::Internal::Object*);
-%ignore *::Image(Internal::Image*);
-%ignore *::KeyFrames(Internal::KeyFrames*);
-%ignore *::Layer(Internal::Layer*);
-%ignore *::LinearConstrainer(Internal::LinearConstrainer*);
-%ignore *::LongPressGestureDetector(Internal::LongPressGestureDetector*);
-%ignore *::NativeImage(Internal::NativeImage*);
-%ignore *::NinePatchImage(Internal::NinePatchImage*);
-%ignore *::ObjectRegistry(Internal::ObjectRegistry*);
-%ignore *::PanGestureDetector(Internal::PanGestureDetector*);
-%ignore *::Path(Internal::Path*);
-%ignore *::PathConstrainer(Internal::PathConstrainer*);
-%ignore *::PinchGestureDetector(Internal::PinchGestureDetector*);
-%ignore *::PixelData(Internal::PixelData*);
-%ignore *::PropertyBuffer(Internal::PropertyBuffer*);
-%ignore *::PropertyNotification(Internal::PropertyNotification*);
-%ignore *::Renderer(Internal::Renderer*);
-%ignore *::RenderTask(Internal::RenderTask*);
-%ignore *::RenderTaskList(Internal::RenderTaskList*);
-%ignore *::ResourceImage(Internal::ResourceImage*);
-%ignore *::Sampler(Internal::Sampler*);
-%ignore *::Shader(Internal::Shader*);
-%ignore *::Stage(Internal::Stage*);
-%ignore *::TapGestureDetector(Internal::TapGestureDetector*);
-%ignore *::Texture(Internal::NewTexture*);
-%ignore *::TextureSet(Internal::TextureSet*);
-%ignore *::TouchData(Internal::TouchData*);
-%ignore *::TypeInfo(Internal::TypeInfo*);
-%ignore *::GetExtension();
-%ignore *::Initialize(Internal::CustomActor&);
-%ignore *::GetOwner() const;
-%ignore *::ParentOrigin::DEFAULT;
-%ignore *::AnchorPoint::DEFAULT;
-%ignore *::SetPositionInheritanceMode(PositionInheritanceMode);
-%ignore *::GetKeyValue(SizeType) const;
-%ignore *::TypeInfo::GetCreator() const;
-%ignore Dali::Stage::TouchedSignal;
-%ignore Dali::DevelActor::Property::Type;
-
-%rename(ParentOriginTop) Dali::ParentOrigin::TOP;
-%rename(ParentOriginBottom) Dali::ParentOrigin::BOTTOM;
-%rename(ParentOriginLeft) Dali::ParentOrigin::LEFT;
-%rename(ParentOriginRight) Dali::ParentOrigin::RIGHT;
-%rename(ParentOriginMiddle) Dali::ParentOrigin::MIDDLE;
-%rename(ParentOriginTopLeft) Dali::ParentOrigin::TOP_LEFT;
-%rename(ParentOriginTopCenter) Dali::ParentOrigin::TOP_CENTER;
-%rename(ParentOriginTopRight) Dali::ParentOrigin::TOP_RIGHT;
-%rename(ParentOriginCenterLeft) Dali::ParentOrigin::CENTER_LEFT;
-%rename(ParentOriginCenter) Dali::ParentOrigin::CENTER;
-%rename(ParentOriginCenterRight) Dali::ParentOrigin::CENTER_RIGHT;
-%rename(ParentOriginBottomLeft) Dali::ParentOrigin::BOTTOM_LEFT;
-%rename(ParentOriginBottomCenter) Dali::ParentOrigin::BOTTOM_CENTER;
-%rename(ParentOriginBottomRight) Dali::ParentOrigin::BOTTOM_RIGHT;
-%rename(AnchorPointTop) Dali::AnchorPoint::TOP;
-%rename(AnchorPointBottom) Dali::AnchorPoint::BOTTOM;
-%rename(AnchorPointLeft) Dali::AnchorPoint::LEFT;
-%rename(AnchorPointRight) Dali::AnchorPoint::RIGHT;
-%rename(AnchorPointMiddle) Dali::AnchorPoint::MIDDLE;
-%rename(AnchorPointTopLeft) Dali::AnchorPoint::TOP_LEFT;
-%rename(AnchorPointTopCenter) Dali::AnchorPoint::TOP_CENTER;
-%rename(AnchorPointTopRight) Dali::AnchorPoint::TOP_RIGHT;
-%rename(AnchorPointCenterLeft) Dali::AnchorPoint::CENTER_LEFT;
-%rename(AnchorPointCenter) Dali::AnchorPoint::CENTER;
-%rename(AnchorPointCenterRight) Dali::AnchorPoint::CENTER_RIGHT;
-%rename(AnchorPointBottomLeft) Dali::AnchorPoint::BOTTOM_LEFT;
-%rename(AnchorPointBottomCenter) Dali::AnchorPoint::BOTTOM_CENTER;
-%rename(AnchorPointBottomRight) Dali::AnchorPoint::BOTTOM_RIGHT;
-%rename(ConvertToFloat) operator float;
-%rename(DimensionType) Dali::Dimension::Type;
-%rename(ResizePolicyType) Dali::ResizePolicy::Type;
-%rename(ResizePolicyDefault) Dali::ResizePolicy::DEFAULT;
-%rename(SizeScalePolicyType) Dali::SizeScalePolicy::Type;
-%rename(HorizontalAlignmentType) Dali::HorizontalAlignment::Type;
-%rename(VerticalAlignmentType) Dali::VerticalAlignment::Type;
-%rename(ClippingModeType) Dali::ClippingMode::Type;
-%rename(FilterModeType) Dali::FilterMode::Type;
-%rename(WrapModeType) Dali::WrapMode::Type;
-%rename(PixelFormat) Dali::Pixel::Format;
-%rename(TextureType) Dali::TextureType::Type;
-%rename(FaceCullingModeType) Dali::FaceCullingMode::Type;
-%rename(BlendModeType) Dali::BlendMode::Type;
-%rename(BlendEquationType) Dali::BlendEquation::Type;
-%rename(BlendFactorType) Dali::BlendFactor::Type;
-%rename(DepthWriteModeType) Dali::DepthWriteMode::Type;
-%rename(DepthTestModeType) Dali::DepthTestMode::Type;
-%rename(DepthFunctionType) Dali::DepthFunction::Type;
-%rename(RenderModeType) Dali::RenderMode::Type;
-%rename(StencilFunctionType) Dali::StencilFunction::Type;
-%rename(StencilModeType) Dali::StencilMode::Type;
-%rename(StencilOperationType) Dali::StencilOperation::Type;
-%rename(DrawModeType) Dali::DrawMode::Type;
-%rename(PointStateType) Dali::PointState::Type;
-%rename(FittingModeType) Dali::FittingMode::Type;
-%rename(FittingModeDefault) Dali::FittingMode::DEFAULT;
-%rename(SamplingModeType) Dali::SamplingMode::Type;
-%rename(RenderBufferFormat) Dali::RenderBuffer::Format;
-%rename(BlendingModeType) Dali::BlendingMode::Type;
-%rename(BlendingFactorType) Dali::BlendingFactor::Type;
-%rename(BlendingEquationType) Dali::BlendingEquation::Type;
-%rename(CameraType) Dali::Camera::Type;
-%rename(LayerBehavior) Dali::Layer::Behavior;
-%rename(X) Dali::Vector2::x;
-%rename(Y) Dali::Vector2::y;
-%rename(Width) Dali::Vector2::width;
-%rename(Height) Dali::Vector2::height;
-%rename(X) Dali::Vector3::x;
-%rename(Y) Dali::Vector3::y;
-%rename(Z) Dali::Vector3::z;
-%rename(Width) Dali::Vector3::width;
-%rename(Height) Dali::Vector3::height;
-%rename(Depth) Dali::Vector3::depth;
-%rename(X) Dali::Vector4::x;
-%rename(Y) Dali::Vector4::y;
-%rename(Z) Dali::Vector4::z;
-%rename(W) Dali::Vector4::w;
-%rename(VisibilityChangeType) Dali::DevelActor::VisibilityChange::Type;
-
-typedef std::pair<std::string, Dali::Property::Value> StringValuePair;
-typedef std::vector<Dali::TouchPoint> TouchPointContainer;
-typedef std::pair< Dali::Radian, Dali::Radian > AngleThresholdPair;
-
-%include <dali/public-api/object/ref-object.h>
-%include <dali/public-api/object/any.h>
-
-%include <dali/public-api/common/dali-common.h>
-%include <dali/public-api/common/intrusive-ptr.h>
-
-%include <dali/public-api/math/vector2.h>
-%include <dali/public-api/math/vector3.h>
-%include <dali/public-api/math/vector4.h>
-%include <dali/public-api/math/rect.h>
-%include <dali/public-api/math/uint-16-pair.h>
-%include <dali/public-api/math/degree.h>
-%include <dali/public-api/math/radian.h>
-%include <dali/public-api/math/quaternion.h>
-%include <dali/public-api/math/matrix.h>
-%include <dali/public-api/math/matrix3.h>
-%include <dali/public-api/math/random.h>
-%include <dali/public-api/math/angle-axis.h>
-%include <dali/public-api/math/viewport.h>
-%include <dali/public-api/math/math-utils.h>
-
-%include <dali/public-api/object/property-index-ranges.h>
-%include <dali/public-api/object/property.h>
-%include <dali/public-api/object/property-array.h>
-%include <dali/public-api/object/property-key.h>
-%include <dali/public-api/object/property-map.h>
-%include <dali/public-api/object/property-types.h>
-%include <dali/public-api/object/property-value.h>
-%include <dali/public-api/object/base-object.h>
-%include <dali/public-api/object/base-handle.h>
-
-%include <dali/public-api/signals/connection-tracker-interface.h>
-%include <dali/public-api/signals/signal-slot-observers.h>
-%include <dali/public-api/signals/connection-tracker.h>
-%include <dali/public-api/signals/dali-signal.h>
-
-%include <dali/public-api/object/object-registry.h>
-%include <dali/public-api/object/property-conditions.h>
-%include <dali/public-api/object/property-notification-declarations.h>
-%include <dali/public-api/object/property-notification.h>
-%include <dali/public-api/object/handle.h>
-%include <dali/public-api/object/type-info.h>
-%include <dali/public-api/object/type-registry.h>
-%include <dali/devel-api/object/csharp-type-info.h>
-%include <dali/devel-api/object/csharp-type-registry.h>
-
-%include <dali/public-api/common/constants.h>
-%include <dali/public-api/actors/actor-enumerations.h>
-%include <dali/public-api/common/dali-vector.h>
-%include <dali/public-api/common/vector-wrapper.h>
-
-%include <dali/public-api/images/image.h>
-%include <dali/public-api/actors/sampling.h>
-%include <dali/public-api/images/pixel.h>
-%include <dali/public-api/images/pixel-data.h>
-
-%include <dali/public-api/rendering/texture.h>
-%include <dali/public-api/rendering/sampler.h>
-%include <dali/public-api/rendering/texture-set.h>
-%include <dali/public-api/rendering/property-buffer.h>
-%include <dali/public-api/rendering/geometry.h>
-%include <dali/public-api/rendering/shader.h>
-%include <dali/public-api/rendering/renderer.h>
-%include <dali/public-api/actors/draw-mode.h>
-%include <dali/public-api/common/loading-state.h>
-%include <dali/public-api/rendering/frame-buffer.h>
-%include <dali/public-api/render-tasks/render-task-list.h>
-%include <dali/public-api/render-tasks/render-task.h>
-
-%include <dali/public-api/events/touch-point.h>
-%include <dali/public-api/events/point-state.h>
-%include <dali/public-api/events/touch-data.h>
-%include <dali/public-api/events/gesture-detector.h>
-%include <dali/public-api/events/gesture.h>
-%include <dali/public-api/events/hover-event.h>
-%include <dali/public-api/events/key-event.h>
-%include <dali/public-api/events/long-press-gesture-detector.h>
-%include <dali/public-api/events/long-press-gesture.h>
-%include <dali/public-api/events/wheel-event.h>
-%include <dali/devel-api/events/key-event-devel.h>
-
-%include <dali/public-api/actors/actor.h>
-%include <dali/devel-api/actors/actor-devel.h>
-%include <dali/public-api/actors/layer.h>
-%include <dali/public-api/common/stage.h>
-%include <dali/public-api/size-negotiation/relayout-container.h>
-%include <dali/public-api/actors/custom-actor-impl.h>
-%include <dali/public-api/actors/custom-actor.h>
-
-%include <dali/public-api/events/pan-gesture-detector.h>
-%include <dali/public-api/events/pan-gesture.h>
-%include <dali/public-api/events/pinch-gesture-detector.h>
-%include <dali/public-api/events/pinch-gesture.h>
-%include <dali/public-api/events/tap-gesture-detector.h>
-%include <dali/public-api/events/tap-gesture.h>
-
-%include <dali/public-api/animation/alpha-function.h>
-%include <dali/public-api/animation/key-frames.h>
-%include <dali/public-api/animation/path.h>
-%include <dali/public-api/animation/time-period.h>
-%include <dali/public-api/animation/animation.h>
-%include <dali/public-api/animation/linear-constrainer.h>
-%include <dali/devel-api/animation/path-constrainer.h>
-
-%include <dali/public-api/common/view-mode.h>
-%include <dali/public-api/images/image-operations.h>
-%include <dali/public-api/images/buffer-image.h>
-%include <dali/public-api/images/encoded-buffer-image.h>
-%include <dali/public-api/images/native-image.h>
-%include <dali/public-api/images/native-image-interface.h>
-%include <dali/public-api/images/resource-image.h>
-%include <dali/public-api/images/frame-buffer-image.h>
-%include <dali/devel-api/images/nine-patch-image.h>
-
-%include <dali/public-api/actors/camera-actor.h>
-
-%template(StringValuePair) std::pair<std::string, Dali::Property::Value>;
-%template(TouchPointContainer) std::vector<Dali::TouchPoint>;
-%template(Rectangle) Dali::Rect<int>;
-%template(PaddingType) Dali::Rect<float>;
-%template(VectorInteger) Dali::Vector<int>;
-%template(VectorFloat) Dali::Vector<float>;
-%template(VectorUnsignedChar) Dali::Vector<unsigned char>;
-%template(VectorUint16Pair) Dali::Vector<Dali::Uint16Pair>;
-%template(VoidSignal) Dali::Signal<void()>;
-%template(FloatSignal) Dali::Signal<void(float)>;
-%template(ObjectCreatedSignal) Dali::Signal<void(Dali::BaseHandle)>;
-%template(ObjectDestroyedSignal) Dali::Signal<void(const Dali::RefObject*)>;
-%template(PropertyNotifySignal) Dali::Signal<void(Dali::PropertyNotification&)>;
-%template(ImageSignal) Dali::Signal<void(Dali::Image)>;
-%template(RenderTaskSignal) Dali::Signal<void(Dali::RenderTask&)>;
-%template(LongPressGestureDetectedSignal) Dali::Signal<void (Dali::Actor, const Dali::LongPressGesture&)>;
-//%template(ActorTouchEventSignal) Dali::Signal<bool (Dali::Actor, const Dali::TouchEvent&)>;
-%template(ActorTouchDataSignal) Dali::Signal<bool (Dali::Actor, const Dali::TouchData&)>;
-%template(ActorHoverSignal) Dali::Signal<bool (Dali::Actor, const Dali::HoverEvent&)>;
-%template(ActorWheelSignal) Dali::Signal<bool (Dali::Actor, const Dali::WheelEvent&)>;
-%template(ActorSignal) Dali::Signal<void (Dali::Actor)>;
-%template(KeyEventSignal) Dali::Signal<void (const Dali::KeyEvent&)>;
-//%template(TouchEventSignal) Dali::Signal<void (const Dali::TouchEvent&)>;
-%template(TouchSignal) Dali::Signal<void (const Dali::TouchData&)>;
-%template(StageWheelSignal) Dali::Signal<void (const Dali::WheelEvent&)>;
-%template(AngleThresholdPair) std::pair<Dali::Radian, Dali::Radian>;
-%template(PanGestureDetectedSignal) Dali::Signal<void (Dali::Actor, const Dali::PanGesture&)>;
-%template(PinchGestureDetectedSignal) Dali::Signal<void (Dali::Actor, const Dali::PinchGesture&)>;
-%template(TapGestureDetectedSignal) Dali::Signal<void (Dali::Actor, const Dali::TapGesture&)>;
-%template(AnimationSignal) Dali::Signal<void(Dali::Animation&)>;
-%template(ResourceImageSignal) Dali::Signal<void(Dali::ResourceImage)>;
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%define DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( NameSpace, ClassName )
-%typemap(csdestruct, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_##ClassName(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( NameSpace, ClassName )
-%typemap(csdestruct_derived, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_##ClassName(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( NameSpace, ClassName )
-%typemap(csfinalize) NameSpace::ClassName %{
- ~ClassName() {
- DisposeQueue.Instance.Add(this);
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( NameSpace, ClassName, NewClassName )
-%typemap(csfinalize) NameSpace::ClassName %{
- ~NewClassName() {
- DisposeQueue.Instance.Add(this);
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( NameSpace, ClassName, NewClassName )
-%typemap(csdestruct, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_##NewClassName(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION_RENAME( NameSpace, ClassName, NewClassName )
-%typemap(csdestruct_derived, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_##NewClassName(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_STRINGVALUEPAIR( NameSpace, ClassName )
-%typemap(csfinalize) NameSpace::ClassName %{
- ~StringValuePair() {
- DisposeQueue.Instance.Add(this);
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_STRINGVALUEPAIR( NameSpace, ClassName )
-%typemap(csdestruct, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_StringValuePair(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_BOOLSIGNAL( NameSpace, ClassName )
-%typemap(csfinalize) NameSpace::ClassName %{
- ~BoolSignal() {
- DisposeQueue.Instance.Add(this);
- }
-%}
-%enddef
-
-%define DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_BOOLSIGNAL( NameSpace, ClassName )
-%typemap(csdestruct, methodname="Dispose", methodmodifiers="public") NameSpace::ClassName %{{
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_BoolSignal(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-%}
-%enddef
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Any );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Any );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Actor );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Actor );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, AlphaFunction );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, AlphaFunction );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Animation );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Animation );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, AngleAxis );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, AngleAxis );
-
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, BaseObject );
-//DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, BaseObject );
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, RefObject );
-//DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, RefObject );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Handle );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Handle );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ObjectRegistry );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, ObjectRegistry );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, BaseHandle );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, BaseHandle );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, BufferImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, BufferImage );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, CameraActor );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, CameraActor );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, CustomActor );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, CustomActor );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ConnectionTracker );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, ConnectionTracker );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ConnectionTrackerInterface );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, ConnectionTrackerInterface );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Degree );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Degree );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, EncodedBufferImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, EncodedBufferImage );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, FrameBuffer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, FrameBuffer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, FrameBufferImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, FrameBufferImage );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Geometry );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Geometry );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Gesture );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Gesture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, GestureDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, GestureDetector );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TapGesture );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, TapGesture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TapGestureDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, TapGestureDetector );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PanGesture );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PanGesture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PanGestureDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PanGestureDetector );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PinchGesture );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PinchGesture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PinchGestureDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PinchGestureDetector );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, LongPressGesture );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, LongPressGesture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, LongPressGestureDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, LongPressGestureDetector );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, KeyEvent, Key );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, KeyEvent, Key );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, HoverEvent, Hover );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, HoverEvent, Hover );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TouchEvent );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, TouchEvent );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, WheelEvent, Wheel );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, WheelEvent, Wheel );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Renderer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Renderer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, RenderTask );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, RenderTask );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, RenderTaskList );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, RenderTaskList );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, RelayoutContainer );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, RelayoutContainer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Radian );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Radian );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Quaternion, Rotation );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Quaternion, Rotation );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Matrix );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Matrix );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Matrix3 );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Matrix3 );
-
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, RulerPtr );
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, RulerPtr );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Layer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Layer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, KeyFrames );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, KeyFrames );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Stage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Stage );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Sampler );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Sampler );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Shader );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Shader );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Vector2 );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Vector2 );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Vector3 );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Vector3 );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Vector4 );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Vector4 );
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, VectorBase );
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, VectorBase );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Image );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Image );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, NativeImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, NativeImage );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, NinePatchImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, NinePatchImage );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ResourceImage );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, ResourceImage );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Path );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Path );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Property );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Property );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PropertyBuffer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PropertyBuffer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PropertyCondition );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PropertyCondition );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PropertyNotification );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PropertyNotification );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PixelData );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PixelData );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Uint16Pair );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, Uint16Pair );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TypeInfo );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, TypeInfo );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Texture );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Texture );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TextureSet );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, TextureSet );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TimePeriod );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, TimePeriod );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, LinearConstrainer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, LinearConstrainer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, PathConstrainer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, PathConstrainer );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, TouchPoint );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, TouchPoint );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, TouchData, Touch );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION_RENAME( Dali, TouchData, Touch );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Application );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Application );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, DragAndDropDetector );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, DragAndDropDetector );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Timer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Timer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, Window );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali, Window );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, AccessibilityManager );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, AccessibilityManager );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Alignment );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Alignment );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Button );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Button );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, CheckBoxButton );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, CheckBoxButton );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, PushButton );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, PushButton );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, RadioButton );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, RadioButton );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ToggleButton );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ToggleButton );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Builder );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Builder );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit::DevelKeyboardFocusManager, CustomAlgorithmInterface );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali::Toolkit::DevelKeyboardFocusManager, CustomAlgorithmInterface );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, FlexContainer );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, FlexContainer );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, GaussianBlurView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, GaussianBlurView );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ImageView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ImageView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ItemView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ItemView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ItemFactory );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali::Toolkit, ItemFactory );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ItemLayout );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ItemLayout );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ItemRange );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali::Toolkit, ItemRange );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Model3dView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Model3dView );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, PageFactory );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali::Toolkit, PageFactory );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, PageTurnLandscapeView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, PageTurnLandscapeView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, PageTurnPortraitView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, PageTurnPortraitView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, PageTurnView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, PageTurnView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Popup );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Popup );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ProgressBar );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ProgressBar );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Scrollable );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Scrollable );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ScrollBar );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ScrollBar );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ScrollView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ScrollView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ScrollViewEffect );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ScrollViewEffect );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ScrollViewPagePathEffect );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, ScrollViewPagePathEffect );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, StyleManager );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, StyleManager );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, Slider );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, Slider );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, TableView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, TableView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, TextEditor );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, TextEditor );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, TextField );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, TextField );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, TextLabel );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, TextLabel );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, VideoView );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, VideoView );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali::Toolkit::Visual, Base, VisualBase );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION_RENAME( Dali::Toolkit::Visual, Base, VisualBase);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, VisualFactory );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, VisualFactory );
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, TransitionData );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, TransitionData );
-
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Application&)>, ApplicationSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Application&)>, ApplicationSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Application&, void*)>, ApplicationControlSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Application&, void*)>, ApplicationControlSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::VideoView&)>, VideoViewSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::VideoView&)>, VideoViewSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Image)>, ImageSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Image)>, ImageSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::ResourceImage)>, ResourceImageSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::ResourceImage)>, ResourceImageSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Rect<int>, Rectangle);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Rect<int>, Rectangle);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Rect<float>, PaddingType);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Rect<float>, PaddingType);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( std, vector<Dali::TouchPoint>, TouchPointContainer);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( std, vector<Dali::TouchPoint>, TouchPointContainer);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Vector<int>, VectorInteger);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Vector<int>, VectorInteger);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Vector<float>, VectorFloat);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Vector<float>, VectorFloat);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Vector<unsigned char>, VectorUnsignedChar);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Vector<unsigned char>, VectorUnsignedChar);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Vector<Dali::Uint16Pair>, VectorUint16Pair);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Vector<Dali::Uint16Pair>, VectorUint16Pair);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::AccessibilityManager&)>, AccessibilityActionSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::AccessibilityManager&)>, AccessibilityActionSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent&)>, AccessibilityActionScrollSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent&)>, AccessibilityActionScrollSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, Dali::Toolkit::AccessibilityManager::FocusOvershotDirection)>, AccessibilityFocusOvershotSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, Dali::Toolkit::AccessibilityManager::FocusOvershotDirection)>, AccessibilityFocusOvershotSignal);
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_STRINGVALUEPAIR( Dali, pair<std::string, Dali::Property::Value>);
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_STRINGVALUEPAIR( Dali, pair<std::string, Dali::Property::Value>);
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_BOOLSIGNAL( Dali, Signal<bool()>);
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_BOOLSIGNAL( Dali, Signal<bool()>);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool()>, TimerSignalType);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool()>, TimerSignalType);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor)>, ActorSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor)>, ActorSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Animation&)>, AnimationSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Animation&)>, AnimationSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Button)>, ButtonSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Button)>, ButtonSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::PageTurnView, unsigned int, bool)>, PageTurnSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::PageTurnView, unsigned int, bool)>, PageTurnSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::PageTurnView)>, PagePanSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::PageTurnView)>, PagePanSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::PanGesture&)>, PanGestureDetectedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::PanGesture&)>, PanGestureDetectedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::PinchGesture&)>, PinchGestureDetectedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::PinchGesture&)>, PinchGestureDetectedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::RenderTask&)>, RenderTaskSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::RenderTask&)>, RenderTaskSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal< void(const Dali::Vector2&)>, ScrollableSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal< void(const Dali::Vector2&)>, ScrollableSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal< void(const Dali::Toolkit::ScrollView::SnapEvent&)>, ScrollViewSnapStartedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal< void(const Dali::Toolkit::ScrollView::SnapEvent&)>, ScrollViewSnapStartedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Slider, float)>, SliderValueChangedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Slider, float)>, SliderValueChangedSignal);
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Slider, int)>, SliderMarkReachedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Slider, int)>, SliderMarkReachedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (const Dali::WheelEvent&)>, StageWheelSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (const Dali::WheelEvent&)>, StageWheelSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::StyleManager, Dali::StyleChange::Type)>, StyleChangedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::StyleManager, Dali::StyleChange::Type)>,StyleChangedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::TapGesture&)>, TapGestureDetectedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::TapGesture&)>, TapGestureDetectedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::TextEditor)>, TextEditorSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::TextEditor)>, TextEditorSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::TextField)>, TextFieldSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::TextField)>, TextFieldSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( std, vector<Dali::Actor>, ActorContainer);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( std, vector<Dali::Actor>, ActorContainer);
-
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_ITEM( std, pair<unsigned int, Dali::Actor));
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_ITEM( std, pair<unsigned int, Dali::Actor>);
-
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_ITEMCONTAINER( std, vector<std::pair<unsigned int, Dali::Actor>>);
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_ITEMCONTAINER( std, vector<std::pair<unsigned int, Dali::Actor>>);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( std, vector<unsigned int>, ItemIdContainer);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( std, vector<unsigned int>, ItemIdContainer);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, Dali::Actor)>, FocusChangedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, Dali::Actor)>, FocusChangedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, bool)>, FocusGroupChangedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Actor, bool)>, FocusGroupChangedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Toolkit::GaussianBlurView)>, GaussianBlurViewSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Toolkit::GaussianBlurView)>, GaussianBlurViewSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Control, const Dali::KeyEvent&)>, ControlKeySignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool(Dali::Toolkit::Control, const Dali::KeyEvent&)>, ControlKeySignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (const Dali::KeyEvent&)>, KeyEventSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (const Dali::KeyEvent&)>, KeyEventSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::Control)>, KeyInputFocusSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::Control)>, KeyInputFocusSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, IntrusivePtr<Dali::Toolkit::Ruler>, RulerPtr);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, IntrusivePtr<Dali::Toolkit::Ruler>, RulerPtr);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void()>, VoidSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void()>, VoidSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(float)>, FloatSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(float)>, FloatSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(const Dali::RefObject*)>, ObjectDestroyedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(const Dali::RefObject*)>, ObjectDestroyedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::BaseHandle)>, ObjectCreatedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::BaseHandle)>, ObjectCreatedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::PropertyNotification&)>, PropertyNotifySignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::PropertyNotification&)>, PropertyNotifySignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::LongPressGesture&)>, LongPressGestureDetectedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (Dali::Actor, const Dali::LongPressGesture&)>, LongPressGestureDetectedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::HoverEvent&)>, ActorHoverSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::HoverEvent&)>, ActorHoverSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::TouchData&)>, ActorTouchDataSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::TouchData&)>, ActorTouchDataSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::WheelEvent&)>, ActorWheelSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<bool (Dali::Actor, const Dali::WheelEvent&)>, ActorWheelSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void (const Dali::TouchData&)>, TouchSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void (const Dali::TouchData&)>, TouchSignal);
-
-//DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, (std::pair< Dali::Radian, Dali::Radian >), AngleThresholdPair);
-//DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, (std::pair< Dali::Radian, Dali::Radian >), AngleThresholdPair);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::ProgressBar, float, float)>, ProgressBarValueChangedSignal);
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION_RENAME( Dali, Signal<void(Dali::Toolkit::ProgressBar, float, float)>, ProgressBarValueChangedSignal);
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ApplicationExtensions );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, ApplicationExtensions );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, SlotObserver );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, SlotObserver );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, SignalObserver );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, SignalObserver );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, AnimatablePropertyComponentRegistration );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, AnimatablePropertyComponentRegistration );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, AnimatablePropertyRegistration );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, AnimatablePropertyRegistration );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, AsyncImageLoader );
-DALI_CREATE_CUSTOM_DISPOSE_DERIVED_FUNCTION( Dali::Toolkit, AsyncImageLoader );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, ChildPropertyRegistration );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, ChildPropertyRegistration );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali::Toolkit, ClampState2D );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali::Toolkit, ClampState2D );
-
-DALI_CREATE_CUSTOM_DESTRUCTOR_FUNCTION( Dali, DaliException );
-DALI_CREATE_CUSTOM_DISPOSE_FUNCTION( Dali, DaliException );
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// common name mappings
-#if defined(SWIGCSHARP)
-%rename(Assign) operator=;
-%rename(Add) operator+;
-%rename(AddAssign) operator+=;
-%rename(Subtract) operator-;
-%rename(SubtractAssign) operator-=;
-%rename(Multiply) operator*;
-%rename(MultiplyAssign) operator*=;
-%rename(Divide) operator/;
-%rename(DivideAssign) operator/=;
-%rename(Assign) operator=;
-%rename(EqualTo) operator==;
-%rename(NotEqualTo) operator!=;
-%rename(LessThan) operator<;
-%rename(GreaterThan) operator>;
-%rename(ValueOfIndex) operator[];
-#endif
-
-%typemap(cscode) Dali::Vector2 %{
- public static Vector2 operator+(Vector2 arg1, Vector2 arg2) {
- return arg1.Add(arg2);
- }
-
- public static Vector2 operator-(Vector2 arg1, Vector2 arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Vector2 operator-(Vector2 arg1) {
- return arg1.Subtract();
- }
-
- public static Vector2 operator*(Vector2 arg1, Vector2 arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector2 operator*(Vector2 arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector2 operator/(Vector2 arg1, Vector2 arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Vector2 operator/(Vector2 arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Vector2 GetVector2FromPtr(global::System.IntPtr cPtr) {
- Vector2 ret = new Vector2(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%typemap(cscode) Dali::Vector3 %{
- public static Vector3 operator+(Vector3 arg1, Vector3 arg2) {
- return arg1.Add(arg2);
- }
-
- public static Vector3 operator-(Vector3 arg1, Vector3 arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Vector3 operator-(Vector3 arg1) {
- return arg1.Subtract();
- }
-
- public static Vector3 operator*(Vector3 arg1, Vector3 arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector3 operator*(Vector3 arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector3 operator/(Vector3 arg1, Vector3 arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Vector3 operator/(Vector3 arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Vector3 GetVector3FromPtr(global::System.IntPtr cPtr) {
- Vector3 ret = new Vector3(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%typemap(cscode) Dali::Vector4 %{
- public static Vector4 operator+(Vector4 arg1, Vector4 arg2) {
- return arg1.Add(arg2);
- }
-
- public static Vector4 operator-(Vector4 arg1, Vector4 arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Vector4 operator-(Vector4 arg1) {
- return arg1.Subtract();
- }
-
- public static Vector4 operator*(Vector4 arg1, Vector4 arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector4 operator*(Vector4 arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector4 operator/(Vector4 arg1, Vector4 arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Vector4 operator/(Vector4 arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Vector4 GetVector4FromPtr(global::System.IntPtr cPtr) {
- Vector4 ret = new Vector4(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%typemap(cscode) Dali::Matrix %{
- public static Vector4 operator*(Matrix arg1, Vector4 arg2) {
- return arg1.Multiply(arg2);
- }
-%}
-
-%typemap(cscode) Dali::Quaternion %{
- public static Rotation operator+(Rotation arg1, Rotation arg2) {
- return arg1.Add(arg2);
- }
-
- public static Rotation operator-(Rotation arg1, Rotation arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Rotation operator-(Rotation arg1) {
- return arg1.Subtract();
- }
-
- public static Rotation operator*(Rotation arg1, Rotation arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Vector3 operator*(Rotation arg1, Vector3 arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Rotation operator*(Rotation arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Rotation operator/(Rotation arg1, Rotation arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Rotation operator/(Rotation arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-%}
-
-%typemap(cscode) Dali::Property::Array %{
- public Property.Value this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-%}
-
-%typemap(cscode) Dali::Property::Map %{
- public Property.Value this[string key]
- {
- get
- {
- return ValueOfIndex(key);
- }
- }
-
- public Property.Value this[int key]
- {
- get
- {
- return ValueOfIndex(key);
- }
- }
-%}
-
-%typemap(cscode) Dali::Uint16Pair %{
- public static bool operator<(Uint16Pair arg1, Uint16Pair arg2) {
- return arg1.LessThan(arg2);
- }
-
- public static bool operator>(Uint16Pair arg1, Uint16Pair arg2) {
- return arg1.GreaterThan(arg2);
- }
-%}
-
-/**
- * Extend the C++ base handle to include a IsHandleEmpty() function
- * This is because from C# we can't wrap the operator BooleanType() function
- */
-%extend Dali::BaseHandle {
- bool HasBody() const {
-
- // C++ code. DALi uses Handle <-> Body design pattern.
- // This function checks the Handle to see if it has a body attached ( possible to have empty handles).
- // Handles in DALi can be converted into a boolean type
- // to check if the handle has a valid body attached to it.
- // Internally checking *$self will checks IntrusivePtr<Dali::RefObject> mObjectHandle in BaseHandle;
- if( *$self )
- {
- return true;
- }
- else
- {
- return false;
- }
- }
-
- // Check if two handles point to the same body / ref-object.
- bool IsEqual( const BaseHandle& rhs ) const {
-
- // C++ code. Check if two handles reference the same implemtion
- if( *$self == rhs)
- {
- return true;
- }
- else
- {
- return false;
- }
- }
-
-};
-
-/**
- * Extend C# base handle to support true / false testing of base handle
- * so we can do
- * if ( actor )
- * {
- * ...
- * }
- */
-%typemap(cscode) Dali::BaseHandle %{
-
- // Returns the bool value true to indicate that an operand is true and returns false otherwise.
- public static bool operator true(BaseHandle handle)
- {
- // if the C# object is null, return false
- if( BaseHandle.ReferenceEquals( handle, null ) )
- {
- return false;
- }
- // returns true if the handle has a body, false otherwise
- return handle.HasBody();
- }
-
- // Returns the bool false to indicate that an operand is false and returns true otherwise.
- public static bool operator false(BaseHandle handle)
- {
- // if the C# object is null, return true
- if( BaseHandle.ReferenceEquals( handle, null ) )
- {
- return true;
- }
- return !handle.HasBody();
- }
-
- // Explicit conversion from Handle to bool.
- public static explicit operator bool(BaseHandle handle)
- {
- // if the C# object is null, return false
- if( BaseHandle.ReferenceEquals( handle, null ) )
- {
- return false;
- }
- // returns true if the handle has a body, false otherwise
- return handle.HasBody();
- }
-
- // Equality operator
- public static bool operator == (BaseHandle x, BaseHandle y)
- {
- // if the C# objects are the same return true
- if( BaseHandle.ReferenceEquals( x, y ) )
- {
- return true;
- }
- if ( !BaseHandle.ReferenceEquals( x, null ) && !BaseHandle.ReferenceEquals( y, null ) )
- {
- // drop into native code to see if both handles point to the same body
- return x.IsEqual( y) ;
- }
- return false;
-
- }
-
- // Inequality operator. Returns Null if either operand is Null
- public static bool operator !=(BaseHandle x, BaseHandle y)
- {
- return !(x==y);
- }
-
- // Logical AND operator for &&
- // It's possible when doing a && this function (opBitwiseAnd) is never called due
- // to short circuiting. E.g.
- // If you perform x && y What actually is called is
- // BaseHandle.op_False( x ) ? BaseHandle.op_True( x ) : BaseHandle.opTrue( BaseHandle.opBitwiseAnd(x,y) )
- //
- public static BaseHandle operator &(BaseHandle x, BaseHandle y)
- {
- if( x == y )
- {
- return x;
- }
- return null;
- }
-
- // Logical OR operator for ||
- // It's possible when doing a || this function (opBitwiseOr) is never called due
- // to short circuiting. E.g.
- // If you perform x || y What actually is called is
- // BaseHandle.op_True( x ) ? BaseHandle.op_True( x ) : BaseHandle.opTrue( BaseHandle.opBitwiseOr(x,y) )
- public static BaseHandle operator |(BaseHandle x, BaseHandle y)
- {
- if ( !BaseHandle.ReferenceEquals( x, null ) || !BaseHandle.ReferenceEquals( y, null ) )
- {
- if( x.HasBody() )
- {
- return x;
- }
- if( y.HasBody() )
- {
- return y;
- }
- return null;
- }
- return null;
- }
-
- // Logical ! operator
- public static bool operator !(BaseHandle x)
- {
- // if the C# object is null, return true
- if( BaseHandle.ReferenceEquals( x, null ) )
- {
- return true;
- }
- if( x.HasBody() )
- {
- return false;
- }
- return true;
- }
-
-%}
\ No newline at end of file
+++ /dev/null
-/*
- * 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.
- *
- */
-%apply unsigned int& OUTPUT { unsigned int& volume };
-%feature("director") Dali::Toolkit::ItemFactory;
-
-%ignore *::AccessibilityManager(Internal::AccessibilityManager*);
-%ignore *::Alignment(Internal::Alignment&);
-%ignore *::Alignment(Dali::Internal::CustomActor*);
-%ignore *::Button(Internal::Button&);
-%ignore *::Button(Dali::Internal::CustomActor*);
-%ignore *::CheckBoxButton(Internal::CheckBoxButton&);
-%ignore *::CheckBoxButton(Dali::Internal::CustomActor*);
-%ignore *::Control(Dali::Internal::CustomActor*);
-%ignore *::ControlWrapper( Internal::ControlWrapper& );
-%ignore *::ControlWrapper( Dali::Internal::CustomActor* );
-%ignore *::FlexContainer(Internal::FlexContainer&);
-%ignore *::FlexContainer(Dali::Internal::CustomActor*);
-%ignore *::GaussianBlurView(Internal::GaussianBlurView&);
-%ignore *::GaussianBlurView(Dali::Internal::CustomActor*);
-%ignore *::ImageView(Internal::ImageView&);
-%ignore *::ImageView(Dali::Internal::CustomActor*);
-%ignore *::ItemView(Internal::ItemView&);
-%ignore *::ItemView(Dali::Internal::CustomActor*);
-%ignore *::Model3dView(Internal::Model3dView&);
-%ignore *::Model3dView(Dali::Internal::CustomActor*);
-%ignore *::PageTurnLandscapeView(Internal::PageTurnLandscapeView&);
-%ignore *::PageTurnLandscapeView(Dali::Internal::CustomActor*);
-%ignore *::PageTurnPortraitView(Internal::PageTurnPortraitView&);
-%ignore *::PageTurnPortraitView(Dali::Internal::CustomActor*);
-%ignore *::PageTurnView(Internal::PageTurnView&);
-%ignore *::PageTurnView(Dali::Internal::CustomActor*);
-%ignore *::Popup(Internal::Popup&);
-%ignore *::Popup(Dali::Internal::CustomActor*);
-%ignore *::ProgressBar(Internal::ProgressBar&);
-%ignore *::ProgressBar(Dali::Internal::CustomActor*);
-%ignore *::PushButton(Internal::PushButton&);
-%ignore *::PushButton(Dali::Internal::CustomActor*);
-%ignore *::RadioButton(Internal::RadioButton&);
-%ignore *::RadioButton(Dali::Internal::CustomActor*);
-%ignore *::Scrollable(Internal::Scrollable&);
-%ignore *::Scrollable(Dali::Internal::CustomActor*);
-%ignore *::ScrollBar(Internal::ScrollBar&);
-%ignore *::ScrollBar(Dali::Internal::CustomActor*);
-%ignore *::ScrollView(Internal::ScrollView&);
-%ignore *::ScrollView(Dali::Internal::CustomActor*);
-%ignore *::ScrollViewEffect(Internal::ScrollViewEffect*);
-%ignore *::Slider(Internal::Slider&);
-%ignore *::Slider(Dali::Internal::CustomActor*);
-%ignore *::StyleManager(Internal::StyleManager*);
-%ignore *::TableView(Internal::TableView&);
-%ignore *::TableView(Dali::Internal::CustomActor*);
-%ignore *::TextEditor(Internal::TextEditor&);
-%ignore *::TextEditor(Dali::Internal::CustomActor*);
-%ignore *::TextField(Internal::TextField&);
-%ignore *::TextField(Dali::Internal::CustomActor*);
-%ignore *::TextLabel(Internal::TextLabel&);
-%ignore *::TextLabel(Dali::Internal::CustomActor*);
-%ignore *::VideoView(Internal::VideoView&);
-%ignore *::VideoView(Dali::Internal::CustomActor*);
-%ignore *::VisualFactory(Dali::Internal::VisualFactory*);
-%ignore *::Base(Dali::Internal::Visual::Base*);
-%ignore *::GetExtension();
-%ignore *::GetControlExtension();
-%ignore *::ToggleButton(Internal::ToggleButton&);
-%ignore *::ToggleButton(Dali::Internal::CustomActor*);
-
-%ignore *::Button::SetAnimationTime(float animationTime);
-%ignore *::Button::SetAutoRepeating(bool);
-%ignore *::Button::SetBackgroundImage(const std::string &);
-%ignore *::Button::SetButtonImage(Dali::Image);
-%ignore *::Button::SetDisabled(bool);
-%ignore *::Button::SetDisabledBackgroundImage(const std::string &);
-%ignore *::Button::SetDisabledImage(const std::string &);
-%ignore *::Button::SetDisabledSelectedImage(const std::string &);
-%ignore *::Button::SetInitialAutoRepeatingDelay(float);
-%ignore *::Button::SetLabel(Dali::Actor);
-%ignore *::Button::SetLabelText(const std::string &);
-%ignore *::Button::SetNextAutoRepeatingDelay(float);
-%ignore *::Button::SetSelected(bool);
-%ignore *::Button::SetSelectedBackgroundImage(const std::string &);
-%ignore *::Button::SetSelectedImage(const std::string &);
-%ignore *::Button::SetSelectedImage(Dali::Image);
-%ignore *::Button::SetTogglableButton(bool);
-%ignore *::Button::SetUnselectedImage(const std::string &);
-%ignore Dali::Toolkit::DevelVisual::Type;
-%ignore Dali::Toolkit::DevelVisual::Property::Type;
-%ignore Dali::Toolkit::AccessibilityManager::AccessibilityActionScrollSignalType;
-
-%rename(View) Dali::Toolkit::Control;
-%rename(ViewImpl) Dali::Toolkit::Internal::Control;
-%rename(VisualBase) Dali::Toolkit::Visual::Base;
-%rename(LoadImageSynchronously) Dali::Toolkit::SyncImageLoader::Load;
-%rename(ControlOrientationType) Dali::Toolkit::ControlOrientation::Type;
-%rename(DefaultItemLayoutType) Dali::Toolkit::DefaultItemLayout::Type;
-%rename(DefaultItemLayoutProperty) Dali::Toolkit::DefaultItemLayoutProperty::Property;
-%rename(NewItemLayout) Dali::Toolkit::DefaultItemLayout::New;
-%rename(ContentDirectionType) Dali::Toolkit::FlexContainer::ContentDirection;
-%rename(FlexDirectionType) Dali::Toolkit::FlexContainer::FlexDirection;
-%rename(IluminationTypeEnum) Dali::Toolkit::Model3dView::IlluminationType;
-%rename(DisplayStateType) Dali::Toolkit::Popup::DisplayState;
-%rename(ContextualModeType) Dali::Toolkit::Popup::ContextualMode;
-%rename(AnimationModeType) Dali::Toolkit::Popup::AnimationMode;
-%rename(IndicatorHeightPolicyType) Dali::Toolkit::ScrollBar::IndicatorHeightPolicy;
-%rename(ExceedPolicyType) Dali::Toolkit::TextField::ExceedPolicy;
-%rename(ToolkitPropertyRange) Dali::Toolkit::PropertyRanges;
-%rename(TooltipPositionType) Dali::Toolkit::Tooltip::Position::Type;
-%rename(DirectionType) Dali::Toolkit::Direction::Type;
-%rename(AlignType) Dali::Toolkit::Align::Type;
-%rename(VisualType) Dali::Toolkit::Visual::Type;
-%rename(VisualTransformPropertyType) Dali::Toolkit::DevelVisual::Transform::Property::Type;
-%rename(VisualTransformPolicyType) Dali::Toolkit::DevelVisual::Transform::Policy::Type;
-%rename(VISUAL_SHADER_VERTEX) Dali::Toolkit::Visual::Shader::Property::VERTEX_SHADER;
-%rename(VISUAL_SHADER_FRAGMENT) Dali::Toolkit::Visual::Shader::Property::FRAGMENT_SHADER;
-%rename(VISUAL_SHADER_SUBDIVIDE_GRID_X) Dali::Toolkit::Visual::Shader::Property::SUBDIVIDE_GRID_X;
-%rename(VISUAL_SHADER_SUBDIVIDE_GRID_Y) Dali::Toolkit::Visual::Shader::Property::SUBDIVIDE_GRID_Y;
-%rename(VISUAL_SHADER_HINTS) Dali::Toolkit::Visual::Shader::Property::HINTS;
-%rename(BORDER_VISUAL_COLOR) Dali::Toolkit::BorderVisual::Property::COLOR;
-%rename(BORDER_VISUAL_SIZE) Dali::Toolkit::BorderVisual::Property::SIZE;
-%rename(BORDER_VISUAL_ANTI_ALIASING) Dali::Toolkit::BorderVisual::Property::ANTI_ALIASING;
-%rename(COLOR_VISUAL_MIX_COLOR) Dali::Toolkit::ColorVisual::Property::MIX_COLOR;
-%rename(GradientVisualUnitsType) Dali::Toolkit::GradientVisual::Units::Type;
-%rename(GradientVisualSpreadMethodType) Dali::Toolkit::GradientVisual::SpreadMethod::Type;
-%rename(GRADIENT_VISUAL_START_POSITION) Dali::Toolkit::GradientVisual::Property::START_POSITION;
-%rename(GRADIENT_VISUAL_END_POSITION) Dali::Toolkit::GradientVisual::Property::END_POSITION;
-%rename(GRADIENT_VISUAL_CENTER) Dali::Toolkit::GradientVisual::Property::CENTER;
-%rename(GRADIENT_VISUAL_RADIUS) Dali::Toolkit::GradientVisual::Property::RADIUS;
-%rename(GRADIENT_VISUAL_STOP_OFFSET) Dali::Toolkit::GradientVisual::Property::STOP_OFFSET;
-%rename(GRADIENT_VISUAL_STOP_COLOR) Dali::Toolkit::GradientVisual::Property::STOP_COLOR;
-%rename(GRADIENT_VISUAL_UNITS) Dali::Toolkit::GradientVisual::Property::UNITS;
-%rename(GRADIENT_VISUAL_SPREAD_METHOD) Dali::Toolkit::GradientVisual::Property::SPREAD_METHOD;
-%rename(MeshVisualShadingModeValue) Dali::Toolkit::MeshVisual::ShadingMode::Value;
-%rename(MESH_VISUAL_OBJECT_URL) Dali::Toolkit::MeshVisual::Property::OBJECT_URL;
-%rename(MESH_VISUAL_MATERIAL_URL) Dali::Toolkit::MeshVisual::Property::MATERIAL_URL;
-%rename(MESH_VISUAL_TEXTURES_PATH) Dali::Toolkit::MeshVisual::Property::TEXTURES_PATH;
-%rename(MESH_VISUAL_SHADING_MODE) Dali::Toolkit::MeshVisual::Property::SHADING_MODE;
-%rename(MESH_VISUAL_USE_MIPMAPPING) Dali::Toolkit::MeshVisual::Property::USE_MIPMAPPING;
-%rename(MESH_VISUAL_USE_SOFT_NORMALS) Dali::Toolkit::MeshVisual::Property::USE_SOFT_NORMALS;
-%rename(MESH_VISUAL_LIGHT_POSITION) Dali::Toolkit::MeshVisual::Property::LIGHT_POSITION;
-%rename(PrimitiveVisualShapeType) Dali::Toolkit::PrimitiveVisual::Shape::Type;
-%rename(PRIMITIVE_VISUAL_SHAPE) Dali::Toolkit::PrimitiveVisual::Property::SHAPE;
-%rename(PRIMITIVE_VISUAL_MIX_COLOR) Dali::Toolkit::PrimitiveVisual::Property::MIX_COLOR;
-%rename(PRIMITIVE_VISUAL_SLICES) Dali::Toolkit::PrimitiveVisual::Property::SLICES;
-%rename(PRIMITIVE_VISUAL_STACKS) Dali::Toolkit::PrimitiveVisual::Property::STACKS;
-%rename(PRIMITIVE_VISUAL_SCALE_TOP_RADIUS) Dali::Toolkit::PrimitiveVisual::Property::SCALE_TOP_RADIUS;
-%rename(PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS) Dali::Toolkit::PrimitiveVisual::Property::SCALE_BOTTOM_RADIUS;
-%rename(PRIMITIVE_VISUAL_SCALE_HEIGHT) Dali::Toolkit::PrimitiveVisual::Property::SCALE_HEIGHT;
-%rename(PRIMITIVE_VISUAL_SCALE_RADIUS) Dali::Toolkit::PrimitiveVisual::Property::SCALE_RADIUS;
-%rename(PRIMITIVE_VISUAL_SCALE_DIMENSIONS) Dali::Toolkit::PrimitiveVisual::Property::SCALE_DIMENSIONS;
-%rename(PRIMITIVE_VISUAL_BEVEL_PERCENTAGE) Dali::Toolkit::PrimitiveVisual::Property::BEVEL_PERCENTAGE;
-%rename(PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS) Dali::Toolkit::PrimitiveVisual::Property::BEVEL_SMOOTHNESS;
-%rename(PRIMITIVE_VISUAL_LIGHT_POSITION) Dali::Toolkit::PrimitiveVisual::Property::LIGHT_POSITION;
-%rename(VISUAL_PROPERTY_TYPE) Dali::Toolkit::Visual::Property::TYPE;
-%rename(VISUAL_PROPERTY_SHADER) Dali::Toolkit::Visual::Property::SHADER;
-%rename(IMAGE_VISUAL_URL) Dali::Toolkit::ImageVisual::Property::URL;
-%rename(IMAGE_VISUAL_FITTING_MODE) Dali::Toolkit::ImageVisual::Property::FITTING_MODE;
-%rename(IMAGE_VISUAL_SAMPLING_MODE) Dali::Toolkit::ImageVisual::Property::SAMPLING_MODE;
-%rename(IMAGE_VISUAL_DESIRED_WIDTH) Dali::Toolkit::ImageVisual::Property::DESIRED_WIDTH;
-%rename(IMAGE_VISUAL_DESIRED_HEIGHT) Dali::Toolkit::ImageVisual::Property::DESIRED_HEIGHT;
-%rename(IMAGE_VISUAL_SYNCHRONOUS_LOADING) Dali::Toolkit::ImageVisual::Property::SYNCHRONOUS_LOADING;
-%rename(IMAGE_VISUAL_BORDER_ONLY) Dali::Toolkit::ImageVisual::Property::BORDER_ONLY;
-%rename(IMAGE_VISUAL_BATCHING_ENABLED) Dali::Toolkit::ImageVisual::Property::BATCHING_ENABLED;
-%rename(IMAGE_VISUAL_PIXEL_AREA) Dali::Toolkit::ImageVisual::Property::PIXEL_AREA;
-%rename(IMAGE_VISUAL_WRAP_MODE_U) Dali::Toolkit::ImageVisual::Property::WRAP_MODE_U;
-%rename(IMAGE_VISUAL_WRAP_MODE_V) Dali::Toolkit::ImageVisual::Property::WRAP_MODE_V;
-%rename(COLOR_VISUAL_MIX_COLOR) Dali::Toolkit::Color::Visual::Property::MIX_COLOR;
-%rename(TEXT_VISUAL_TEXT) Dali::Toolkit::TextVisual::Property::TEXT;
-%rename(TEXT_VISUAL_FONT_FAMILY) Dali::Toolkit::TextVisual::Property::FONT_FAMILY;
-%rename(TEXT_VISUAL_FONT_STYLE) Dali::Toolkit::TextVisual::Property::FONT_STYLE;
-%rename(TEXT_VISUAL_POINT_SIZE) Dali::Toolkit::TextVisual::Property::POINT_SIZE;
-%rename(TEXT_VISUAL_MULTI_LINE) Dali::Toolkit::TextVisual::Property::MULTI_LINE;
-%rename(TEXT_VISUAL_HORIZONTAL_ALIGNMENT) Dali::Toolkit::TextVisual::Property::HORIZONTAL_ALIGNMENT;
-%rename(TEXT_VISUAL_VERTICAL_ALIGNMENT) Dali::Toolkit::TextVisual::Property::VERTICAL_ALIGNMENT;
-%rename(TEXT_VISUAL_TEXT_COLOR) Dali::Toolkit::TextVisual::Property::TEXT_COLOR;
-%rename(TEXT_VISUAL_ENABLE_MARKUP) Dali::Toolkit::TextVisual::Property::ENABLE_MARKUP;
-%rename(TOOLTIP_CONTENT) Dali::Toolkit::Tooltip::Property::CONTENT;
-%rename(TOOLTIP_LAYOUT) Dali::Toolkit::Tooltip::Property::LAYOUT;
-%rename(TOOLTIP_WAIT_TIME) Dali::Toolkit::Tooltip::Property::WAIT_TIME;
-%rename(TOOLTIP_BACKGROUND) Dali::Toolkit::Tooltip::Property::BACKGROUND;
-%rename(TOOLTIP_TAIL) Dali::Toolkit::Tooltip::Property::TAIL;
-%rename(TOOLTIP_POSITION) Dali::Toolkit::Tooltip::Property::POSITION;
-%rename(TOOLTIP_HOVER_POINT_OFFSET) Dali::Toolkit::Tooltip::Property::HOVER_POINT_OFFSET;
-%rename(TOOLTIP_MOVEMENT_THRESHOLD) Dali::Toolkit::Tooltip::Property::MOVEMENT_THRESHOLD;
-%rename(TOOLTIP_DISAPPEAR_ON_MOVEMENT) Dali::Toolkit::Tooltip::Property::DISAPPEAR_ON_MOVEMENT;
-%rename(TOOLTIP_CONTENT) Dali::Toolkit::Tooltip::Property::CONTENT;
-%rename(TOOLTIP_BACKGROUND_VISUAL) Dali::Toolkit::Tooltip::Background::Property::VISUAL;
-%rename(TOOLTIP_BACKGROUND_BORDER) Dali::Toolkit::Tooltip::Background::Property::BORDER;
-%rename(TOOLTIP_TAIL_VISIBILITY) Dali::Toolkit::Tooltip::Tail::Property::VISIBILITY;
-%rename(TOOLTIP_TAIL_ABOVE_VISUAL) Dali::Toolkit::Tooltip::Tail::Property::ABOVE_VISUAL;
-%rename(TOOLTIP_TAIL_BELOW_VISUAL) Dali::Toolkit::Tooltip::Tail::Property::BELOW_VISUAL;
-
-%csconstvalue("PropertyRanges.PROPERTY_REGISTRATION_START_INDEX") PROPERTY_START_INDEX;
-%csconstvalue("View.PropertyRange.PROPERTY_START_INDEX+1000") PROPERTY_END_INDEX;
-%csconstvalue("PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX") CHILD_PROPERTY_START_INDEX;
-%csconstvalue("PropertyRanges.CHILD_PROPERTY_REGISTRATION_START_INDEX+1000") CHILD_PROPERTY_END_INDEX;
-%csconstvalue("PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX") ANIMATABLE_PROPERTY_START_INDEX;
-%csconstvalue("PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000") ANIMATABLE_PROPERTY_END_INDEX;
-%csconstvalue("PropertyRanges.CORE_PROPERTY_MAX_INDEX+1") VISUAL_PROPERTY_BASE_START_INDEX;
-%csconstvalue("0") CONTROL_BEHAVIOUR_NONE;
-%csconstvalue("0") CONTROL_BEHAVIOUR_DEFAULT;
-%csconstvalue("1 << 0") DISABLE_SIZE_NEGOTIATION;
-%csconstvalue("1 << 1") REQUIRES_TOUCH_EVENTS;
-%csconstvalue("1 << 2") REQUIRES_HOVER_EVENTS;
-%csconstvalue("1 << 3") REQUIRES_WHEEL_EVENTS;
-%csconstvalue("1 << 4") REQUIRES_STYLE_CHANGE_SIGNALS;
-%csconstvalue("1 << 5") REQUIRES_KEYBOARD_NAVIGATION_SUPPORT;
-%csconstvalue("1 << 6") DISABLE_STYLE_CHANGE_SIGNALS;
-
-%typemap(csclassmodifiers) Dali::Toolkit::Alignment "internal class"
-
-typedef unsigned int ItemId;
-typedef std::vector<ItemId> ItemIdContainer;
-typedef std::pair<ItemId, Actor> Item;
-typedef std::vector<Item> ItemContainer;
-typedef Dali::IntrusivePtr<Dali::Toolkit::Ruler> RulerPtr;
-
-%include <dali-toolkit/public-api/toolkit-property-index-ranges.h>
-
-%include <dali-toolkit/public-api/visuals/visual-properties.h>
-%include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
-%include <dali-toolkit/public-api/visuals/border-visual-properties.h>
-%include <dali-toolkit/public-api/visuals/color-visual-properties.h>
-%include <dali-toolkit/public-api/visuals/gradient-visual-properties.h>
-%include <dali-toolkit/public-api/visuals/image-visual-properties.h>
-%include <dali-toolkit/public-api/visuals/mesh-visual-properties.h>
-%include <dali-toolkit/public-api/visuals/primitive-visual-properties.h>
-%include <dali-toolkit/devel-api/visuals/text-visual-properties.h>
-
-%include <dali-toolkit/devel-api/builder/builder.h>
-
-%include <dali-toolkit/devel-api/visual-factory/transition-data.h>
-
-%include <dali-toolkit/devel-api/controls/tooltip/tooltip-properties.h>
-
-%include <dali-toolkit/public-api/controls/control-impl.h>
-%include <dali-toolkit/public-api/controls/control.h>
-
-%include <dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h>
-
-%include <dali-toolkit/public-api/controls/alignment/alignment.h>
-%include <dali-toolkit/public-api/controls/buttons/button.h>
-%include <dali-toolkit/public-api/controls/buttons/check-box-button.h>
-%include <dali-toolkit/public-api/controls/buttons/push-button.h>
-%include <dali-toolkit/public-api/controls/buttons/radio-button.h>
-%include <dali-toolkit/public-api/controls/flex-container/flex-container.h>
-%include <dali-toolkit/public-api/controls/image-view/image-view.h>
-%include <dali-toolkit/public-api/controls/model3d-view/model3d-view.h>
-%include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
-%include <dali-toolkit/public-api/controls/scrollable/scrollable.h>
-%include <dali-toolkit/public-api/enums.h>
-%include <dali-toolkit/public-api/controls/scrollable/item-view/item-layout.h>
-%include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout.h>
-%include <dali-toolkit/devel-api/controls/scrollable/item-view/default-item-layout-property.h>
-%include <dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h>
-%include <dali-toolkit/public-api/controls/scrollable/item-view/item-view-declarations.h>
-%include <dali-toolkit/public-api/controls/scrollable/item-view/item-view.h>
-%include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-constraints.h>
-%include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-effect.h>
-%include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view-page-path-effect.h>
-%include <dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h>
-%include <dali-toolkit/public-api/controls/table-view/table-view.h>
-%include <dali-toolkit/public-api/text/rendering-backend.h>
-%include <dali-toolkit/public-api/controls/text-controls/text-editor.h>
-%include <dali-toolkit/public-api/controls/text-controls/text-field.h>
-%include <dali-toolkit/public-api/controls/text-controls/text-label.h>
-%include <dali-toolkit/public-api/accessibility-manager/accessibility-manager.h>
-%include <dali-toolkit/public-api/styling/style-manager.h>
-%include <dali-toolkit/public-api/controls/slider/slider.h>
-%include <dali-toolkit/public-api/controls/video-view/video-view.h>
-
-%include <dali-toolkit/devel-api/controls/popup/popup.h>
-%include <dali-toolkit/devel-api/controls/progress-bar/progress-bar.h>
-%include <dali-toolkit/devel-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-%include <dali-toolkit/devel-api/controls/page-turn-view/page-factory.h>
-%include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-view.h>
-%include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-landscape-view.h>
-%include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-portrait-view.h>
-%include <dali-toolkit/devel-api/controls/buttons/toggle-button.h>
-
-%include <dali-toolkit/devel-api/align-enums.h>
-
-%include <dali-toolkit/devel-api/visual-factory/visual-base.h>
-%include <dali-toolkit/devel-api/visual-factory/visual-factory.h>
-
-%include <dali-toolkit/public-api/image-loader/async-image-loader.h>
-%include <dali-toolkit/public-api/image-loader/sync-image-loader.h>
-%include <dali-toolkit/public-api/text/rendering-backend.h>
-
-%include <dali-toolkit/devel-api/focus-manager/keyboard-focus-manager-devel.h>
-
-%template(ItemIdContainer) std::vector<unsigned int>;
-%template(Item) std::pair<unsigned int, Dali::Actor>;
-%template(ItemContainer) std::vector<std::pair<unsigned int, Dali::Actor>>;
-%template(ActorContainer) std::vector<Dali::Actor>;
-%template(AccessibilityActionSignal) Dali::Signal<bool(Dali::Toolkit::AccessibilityManager&)>;
-%template(AccessibilityFocusOvershotSignal) Dali::Signal<void(Dali::Actor, Dali::Toolkit::AccessibilityManager::FocusOvershotDirection)>;
-%template(FocusChangedSignal) Dali::Signal<void(Dali::Actor, Dali::Actor)>;
-%template(FocusGroupChangedSignal) Dali::Signal<void(Dali::Actor, bool)>;
-%template(StyleChangedSignal) Dali::Signal<void(Dali::Toolkit::StyleManager, Dali::StyleChange::Type)>;
-%template(ButtonSignal) Dali::Signal<bool(Dali::Toolkit::Button)>;
-%template(GaussianBlurViewSignal) Dali::Signal<void (Dali::Toolkit::GaussianBlurView)>;
-%template(PageTurnSignal) Dali::Signal<void(Dali::Toolkit::PageTurnView, unsigned int, bool)>;
-%template(PagePanSignal) Dali::Signal<void(Dali::Toolkit::PageTurnView)>;
-%template(ProgressBarValueChangedSignal) Dali::Signal<void(Dali::Toolkit::ProgressBar, float, float)>;
-%template(ScrollViewSnapStartedSignal) Dali::Signal< void(const Dali::Toolkit::ScrollView::SnapEvent&)>;
-%template(ScrollableSignal) Dali::Signal< void(const Dali::Vector2&)>;
-%template(TextEditorSignal) Dali::Signal<void(Dali::Toolkit::TextEditor)>;
-%template(TextFieldSignal) Dali::Signal<void(Dali::Toolkit::TextField)>;
-%template(ControlKeySignal) Dali::Signal<bool(Dali::Toolkit::Control, const Dali::KeyEvent&)>;
-%template(KeyInputFocusSignal) Dali::Signal<void(Dali::Toolkit::Control)>;
-%template(VideoViewSignal) Dali::Signal<void(Dali::Toolkit::VideoView&)>;
-%template(SliderValueChangedSignal) Dali::Signal<bool(Dali::Toolkit::Slider, float)>;
-%template(SliderMarkReachedSignal) Dali::Signal<bool(Dali::Toolkit::Slider, int)>;
-%template(RulerPtr) Dali::IntrusivePtr<Dali::Toolkit::Ruler>;
+++ /dev/null
-/*
- * 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.
- *
- */
-
-#if defined(SWIGCSHARP)
-%module(directors="1") NDalic
-#define DALI_EXPORT_API
-#define DALI_IMPORT_API
-#define DALI_INTERNAL
-#else
-%module Dali
-#endif
-
-%include exception.i
-%include dali-gc.i
-
-%exception {
- try {
- $action
- } catch (std::out_of_range& e) {
- SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
- } catch (std::exception& e) {
- SWIG_exception(SWIG_RuntimeError,const_cast<char*>(e.what()));
- } catch (...) {
- SWIG_exception(SWIG_UnknownError,"unknown error");
- }
-}
-
-#if defined(SWIGCSHARP)
-%{
-#define SWIGSTDCALL
-%}
-#endif
-
-%{
-#include <dali/dali.h>
-#include <dali-toolkit/dali-toolkit.h>
-
-#include <dali/devel-api/actors/actor-devel.h>
-#include <dali/devel-api/events/key-event-devel.h>
-
-#include <dali/public-api/math/matrix.h>
-#include <dali/public-api/math/matrix3.h>
-#include <dali/public-api/math/viewport.h>
-#include <dali/public-api/object/property-key.h>
-#include <dali/devel-api/object/csharp-type-info.h>
-#include <dali/devel-api/object/csharp-type-registry.h>
-
-#include <dali/public-api/adaptor-framework/timer.h>
-#include <dali/public-api/adaptor-framework/window.h>
-#include <dali/public-api/adaptor-framework/style-change.h>
-#include <dali/devel-api/adaptor-framework/drag-and-drop-detector.h>
-#include <dali/devel-api/adaptor-framework/application-extensions.h>
-#include <dali/devel-api/adaptor-framework/window-devel.h>
-
-#include <dali/devel-api/images/nine-patch-image.h>
-
-#include <dali-toolkit/devel-api/builder/builder.h>
-
-#include <dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h>
-#include <dali-toolkit/devel-api/focus-manager/keyboard-focus-manager-devel.h>
-
-#include <dali-toolkit/devel-api/controls/popup/popup.h>
-#include <dali-toolkit/devel-api/controls/progress-bar/progress-bar.h>
-#include <dali-toolkit/devel-api/controls/gaussian-blur-view/gaussian-blur-view.h>
-#include <dali-toolkit/devel-api/controls/page-turn-view/page-factory.h>
-#include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-view.h>
-#include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-landscape-view.h>
-#include <dali-toolkit/devel-api/controls/page-turn-view/page-turn-portrait-view.h>
-#include <dali-toolkit/devel-api/controls/buttons/toggle-button.h>
-
-#include <dali-toolkit/devel-api/visual-factory/visual-base.h>
-#include <dali-toolkit/devel-api/visual-factory/visual-factory.h>
-#include <dali-toolkit/devel-api/visual-factory/transition-data.h>
-
-#include <dali-toolkit/devel-api/visuals/text-visual-properties.h>
-
-#include <dali-toolkit/devel-api/controls/tooltip/tooltip-properties.h>
-
-#include <dali-toolkit/public-api/controls/scrollable/item-view/item-view-declarations.h>
-
-// add here SWIG version check
-
-#if defined(_MSC_VER) // Microsoft Visual C++ 6.0
-// disable Swig-dependent warnings
-
-// 'identifier1' has C-linkage specified,
-// but returns UDT 'identifier2' which is incompatible with C
-#pragma warning(disable: 4190)
-
-// 'int' : forcing value to bool 'true' or 'false' (performance warning)
-#pragma warning(disable: 4800)
-
-// debug info too long etc etc
-#pragma warning(disable: 4786)
-#endif
-%}
-
-%include stl.i
-%include exception.i
-%include typemaps.i
-%include std_common.i
-%include carrays.i
-
-%include cpointer.i
-%pointer_class(float, floatp);
-%pointer_class(int, intp);
-%pointer_class(double, doublep);
-%pointer_class(unsigned int, uintp);
-%pointer_class(unsigned short, ushortp);
-%pointer_cast(int, unsigned int, int_to_uint);
-
-%apply unsigned char { uint8_t };
-%apply unsigned short int { uint16_t };
-%apply unsigned int { uint32_t };
-%apply int { int32_t };
-
-#if defined(SWIGCSHARP)
-
-%typemap(ctype) void * "void *"
-%typemap(imtype) void * "System.IntPtr"
-%typemap(cstype) void * "System.IntPtr"
-%typemap(csin) void * "$csinput"
-%typemap(in) void * %{ $1 = $input; %}
-%typemap(out) void * %{ $result = $1; %}
-%typemap(csout) void * { return $imcall; }
-
-#endif
-
-#if defined(SWIGCSHARP)
-
-// string &
-%typemap(ctype) std::string & "char**"
-%typemap(imtype) std::string & "out string"
-%typemap(cstype) std::string & "out string"
-
-//C++
-%typemap(in, canthrow=1) std::string &
-%{
- //typemap in
- std::string temp;
- $1 = &temp;
-%}
-
-%typemap(argout) std::string &
-%{
- //Typemap argout in c++ file.
- //This will convert c++ string to c# string
- *$input = SWIG_csharp_string_callback($1->c_str());
-%}
-
-%typemap(argout) const std::string &
-%{
- //argout typemap for const std::string&
-%}
-
-%typemap(csin) std::string & "out $csinput"
-
-%typemap(throws, canthrow=1) string &
-%{
- SWIG_CSharpSetPendingException(SWIG_CSharpApplicationException, $1.c_str());
- return $null;
-%}
-
-
-
-
-// Type registry type maps
-%typemap(cstype) Dali::TypeInfo::CreateFunction "System.Delegate"
-%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ")
- Dali::TypeInfo::CreateFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this
-
-%typemap(cstype) Dali::CSharpTypeInfo::CreateFunction "System.Delegate"
-%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ")
- Dali::CSharpTypeInfo::CreateFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this
-
-
-
-%typemap(cstype) Dali::CSharpTypeInfo::SetPropertyFunction "System.Delegate"
-%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ")
- Dali::CSharpTypeInfo::SetPropertyFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this
-
-
-
-%typemap(cstype) Dali::CSharpTypeInfo::GetPropertyFunction "System.Delegate"
-%typemap(csin, pre ="System.IntPtr ip2 = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ")
- Dali::CSharpTypeInfo::GetPropertyFunction "new System.Runtime.InteropServices.HandleRef(null, ip2)" // null was this
-
-
-
-
-
-
-
-#endif
-
-
-
-/**
- * Extend the type registry to allow for registering of C# controls and custom properties
- */
-%extend Dali::TypeRegistration {
-
-
- static void RegisterControl( const std::string& controlName, Dali::CSharpTypeInfo::CreateFunction createFunc )
- {
- Dali::CSharpTypeRegistry::RegisterType( controlName, typeid( Dali::Toolkit::Control), createFunc );
- };
-
-
- static void RegisterProperty( const std::string& controlName,
- const std::string& propertyName,
- int index,
- Property::Type type,
- Dali::CSharpTypeInfo::SetPropertyFunction setFunc,
- Dali::CSharpTypeInfo::GetPropertyFunction getFunc )
- {
- Dali::CSharpTypeRegistry::RegisterProperty( controlName, propertyName, index, type, setFunc, getFunc );
- };
-
-};
-
-
-%ignore operator<<;
-%ignore *::GetImplementation();
-%ignore *::GetImplementation(Dali::BaseHandle&);
-
-%{
-using namespace Dali;
-using namespace Dali::Toolkit;
-%}
-
-%feature("director") Dali::Toolkit::Internal::Control;
-%feature("notabstract") Dali::Toolkit::FixedRuler;
-%feature("notabstract") Dali::Toolkit::DefaultRuler;
-
-%feature("director") Dali::Toolkit::DevelKeyboardFocusManager::CustomAlgorithmInterface;
-
-// Note... all the typemap declarations have to be included before the DALi C++ head files are include otherwise
-// they have no effect.
-
-%include signal-parameters.i
-%include signals.i
-
-%include doxygen.i
-
-%include events/actor-event.i
-%include events/accessibilitymanager-event.i
-%include events/application-event.i
-%include events/animation-event.i
-%include events/button-event.i
-%include events/builder-event.i
-%include events/control-event.i
-%include events/gaussian-blur-view-event.i
-%include events/image-event.i
-%include events/itemview-event.i
-%include events/objectregistry-event.i
-%include events/popup-event.i
-%include events/pinchgesture-event.i
-%include events/pageturnview-event.i
-%include events/pangesture-event.i
-%include events/progress-bar-event.i
-%include events/propertynotification-event.i
-%include events/longpressgesture-event.i
-%include events/rectangle.i
-%include events/padding.i
-%include events/resourceimage-event.i
-%include events/scrollable-event.i
-%include events/scrollbar-event.i
-%include events/scrollview-event.i
-%include events/slider-event.i
-%include events/stage-event.i
-%include events/stylemanager-event.i
-%include events/tapgesture-event.i
-%include events/texteditor-event.i
-%include events/textfield-event.i
-%include events/timer-event.i
-%include events/videoview-event.i
-
-%include alphafunction.i
-%include rotation.i
-%include name-changed.i
-%include property-value.i
-%include dali-operator.i
-%include devel-properties.i
-
-%include gestures/hover.i
-%include gestures/gesture.i
-%include gestures/long-press-gesture.i
-%include gestures/pan-gesture.i
-%include gestures/tap-gesture.i
-%include gestures/pinch-gesture.i
-%include gestures/wheel.i
-%include gestures/touch.i
-%include gestures/key.i
-
-%include adaptor/window.i
-
-%include dali-core.i
-%include dali-adaptor.i
-%include dali-toolkit.i
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%pragma(csharp) modulecode=%{
- public static readonly int VISUAL_PROPERTY_TRANSFORM = NDalicManualPINVOKE.Visual_Property_TRANSFORM_get();
- public static readonly int VISUAL_PROPERTY_PREMULTIPLIED_ALPHA = NDalicManualPINVOKE.Visual_Property_PREMULTIPLIED_ALPHA_get();
- public static readonly int VISUAL_PROPERTY_MIX_COLOR = NDalicManualPINVOKE.Visual_Property_MIX_COLOR_get();
- public static readonly int IMAGE_VISUAL_BORDER = NDalicManualPINVOKE.Image_Visual_BORDER_get();
-%}
-
-%typemap(cscode) Dali::Toolkit::Visual::Type %{
- ,
- TEXT,
- N_PATCH,
- SVG,
- ANIMATED_IMAGE
-%}
-
-%typemap(cscode) Dali::Actor::Property %{
- public static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
- public static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
- public static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
- public static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
-%}
-
-%typemap(cscode) Dali::Toolkit::Control::Property %{
- public static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
- public static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
- public static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
-%}
-
-%typemap(cscode) Dali::Toolkit::ItemView::Property %{
- public static readonly int LAYOUT = NDalicManualPINVOKE.ItemView_Property_LAYOUT_get();
-%}
-
-%typemap(cscode) Dali::Toolkit::ItemView %{
- public Dali.Property.Array Layout
- {
- get
- {
- Dali.Property.Array temp = new Dali.Property.Array();
- GetProperty( ItemView.Property.LAYOUT).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( ItemView.Property.LAYOUT, new Dali.Property.Value( value ) );
- }
- }
-%}
-
-%typemap(cscode) Dali::Toolkit::Button::Property %{
- public static readonly int UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_VISUAL_get();
- public static readonly int SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_VISUAL_get();
- public static readonly int DISABLED_SELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_VISUAL_get();
- public static readonly int DISABLED_UNSELECTED_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_VISUAL_get();
- public static readonly int UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
- public static readonly int SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_SELECTED_BACKGROUND_VISUAL_get();
- public static readonly int DISABLED_UNSELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
- public static readonly int DISABLED_SELECTED_BACKGROUND_VISUAL = NDalicManualPINVOKE.Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
- public static readonly int LABEL_RELATIVE_ALIGNMENT = NDalicManualPINVOKE.Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
- public static readonly int LABEL_PADDING = NDalicManualPINVOKE.Button_Property_LABEL_PADDING_get();
- public static readonly int VISUAL_PADDING = NDalicManualPINVOKE.Button_Property_VISUAL_PADDING_get();
-%}
-
+++ /dev/null
-# Doxyfile 1.8.6
-
-# This file describes the settings to be used by the documentation system
-# doxygen (www.doxygen.org) for a project.
-#
-# All text after a double hash (##) is considered a comment and is placed in
-# front of the TAG it is preceding.
-#
-# All text after a single hash (#) is considered a comment and will be ignored.
-# The format is:
-# TAG = value [value, ...]
-# For lists, items can also be appended using:
-# TAG += value [value, ...]
-# Values that contain spaces should be placed between quotes (\" \").
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-
-# This tag specifies the encoding used for all characters in the config file
-# that follow. The default is UTF-8 which is also the encoding used for all text
-# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
-# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
-# for the list of possible encodings.
-# The default value is: UTF-8.
-
-DOXYFILE_ENCODING = UTF-8
-
-# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
-# double-quotes, unless you are using Doxywizard) that should identify the
-# project for which the documentation is generated. This name is used in the
-# title of most generated pages and in a few other places.
-# The default value is: My Project.
-
-PROJECT_NAME = "My Project"
-
-# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
-# could be handy for archiving the generated documentation or if some version
-# control system is used.
-
-PROJECT_NUMBER =
-
-# Using the PROJECT_BRIEF tag one can provide an optional one line description
-# for a project that appears at the top of each page and should give viewer a
-# quick idea about the purpose of the project. Keep the description short.
-
-PROJECT_BRIEF =
-
-# With the PROJECT_LOGO tag one can specify an logo or icon that is included in
-# the documentation. The maximum height of the logo should not exceed 55 pixels
-# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo
-# to the output directory.
-
-PROJECT_LOGO =
-
-# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
-# into which the generated documentation will be written. If a relative path is
-# entered, it will be relative to the location where doxygen was started. If
-# left blank the current directory will be used.
-
-OUTPUT_DIRECTORY =
-
-# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-
-# directories (in 2 levels) under the output directory of each output format and
-# will distribute the generated files over these directories. Enabling this
-# option can be useful when feeding doxygen a huge amount of source files, where
-# putting all generated files in the same directory would otherwise causes
-# performance problems for the file system.
-# The default value is: NO.
-
-CREATE_SUBDIRS = NO
-
-# The OUTPUT_LANGUAGE tag is used to specify the language in which all
-# documentation generated by doxygen is written. Doxygen will use this
-# information to generate all constant output in the proper language.
-# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
-# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
-# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
-# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
-# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
-# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
-# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
-# Ukrainian and Vietnamese.
-# The default value is: English.
-
-OUTPUT_LANGUAGE = English
-
-# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member
-# descriptions after the members that are listed in the file and class
-# documentation (similar to Javadoc). Set to NO to disable this.
-# The default value is: YES.
-
-BRIEF_MEMBER_DESC = YES
-
-# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief
-# description of a member or function before the detailed description
-#
-# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
-# brief descriptions will be completely suppressed.
-# The default value is: YES.
-
-REPEAT_BRIEF = YES
-
-# This tag implements a quasi-intelligent brief description abbreviator that is
-# used to form the text in various listings. Each string in this list, if found
-# as the leading text of the brief description, will be stripped from the text
-# and the result, after processing the whole list, is used as the annotated
-# text. Otherwise, the brief description is used as-is. If left blank, the
-# following values are used ($name is automatically replaced with the name of
-# the entity):The $name class, The $name widget, The $name file, is, provides,
-# specifies, contains, represents, a, an and the.
-
-ABBREVIATE_BRIEF =
-
-# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
-# doxygen will generate a detailed section even if there is only a brief
-# description.
-# The default value is: NO.
-
-ALWAYS_DETAILED_SEC = NO
-
-# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
-# inherited members of a class in the documentation of that class as if those
-# members were ordinary class members. Constructors, destructors and assignment
-# operators of the base classes will not be shown.
-# The default value is: NO.
-
-INLINE_INHERITED_MEMB = NO
-
-# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path
-# before files name in the file list and in the header files. If set to NO the
-# shortest path that makes the file name unique will be used
-# The default value is: YES.
-
-FULL_PATH_NAMES = YES
-
-# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
-# Stripping is only done if one of the specified strings matches the left-hand
-# part of the path. The tag can be used to show relative paths in the file list.
-# If left blank the directory from which doxygen is run is used as the path to
-# strip.
-#
-# Note that you can specify absolute paths here, but also relative paths, which
-# will be relative from the directory where doxygen is started.
-# This tag requires that the tag FULL_PATH_NAMES is set to YES.
-
-STRIP_FROM_PATH =
-
-# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
-# path mentioned in the documentation of a class, which tells the reader which
-# header file to include in order to use a class. If left blank only the name of
-# the header file containing the class definition is used. Otherwise one should
-# specify the list of include paths that are normally passed to the compiler
-# using the -I flag.
-
-STRIP_FROM_INC_PATH =
-
-# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
-# less readable) file names. This can be useful is your file systems doesn't
-# support long names like on DOS, Mac, or CD-ROM.
-# The default value is: NO.
-
-SHORT_NAMES = NO
-
-# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
-# first line (until the first dot) of a Javadoc-style comment as the brief
-# description. If set to NO, the Javadoc-style will behave just like regular Qt-
-# style comments (thus requiring an explicit @brief command for a brief
-# description.)
-# The default value is: NO.
-
-JAVADOC_AUTOBRIEF = NO
-
-# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
-# line (until the first dot) of a Qt-style comment as the brief description. If
-# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
-# requiring an explicit \brief command for a brief description.)
-# The default value is: NO.
-
-QT_AUTOBRIEF = NO
-
-# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
-# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
-# a brief description. This used to be the default behavior. The new default is
-# to treat a multi-line C++ comment block as a detailed description. Set this
-# tag to YES if you prefer the old behavior instead.
-#
-# Note that setting this tag to YES also means that rational rose comments are
-# not recognized any more.
-# The default value is: NO.
-
-MULTILINE_CPP_IS_BRIEF = NO
-
-# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
-# documentation from any documented member that it re-implements.
-# The default value is: YES.
-
-INHERIT_DOCS = YES
-
-# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a
-# new page for each member. If set to NO, the documentation of a member will be
-# part of the file/class/namespace that contains it.
-# The default value is: NO.
-
-SEPARATE_MEMBER_PAGES = NO
-
-# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
-# uses this value to replace tabs by spaces in code fragments.
-# Minimum value: 1, maximum value: 16, default value: 4.
-
-TAB_SIZE = 4
-
-# This tag can be used to specify a number of aliases that act as commands in
-# the documentation. An alias has the form:
-# name=value
-# For example adding
-# "sideeffect=@par Side Effects:\n"
-# will allow you to put the command \sideeffect (or @sideeffect) in the
-# documentation, which will result in a user-defined paragraph with heading
-# "Side Effects:". You can put \n's in the value part of an alias to insert
-# newlines.
-
-ALIASES =
-
-# Clip alias inserts the specified file between two text markers.
-# EG: @clip{"button.h",public,private}
-# Shows all lines between public and private *inclusive*.
-ALIASES += clip{3}="\dontinclude \1 \n \skip \2 \n \until \3"
-
-# <DALi Doxygen Tagging Rule>
-#
-# Use @SINCE_1_0, @SINCE_1_1, ... instead of @since,
-# and use @DEPRECATED_1_0, @DEPRECATED_1_1, ... instead of @deprecated.
-# It enables integrated management of version tagging between
-# the open source DALi API reference and Tizen API reference.
-# Using those tags with different ALIASES settings in each doxygen config file allows us
-# to generate two versions of "Since" and "Deprecated" generated output
-# from one set of public header files.
-#
-# If you need a newer version number like @SINCE_1_5 or @SINCE_2_0, just add new ALIASES for it.
-#
-# ##################################################3
-# # Guide for Open Source DALi API Reference
-#
-# ### @SINCE example:
-# [some-public-header.h]
-# /**
-# * ...
-# * @SINCE_1_0.1
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# ...
-# Since:
-# 1.0.1
-#
-# ### @DEPRECATED example 1:
-# [some-public-header.h]
-# /**
-# * @DEPRECATED_1_0.3
-# * ...
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# Deprecated:
-# Deprecated since 1.0.3
-# ...
-#
-# ### @DEPRECATED example 2:
-# [some-public-header.h]
-# ...
-# /**
-# * @DEPRECATED_1_0.3. Use SomeFunction2() instead.
-# * ...
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# Deprecated:
-# Deprecated since 1.0.3. Use SomeFunction2() instead.
-# ...
-#
-# ##################################################3
-# # Guide for Tizen Native API Reference
-#
-# ### @SINCE example:
-# [some-public-header.h]
-# /**
-# * ...
-# * @SINCE_1_0.1
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# ...
-# Since:
-# 2.4, DALi Version 1.0.1
-#
-# ### @DEPRECATED example 1:
-# [some-public-header.h]
-# /**
-# * @DEPRECATED_1_0.3
-# * ...
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# Deprecated:
-# Deprecated since 3.0, DALi version 1.0.3
-# ...
-#
-# ### @DEPRECATED example 2:
-# [some-public-header.h]
-# ...
-# /**
-# * @DEPRECATED_1_0.3. Use SomeFunction2() instead.
-# * ...
-# */
-# void SomeFunction();
-#
-# [generated html file]
-# void SomeFunction()
-# Deprecated:
-# Deprecated since 3.0, DALi version 1.0.3. Use SomeFunction2() instead.
-# ...
-
-###########################################
-# For Open Source DALi API Reference
-ALIASES += SINCE_1_0="@since 1.0"
-ALIASES += SINCE_1_1="@since 1.1"
-ALIASES += SINCE_1_2="@since 1.2"
-
-# Extra tags for Tizen 3.0
-ALIASES += SINCE_1_2_2="@since 1.2.2"
-ALIASES += SINCE_1_2_4="@since 1.2.4"
-ALIASES += SINCE_1_2_5="@since 1.2.5"
-
-ALIASES += DEPRECATED_1_0="@deprecated Deprecated since 1.0"
-ALIASES += DEPRECATED_1_1="@deprecated Deprecated since 1.1"
-ALIASES += DEPRECATED_1_2="@deprecated Deprecated since 1.2"
-
-ALIASES += PLATFORM=""
-ALIASES += PRIVLEVEL_PLATFORM=""
-ALIASES += PRIVLEVEL_PUBLIC=""
-ALIASES += PRIVILEGE_KEYGRAB=""
-ALIASES += PRIVILEGE_DISPLAY=""
-ALIASES += REMARK_INTERNET=""
-
-############################################
-## For Tizen Native API Reference
-#ALIASES += SINCE_1_0="\par Since:\n 2.4, DALi version 1.0"
-#ALIASES += SINCE_1_1="\par Since:\n 3.0, DALi version 1.1"
-#ALIASES += SINCE_1_2="\par Since:\n 4.0, DALi version 1.2"
-
-## Extra tags for Tizen 3.0
-#ALIASES += SINCE_1_2_2="\par Since:\n 3.0, DALi version 1.2.2"
-#ALIASES += SINCE_1_2_4="\par Since:\n 3.0, DALi version 1.2.4"
-#ALIASES += SINCE_1_2_5="\par Since:\n 3.0, DALi version 1.2.5"
-
-## DALi has no deprecated API in Tizen 2.4 because it's DALi's first release.
-## Thus deprecated APIs in DALi 1.0.xx will be deprecated in Tizen 3.0.
-#ALIASES += DEPRECATED_1_0="@deprecated Deprecated since 3.0, DALi version 1.0"
-#ALIASES += DEPRECATED_1_1="@deprecated Deprecated since 3.0, DALi version 1.1"
-#ALIASES += DEPRECATED_1_2="@deprecated Deprecated since 4.0, DALi version 1.2"
-
-#ALIASES += PLATFORM="@platform"
-#ALIASES += PRIVLEVEL_PLATFORM="\par Privilege Level:\n platform"
-#ALIASES += PRIVLEVEL_PUBLIC="\par Privilege Level:\n public"
-#ALIASES += PRIVILEGE_KEYGRAB="\par Privilege:\n http://tizen.org/privilege/keygrab"
-#ALIASES += PRIVILEGE_DISPLAY="\par Privilege:\n http://tizen.org/privilege/display"
-#ALIASES += REMARK_INTERNET="@remarks %http://tizen.org/privilege/internet is needed if @a url is a http or https address."
-
-
-# This tag can be used to specify a number of word-keyword mappings (TCL only).
-# A mapping has the form "name=value". For example adding "class=itcl::class"
-# will allow you to use the command class in the itcl::class meaning.
-
-TCL_SUBST =
-
-# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
-# only. Doxygen will then generate output that is more tailored for C. For
-# instance, some of the names that are used will be different. The list of all
-# members will be omitted, etc.
-# The default value is: NO.
-
-OPTIMIZE_OUTPUT_FOR_C = NO
-
-# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
-# Python sources only. Doxygen will then generate output that is more tailored
-# for that language. For instance, namespaces will be presented as packages,
-# qualified scopes will look different, etc.
-# The default value is: NO.
-
-OPTIMIZE_OUTPUT_JAVA = NO
-
-# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
-# sources. Doxygen will then generate output that is tailored for Fortran.
-# The default value is: NO.
-
-OPTIMIZE_FOR_FORTRAN = NO
-
-# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
-# sources. Doxygen will then generate output that is tailored for VHDL.
-# The default value is: NO.
-
-OPTIMIZE_OUTPUT_VHDL = NO
-
-# Doxygen selects the parser to use depending on the extension of the files it
-# parses. With this tag you can assign which parser to use for a given
-# extension. Doxygen has a built-in mapping, but you can override or extend it
-# using this tag. The format is ext=language, where ext is a file extension, and
-# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
-# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make
-# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C
-# (default is Fortran), use: inc=Fortran f=C.
-#
-# Note For files without extension you can use no_extension as a placeholder.
-#
-# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
-# the files are not read by doxygen.
-
-EXTENSION_MAPPING =
-
-# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
-# according to the Markdown format, which allows for more readable
-# documentation. See http://daringfireball.net/projects/markdown/ for details.
-# The output of markdown processing is further processed by doxygen, so you can
-# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
-# case of backward compatibilities issues.
-# The default value is: YES.
-
-MARKDOWN_SUPPORT = YES
-
-# When enabled doxygen tries to link words that correspond to documented
-# classes, or namespaces to their corresponding documentation. Such a link can
-# be prevented in individual cases by by putting a % sign in front of the word
-# or globally by setting AUTOLINK_SUPPORT to NO.
-# The default value is: YES.
-
-AUTOLINK_SUPPORT = YES
-
-# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
-# to include (a tag file for) the STL sources as input, then you should set this
-# tag to YES in order to let doxygen match functions declarations and
-# definitions whose arguments contain STL classes (e.g. func(std::string);
-# versus func(std::string) {}). This also make the inheritance and collaboration
-# diagrams that involve STL classes more complete and accurate.
-# The default value is: NO.
-
-BUILTIN_STL_SUPPORT = NO
-
-# If you use Microsoft's C++/CLI language, you should set this option to YES to
-# enable parsing support.
-# The default value is: NO.
-
-CPP_CLI_SUPPORT = NO
-
-# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
-# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
-# will parse them like normal C++ but will assume all classes use public instead
-# of private inheritance when no explicit protection keyword is present.
-# The default value is: NO.
-
-SIP_SUPPORT = NO
-
-# For Microsoft's IDL there are propget and propput attributes to indicate
-# getter and setter methods for a property. Setting this option to YES will make
-# doxygen to replace the get and set methods by a property in the documentation.
-# This will only work if the methods are indeed getting or setting a simple
-# type. If this is not the case, or you want to show the methods anyway, you
-# should set this option to NO.
-# The default value is: YES.
-
-IDL_PROPERTY_SUPPORT = YES
-
-# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
-# tag is set to YES, then doxygen will reuse the documentation of the first
-# member in the group (if any) for the other members of the group. By default
-# all members of a group must be documented explicitly.
-# The default value is: NO.
-
-DISTRIBUTE_GROUP_DOC = NO
-
-# Set the SUBGROUPING tag to YES to allow class member groups of the same type
-# (for instance a group of public functions) to be put as a subgroup of that
-# type (e.g. under the Public Functions section). Set it to NO to prevent
-# subgrouping. Alternatively, this can be done per class using the
-# \nosubgrouping command.
-# The default value is: YES.
-
-SUBGROUPING = YES
-
-# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
-# are shown inside the group in which they are included (e.g. using \ingroup)
-# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
-# and RTF).
-#
-# Note that this feature does not work in combination with
-# SEPARATE_MEMBER_PAGES.
-# The default value is: NO.
-
-INLINE_GROUPED_CLASSES = NO
-
-# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
-# with only public data fields or simple typedef fields will be shown inline in
-# the documentation of the scope in which they are defined (i.e. file,
-# namespace, or group documentation), provided this scope is documented. If set
-# to NO, structs, classes, and unions are shown on a separate page (for HTML and
-# Man pages) or section (for LaTeX and RTF).
-# The default value is: NO.
-
-INLINE_SIMPLE_STRUCTS = NO
-
-# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
-# enum is documented as struct, union, or enum with the name of the typedef. So
-# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
-# with name TypeT. When disabled the typedef will appear as a member of a file,
-# namespace, or class. And the struct will be named TypeS. This can typically be
-# useful for C code in case the coding convention dictates that all compound
-# types are typedef'ed and only the typedef is referenced, never the tag name.
-# The default value is: NO.
-
-TYPEDEF_HIDES_STRUCT = NO
-
-# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
-# cache is used to resolve symbols given their name and scope. Since this can be
-# an expensive process and often the same symbol appears multiple times in the
-# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
-# doxygen will become slower. If the cache is too large, memory is wasted. The
-# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
-# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
-# symbols. At the end of a run doxygen will report the cache usage and suggest
-# the optimal cache size from a speed point of view.
-# Minimum value: 0, maximum value: 9, default value: 0.
-
-LOOKUP_CACHE_SIZE = 0
-
-#---------------------------------------------------------------------------
-# Build related configuration options
-#---------------------------------------------------------------------------
-
-# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
-# documentation are documented, even if no documentation was available. Private
-# class members and static file members will be hidden unless the
-# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
-# Note: This will also disable the warnings about undocumented members that are
-# normally produced when WARNINGS is set to YES.
-# The default value is: NO.
-
-EXTRACT_ALL = NO
-
-# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will
-# be included in the documentation.
-# The default value is: NO.
-
-EXTRACT_PRIVATE = NO
-
-# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
-# scope will be included in the documentation.
-# The default value is: NO.
-
-EXTRACT_PACKAGE = NO
-
-# If the EXTRACT_STATIC tag is set to YES all static members of a file will be
-# included in the documentation.
-# The default value is: NO.
-
-EXTRACT_STATIC = NO
-
-# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined
-# locally in source files will be included in the documentation. If set to NO
-# only classes defined in header files are included. Does not have any effect
-# for Java sources.
-# The default value is: YES.
-
-EXTRACT_LOCAL_CLASSES = YES
-
-# This flag is only useful for Objective-C code. When set to YES local methods,
-# which are defined in the implementation section but not in the interface are
-# included in the documentation. If set to NO only methods in the interface are
-# included.
-# The default value is: NO.
-
-EXTRACT_LOCAL_METHODS = NO
-
-# If this flag is set to YES, the members of anonymous namespaces will be
-# extracted and appear in the documentation as a namespace called
-# 'anonymous_namespace{file}', where file will be replaced with the base name of
-# the file that contains the anonymous namespace. By default anonymous namespace
-# are hidden.
-# The default value is: NO.
-
-EXTRACT_ANON_NSPACES = NO
-
-# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
-# undocumented members inside documented classes or files. If set to NO these
-# members will be included in the various overviews, but no documentation
-# section is generated. This option has no effect if EXTRACT_ALL is enabled.
-# The default value is: NO.
-
-HIDE_UNDOC_MEMBERS = NO
-
-# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
-# undocumented classes that are normally visible in the class hierarchy. If set
-# to NO these classes will be included in the various overviews. This option has
-# no effect if EXTRACT_ALL is enabled.
-# The default value is: NO.
-
-HIDE_UNDOC_CLASSES = NO
-
-# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
-# (class|struct|union) declarations. If set to NO these declarations will be
-# included in the documentation.
-# The default value is: NO.
-
-HIDE_FRIEND_COMPOUNDS = NO
-
-# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
-# documentation blocks found inside the body of a function. If set to NO these
-# blocks will be appended to the function's detailed documentation block.
-# The default value is: NO.
-
-HIDE_IN_BODY_DOCS = NO
-
-# The INTERNAL_DOCS tag determines if documentation that is typed after a
-# \internal command is included. If the tag is set to NO then the documentation
-# will be excluded. Set it to YES to include the internal documentation.
-# The default value is: NO.
-
-INTERNAL_DOCS = NO
-
-# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
-# names in lower-case letters. If set to YES upper-case letters are also
-# allowed. This is useful if you have classes or files whose names only differ
-# in case and if your file system supports case sensitive file names. Windows
-# and Mac users are advised to set this option to NO.
-# The default value is: system dependent.
-
-CASE_SENSE_NAMES = YES
-
-# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
-# their full class and namespace scopes in the documentation. If set to YES the
-# scope will be hidden.
-# The default value is: NO.
-
-HIDE_SCOPE_NAMES = NO
-
-# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
-# the files that are included by a file in the documentation of that file.
-# The default value is: YES.
-
-SHOW_INCLUDE_FILES = YES
-
-# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
-# grouped member an include statement to the documentation, telling the reader
-# which file to include in order to use the member.
-# The default value is: NO.
-
-SHOW_GROUPED_MEMB_INC = NO
-
-# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
-# files with double quotes in the documentation rather than with sharp brackets.
-# The default value is: NO.
-
-FORCE_LOCAL_INCLUDES = NO
-
-# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
-# documentation for inline members.
-# The default value is: YES.
-
-INLINE_INFO = YES
-
-# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
-# (detailed) documentation of file and class members alphabetically by member
-# name. If set to NO the members will appear in declaration order.
-# The default value is: YES.
-
-SORT_MEMBER_DOCS = YES
-
-# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
-# descriptions of file, namespace and class members alphabetically by member
-# name. If set to NO the members will appear in declaration order. Note that
-# this will also influence the order of the classes in the class list.
-# The default value is: NO.
-
-SORT_BRIEF_DOCS = NO
-
-# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
-# (brief and detailed) documentation of class members so that constructors and
-# destructors are listed first. If set to NO the constructors will appear in the
-# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
-# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
-# member documentation.
-# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
-# detailed member documentation.
-# The default value is: NO.
-
-SORT_MEMBERS_CTORS_1ST = NO
-
-# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
-# of group names into alphabetical order. If set to NO the group names will
-# appear in their defined order.
-# The default value is: NO.
-
-SORT_GROUP_NAMES = NO
-
-# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
-# fully-qualified names, including namespaces. If set to NO, the class list will
-# be sorted only by class name, not including the namespace part.
-# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
-# Note: This option applies only to the class list, not to the alphabetical
-# list.
-# The default value is: NO.
-
-SORT_BY_SCOPE_NAME = NO
-
-# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
-# type resolution of all parameters of a function it will reject a match between
-# the prototype and the implementation of a member function even if there is
-# only one candidate or it is obvious which candidate to choose by doing a
-# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
-# accept a match between prototype and implementation in such cases.
-# The default value is: NO.
-
-STRICT_PROTO_MATCHING = NO
-
-# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the
-# todo list. This list is created by putting \todo commands in the
-# documentation.
-# The default value is: YES.
-
-GENERATE_TODOLIST = YES
-
-# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the
-# test list. This list is created by putting \test commands in the
-# documentation.
-# The default value is: YES.
-
-GENERATE_TESTLIST = YES
-
-# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug
-# list. This list is created by putting \bug commands in the documentation.
-# The default value is: YES.
-
-GENERATE_BUGLIST = YES
-
-# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO)
-# the deprecated list. This list is created by putting \deprecated commands in
-# the documentation.
-# The default value is: YES.
-
-GENERATE_DEPRECATEDLIST= YES
-
-# The ENABLED_SECTIONS tag can be used to enable conditional documentation
-# sections, marked by \if <section_label> ... \endif and \cond <section_label>
-# ... \endcond blocks.
-
-ENABLED_SECTIONS =
-
-# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
-# initial value of a variable or macro / define can have for it to appear in the
-# documentation. If the initializer consists of more lines than specified here
-# it will be hidden. Use a value of 0 to hide initializers completely. The
-# appearance of the value of individual variables and macros / defines can be
-# controlled using \showinitializer or \hideinitializer command in the
-# documentation regardless of this setting.
-# Minimum value: 0, maximum value: 10000, default value: 30.
-
-MAX_INITIALIZER_LINES = 30
-
-# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
-# the bottom of the documentation of classes and structs. If set to YES the list
-# will mention the files that were used to generate the documentation.
-# The default value is: YES.
-
-SHOW_USED_FILES = YES
-
-# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
-# will remove the Files entry from the Quick Index and from the Folder Tree View
-# (if specified).
-# The default value is: YES.
-
-SHOW_FILES = YES
-
-# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
-# page. This will remove the Namespaces entry from the Quick Index and from the
-# Folder Tree View (if specified).
-# The default value is: YES.
-
-SHOW_NAMESPACES = YES
-
-# The FILE_VERSION_FILTER tag can be used to specify a program or script that
-# doxygen should invoke to get the current version for each file (typically from
-# the version control system). Doxygen will invoke the program by executing (via
-# popen()) the command command input-file, where command is the value of the
-# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
-# by doxygen. Whatever the program writes to standard output is used as the file
-# version. For an example see the documentation.
-
-FILE_VERSION_FILTER =
-
-# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
-# by doxygen. The layout file controls the global structure of the generated
-# output files in an output format independent way. To create the layout file
-# that represents doxygen's defaults, run doxygen with the -l option. You can
-# optionally specify a file name after the option, if omitted DoxygenLayout.xml
-# will be used as the name of the layout file.
-#
-# Note that if you run doxygen from a directory containing a file called
-# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
-# tag is left empty.
-
-LAYOUT_FILE =
-
-# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
-# the reference definitions. This must be a list of .bib files. The .bib
-# extension is automatically appended if omitted. This requires the bibtex tool
-# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
-# For LaTeX the style of the bibliography can be controlled using
-# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
-# search path. Do not use file names with spaces, bibtex cannot handle them. See
-# also \cite for info how to create references.
-
-CITE_BIB_FILES =
-
-#---------------------------------------------------------------------------
-# Configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-
-# The QUIET tag can be used to turn on/off the messages that are generated to
-# standard output by doxygen. If QUIET is set to YES this implies that the
-# messages are off.
-# The default value is: NO.
-
-QUIET = NO
-
-# The WARNINGS tag can be used to turn on/off the warning messages that are
-# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES
-# this implies that the warnings are on.
-#
-# Tip: Turn warnings on while writing the documentation.
-# The default value is: YES.
-
-WARNINGS = YES
-
-# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate
-# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
-# will automatically be disabled.
-# The default value is: YES.
-
-WARN_IF_UNDOCUMENTED = YES
-
-# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
-# potential errors in the documentation, such as not documenting some parameters
-# in a documented function, or documenting parameters that don't exist or using
-# markup commands wrongly.
-# The default value is: YES.
-
-WARN_IF_DOC_ERROR = YES
-
-# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
-# are documented, but have no documentation for their parameters or return
-# value. If set to NO doxygen will only warn about wrong or incomplete parameter
-# documentation, but not about the absence of documentation.
-# The default value is: NO.
-
-WARN_NO_PARAMDOC = NO
-
-# The WARN_FORMAT tag determines the format of the warning messages that doxygen
-# can produce. The string should contain the $file, $line, and $text tags, which
-# will be replaced by the file and line number from which the warning originated
-# and the warning text. Optionally the format may contain $version, which will
-# be replaced by the version of the file (if it could be obtained via
-# FILE_VERSION_FILTER)
-# The default value is: $file:$line: $text.
-
-WARN_FORMAT = "$file:$line: $text"
-
-# The WARN_LOGFILE tag can be used to specify a file to which warning and error
-# messages should be written. If left blank the output is written to standard
-# error (stderr).
-
-WARN_LOGFILE =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the input files
-#---------------------------------------------------------------------------
-
-# The INPUT tag is used to specify the files and/or directories that contain
-# documented source files. You may enter file names like myfile.cpp or
-# directories like /usr/src/myproject. Separate the files or directories with
-# spaces.
-# Note: If this tag is empty the current directory is searched.
-
-INPUT =
-
-# This tag can be used to specify the character encoding of the source files
-# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
-# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
-# documentation (see: http://www.gnu.org/software/libiconv) for the list of
-# possible encodings.
-# The default value is: UTF-8.
-
-INPUT_ENCODING = UTF-8
-
-# If the value of the INPUT tag contains directories, you can use the
-# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
-# *.h) to filter out the source-files in the directories. If left blank the
-# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,
-# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,
-# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,
-# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,
-# *.qsf, *.as and *.js.
-
-#FILE_PATTERNS = *.c
-#FILE_PATTERNS = *.py
-FILE_PATTERNS = *.c
-FILE_PATTERNS = *.h
-#FILE_PATTERNS = *.cs
-
-# The RECURSIVE tag can be used to specify whether or not subdirectories should
-# be searched for input files as well.
-# The default value is: NO.
-
-RECURSIVE = NO
-
-# The EXCLUDE tag can be used to specify files and/or directories that should be
-# excluded from the INPUT source files. This way you can easily exclude a
-# subdirectory from a directory tree whose root is specified with the INPUT tag.
-#
-# Note that relative paths are relative to the directory from which doxygen is
-# run.
-
-EXCLUDE =
-
-# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
-# directories that are symbolic links (a Unix file system feature) are excluded
-# from the input.
-# The default value is: NO.
-
-EXCLUDE_SYMLINKS = NO
-
-# If the value of the INPUT tag contains directories, you can use the
-# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
-# certain files from those directories.
-#
-# Note that the wildcards are matched against the file with absolute path, so to
-# exclude all test directories for example use the pattern */test/*
-
-EXCLUDE_PATTERNS =
-
-# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
-# (namespaces, classes, functions, etc.) that should be excluded from the
-# output. The symbol name can be a fully qualified name, a word, or if the
-# wildcard * is used, a substring. Examples: ANamespace, AClass,
-# AClass::ANamespace, ANamespace::*Test
-#
-# Note that the wildcards are matched against the file with absolute path, so to
-# exclude all test directories use the pattern */test/*
-
-EXCLUDE_SYMBOLS =
-
-# The EXAMPLE_PATH tag can be used to specify one or more files or directories
-# that contain example code fragments that are included (see the \include
-# command).
-
-EXAMPLE_PATH =
-
-# If the value of the EXAMPLE_PATH tag contains directories, you can use the
-# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
-# *.h) to filter out the source-files in the directories. If left blank all
-# files are included.
-
-EXAMPLE_PATTERNS =
-
-# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
-# searched for input files to be used with the \include or \dontinclude commands
-# irrespective of the value of the RECURSIVE tag.
-# The default value is: NO.
-
-EXAMPLE_RECURSIVE = NO
-
-# The IMAGE_PATH tag can be used to specify one or more files or directories
-# that contain images that are to be included in the documentation (see the
-# \image command).
-
-IMAGE_PATH =
-
-# The INPUT_FILTER tag can be used to specify a program that doxygen should
-# invoke to filter for each input file. Doxygen will invoke the filter program
-# by executing (via popen()) the command:
-#
-# <filter> <input-file>
-#
-# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
-# name of an input file. Doxygen will then use the output that the filter
-# program writes to standard output. If FILTER_PATTERNS is specified, this tag
-# will be ignored.
-#
-# Note that the filter must not add or remove lines; it is applied before the
-# code is scanned, but not when the output code is generated. If lines are added
-# or removed, the anchors will not be placed correctly.
-
-INPUT_FILTER =
-
-# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
-# basis. Doxygen will compare the file name with each pattern and apply the
-# filter if there is a match. The filters are a list of the form: pattern=filter
-# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
-# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
-# patterns match the file name, INPUT_FILTER is applied.
-
-FILTER_PATTERNS =
-
-# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
-# INPUT_FILTER ) will also be used to filter the input files that are used for
-# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
-# The default value is: NO.
-
-FILTER_SOURCE_FILES = NO
-
-# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
-# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
-# it is also possible to disable source filtering for a specific pattern using
-# *.ext= (so without naming a filter).
-# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
-
-FILTER_SOURCE_PATTERNS =
-
-# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
-# is part of the input, its contents will be placed on the main page
-# (index.html). This can be useful if you have a project on for instance GitHub
-# and want to reuse the introduction page also for the doxygen output.
-
-USE_MDFILE_AS_MAINPAGE =
-
-#---------------------------------------------------------------------------
-# Configuration options related to source browsing
-#---------------------------------------------------------------------------
-
-# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
-# generated. Documented entities will be cross-referenced with these sources.
-#
-# Note: To get rid of all source code in the generated output, make sure that
-# also VERBATIM_HEADERS is set to NO.
-# The default value is: NO.
-
-SOURCE_BROWSER = NO
-
-# Setting the INLINE_SOURCES tag to YES will include the body of functions,
-# classes and enums directly into the documentation.
-# The default value is: NO.
-
-INLINE_SOURCES = NO
-
-# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
-# special comment blocks from generated source code fragments. Normal C, C++ and
-# Fortran comments will always remain visible.
-# The default value is: YES.
-
-STRIP_CODE_COMMENTS = NO
-
-# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
-# function all documented functions referencing it will be listed.
-# The default value is: NO.
-
-REFERENCED_BY_RELATION = NO
-
-# If the REFERENCES_RELATION tag is set to YES then for each documented function
-# all documented entities called/used by that function will be listed.
-# The default value is: NO.
-
-REFERENCES_RELATION = NO
-
-# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
-# to YES, then the hyperlinks from functions in REFERENCES_RELATION and
-# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
-# link to the documentation.
-# The default value is: YES.
-
-REFERENCES_LINK_SOURCE = YES
-
-# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
-# source code will show a tooltip with additional information such as prototype,
-# brief description and links to the definition and documentation. Since this
-# will make the HTML file larger and loading of large files a bit slower, you
-# can opt to disable this feature.
-# The default value is: YES.
-# This tag requires that the tag SOURCE_BROWSER is set to YES.
-
-SOURCE_TOOLTIPS = YES
-
-# If the USE_HTAGS tag is set to YES then the references to source code will
-# point to the HTML generated by the htags(1) tool instead of doxygen built-in
-# source browser. The htags tool is part of GNU's global source tagging system
-# (see http://www.gnu.org/software/global/global.html). You will need version
-# 4.8.6 or higher.
-#
-# To use it do the following:
-# - Install the latest version of global
-# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
-# - Make sure the INPUT points to the root of the source tree
-# - Run doxygen as normal
-#
-# Doxygen will invoke htags (and that will in turn invoke gtags), so these
-# tools must be available from the command line (i.e. in the search path).
-#
-# The result: instead of the source browser generated by doxygen, the links to
-# source code will now point to the output of htags.
-# The default value is: NO.
-# This tag requires that the tag SOURCE_BROWSER is set to YES.
-
-USE_HTAGS = NO
-
-# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
-# verbatim copy of the header file for each class for which an include is
-# specified. Set to NO to disable this.
-# See also: Section \class.
-# The default value is: YES.
-
-VERBATIM_HEADERS = YES
-
-#---------------------------------------------------------------------------
-# Configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-
-# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
-# compounds will be generated. Enable this if the project contains a lot of
-# classes, structs, unions or interfaces.
-# The default value is: YES.
-
-ALPHABETICAL_INDEX = YES
-
-# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
-# which the alphabetical index list will be split.
-# Minimum value: 1, maximum value: 20, default value: 5.
-# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
-
-COLS_IN_ALPHA_INDEX = 5
-
-# In case all classes in a project start with a common prefix, all classes will
-# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
-# can be used to specify a prefix (or a list of prefixes) that should be ignored
-# while generating the index headers.
-# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
-
-IGNORE_PREFIX =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the HTML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output
-# The default value is: YES.
-
-GENERATE_HTML = YES
-
-# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
-# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-# it.
-# The default directory is: html.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_OUTPUT = html
-
-# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
-# generated HTML page (for example: .htm, .php, .asp).
-# The default value is: .html.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_FILE_EXTENSION = .html
-
-# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
-# each generated HTML page. If the tag is left blank doxygen will generate a
-# standard header.
-#
-# To get valid HTML the header file that includes any scripts and style sheets
-# that doxygen needs, which is dependent on the configuration options used (e.g.
-# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
-# default header using
-# doxygen -w html new_header.html new_footer.html new_stylesheet.css
-# YourConfigFile
-# and then modify the file new_header.html. See also section "Doxygen usage"
-# for information on how to generate the default header that doxygen normally
-# uses.
-# Note: The header is subject to change so you typically have to regenerate the
-# default header when upgrading to a newer version of doxygen. For a description
-# of the possible markers and block names see the documentation.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_HEADER =
-
-# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
-# generated HTML page. If the tag is left blank doxygen will generate a standard
-# footer. See HTML_HEADER for more information on how to generate a default
-# footer and what special commands can be used inside the footer. See also
-# section "Doxygen usage" for information on how to generate the default footer
-# that doxygen normally uses.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_FOOTER =
-
-# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
-# sheet that is used by each HTML page. It can be used to fine-tune the look of
-# the HTML output. If left blank doxygen will generate a default style sheet.
-# See also section "Doxygen usage" for information on how to generate the style
-# sheet that doxygen normally uses.
-# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
-# it is more robust and this tag (HTML_STYLESHEET) will in the future become
-# obsolete.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_STYLESHEET =
-
-# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user-
-# defined cascading style sheet that is included after the standard style sheets
-# created by doxygen. Using this option one can overrule certain style aspects.
-# This is preferred over using HTML_STYLESHEET since it does not replace the
-# standard style sheet and is therefor more robust against future updates.
-# Doxygen will copy the style sheet file to the output directory. For an example
-# see the documentation.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_EXTRA_STYLESHEET =
-
-# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
-# other source files which should be copied to the HTML output directory. Note
-# that these files will be copied to the base HTML output directory. Use the
-# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
-# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
-# files will be copied as-is; there are no commands or markers available.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_EXTRA_FILES =
-
-# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
-# will adjust the colors in the stylesheet and background images according to
-# this color. Hue is specified as an angle on a colorwheel, see
-# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
-# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
-# purple, and 360 is red again.
-# Minimum value: 0, maximum value: 359, default value: 220.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_COLORSTYLE_HUE = 220
-
-# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
-# in the HTML output. For a value of 0 the output will use grayscales only. A
-# value of 255 will produce the most vivid colors.
-# Minimum value: 0, maximum value: 255, default value: 100.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_COLORSTYLE_SAT = 100
-
-# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
-# luminance component of the colors in the HTML output. Values below 100
-# gradually make the output lighter, whereas values above 100 make the output
-# darker. The value divided by 100 is the actual gamma applied, so 80 represents
-# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
-# change the gamma.
-# Minimum value: 40, maximum value: 240, default value: 80.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_COLORSTYLE_GAMMA = 80
-
-# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
-# page will contain the date and time when the page was generated. Setting this
-# to NO can help when comparing the output of multiple runs.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_TIMESTAMP = YES
-
-# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
-# documentation will contain sections that can be hidden and shown after the
-# page has loaded.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_DYNAMIC_SECTIONS = NO
-
-# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
-# shown in the various tree structured indices initially; the user can expand
-# and collapse entries dynamically later on. Doxygen will expand the tree to
-# such a level that at most the specified number of entries are visible (unless
-# a fully collapsed tree already exceeds this amount). So setting the number of
-# entries 1 will produce a full collapsed tree by default. 0 is a special value
-# representing an infinite number of entries and will result in a full expanded
-# tree by default.
-# Minimum value: 0, maximum value: 9999, default value: 100.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-HTML_INDEX_NUM_ENTRIES = 100
-
-# If the GENERATE_DOCSET tag is set to YES, additional index files will be
-# generated that can be used as input for Apple's Xcode 3 integrated development
-# environment (see: http://developer.apple.com/tools/xcode/), introduced with
-# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
-# Makefile in the HTML output directory. Running make will produce the docset in
-# that directory and running make install will install the docset in
-# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
-# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
-# for more information.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-GENERATE_DOCSET = NO
-
-# This tag determines the name of the docset feed. A documentation feed provides
-# an umbrella under which multiple documentation sets from a single provider
-# (such as a company or product suite) can be grouped.
-# The default value is: Doxygen generated docs.
-# This tag requires that the tag GENERATE_DOCSET is set to YES.
-
-DOCSET_FEEDNAME = "Doxygen generated docs"
-
-# This tag specifies a string that should uniquely identify the documentation
-# set bundle. This should be a reverse domain-name style string, e.g.
-# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
-# The default value is: org.doxygen.Project.
-# This tag requires that the tag GENERATE_DOCSET is set to YES.
-
-DOCSET_BUNDLE_ID = org.doxygen.Project
-
-# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
-# the documentation publisher. This should be a reverse domain-name style
-# string, e.g. com.mycompany.MyDocSet.documentation.
-# The default value is: org.doxygen.Publisher.
-# This tag requires that the tag GENERATE_DOCSET is set to YES.
-
-DOCSET_PUBLISHER_ID = org.doxygen.Publisher
-
-# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
-# The default value is: Publisher.
-# This tag requires that the tag GENERATE_DOCSET is set to YES.
-
-DOCSET_PUBLISHER_NAME = Publisher
-
-# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
-# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
-# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
-# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
-# Windows.
-#
-# The HTML Help Workshop contains a compiler that can convert all HTML output
-# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
-# files are now used as the Windows 98 help format, and will replace the old
-# Windows help format (.hlp) on all Windows platforms in the future. Compressed
-# HTML files also contain an index, a table of contents, and you can search for
-# words in the documentation. The HTML workshop also contains a viewer for
-# compressed HTML files.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-GENERATE_HTMLHELP = NO
-
-# The CHM_FILE tag can be used to specify the file name of the resulting .chm
-# file. You can add a path in front of the file if the result should not be
-# written to the html output directory.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-CHM_FILE =
-
-# The HHC_LOCATION tag can be used to specify the location (absolute path
-# including file name) of the HTML help compiler ( hhc.exe). If non-empty
-# doxygen will try to run the HTML help compiler on the generated index.hhp.
-# The file has to be specified with full path.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-HHC_LOCATION =
-
-# The GENERATE_CHI flag controls if a separate .chi index file is generated (
-# YES) or that it should be included in the master .chm file ( NO).
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-GENERATE_CHI = NO
-
-# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc)
-# and project file content.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-CHM_INDEX_ENCODING =
-
-# The BINARY_TOC flag controls whether a binary table of contents is generated (
-# YES) or a normal table of contents ( NO) in the .chm file.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-BINARY_TOC = NO
-
-# The TOC_EXPAND flag can be set to YES to add extra items for group members to
-# the table of contents of the HTML help documentation and to the tree view.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
-
-TOC_EXPAND = NO
-
-# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
-# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
-# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
-# (.qch) of the generated HTML documentation.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-GENERATE_QHP = NO
-
-# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
-# the file name of the resulting .qch file. The path specified is relative to
-# the HTML output folder.
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QCH_FILE =
-
-# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
-# Project output. For more information please see Qt Help Project / Namespace
-# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
-# The default value is: org.doxygen.Project.
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHP_NAMESPACE = org.doxygen.Project
-
-# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
-# Help Project output. For more information please see Qt Help Project / Virtual
-# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
-# folders).
-# The default value is: doc.
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHP_VIRTUAL_FOLDER = doc
-
-# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
-# filter to add. For more information please see Qt Help Project / Custom
-# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
-# filters).
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHP_CUST_FILTER_NAME =
-
-# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
-# custom filter to add. For more information please see Qt Help Project / Custom
-# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
-# filters).
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHP_CUST_FILTER_ATTRS =
-
-# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
-# project's filter section matches. Qt Help Project / Filter Attributes (see:
-# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHP_SECT_FILTER_ATTRS =
-
-# The QHG_LOCATION tag can be used to specify the location of Qt's
-# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
-# generated .qhp file.
-# This tag requires that the tag GENERATE_QHP is set to YES.
-
-QHG_LOCATION =
-
-# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
-# generated, together with the HTML files, they form an Eclipse help plugin. To
-# install this plugin and make it available under the help contents menu in
-# Eclipse, the contents of the directory containing the HTML and XML files needs
-# to be copied into the plugins directory of eclipse. The name of the directory
-# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
-# After copying Eclipse needs to be restarted before the help appears.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-GENERATE_ECLIPSEHELP = NO
-
-# A unique identifier for the Eclipse help plugin. When installing the plugin
-# the directory name containing the HTML and XML files should also have this
-# name. Each documentation set should have its own identifier.
-# The default value is: org.doxygen.Project.
-# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
-
-ECLIPSE_DOC_ID = org.doxygen.Project
-
-# If you want full control over the layout of the generated HTML pages it might
-# be necessary to disable the index and replace it with your own. The
-# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
-# of each HTML page. A value of NO enables the index and the value YES disables
-# it. Since the tabs in the index contain the same information as the navigation
-# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-DISABLE_INDEX = NO
-
-# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
-# structure should be generated to display hierarchical information. If the tag
-# value is set to YES, a side panel will be generated containing a tree-like
-# index structure (just like the one that is generated for HTML Help). For this
-# to work a browser that supports JavaScript, DHTML, CSS and frames is required
-# (i.e. any modern browser). Windows users are probably better off using the
-# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can
-# further fine-tune the look of the index. As an example, the default style
-# sheet generated by doxygen has an example that shows how to put an image at
-# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
-# the same information as the tab index, you could consider setting
-# DISABLE_INDEX to YES when enabling this option.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-GENERATE_TREEVIEW = NO
-
-# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
-# doxygen will group on one line in the generated HTML documentation.
-#
-# Note that a value of 0 will completely suppress the enum values from appearing
-# in the overview section.
-# Minimum value: 0, maximum value: 20, default value: 4.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-ENUM_VALUES_PER_LINE = 4
-
-# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
-# to set the initial width (in pixels) of the frame in which the tree is shown.
-# Minimum value: 0, maximum value: 1500, default value: 250.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-TREEVIEW_WIDTH = 250
-
-# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to
-# external symbols imported via tag files in a separate window.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-EXT_LINKS_IN_WINDOW = NO
-
-# Use this tag to change the font size of LaTeX formulas included as images in
-# the HTML documentation. When you change the font size after a successful
-# doxygen run you need to manually remove any form_*.png images from the HTML
-# output directory to force them to be regenerated.
-# Minimum value: 8, maximum value: 50, default value: 10.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-FORMULA_FONTSIZE = 10
-
-# Use the FORMULA_TRANPARENT tag to determine whether or not the images
-# generated for formulas are transparent PNGs. Transparent PNGs are not
-# supported properly for IE 6.0, but are supported on all modern browsers.
-#
-# Note that when changing this option you need to delete any form_*.png files in
-# the HTML output directory before the changes have effect.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-FORMULA_TRANSPARENT = YES
-
-# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
-# http://www.mathjax.org) which uses client side Javascript for the rendering
-# instead of using prerendered bitmaps. Use this if you do not have LaTeX
-# installed or if you want to formulas look prettier in the HTML output. When
-# enabled you may also need to install MathJax separately and configure the path
-# to it using the MATHJAX_RELPATH option.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-USE_MATHJAX = NO
-
-# When MathJax is enabled you can set the default output format to be used for
-# the MathJax output. See the MathJax site (see:
-# http://docs.mathjax.org/en/latest/output.html) for more details.
-# Possible values are: HTML-CSS (which is slower, but has the best
-# compatibility), NativeMML (i.e. MathML) and SVG.
-# The default value is: HTML-CSS.
-# This tag requires that the tag USE_MATHJAX is set to YES.
-
-MATHJAX_FORMAT = HTML-CSS
-
-# When MathJax is enabled you need to specify the location relative to the HTML
-# output directory using the MATHJAX_RELPATH option. The destination directory
-# should contain the MathJax.js script. For instance, if the mathjax directory
-# is located at the same level as the HTML output directory, then
-# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
-# Content Delivery Network so you can quickly see the result without installing
-# MathJax. However, it is strongly recommended to install a local copy of
-# MathJax from http://www.mathjax.org before deployment.
-# The default value is: http://cdn.mathjax.org/mathjax/latest.
-# This tag requires that the tag USE_MATHJAX is set to YES.
-
-MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
-
-# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
-# extension names that should be enabled during MathJax rendering. For example
-# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
-# This tag requires that the tag USE_MATHJAX is set to YES.
-
-MATHJAX_EXTENSIONS =
-
-# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
-# of code that will be used on startup of the MathJax code. See the MathJax site
-# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
-# example see the documentation.
-# This tag requires that the tag USE_MATHJAX is set to YES.
-
-MATHJAX_CODEFILE =
-
-# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
-# the HTML output. The underlying search engine uses javascript and DHTML and
-# should work on any modern browser. Note that when using HTML help
-# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
-# there is already a search function so this one should typically be disabled.
-# For large projects the javascript based search engine can be slow, then
-# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
-# search using the keyboard; to jump to the search box use <access key> + S
-# (what the <access key> is depends on the OS and browser, but it is typically
-# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
-# key> to jump into the search results window, the results can be navigated
-# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
-# the search. The filter options can be selected when the cursor is inside the
-# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
-# to select a filter and <Enter> or <escape> to activate or cancel the filter
-# option.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_HTML is set to YES.
-
-SEARCHENGINE = YES
-
-# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
-# implemented using a web server instead of a web client using Javascript. There
-# are two flavours of web server based searching depending on the
-# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
-# searching and an index file used by the script. When EXTERNAL_SEARCH is
-# enabled the indexing and searching needs to be provided by external tools. See
-# the section "External Indexing and Searching" for details.
-# The default value is: NO.
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-SERVER_BASED_SEARCH = NO
-
-# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
-# script for searching. Instead the search results are written to an XML file
-# which needs to be processed by an external indexer. Doxygen will invoke an
-# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
-# search results.
-#
-# Doxygen ships with an example indexer ( doxyindexer) and search engine
-# (doxysearch.cgi) which are based on the open source search engine library
-# Xapian (see: http://xapian.org/).
-#
-# See the section "External Indexing and Searching" for details.
-# The default value is: NO.
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-EXTERNAL_SEARCH = NO
-
-# The SEARCHENGINE_URL should point to a search engine hosted by a web server
-# which will return the search results when EXTERNAL_SEARCH is enabled.
-#
-# Doxygen ships with an example indexer ( doxyindexer) and search engine
-# (doxysearch.cgi) which are based on the open source search engine library
-# Xapian (see: http://xapian.org/). See the section "External Indexing and
-# Searching" for details.
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-SEARCHENGINE_URL =
-
-# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
-# search data is written to a file for indexing by an external tool. With the
-# SEARCHDATA_FILE tag the name of this file can be specified.
-# The default file is: searchdata.xml.
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-SEARCHDATA_FILE = searchdata.xml
-
-# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
-# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
-# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
-# projects and redirect the results back to the right project.
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-EXTERNAL_SEARCH_ID =
-
-# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
-# projects other than the one defined by this configuration file, but that are
-# all added to the same external search index. Each project needs to have a
-# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
-# to a relative location where the documentation can be found. The format is:
-# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
-# This tag requires that the tag SEARCHENGINE is set to YES.
-
-EXTRA_SEARCH_MAPPINGS =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output.
-# The default value is: YES.
-
-GENERATE_LATEX = YES
-
-# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
-# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-# it.
-# The default directory is: latex.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_OUTPUT = latex
-
-# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
-# invoked.
-#
-# Note that when enabling USE_PDFLATEX this option is only used for generating
-# bitmaps for formulas in the HTML output, but not in the Makefile that is
-# written to the output directory.
-# The default file is: latex.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_CMD_NAME = latex
-
-# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
-# index for LaTeX.
-# The default file is: makeindex.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-MAKEINDEX_CMD_NAME = makeindex
-
-# If the COMPACT_LATEX tag is set to YES doxygen generates more compact LaTeX
-# documents. This may be useful for small projects and may help to save some
-# trees in general.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-COMPACT_LATEX = NO
-
-# The PAPER_TYPE tag can be used to set the paper type that is used by the
-# printer.
-# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
-# 14 inches) and executive (7.25 x 10.5 inches).
-# The default value is: a4.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-PAPER_TYPE = a4
-
-# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
-# that should be included in the LaTeX output. To get the times font for
-# instance you can specify
-# EXTRA_PACKAGES=times
-# If left blank no extra packages will be included.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-EXTRA_PACKAGES =
-
-# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
-# generated LaTeX document. The header should contain everything until the first
-# chapter. If it is left blank doxygen will generate a standard header. See
-# section "Doxygen usage" for information on how to let doxygen write the
-# default header to a separate file.
-#
-# Note: Only use a user-defined header if you know what you are doing! The
-# following commands have a special meaning inside the header: $title,
-# $datetime, $date, $doxygenversion, $projectname, $projectnumber. Doxygen will
-# replace them by respectively the title of the page, the current date and time,
-# only the current date, the version number of doxygen, the project name (see
-# PROJECT_NAME), or the project number (see PROJECT_NUMBER).
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_HEADER =
-
-# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
-# generated LaTeX document. The footer should contain everything after the last
-# chapter. If it is left blank doxygen will generate a standard footer.
-#
-# Note: Only use a user-defined footer if you know what you are doing!
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_FOOTER =
-
-# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
-# other source files which should be copied to the LATEX_OUTPUT output
-# directory. Note that the files will be copied as-is; there are no commands or
-# markers available.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_EXTRA_FILES =
-
-# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
-# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
-# contain links (just like the HTML output) instead of page references. This
-# makes the output suitable for online browsing using a PDF viewer.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-PDF_HYPERLINKS = YES
-
-# If the LATEX_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
-# the PDF file directly from the LaTeX files. Set this option to YES to get a
-# higher quality PDF documentation.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-USE_PDFLATEX = YES
-
-# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
-# command to the generated LaTeX files. This will instruct LaTeX to keep running
-# if errors occur, instead of asking the user for help. This option is also used
-# when generating formulas in HTML.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_BATCHMODE = NO
-
-# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
-# index chapters (such as File Index, Compound Index, etc.) in the output.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_HIDE_INDICES = NO
-
-# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
-# code with syntax highlighting in the LaTeX output.
-#
-# Note that which sources are shown also depends on other settings such as
-# SOURCE_BROWSER.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_SOURCE_CODE = NO
-
-# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
-# bibliography, e.g. plainnat, or ieeetr. See
-# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
-# The default value is: plain.
-# This tag requires that the tag GENERATE_LATEX is set to YES.
-
-LATEX_BIB_STYLE = plain
-
-#---------------------------------------------------------------------------
-# Configuration options related to the RTF output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_RTF tag is set to YES doxygen will generate RTF output. The
-# RTF output is optimized for Word 97 and may not look too pretty with other RTF
-# readers/editors.
-# The default value is: NO.
-
-GENERATE_RTF = NO
-
-# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
-# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-# it.
-# The default directory is: rtf.
-# This tag requires that the tag GENERATE_RTF is set to YES.
-
-RTF_OUTPUT = rtf
-
-# If the COMPACT_RTF tag is set to YES doxygen generates more compact RTF
-# documents. This may be useful for small projects and may help to save some
-# trees in general.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_RTF is set to YES.
-
-COMPACT_RTF = NO
-
-# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
-# contain hyperlink fields. The RTF file will contain links (just like the HTML
-# output) instead of page references. This makes the output suitable for online
-# browsing using Word or some other Word compatible readers that support those
-# fields.
-#
-# Note: WordPad (write) and others do not support links.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_RTF is set to YES.
-
-RTF_HYPERLINKS = NO
-
-# Load stylesheet definitions from file. Syntax is similar to doxygen's config
-# file, i.e. a series of assignments. You only have to provide replacements,
-# missing definitions are set to their default value.
-#
-# See also section "Doxygen usage" for information on how to generate the
-# default style sheet that doxygen normally uses.
-# This tag requires that the tag GENERATE_RTF is set to YES.
-
-RTF_STYLESHEET_FILE =
-
-# Set optional variables used in the generation of an RTF document. Syntax is
-# similar to doxygen's config file. A template extensions file can be generated
-# using doxygen -e rtf extensionFile.
-# This tag requires that the tag GENERATE_RTF is set to YES.
-
-RTF_EXTENSIONS_FILE =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the man page output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_MAN tag is set to YES doxygen will generate man pages for
-# classes and files.
-# The default value is: NO.
-
-GENERATE_MAN = NO
-
-# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
-# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-# it. A directory man3 will be created inside the directory specified by
-# MAN_OUTPUT.
-# The default directory is: man.
-# This tag requires that the tag GENERATE_MAN is set to YES.
-
-MAN_OUTPUT = man
-
-# The MAN_EXTENSION tag determines the extension that is added to the generated
-# man pages. In case the manual section does not start with a number, the number
-# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
-# optional.
-# The default value is: .3.
-# This tag requires that the tag GENERATE_MAN is set to YES.
-
-MAN_EXTENSION = .3
-
-# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
-# will generate one additional man file for each entity documented in the real
-# man page(s). These additional files only source the real man page, but without
-# them the man command would be unable to find the correct page.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_MAN is set to YES.
-
-MAN_LINKS = NO
-
-#---------------------------------------------------------------------------
-# Configuration options related to the XML output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_XML tag is set to YES doxygen will generate an XML file that
-# captures the structure of the code including all documentation.
-# The default value is: NO.
-
-GENERATE_XML = YES
-
-# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
-# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
-# it.
-# The default directory is: xml.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_OUTPUT = xml
-XML_FILE_EXTENSION = .xml
-
-# The XML_SCHEMA tag can be used to specify a XML schema, which can be used by a
-# validating XML parser to check the syntax of the XML files.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_SCHEMA =
-
-# The XML_DTD tag can be used to specify a XML DTD, which can be used by a
-# validating XML parser to check the syntax of the XML files.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_DTD =
-
-# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program
-# listings (including syntax highlighting and cross-referencing information) to
-# the XML output. Note that enabling this will significantly increase the size
-# of the XML output.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_XML is set to YES.
-
-XML_PROGRAMLISTING = YES
-
-#---------------------------------------------------------------------------
-# Configuration options related to the DOCBOOK output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_DOCBOOK tag is set to YES doxygen will generate Docbook files
-# that can be used to generate PDF.
-# The default value is: NO.
-
-GENERATE_DOCBOOK = NO
-
-# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
-# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
-# front of it.
-# The default directory is: docbook.
-# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
-
-DOCBOOK_OUTPUT = docbook
-
-#---------------------------------------------------------------------------
-# Configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_AUTOGEN_DEF tag is set to YES doxygen will generate an AutoGen
-# Definitions (see http://autogen.sf.net) file that captures the structure of
-# the code including all documentation. Note that this feature is still
-# experimental and incomplete at the moment.
-# The default value is: NO.
-
-GENERATE_AUTOGEN_DEF = NO
-
-#---------------------------------------------------------------------------
-# Configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-
-# If the GENERATE_PERLMOD tag is set to YES doxygen will generate a Perl module
-# file that captures the structure of the code including all documentation.
-#
-# Note that this feature is still experimental and incomplete at the moment.
-# The default value is: NO.
-
-GENERATE_PERLMOD = NO
-
-# If the PERLMOD_LATEX tag is set to YES doxygen will generate the necessary
-# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
-# output from the Perl module output.
-# The default value is: NO.
-# This tag requires that the tag GENERATE_PERLMOD is set to YES.
-
-PERLMOD_LATEX = NO
-
-# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be nicely
-# formatted so it can be parsed by a human reader. This is useful if you want to
-# understand what is going on. On the other hand, if this tag is set to NO the
-# size of the Perl module output will be much smaller and Perl will parse it
-# just the same.
-# The default value is: YES.
-# This tag requires that the tag GENERATE_PERLMOD is set to YES.
-
-PERLMOD_PRETTY = YES
-
-# The names of the make variables in the generated doxyrules.make file are
-# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
-# so different doxyrules.make files included by the same Makefile don't
-# overwrite each other's variables.
-# This tag requires that the tag GENERATE_PERLMOD is set to YES.
-
-PERLMOD_MAKEVAR_PREFIX =
-
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-
-# If the ENABLE_PREPROCESSING tag is set to YES doxygen will evaluate all
-# C-preprocessor directives found in the sources and include files.
-# The default value is: YES.
-
-ENABLE_PREPROCESSING = YES
-
-# If the MACRO_EXPANSION tag is set to YES doxygen will expand all macro names
-# in the source code. If set to NO only conditional compilation will be
-# performed. Macro expansion can be done in a controlled way by setting
-# EXPAND_ONLY_PREDEF to YES.
-# The default value is: NO.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-MACRO_EXPANSION = NO
-
-# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
-# the macro expansion is limited to the macros specified with the PREDEFINED and
-# EXPAND_AS_DEFINED tags.
-# The default value is: NO.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-EXPAND_ONLY_PREDEF = NO
-
-# If the SEARCH_INCLUDES tag is set to YES the includes files in the
-# INCLUDE_PATH will be searched if a #include is found.
-# The default value is: YES.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-SEARCH_INCLUDES = YES
-
-# The INCLUDE_PATH tag can be used to specify one or more directories that
-# contain include files that are not input files but should be processed by the
-# preprocessor.
-# This tag requires that the tag SEARCH_INCLUDES is set to YES.
-
-INCLUDE_PATH =
-
-# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
-# patterns (like *.h and *.hpp) to filter out the header-files in the
-# directories. If left blank, the patterns specified with FILE_PATTERNS will be
-# used.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-INCLUDE_FILE_PATTERNS =
-
-# The PREDEFINED tag can be used to specify one or more macro names that are
-# defined before the preprocessor is started (similar to the -D option of e.g.
-# gcc). The argument of the tag is a list of macros of the form: name or
-# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
-# is assumed. To prevent a macro definition from being undefined via #undef or
-# recursively expanded use the := operator instead of the = operator.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-PREDEFINED =
-
-# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
-# tag can be used to specify a list of macro names that should be expanded. The
-# macro definition that is found in the sources will be used. Use the PREDEFINED
-# tag if you want to use a different macro definition that overrules the
-# definition found in the source code.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-EXPAND_AS_DEFINED =
-
-# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
-# remove all refrences to function-like macros that are alone on a line, have an
-# all uppercase name, and do not end with a semicolon. Such function macros are
-# typically used for boiler-plate code, and will confuse the parser if not
-# removed.
-# The default value is: YES.
-# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
-
-SKIP_FUNCTION_MACROS = YES
-
-#---------------------------------------------------------------------------
-# Configuration options related to external references
-#---------------------------------------------------------------------------
-
-# The TAGFILES tag can be used to specify one or more tag files. For each tag
-# file the location of the external documentation should be added. The format of
-# a tag file without this location is as follows:
-# TAGFILES = file1 file2 ...
-# Adding location for the tag files is done as follows:
-# TAGFILES = file1=loc1 "file2 = loc2" ...
-# where loc1 and loc2 can be relative or absolute paths or URLs. See the
-# section "Linking to external documentation" for more information about the use
-# of tag files.
-# Note: Each tag file must have an unique name (where the name does NOT include
-# the path). If a tag file is not located in the directory in which doxygen is
-# run, you must also specify the path to the tagfile here.
-
-TAGFILES =
-
-# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
-# tag file that is based on the input files it reads. See section "Linking to
-# external documentation" for more information about the usage of tag files.
-
-GENERATE_TAGFILE =
-
-# If the ALLEXTERNALS tag is set to YES all external class will be listed in the
-# class index. If set to NO only the inherited external classes will be listed.
-# The default value is: NO.
-
-ALLEXTERNALS = NO
-
-# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed in
-# the modules index. If set to NO, only the current project's groups will be
-# listed.
-# The default value is: YES.
-
-EXTERNAL_GROUPS = YES
-
-# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed in
-# the related pages index. If set to NO, only the current project's pages will
-# be listed.
-# The default value is: YES.
-
-EXTERNAL_PAGES = YES
-
-# The PERL_PATH should be the absolute path and name of the perl script
-# interpreter (i.e. the result of 'which perl').
-# The default file (with absolute path) is: /usr/bin/perl.
-
-PERL_PATH = /usr/bin/perl
-
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-
-# If the CLASS_DIAGRAMS tag is set to YES doxygen will generate a class diagram
-# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
-# NO turns the diagrams off. Note that this option also works with HAVE_DOT
-# disabled, but it is recommended to install and use dot, since it yields more
-# powerful graphs.
-# The default value is: YES.
-
-CLASS_DIAGRAMS = YES
-
-# You can define message sequence charts within doxygen comments using the \msc
-# command. Doxygen will then run the mscgen tool (see:
-# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
-# documentation. The MSCGEN_PATH tag allows you to specify the directory where
-# the mscgen tool resides. If left empty the tool is assumed to be found in the
-# default search path.
-
-MSCGEN_PATH =
-
-# You can include diagrams made with dia in doxygen documentation. Doxygen will
-# then run dia to produce the diagram and insert it in the documentation. The
-# DIA_PATH tag allows you to specify the directory where the dia binary resides.
-# If left empty dia is assumed to be found in the default search path.
-
-DIA_PATH =
-
-# If set to YES, the inheritance and collaboration graphs will hide inheritance
-# and usage relations if the target is undocumented or is not a class.
-# The default value is: YES.
-
-HIDE_UNDOC_RELATIONS = YES
-
-# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
-# available from the path. This tool is part of Graphviz (see:
-# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
-# Bell Labs. The other options in this section have no effect if this option is
-# set to NO
-# The default value is: NO.
-
-HAVE_DOT = NO
-
-# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
-# to run in parallel. When set to 0 doxygen will base this on the number of
-# processors available in the system. You can set it explicitly to a value
-# larger than 0 to get control over the balance between CPU load and processing
-# speed.
-# Minimum value: 0, maximum value: 32, default value: 0.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_NUM_THREADS = 0
-
-# When you want a differently looking font n the dot files that doxygen
-# generates you can specify the font name using DOT_FONTNAME. You need to make
-# sure dot is able to find the font, which can be done by putting it in a
-# standard location or by setting the DOTFONTPATH environment variable or by
-# setting DOT_FONTPATH to the directory containing the font.
-# The default value is: Helvetica.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_FONTNAME = Helvetica
-
-# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
-# dot graphs.
-# Minimum value: 4, maximum value: 24, default value: 10.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_FONTSIZE = 10
-
-# By default doxygen will tell dot to use the default font as specified with
-# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
-# the path where dot can find it using this tag.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_FONTPATH =
-
-# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
-# each documented class showing the direct and indirect inheritance relations.
-# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-CLASS_GRAPH = YES
-
-# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
-# graph for each documented class showing the direct and indirect implementation
-# dependencies (inheritance, containment, and class references variables) of the
-# class with other documented classes.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-COLLABORATION_GRAPH = YES
-
-# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
-# groups, showing the direct groups dependencies.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-GROUP_GRAPHS = YES
-
-# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similar to the OMG's Unified Modeling
-# Language.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-UML_LOOK = NO
-
-# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
-# class node. If there are many fields or methods and many nodes the graph may
-# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
-# number of items for each type to make the size more manageable. Set this to 0
-# for no limit. Note that the threshold may be exceeded by 50% before the limit
-# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
-# but if the number exceeds 15, the total amount of fields shown is limited to
-# 10.
-# Minimum value: 0, maximum value: 100, default value: 10.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-UML_LIMIT_NUM_FIELDS = 10
-
-# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
-# collaboration graphs will show the relations between templates and their
-# instances.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-TEMPLATE_RELATIONS = NO
-
-# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
-# YES then doxygen will generate a graph for each documented file showing the
-# direct and indirect include dependencies of the file with other documented
-# files.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-INCLUDE_GRAPH = YES
-
-# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
-# set to YES then doxygen will generate a graph for each documented file showing
-# the direct and indirect include dependencies of the file with other documented
-# files.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-INCLUDED_BY_GRAPH = YES
-
-# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
-# dependency graph for every global function or class method.
-#
-# Note that enabling this option will significantly increase the time of a run.
-# So in most cases it will be better to enable call graphs for selected
-# functions only using the \callgraph command.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-CALL_GRAPH = NO
-
-# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
-# dependency graph for every global function or class method.
-#
-# Note that enabling this option will significantly increase the time of a run.
-# So in most cases it will be better to enable caller graphs for selected
-# functions only using the \callergraph command.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-CALLER_GRAPH = NO
-
-# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
-# hierarchy of all classes instead of a textual one.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-GRAPHICAL_HIERARCHY = YES
-
-# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
-# dependencies a directory has on other directories in a graphical way. The
-# dependency relations are determined by the #include relations between the
-# files in the directories.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DIRECTORY_GRAPH = YES
-
-# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
-# generated by dot.
-# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
-# to make the SVG files visible in IE 9+ (other browsers do not have this
-# requirement).
-# Possible values are: png, jpg, gif and svg.
-# The default value is: png.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_IMAGE_FORMAT = png
-
-# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
-# enable generation of interactive SVG images that allow zooming and panning.
-#
-# Note that this requires a modern browser other than Internet Explorer. Tested
-# and working are Firefox, Chrome, Safari, and Opera.
-# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
-# the SVG files visible. Older versions of IE do not have SVG support.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-INTERACTIVE_SVG = NO
-
-# The DOT_PATH tag can be used to specify the path where the dot tool can be
-# found. If left blank, it is assumed the dot tool can be found in the path.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_PATH =
-
-# The DOTFILE_DIRS tag can be used to specify one or more directories that
-# contain dot files that are included in the documentation (see the \dotfile
-# command).
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOTFILE_DIRS =
-
-# The MSCFILE_DIRS tag can be used to specify one or more directories that
-# contain msc files that are included in the documentation (see the \mscfile
-# command).
-
-MSCFILE_DIRS =
-
-# The DIAFILE_DIRS tag can be used to specify one or more directories that
-# contain dia files that are included in the documentation (see the \diafile
-# command).
-
-DIAFILE_DIRS =
-
-# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
-# that will be shown in the graph. If the number of nodes in a graph becomes
-# larger than this value, doxygen will truncate the graph, which is visualized
-# by representing a node as a red box. Note that doxygen if the number of direct
-# children of the root node in a graph is already larger than
-# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
-# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
-# Minimum value: 0, maximum value: 10000, default value: 50.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_GRAPH_MAX_NODES = 50
-
-# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
-# generated by dot. A depth value of 3 means that only nodes reachable from the
-# root by following a path via at most 3 edges will be shown. Nodes that lay
-# further from the root node will be omitted. Note that setting this option to 1
-# or 2 may greatly reduce the computation time needed for large code bases. Also
-# note that the size of a graph can be further restricted by
-# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
-# Minimum value: 0, maximum value: 1000, default value: 0.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-MAX_DOT_GRAPH_DEPTH = 0
-
-# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
-# background. This is disabled by default, because dot on Windows does not seem
-# to support this out of the box.
-#
-# Warning: Depending on the platform used, enabling this option may lead to
-# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
-# read).
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_TRANSPARENT = NO
-
-# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
-# files in one run (i.e. multiple -o and -T options on the command line). This
-# makes dot run faster, but since only newer versions of dot (>1.8.10) support
-# this, this feature is disabled by default.
-# The default value is: NO.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_MULTI_TARGETS = YES
-
-# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
-# explaining the meaning of the various boxes and arrows in the dot generated
-# graphs.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-GENERATE_LEGEND = YES
-
-# If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot
-# files that are used to generate the various graphs.
-# The default value is: YES.
-# This tag requires that the tag HAVE_DOT is set to YES.
-
-DOT_CLEANUP = YES
-
-# For Open Source DALi API Reference
-ALIASES += SINCE_1_0="@since 1.0"
-ALIASES += SINCE_1_1="@since 1.1"
-ALIASES += SINCE_1_2="@since 1.2"
-
-# Extra tags for Tizen 3.0
-ALIASES += SINCE_1_2_2="@since 1.2.2"
-ALIASES += SINCE_1_2_4="@since 1.2.4"
-ALIASES += SINCE_1_2_5="@since 1.2.5"
-
-ALIASES += DEPRECATED_1_0="@deprecated Deprecated since 1.0"
-ALIASES += DEPRECATED_1_1="@deprecated Deprecated since 1.1"
-ALIASES += DEPRECATED_1_2="@deprecated Deprecated since 1.2"
-
-ALIASES += PLATFORM=""
-ALIASES += PRIVLEVEL_PLATFORM=""
-ALIASES += PRIVLEVEL_PUBLIC=""
-ALIASES += PRIVILEGE_KEYGRAB=""
-ALIASES += PRIVILEGE_DISPLAY=""
-ALIASES += REMARK_INTERNET=""
+++ /dev/null
-########################################################################
-# #
-# This script takes all the class*.xml, struct*.xml and namespace*.xml #
-# generated & use them to generate .i files which can be added to #
-# dali.i for generation of doxygen comments for corresponding C# files #
-# #
-########################################################################
-
-#PATH="../../"
-# DoxyComments for class*.xml files in the folder
-
-cd ..
-PATH_TO_I_FILES=$(pwd)
-cd -
-
-cd ../..
-PATH_TO_DALII=$(pwd)
-cd -
-
-PATH_TO_SCRIPT=$(pwd)
-PATH_TO_CORE_PUBLIC_APIS="/dali-core/dali/public-api/"
-PATH_TO_TOOLKIT_PUBLIC_APIS="/dali-toolkit/dali-toolkit/public-api/"
-PATH_TO_ADAPTOR_PUBLIC_APIS="/dali-adaptor/adaptors/public-api/adaptor-framework/"
-
-cd ../../../../../../
-ROOT_PATH=$(pwd)
-cd -
-
-CORE_PATH=$ROOT_PATH$PATH_TO_CORE_PUBLIC_APIS
-TOOLKIT_PATH=$ROOT_PATH$PATH_TO_TOOLKIT_PUBLIC_APIS
-ADAPTOR_PATH=$ROOT_PATH$PATH_TO_ADAPTOR_PUBLIC_APIS
-
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-echo "Generating Doxygen for DALi-Core module"
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-
-for directory in `ls $CORE_PATH`;
-do
- cp $PATH_TO_SCRIPT"/Doxyfile" $CORE_PATH$directory #copy doxy file to ../public/../ folder
- cd $CORE_PATH$directory
- doxygen #run doxygen command to generate .i files
- cp $PATH_TO_SCRIPT"/doxy2swig_class.py" $CORE_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_namespace.py" $CORE_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_struct.py" $CORE_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/genDoxy.sh" $CORE_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cd $CORE_PATH$directory"/xml"
- chmod 777 genDoxy.sh
- ./genDoxy.sh
- cp *.i $PATH_TO_I_FILES"/"
- rm $CORE_PATH$directory"/Doxyfile"
- rm -rf $CORE_PATH$directory"/xml"
- rm -rf $CORE_PATH$directory"/html"
- rm -rf $CORE_PATH$directory"/latex"
-done
-
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-echo "Generating Doxygen for DALi-Adaptor module"
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-
- cd $ADAPTOR_PATH
- cp $PATH_TO_SCRIPT"/Doxyfile" $ADAPTOR_PATH #copy doxy file to ../public/../ folder
- doxygen
- cp $PATH_TO_SCRIPT"/doxy2swig_class.py" $ADAPTOR_PATH"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_namespace.py" $ADAPTOR_PATH"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_struct.py" $ADAPTOR_PATH"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/genDoxy.sh" $ADAPTOR_PATH"/xml" #copy doxy file to ../public/../ folder
- cd $ADAPTOR_PATH"/xml"
- chmod 777 genDoxy.sh
- ./genDoxy.sh
- cp *.i $PATH_TO_I_FILES"/"
-
- rm $ADAPTOR_PATH"/Doxyfile"
- rm -rf $ADAPTOR_PATH"/xml"
- rm -rf $ADAPTOR_PATH"/html"
- rm -rf $ADAPTOR_PATH"/latex"
-
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-echo "Generating Doxygen for DALi-Toolkit module"
-echo "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
-
-for directory in `ls $TOOLKIT_PATH`;
-do
- cd $TOOLKIT_PATH$directory
- cp $PATH_TO_SCRIPT"/Doxyfile" $TOOLKIT_PATH$directory"/" #copy doxy file to ../public/../ folder
- doxygen
- cp $PATH_TO_SCRIPT"/doxy2swig_class.py" $TOOLKIT_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_namespace.py" $TOOLKIT_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_struct.py" $TOOLKIT_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/genDoxy.sh" $TOOLKIT_PATH$directory"/xml" #copy doxy file to ../public/../ folder
- cd $TOOLKIT_PATH$directory"/xml"
- chmod 777 genDoxy.sh
- ./genDoxy.sh
- cp *.i $PATH_TO_I_FILES"/"
-
- rm $TOOLKIT_PATH$directory"/Doxyfile"
- rm -rf $TOOLKIT_PATH$directory"/xml"
- rm -rf $TOOLKIT_PATH$directory"/html"
- rm -rf $TOOLKIT_PATH$directory"/latex"
- for subdirectory in `ls $TOOLKIT_PATH$directory`;
- do
- cp $PATH_TO_SCRIPT"/Doxyfile" $TOOLKIT_PATH$directory"/"$subdirectory"/" #copy doxy file to ../public/../ folder
- cd $TOOLKIT_PATH$directory"/"$subdirectory #copy doxy file to ../public/../ folder
- doxygen #run doxygen command to generate .i files
- cp $PATH_TO_SCRIPT"/doxy2swig_class.py" $TOOLKIT_PATH$directory"/"$subdirectory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_namespace.py" $TOOLKIT_PATH$directory"/"$subdirectory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_struct.py" $TOOLKIT_PATH$directory"/"$subdirectory"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/genDoxy.sh" $TOOLKIT_PATH$directory"/"$subdirectory"/xml" #copy doxy file to ../public/../ folder
- cd $TOOLKIT_PATH$directory"/"$subdirectory"/xml"
- chmod 777 genDoxy.sh
- ./genDoxy.sh
- cp *.i $PATH_TO_I_FILES"/"
-
- rm $TOOLKIT_PATH$directory"/"$subdirectory"/Doxyfile"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/xml"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/html"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/latex"
- for sd in `ls $TOOLKIT_PATH$directory"/"$subdirectory`;
- do
- cp $PATH_TO_SCRIPT"/Doxyfile" $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/" #copy doxy file to ../public/../ folder
- cd $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd #copy doxy file to ../public/../ folder
- doxygen #run doxygen command to generate .i files
- cp $PATH_TO_SCRIPT"/doxy2swig_class.py" $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_namespace.py" $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/doxy2swig_struct.py" $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml" #copy doxy file to ../public/../ folder
- cp $PATH_TO_SCRIPT"/genDoxy.sh" $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml" #copy doxy file to ../public/../ folder
- cd $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml"
- chmod 777 genDoxy.sh
- ./genDoxy.sh
- cp *.i $PATH_TO_I_FILES"/"
-
- rm $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/Doxyfile"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/xml"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/html"
- rm -rf $TOOLKIT_PATH$directory"/"$subdirectory"/"$sd"/latex"
- done #sd
- done #subdirectory
-done #directory
-
-cd $PATH_TO_I_FILES
-ls *.i >> File_List.txt
-awk '{print "%include doxygen/" $0}' File_List.txt 2>&1 | tee > $PATH_TO_DALII"/"doxygen.i
-rm File_List.txt
-cd -
+++ /dev/null
-README
-=============================
-
-To run the script and get Doxygen Documentation for a .cs file , do the following:
-
-1. Run GenerateIntermediate script and generate .i files.
-
- $user@user:~/../../dali-toolkit/plugins/dali-swig/SWIG/doxygen/scripts$ chmod 777 GenerateIntermediate.sh
- $user@user:~/../../dali-toolkit/plugins/dali-swig/SWIG/doxygen/scripts$ ./GenerateIntermediate.sh
-
-2. Intermediate .i files are copied to ~/../../dali-toolkit/plugins/dali-swig/SWIG/doxygen/
-
-3. Run make to generate the .cs file with documentation.
-
- $user@user:~/../../dali-toolkit/plugins/dali-swig/ ./autogen.sh && ./configure && make clean && make && make check
-
+++ /dev/null
-#!/usr/bin/env python
-"""Doxygen XML to SWIG docstring converter.
-
-Usage:
-
- doxy2swig.py [options] input.xml output.i
-
-Converts Doxygen generated XML files into a file containing docstrings
-that can be used by SWIG-1.3.x. Note that you need to get SWIG
-version > 1.3.23 or use Robin Dunn's docstring patch to be able to use
-the resulting output.
-
-input.xml is your doxygen generated XML file and output.i is where the
-output will be written (the file will be clobbered).
-
-"""
-######################################################################
-#
-# This code is implemented using Mark Pilgrim's code as a guideline:
-# http://www.faqs.org/docs/diveintopython/kgp_divein.html
-#
-# Author: Prabhu Ramachandran
-# License: BSD style
-#
-# Thanks:
-# Johan Hake: the include_function_definition feature
-# Bill Spotz: bug reports and testing.
-# Sebastian Henschel: Misc. enhancements.
-#
-######################################################################
-
-#_*_ coding:utf-8 _*_
-from xml.dom import minidom
-import re
-import textwrap
-import sys
-import types
-import os.path
-import optparse
-import os
-
-def my_open_read(source):
- if hasattr(source, "read"):
- return source
- else:
- return open(source)
-
-def my_open_write(dest):
- if hasattr(dest, "write"):
- return dest
- else:
- return open(dest, 'w')
-
-
-class Doxy2SWIG:
- """Converts Doxygen generated XML files into a file containing
- docstrings that can be used by SWIG-1.3.x that have support for
- feature("docstring"). Once the data is parsed it is stored in
- self.pieces.
-
- """
-
- def __init__(self, src, include_function_definition=True, quiet=False):
- """Initialize the instance given a source object. `src` can
- be a file or filename. If you do not want to include function
- definitions from doxygen then set
- `include_function_definition` to `False`. This is handy since
- this allows you to use the swig generated function definition
- using %feature("autodoc", [0,1]).
-
- """
- f = my_open_read(src)
- self.my_dir = os.path.dirname(f.name)
- self.xmldoc = minidom.parse(f).documentElement
- f.close()
-
- self.pieces = []
- self.pieces.append('\n// File: %s\n'%\
- os.path.basename(f.name))
-
- self.space_re = re.compile(r'\s+')
- self.lead_spc = re.compile(r'^(%feature\S+\s+\S+\s*?)"\s+(\S)')
- self.multi = 0
- self.ignores = ['inheritancegraph', 'param', 'listofallmembers',
- 'innerclass', 'name', 'declname', 'incdepgraph',
- 'invincdepgraph', 'type',
- 'references', 'referencedby', 'location',
- 'collaborationgraph', 'reimplements',
- 'reimplementedby', 'derivedcompoundref',
- 'basecompoundref']
- #self.generics = []
- self.include_function_definition = include_function_definition
- if not include_function_definition:
- self.ignores.append('argsstring')
-
- self.quiet = quiet
- self.list_ctr = 1 #counts the number of spaces to be displayed before displaying a list item
- self.simplesect_kind = ''
- self.para_kind = ''
-
- def generate(self):
- """Parses the file set in the initialization. The resulting
- data is stored in `self.pieces`.
-
- """
- self.parse(self.xmldoc)
-
- def parse(self, node):
- """Parse a given node. This function in turn calls the
- `parse_<nodeType>` functions which handle the respective
- nodes.
-
- """
- pm = getattr(self, "parse_%s"%node.__class__.__name__)
- pm(node)
-
- def parse_Document(self, node):
- #print("himanshu ::::::: parse Document... ")
- self.parse(node.documentElement)
-
- def parse_Text(self, node):
- #print("himanshu ::::::: parse Text... ")
- txt = node.data
- #txt = txt.replace('\\', r'\\\\')
- txt = txt.replace('"', r'\"')
- #print '--------------------------------------'
- #print '--------------------------------------'
- #print txt
- # ignore pure whitespace
- m = self.space_re.match(txt)
- if m and len(m.group()) == len(txt):
- pass
- else:
- #self.add_text(txt)
- t = textwrap.fill(txt, 100, break_long_words=False)
- #print 'HIMANSHU ---------- >>>>>>>>>>>>>>>>>>>>> '
- #print t
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- if t:
- self.add_line = 1
- self.add_text(t)
-
- def parse_Element(self, node):
- """Parse an `ELEMENT_NODE`. This calls specific
- `do_<tagName>` handers for different elements. If no handler
- is available the `generic_parse` method is called. All
- tagNames specified in `self.ignores` are simply ignored.
-
- """
- #print("himanshu ::::::: parse Element... ")
- name = node.tagName
- ignores = self.ignores
- if name in ignores:
- return
- attr = "do_%s" % name
- if hasattr(self, attr):
- handlerMethod = getattr(self, attr)
- handlerMethod(node)
- else:
- self.generic_parse(node)
- #if name not in self.generics: self.generics.append(name)
-
- def parse_Comment(self, node):
- """Parse a `COMMENT_NODE`. This does nothing for now."""
- return
-
- def add_text(self, value):
- """Adds text corresponding to `value` into `self.pieces`."""
- #print value
- if type(value) in (types.ListType, types.TupleType):
- self.pieces.extend(value)
- else:
- self.pieces.append(value)
-
- def get_specific_nodes(self, node, names):
- """Given a node and a sequence of strings in `names`, return a
- dictionary containing the names as keys and child
- `ELEMENT_NODEs`, that have a `tagName` equal to the name.
-
- """
- nodes = [(x.tagName, x) for x in node.childNodes \
- if x.nodeType == x.ELEMENT_NODE and \
- x.tagName in names]
- return dict(nodes)
-
- def generic_parse(self, node, pad=0):
- """A Generic parser for arbitrary tags in a node.
-
- Parameters:
-
- - node: A node in the DOM.
- - pad: `int` (default: 0)
-
- If 0 the node data is not padded with newlines. If 1 it
- appends a newline after parsing the childNodes. If 2 it
- pads before and after the nodes are processed. Defaults to
- 0.
-
- """
- npiece = 0
- if pad:
- npiece = len(self.pieces)
- if pad == 2:
- self.add_text('\n* ')
- for n in node.childNodes:
- self.parse(n)
- if pad:
- #if len(self.pieces) > npiece:
- self.add_text('\n* ')
-
- def space_parse(self, node):
- self.add_text(' ')
- self.generic_parse(node)
-
- def do_compoundname(self, node):
- self.add_text('\n\n')
- data = node.firstChild.data
- #self.add_text('%feature("docstring") %s "\n'%data)
- self.add_text('%typemap(csclassmodifiers) ')
- self.add_text('%s\n"\n/**\n'%data)
-
- def do_compounddef(self, node):
- kind = node.attributes['kind'].value
- if kind in ('class', 'struct'):
- prot = node.attributes['prot'].value
- if prot <> 'public':
- return
- names = ('compoundname', 'briefdescription',
- 'detaileddescription', 'includes')
- first = self.get_specific_nodes(node, names)
- for n in names:
- if first.has_key(n):
- self.parse(first[n])
- #self.add_text(['";','\n'])
- self.add_text(['*/','\n','%s %s ";'%(prot,'class'),'\n'])
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- elif kind in ('file', 'namespace'):
- nodes = node.getElementsByTagName('sectiondef')
- for n in nodes:
- self.parse(n)
-
- def do_includes(self, node):
- self.add_text('\n* @include ')
- self.generic_parse(node, pad=1)
-
- def do_parameterlist(self, node):
-
- #print("himanshu :::::::::: do_parameterlist")
- text='unknown'
- for key, val in node.attributes.items():
- """if key == 'kind':
- if val == 'param': text = 'Parameters'
- elif val == 'exception': text = 'Exceptions'
- else: text = val
- break"""
- if key == 'kind':
- if val == 'param': text = '@param'
- elif val == 'exception': text = '@exception'
- else: text = val
- break
- #self.add_text(['\n', '\n', text, ':', '\n'])
- #self.add_text(['\n', '* ', text])
- self.para_kind = text
- self.generic_parse(node, pad=0)
-
- def do_para(self, node):
- #print("himanshu :::::::: do_para ")
- #self.add_text(['\n'])
- self.generic_parse(node, pad=0)
-
- def do_parametername(self, node):
- #print("himanshu :::::::: do_parametername")
- self.add_text(['\n', '* ', self.para_kind])
-
- try:
- data=node.firstChild.data
- except AttributeError: # perhaps a <ref> tag in it
- data=node.firstChild.firstChild.data
- if data.find('Exception') != -1:
- #print("himanshu :::::::: Pronting DAta1")
- #print data
- self.add_text(data)
- else:
- #print("himanshu :::::::: Pronting DAta2")
- #print data
- for key, val in node.attributes.items():
- if key == 'direction':
- self.add_text('[%s] '%val)
- self.add_text("%s "%data)
-
- def do_parameterdefinition(self, node):
- self.generic_parse(node, pad=1)
-
- def do_detaileddescription(self, node):
- #self.add_text('')
- self.generic_parse(node, pad=0)
-
- def do_briefdescription(self, node):
- self.add_text("* @brief ")
- self.generic_parse(node, pad=1)
-
- def do_memberdef(self, node):
- prot = node.attributes['prot'].value
- id = node.attributes['id'].value
- kind = node.attributes['kind'].value
- tmp = node.parentNode.parentNode.parentNode
- compdef = tmp.getElementsByTagName('compounddef')[0]
- cdef_kind = compdef.attributes['kind'].value
- #print('Himanshu :: ...... Memberdef........')
- #print('prot= %s ....., id= %s ....., kind= %s..... ,cdef_kind= %s'%(prot,id,kind,cdef_kind))
-
- if prot == 'public':
- #print('Entering here')
- first = self.get_specific_nodes(node, ('definition', 'name'))
- #print first
- name = first['name'].firstChild.data
- #print name
- if name[:8] == 'operator': # Don't handle operators yet.
- return
- #print('Entering here2')
-
- # For ENUMS
- """if kind == 'enum':
- #print('himanshu is in enum now')
- self.add_text('\n\n')
- self.add_text('%typemap(csclassmodifiers) ')
- self.add_text('%s\n"\n/**\n'%data)
- self.generic_parse(node, pad=0)
- """
- ##################################################
- # For Classes & Functions
- if not first.has_key('definition') or \
- kind in ['variable', 'typedef']:
- return
- #print('Entering here3')
-
- if self.include_function_definition:
- defn = first['definition'].firstChild.data
- else:
- defn = ""
- self.add_text('\n')
- briefd = node.getElementsByTagName('briefdescription');
- if kind == 'function' and briefd[0].firstChild.nodeValue == '\n': # first node value if briefdescription exists will be always \n
- #print('Entering here4')
- #self.add_text('%csmethodmodifiers ')
-
- anc = node.parentNode.parentNode
- if cdef_kind in ('file', 'namespace'):
- ns_node = anc.getElementsByTagName('innernamespace')
- if not ns_node and cdef_kind == 'namespace':
- ns_node = anc.getElementsByTagName('compoundname')
- if ns_node:
- ns = ns_node[0].firstChild.data
- #print("himanshu :::::: do_memberdef....ns_node")
- self.add_text(' %s::%s "\n%s'%(ns, name, defn))
- else:
- #print("himanshu :::::: do_memberdef....else")
- #print name
- #print("++++++++++++++++++++++++++++")
- #print defn
- self.add_text(name)
- self.add_text(' \"')
- self.add_text('\n')
- self.add_text('/**\n')
- elif cdef_kind in ('class', 'struct'):
- # Get the full function name.
- anc_node = anc.getElementsByTagName('compoundname')
- cname = anc_node[0].firstChild.data
- #print("himanshu :::::: do_memberdef...class/struct")
-
- s = "Dali::Toolkit::"
- s += name
- b = "Dali::"
- b += name
- #print "himanshu :::::: do_memberdef...class/struct %s" %b
- if cname == s or cname == b:
- #print("Inside %s "%s)
- return
- else:
- self.add_text('%csmethodmodifiers ')
- self.add_text([' %s::%s'%(cname, name)])
- self.add_text(['\n','"\n/**\n'])
-
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- self.add_text(['\n','*/','\n','%s ";'%prot,'\n'])
-
- def do_definition(self, node):
- #print("himanshu :::::: do_definition")
- data = node.firstChild.data
- self.add_text('%s "\n%s'%(data, data))
-
- def do_sectiondef(self, node):
- #print('Himanshu : ........SectionDef ........')
- kind = node.attributes['kind'].value
- #print('kind = %s'%kind)
- if kind in ('public-func', 'func', 'user-defined', 'public-type', ''):
- self.generic_parse(node)
-
- def do_header(self, node):
- """For a user defined section def a header field is present
- which should not be printed as such, so we comment it in the
- output."""
- data = node.firstChild.data
- self.add_text('\n/*\n %s \n*/\n'%data)
- # If our immediate sibling is a 'description' node then we
- # should comment that out also and remove it from the parent
- # node's children.
- parent = node.parentNode
- idx = parent.childNodes.index(node)
- if len(parent.childNodes) >= idx + 2:
- nd = parent.childNodes[idx+2]
- if nd.nodeName == 'description':
- nd = parent.removeChild(nd)
- self.add_text('\n/*')
- self.generic_parse(nd)
- self.add_text('\n*/\n')
-
- def do_parse_sect(self, node, kind):
- if kind in ('date', 'rcs', 'version'):
- pass
- elif kind == 'warning':
- self.add_text(['\n', '* @warning '])
- self.generic_parse(node,pad=0)
- elif kind == 'see':
- self.add_text('\n')
- self.add_text('* @see ')
- self.generic_parse(node,pad=0)
- elif kind == 'return':
- self.add_text('\n')
- self.add_text('* @return ')
- self.generic_parse(node,pad=0)
- elif kind == 'pre':
- self.add_text('\n')
- self.add_text('* @pre ')
- self.generic_parse(node,pad=0)
- elif kind == 'note':
- self.add_text('\n')
- self.add_text('* @note ')
- self.generic_parse(node,pad=0)
- elif kind == 'post':
- self.add_text('\n')
- self.add_text('* @post ')
- self.generic_parse(node,pad=0)
- elif kind == 'since':
- self.add_text('\n')
- self.add_text('* @SINCE_')
- self.generic_parse(node,pad=0)
- else:
- self.add_text('\n')
- self.generic_parse(node,pad=0)
-
- def do_simplesect(self, node):
- kind = node.attributes['kind'].value
- self.simplesect_kind = kind
- self.do_parse_sect(node, kind)
- self.simplesect_kind = ''
-
- def do_simplesectsep(self, node):
- #tmp = node.parentnode
- self.do_parse_sect(node, self.simplesect_kind)
-
- def do_argsstring(self, node):
- #self.generic_parse(node, pad=1)
- x = 0
-
- def do_member(self, node):
- kind = node.attributes['kind'].value
- refid = node.attributes['refid'].value
- if kind == 'function' and refid[:9] == 'namespace':
- self.generic_parse(node)
-
- def do_doxygenindex(self, node):
- self.multi = 1
- comps = node.getElementsByTagName('compound')
- for c in comps:
- refid = c.attributes['refid'].value
- fname = refid + '.xml'
- if not os.path.exists(fname):
- fname = os.path.join(self.my_dir, fname)
- #if not self.quiet:
- #print "parsing file: %s"%fname
- p = Doxy2SWIG(fname, self.include_function_definition, self.quiet)
- p.generate()
- self.pieces.extend(self.clean_pieces(p.pieces))
-
- def do_emphasis(self,node):
- self.add_text('\n* <i> ')
- self.generic_parse(node,pad=0)
- self.add_text(' </i>')
-
- def do_heading(self,node):
- level = node.attributes['level'].value
- self.add_text('\n* <h%s> '%level)
- self.generic_parse(node,pad=0)
- self.add_text(' </h%s>\n* '%level)
-
- def do_itemizedlist(self, node):
- self.add_text(['\n* '])
- self.list_ctr = self.list_ctr + 2
- #self.firstListItem = self.firstListItem + 1
- self.generic_parse(node, pad=0)
- self.list_ctr = self.list_ctr - 2
-
- def do_listitem(self, node):
- #self.add_text('\n'* (self.firstListItem-1))
- #self.firstlistItem = self.firstListItem - 1
- self.add_text(' ' * self.list_ctr)
- self.add_text('- ')
- self.generic_parse(node, pad=0)
-
- def do_programlisting(self, node):
- self.add_text(['\n* '])
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@code\n*')
- self.generic_parse(node, pad=0)
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@endcode\n*')
-
- def do_codeline(self, node):
- self.add_text(' ' * (self.list_ctr+2))
- self.generic_parse(node, pad=1)
-
- def do_highlight(self, node):
- cl = node.attributes['class'].value
- self.add_text(' ')
- #if cl == 'normal':
- self.generic_parse(node, pad=0)
-
- def do_sp(self, node):
- self.add_text(' ')
-
- """def do_table(self, node);
- rows = node.attributes['rows'].value
- cols = node.attributes['cols'].value"""
-
- def do_enumvalue(self, node):
- self.generic_parse(node, pad=0)
-
- def write(self, fname):
- o = my_open_write(fname)
- if self.multi or 1:
- o.write(u"".join(self.pieces).encode('utf-8'))
- else:
- o.write("".join(self.clean_pieces(self.pieces)))
- o.close()
-
- def remove_trailing_spaces(self, fname):
- clean_lines = []
- with open(fname) as o:
- line = o.readlines()
- clean_lines = [l.strip() for l in line if l.strip()]
-
- with open('temp','w+') as f:
- f.writelines('\n'.join(clean_lines))
-
- f.close()
- """with open('temp','r+') as f:
- text = f.read()
- f.close()
- t = textwrap.fill(text, 100, break_long_words=False)
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- with open('temp','w+') as f:
- f.write(t)
- """
- os.rename('temp',fname)
- f.close()
-
- def clean_pieces(self, pieces):
- """Cleans the list of strings given as `pieces`. It replaces
- multiple newlines by a maximum of 2 and returns a new list.
- It also wraps the paragraphs nicely.
- """
- ret = []
- count = 0
- for i in pieces:
- if i == '\n':
- count = count + 1
- else:
- if i == '";':
- if count:
- ret.append('\n')
- elif count > 2:
- ret.append('\n\n')
- elif count:
- ret.append('\n'*count)
- count = 0
- ret.append(i)
-
- _data = "".join(ret)
- ret = []
- for i in _data.split('\n\n'):
- if i == 'Parameters:' or i == 'Exceptions:':
- ret.extend([i, '\n-----------', '\n\n'])
- elif i.find('// File:') > -1: # leave comments alone.
- ret.extend([i, '\n'])
- else:
- _tmp = textwrap.fill(i.strip(), break_long_words=False)
- _tmp = self.lead_spc.sub(r'\1"\2', _tmp)
- ret.extend([_tmp, '\n\n'])
- return ret
-
-
-def convert(input, output, include_function_definition=True, quiet=False):
- p = Doxy2SWIG(input, include_function_definition, quiet)
- p.generate()
- #p.pieces=[str(i) for i in p.pieces]
- #print p.pieces
- p.write(output)
- p.remove_trailing_spaces(output)
-
-def main():
- usage = __doc__
- parser = optparse.OptionParser(usage)
- parser.add_option("-n", '--no-function-definition',
- action='store_true',
- default=False,
- dest='func_def',
- help='do not include doxygen function definitions')
- parser.add_option("-q", '--quiet',
- action='store_true',
- default=False,
- dest='quiet',
- help='be quiet and minimize output')
-
- options, args = parser.parse_args()
- if len(args) != 2:
- parser.error("error: no input and output specified")
-
- convert(args[0], args[1], not options.func_def, options.quiet)
-
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-#!/usr/bin/env python
-"""Doxygen XML to SWIG docstring converter.
-
-Usage:
-
- doxy2swig.py [options] input.xml output.i
-
-Converts Doxygen generated XML files into a file containing docstrings
-that can be used by SWIG-1.3.x. Note that you need to get SWIG
-version > 1.3.23 or use Robin Dunn's docstring patch to be able to use
-the resulting output.
-
-input.xml is your doxygen generated XML file and output.i is where the
-output will be written (the file will be clobbered).
-
-"""
-######################################################################
-#
-# This code is implemented using Mark Pilgrim's code as a guideline:
-# http://www.faqs.org/docs/diveintopython/kgp_divein.html
-#
-# Author: Prabhu Ramachandran
-# License: BSD style
-#
-# Thanks:
-# Johan Hake: the include_function_definition feature
-# Bill Spotz: bug reports and testing.
-# Sebastian Henschel: Misc. enhancements.
-#
-######################################################################
-
-#_*_ coding:utf-8 _*_
-from xml.dom import minidom
-import re
-import textwrap
-import sys
-import types
-import os.path
-import optparse
-import os
-
-def my_open_read(source):
- if hasattr(source, "read"):
- return source
- else:
- return open(source)
-
-def my_open_write(dest):
- if hasattr(dest, "write"):
- return dest
- else:
- return open(dest, 'w')
-
-
-class Doxy2SWIG:
- """Converts Doxygen generated XML files into a file containing
- docstrings that can be used by SWIG-1.3.x that have support for
- feature("docstring"). Once the data is parsed it is stored in
- self.pieces.
-
- """
-
- def __init__(self, src, include_function_definition=True, quiet=False):
- """Initialize the instance given a source object. `src` can
- be a file or filename. If you do not want to include function
- definitions from doxygen then set
- `include_function_definition` to `False`. This is handy since
- this allows you to use the swig generated function definition
- using %feature("autodoc", [0,1]).
-
- """
- f = my_open_read(src)
- self.my_dir = os.path.dirname(f.name)
- self.xmldoc = minidom.parse(f).documentElement
- f.close()
-
- self.pieces = []
- self.pieces.append('\n// File: %s\n'%\
- os.path.basename(f.name))
-
- self.space_re = re.compile(r'\s+')
- self.lead_spc = re.compile(r'^(%feature\S+\s+\S+\s*?)"\s+(\S)')
- self.multi = 0
- self.ignores = ['inheritancegraph', 'param', 'listofallmembers',
- 'innerclass', 'name', 'declname', 'incdepgraph',
- 'invincdepgraph', 'type',
- 'references', 'referencedby', 'location',
- 'collaborationgraph', 'reimplements',
- 'reimplementedby', 'derivedcompoundref',
- 'basecompoundref']
- #self.generics = []
- self.include_function_definition = include_function_definition
- if not include_function_definition:
- self.ignores.append('argsstring')
-
- self.quiet = quiet
- self.list_ctr = 1 #counts the number of spaces to be displayed before displaying a list item
- self.simplesect_kind = ''
- self.para_kind = ''
-
- def generate(self):
- """Parses the file set in the initialization. The resulting
- data is stored in `self.pieces`.
-
- """
- self.parse(self.xmldoc)
-
- def parse(self, node):
- """Parse a given node. This function in turn calls the
- `parse_<nodeType>` functions which handle the respective
- nodes.
-
- """
- pm = getattr(self, "parse_%s"%node.__class__.__name__)
- pm(node)
-
- def parse_Document(self, node):
- #print("himanshu ::::::: parse Document... ")
- self.parse(node.documentElement)
-
- def parse_Text(self, node):
- #print("himanshu ::::::: parse Text... ")
- txt = node.data
- #txt = txt.replace('\\', r'\\\\')
- txt = txt.replace('"', r'\"')
- #print '--------------------------------------'
- #print '--------------------------------------'
- #print txt
- # ignore pure whitespace
- m = self.space_re.match(txt)
- if m and len(m.group()) == len(txt):
- pass
- else:
- #self.add_text(txt)
- t = textwrap.fill(txt, 100, break_long_words=False)
- #print 'HIMANSHU ---------- >>>>>>>>>>>>>>>>>>>>> '
- #print t
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- if t:
- self.add_line = 1
- self.add_text(t)
-
- def parse_Element(self, node):
- """Parse an `ELEMENT_NODE`. This calls specific
- `do_<tagName>` handers for different elements. If no handler
- is available the `generic_parse` method is called. All
- tagNames specified in `self.ignores` are simply ignored.
-
- """
- #print("himanshu ::::::: parse Element... ")
- name = node.tagName
- ignores = self.ignores
- if name in ignores:
- return
- attr = "do_%s" % name
- if hasattr(self, attr):
- handlerMethod = getattr(self, attr)
- handlerMethod(node)
- else:
- self.generic_parse(node)
- #if name not in self.generics: self.generics.append(name)
-
- def parse_Comment(self, node):
- """Parse a `COMMENT_NODE`. This does nothing for now."""
- return
-
- def add_text(self, value):
- """Adds text corresponding to `value` into `self.pieces`."""
- #print value
- if type(value) in (types.ListType, types.TupleType):
- self.pieces.extend(value)
- else:
- self.pieces.append(value)
-
- def get_specific_nodes(self, node, names):
- """Given a node and a sequence of strings in `names`, return a
- dictionary containing the names as keys and child
- `ELEMENT_NODEs`, that have a `tagName` equal to the name.
-
- """
- nodes = [(x.tagName, x) for x in node.childNodes \
- if x.nodeType == x.ELEMENT_NODE and \
- x.tagName in names]
- return dict(nodes)
-
- def generic_parse(self, node, pad=0):
- """A Generic parser for arbitrary tags in a node.
-
- Parameters:
-
- - node: A node in the DOM.
- - pad: `int` (default: 0)
-
- If 0 the node data is not padded with newlines. If 1 it
- appends a newline after parsing the childNodes. If 2 it
- pads before and after the nodes are processed. Defaults to
- 0.
-
- """
- npiece = 0
- if pad:
- npiece = len(self.pieces)
- if pad == 2:
- self.add_text('\n* ')
- for n in node.childNodes:
- self.parse(n)
- if pad:
- #if len(self.pieces) > npiece:
- self.add_text('\n* ')
-
- def space_parse(self, node):
- self.add_text(' ')
- self.generic_parse(node)
-
- def do_compoundname(self, node):
- self.add_text('\n\n')
- data = node.firstChild.data
- #self.add_text('%feature("docstring") %s "\n'%data)
- self.add_text('%typemap(csclassmodifiers) ')
- self.add_text('%s\n"\n/**\n'%data)
-
- def do_compounddef(self, node):
- kind = node.attributes['kind'].value
- if kind in ('class', 'struct'):
- prot = node.attributes['prot'].value
- if prot <> 'public':
- return
- names = ('compoundname', 'briefdescription',
- 'detaileddescription', 'includes')
- first = self.get_specific_nodes(node, names)
- for n in names:
- if first.has_key(n):
- self.parse(first[n])
- #self.add_text(['";','\n'])
- self.add_text(['*/','\n','%s %s ";'%(prot,'class'),'\n'])
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- elif kind in ('file', 'namespace'):
- nodes = node.getElementsByTagName('sectiondef')
- for n in nodes:
- self.parse(n)
-
- def do_includes(self, node):
- self.add_text('\n* @include ')
- self.generic_parse(node, pad=1)
-
- def do_parameterlist(self, node):
-
- #print("himanshu :::::::::: do_parameterlist")
- text='unknown'
- for key, val in node.attributes.items():
- """if key == 'kind':
- if val == 'param': text = 'Parameters'
- elif val == 'exception': text = 'Exceptions'
- else: text = val
- break"""
- if key == 'kind':
- if val == 'param': text = '@param'
- elif val == 'exception': text = '@exception'
- else: text = val
- break
- #self.add_text(['\n', '\n', text, ':', '\n'])
- #self.add_text(['\n', '* ', text])
- self.para_kind = text
- self.generic_parse(node, pad=0)
-
- def do_para(self, node):
- #print("himanshu :::::::: do_para ")
- #self.add_text(['\n'])
- self.generic_parse(node, pad=0)
-
- def do_parametername(self, node):
- #print("himanshu :::::::: do_parametername")
- self.add_text(['\n', '* ', self.para_kind])
-
- try:
- data=node.firstChild.data
- except AttributeError: # perhaps a <ref> tag in it
- data=node.firstChild.firstChild.data
- if data.find('Exception') != -1:
- #print("himanshu :::::::: Pronting DAta1")
- #print data
- self.add_text(data)
- else:
- #print("himanshu :::::::: Pronting DAta2")
- #print data
- for key, val in node.attributes.items():
- if key == 'direction':
- self.add_text('[%s] '%val)
- self.add_text("%s "%data)
-
- def do_parameterdefinition(self, node):
- self.generic_parse(node, pad=1)
-
- def do_detaileddescription(self, node):
- #self.add_text('')
- self.generic_parse(node, pad=0)
-
- def do_briefdescription(self, node):
- self.add_text("* @brief ")
- self.generic_parse(node, pad=1)
-
- def do_memberdef(self, node):
- prot = node.attributes['prot'].value
- id = node.attributes['id'].value
- kind = node.attributes['kind'].value
- tmp = node.parentNode.parentNode.parentNode
- compdef = tmp.getElementsByTagName('compounddef')[0]
- cdef_kind = compdef.attributes['kind'].value
- #print('Himanshu :: ...... Memberdef........')
- #print('prot= %s ....., id= %s ....., kind= %s..... ,cdef_kind= %s'%(prot,id,kind,cdef_kind))
-
- if prot == 'public':
- #print('Entering here')
- first = self.get_specific_nodes(node, ('definition', 'name'))
- #print first
- name = first['name'].firstChild.data
- #print name
- if name[:8] == 'operator': # Don't handle operators yet.
- return
- #print('Entering here2')
-
- # For ENUMS
- """if kind == 'enum':
- #print('himanshu is in enum now')
- self.add_text('\n\n')
- self.add_text('%typemap(csclassmodifiers) ')
- self.add_text('%s\n"\n/**\n'%data)
- self.generic_parse(node, pad=0)
- """
- ##################################################
- # For Classes & Functions
- if not first.has_key('definition') or \
- kind in ['variable', 'typedef']:
- return
- #print('Entering here3')
-
- if self.include_function_definition:
- defn = first['definition'].firstChild.data
- else:
- defn = ""
- self.add_text('\n')
- briefd = node.getElementsByTagName('briefdescription');
- if kind == 'function' and briefd[0].firstChild.nodeValue == '\n': # first node value if briefdescription exists will be always \n
- #print('Entering here4')
- self.add_text('%csmethodmodifiers ')
-
- anc = node.parentNode.parentNode
- if cdef_kind in ('file', 'namespace'):
- ns_node = anc.getElementsByTagName('innernamespace')
- if not ns_node and cdef_kind == 'namespace':
- ns_node = anc.getElementsByTagName('compoundname')
- if ns_node:
- ns = ns_node[0].firstChild.data
- #print("himanshu :::::: do_memberdef....ns_node")
- self.add_text(' %s::%s "\n%s'%(ns, name, defn))
- else:
- #print("himanshu :::::: do_memberdef....else")
- #print name
- #print("++++++++++++++++++++++++++++")
- #print defn
- self.add_text(name)
- self.add_text(' \"')
- self.add_text('\n')
- self.add_text('/**\n')
- elif cdef_kind in ('class', 'struct'):
- # Get the full function name.
- anc_node = anc.getElementsByTagName('compoundname')
- cname = anc_node[0].firstChild.data
- #print("himanshu :::::: do_memberdef...class/struct")
- self.add_text([' %s::%s'%(cname, name)])
- self.add_text(['\n','"\n/**\n'])
-
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- self.add_text(['\n','*/','\n','%s ";'%prot,'\n'])
-
- def do_definition(self, node):
- #print("himanshu :::::: do_definition")
- data = node.firstChild.data
- self.add_text('%s "\n%s'%(data, data))
-
- def do_sectiondef(self, node):
- #print('Himanshu : ........SectionDef ........')
- kind = node.attributes['kind'].value
- #print('kind = %s'%kind)
- if kind in ('public-func', 'func', 'user-defined', 'public-type', ''):
- self.generic_parse(node)
-
- def do_header(self, node):
- """For a user defined section def a header field is present
- which should not be printed as such, so we comment it in the
- output."""
- data = node.firstChild.data
- self.add_text('\n/*\n %s \n*/\n'%data)
- # If our immediate sibling is a 'description' node then we
- # should comment that out also and remove it from the parent
- # node's children.
- parent = node.parentNode
- idx = parent.childNodes.index(node)
- if len(parent.childNodes) >= idx + 2:
- nd = parent.childNodes[idx+2]
- if nd.nodeName == 'description':
- nd = parent.removeChild(nd)
- self.add_text('\n/*')
- self.generic_parse(nd)
- self.add_text('\n*/\n')
-
- def do_parse_sect(self, node, kind):
- if kind in ('date', 'rcs', 'version'):
- pass
- elif kind == 'warning':
- self.add_text(['\n', '* @warning '])
- self.generic_parse(node,pad=0)
- elif kind == 'see':
- self.add_text('\n')
- self.add_text('* @see ')
- self.generic_parse(node,pad=0)
- elif kind == 'return':
- self.add_text('\n')
- self.add_text('* @return ')
- self.generic_parse(node,pad=0)
- elif kind == 'pre':
- self.add_text('\n')
- self.add_text('* @pre ')
- self.generic_parse(node,pad=0)
- elif kind == 'note':
- self.add_text('\n')
- self.add_text('* @note ')
- self.generic_parse(node,pad=0)
- elif kind == 'post':
- self.add_text('\n')
- self.add_text('* @post ')
- self.generic_parse(node,pad=0)
- else:
- self.add_text('\n')
- self.generic_parse(node,pad=0)
-
- def do_simplesect(self, node):
- kind = node.attributes['kind'].value
- self.simplesect_kind = kind
- self.do_parse_sect(node, kind)
- self.simplesect_kind = ''
-
- def do_simplesectsep(self, node):
- #tmp = node.parentnode
- self.do_parse_sect(node, self.simplesect_kind)
-
- def do_argsstring(self, node):
- #self.generic_parse(node, pad=1)
- x = 0
-
- def do_member(self, node):
- kind = node.attributes['kind'].value
- refid = node.attributes['refid'].value
- if kind == 'function' and refid[:9] == 'namespace':
- self.generic_parse(node)
-
- def do_doxygenindex(self, node):
- self.multi = 1
- comps = node.getElementsByTagName('compound')
- for c in comps:
- refid = c.attributes['refid'].value
- fname = refid + '.xml'
- if not os.path.exists(fname):
- fname = os.path.join(self.my_dir, fname)
- #if not self.quiet:
- #print "parsing file: %s"%fname
- p = Doxy2SWIG(fname, self.include_function_definition, self.quiet)
- p.generate()
- self.pieces.extend(self.clean_pieces(p.pieces))
-
- def do_emphasis(self,node):
- self.add_text('\n* <i> ')
- self.generic_parse(node,pad=0)
- self.add_text(' </i>')
-
- def do_heading(self,node):
- level = node.attributes['level'].value
- self.add_text('\n* <h%s> '%level)
- self.generic_parse(node,pad=0)
- self.add_text(' </h%s>\n* '%level)
-
- def do_itemizedlist(self, node):
- self.add_text(['\n* '])
- self.list_ctr = self.list_ctr + 2
- #self.firstListItem = self.firstListItem + 1
- self.generic_parse(node, pad=0)
- self.list_ctr = self.list_ctr - 2
-
- def do_listitem(self, node):
- #self.add_text('\n'* (self.firstListItem-1))
- #self.firstlistItem = self.firstListItem - 1
- self.add_text(' ' * self.list_ctr)
- self.add_text('- ')
- self.generic_parse(node, pad=0)
-
- def do_programlisting(self, node):
- self.add_text(['\n* '])
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@code\n*')
- self.generic_parse(node, pad=0)
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@endcode\n*')
-
- def do_codeline(self, node):
- self.add_text(' ' * (self.list_ctr+2))
- self.generic_parse(node, pad=1)
-
- def do_highlight(self, node):
- cl = node.attributes['class'].value
- self.add_text(' ')
- #if cl == 'normal':
- self.generic_parse(node, pad=0)
-
- def do_sp(self, node):
- self.add_text(' ')
-
- """def do_table(self, node);
- rows = node.attributes['rows'].value
- cols = node.attributes['cols'].value"""
-
- def do_enumvalue(self, node):
- self.generic_parse(node, pad=0)
-
- def write(self, fname):
- o = my_open_write(fname)
- if self.multi or 1:
- o.write(u"".join(self.pieces).encode('utf-8'))
- else:
- o.write("".join(self.clean_pieces(self.pieces)))
- o.close()
-
- def remove_trailing_spaces(self, fname):
- clean_lines = []
- with open(fname) as o:
- line = o.readlines()
- clean_lines = [l.strip() for l in line if l.strip()]
-
- with open('temp','w+') as f:
- f.writelines('\n'.join(clean_lines))
-
- f.close()
- """with open('temp','r+') as f:
- text = f.read()
- f.close()
- t = textwrap.fill(text, 100, break_long_words=False)
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- with open('temp','w+') as f:
- f.write(t)
- """
- os.rename('temp',fname)
- f.close()
-
- def clean_pieces(self, pieces):
- """Cleans the list of strings given as `pieces`. It replaces
- multiple newlines by a maximum of 2 and returns a new list.
- It also wraps the paragraphs nicely.
- """
- ret = []
- count = 0
- for i in pieces:
- if i == '\n':
- count = count + 1
- else:
- if i == '";':
- if count:
- ret.append('\n')
- elif count > 2:
- ret.append('\n\n')
- elif count:
- ret.append('\n'*count)
- count = 0
- ret.append(i)
-
- _data = "".join(ret)
- ret = []
- for i in _data.split('\n\n'):
- if i == 'Parameters:' or i == 'Exceptions:':
- ret.extend([i, '\n-----------', '\n\n'])
- elif i.find('// File:') > -1: # leave comments alone.
- ret.extend([i, '\n'])
- else:
- _tmp = textwrap.fill(i.strip(), break_long_words=False)
- _tmp = self.lead_spc.sub(r'\1"\2', _tmp)
- ret.extend([_tmp, '\n\n'])
- return ret
-
-
-def convert(input, output, include_function_definition=True, quiet=False):
- p = Doxy2SWIG(input, include_function_definition, quiet)
- p.generate()
- #p.pieces=[str(i) for i in p.pieces]
- #print p.pieces
- p.write(output)
- p.remove_trailing_spaces(output)
-
-def main():
- usage = __doc__
- parser = optparse.OptionParser(usage)
- parser.add_option("-n", '--no-function-definition',
- action='store_true',
- default=False,
- dest='func_def',
- help='do not include doxygen function definitions')
- parser.add_option("-q", '--quiet',
- action='store_true',
- default=False,
- dest='quiet',
- help='be quiet and minimize output')
-
- options, args = parser.parse_args()
- if len(args) != 2:
- parser.error("error: no input and output specified")
-
- convert(args[0], args[1], not options.func_def, options.quiet)
-
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-#!/usr/bin/env python
-"""Doxygen XML to SWIG docstring converter.
-
-Usage:
-
- doxy2swig.py [options] input.xml output.i
-
-Converts Doxygen generated XML files into a file containing docstrings
-that can be used by SWIG-1.3.x. Note that you need to get SWIG
-version > 1.3.23 or use Robin Dunn's docstring patch to be able to use
-the resulting output.
-
-input.xml is your doxygen generated XML file and output.i is where the
-output will be written (the file will be clobbered).
-
-"""
-######################################################################
-#
-# This code is implemented using Mark Pilgrim's code as a guideline:
-# http://www.faqs.org/docs/diveintopython/kgp_divein.html
-#
-# Author: Prabhu Ramachandran
-# License: BSD style
-#
-# Thanks:
-# Johan Hake: the include_function_definition feature
-# Bill Spotz: bug reports and testing.
-# Sebastian Henschel: Misc. enhancements.
-#
-######################################################################
-
-from xml.dom import minidom
-import re
-import textwrap
-import sys
-import types
-import os.path
-import optparse
-import os
-
-def my_open_read(source):
- if hasattr(source, "read"):
- return source
- else:
- return open(source)
-
-def my_open_write(dest):
- if hasattr(dest, "write"):
- return dest
- else:
- return open(dest, 'w')
-
-
-class Doxy2SWIG:
- """Converts Doxygen generated XML files into a file containing
- docstrings that can be used by SWIG-1.3.x that have support for
- feature("docstring"). Once the data is parsed it is stored in
- self.pieces.
-
- """
-
- def __init__(self, src, include_function_definition=True, quiet=False):
- """Initialize the instance given a source object. `src` can
- be a file or filename. If you do not want to include function
- definitions from doxygen then set
- `include_function_definition` to `False`. This is handy since
- this allows you to use the swig generated function definition
- using %feature("autodoc", [0,1]).
-
- """
- f = my_open_read(src)
- self.my_dir = os.path.dirname(f.name)
- self.xmldoc = minidom.parse(f).documentElement
- f.close()
-
- self.pieces = []
- self.pieces.append('\n// File: %s\n'%\
- os.path.basename(f.name))
-
- self.space_re = re.compile(r'\s+')
- self.lead_spc = re.compile(r'^(%feature\S+\s+\S+\s*?)"\s+(\S)')
- self.multi = 0
- self.ignores = ['inheritancegraph', 'param', 'listofallmembers',
- 'innerclass', 'name', 'declname', 'incdepgraph',
- 'invincdepgraph', 'type',
- 'references', 'referencedby', 'location',
- 'collaborationgraph', 'reimplements',
- 'reimplementedby', 'derivedcompoundref',
- 'basecompoundref', 'initializer']
- #self.generics = []
- self.include_function_definition = include_function_definition
- if not include_function_definition:
- self.ignores.append('argsstring')
-
- self.quiet = quiet
- self.list_ctr = 1 #counts the number of spaces to be displayed before displaying a list item
- self.simplesect_kind = ''
- self.para_kind = ''
- self.cdef_data = ''
-
- def generate(self):
- """Parses the file set in the initialization. The resulting
- data is stored in `self.pieces`.
-
- """
- self.parse(self.xmldoc)
-
- def parse(self, node):
- """Parse a given node. This function in turn calls the
- `parse_<nodeType>` functions which handle the respective
- nodes.
-
- """
- pm = getattr(self, "parse_%s"%node.__class__.__name__)
- pm(node)
-
- def parse_Document(self, node):
- #print("himanshu ::::::: parse Document... ")
- self.parse(node.documentElement)
-
- def parse_Text(self, node):
- #print("himanshu ::::::: parse Text... ")
- txt = node.data
- #txt = txt.replace('\\', r'\\\\')
- txt = txt.replace('"', r'\"')
- print '--------------------------------------'
- print '--------------------------------------'
- print txt
- # ignore pure whitespace
- m = self.space_re.match(txt)
- if m and len(m.group()) == len(txt):
- pass
- else:
- #self.add_text(txt)
- t = textwrap.fill(txt, 100, break_long_words=False)
- print 'HIMANSHU ---------- >>>>>>>>>>>>>>>>>>>>> '
- print t
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- if t:
- self.add_line = 1
- self.add_text(t)
-
- def parse_Element(self, node):
- """Parse an `ELEMENT_NODE`. This calls specific
- `do_<tagName>` handers for different elements. If no handler
- is available the `generic_parse` method is called. All
- tagNames specified in `self.ignores` are simply ignored.
-
- """
- #print("himanshu ::::::: parse Element... ")
- name = node.tagName
- ignores = self.ignores
- if name in ignores:
- return
- attr = "do_%s" % name
- if hasattr(self, attr):
- handlerMethod = getattr(self, attr)
- handlerMethod(node)
- else:
- self.generic_parse(node)
- #if name not in self.generics: self.generics.append(name)
-
- def parse_Comment(self, node):
- """Parse a `COMMENT_NODE`. This does nothing for now."""
- return
-
- def add_text(self, value):
- """Adds text corresponding to `value` into `self.pieces`."""
- print value
- if type(value) in (types.ListType, types.TupleType):
- self.pieces.extend(value)
- else:
- self.pieces.append(value)
-
- def get_specific_nodes(self, node, names):
- """Given a node and a sequence of strings in `names`, return a
- dictionary containing the names as keys and child
- `ELEMENT_NODEs`, that have a `tagName` equal to the name.
-
- """
- nodes = [(x.tagName, x) for x in node.childNodes \
- if x.nodeType == x.ELEMENT_NODE and \
- x.tagName in names]
- return dict(nodes)
-
- def generic_parse(self, node, pad=0):
- """A Generic parser for arbitrary tags in a node.
-
- Parameters:
-
- - node: A node in the DOM.
- - pad: `int` (default: 0)
-
- If 0 the node data is not padded with newlines. If 1 it
- appends a newline after parsing the childNodes. If 2 it
- pads before and after the nodes are processed. Defaults to
- 0.
-
- """
- npiece = 0
- if pad:
- npiece = len(self.pieces)
- if pad == 2:
- self.add_text('\n* ')
- for n in node.childNodes:
- self.parse(n)
- if pad:
- #if len(self.pieces) > npiece:
- self.add_text('\n* ')
-
- def space_parse(self, node):
- self.add_text(' ')
- self.generic_parse(node)
-
- def do_compoundname(self, node):
- self.add_text('\n\n')
- data = node.firstChild.data
- #self.add_text('%feature("docstring") %s "\n'%data)
- self.add_text('%typemap(csclassmodifiers) ')
- self.add_text('%s\n"\n/**\n'%data)
- self.cdef_data = data
-
- def do_compounddef(self, node):
- kind = node.attributes['kind'].value
- if kind in ('class', 'struct'):
- prot = node.attributes['prot'].value
- if prot <> 'public':
- return
- names = ('compoundname', 'briefdescription',
- 'detaileddescription', 'includes')
- first = self.get_specific_nodes(node, names)
- for n in names:
- if first.has_key(n):
- self.parse(first[n])
- #self.add_text(['";','\n'])
- self.add_text(['*/','\n','%s %s ";'%(prot,'class'),'\n'])
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- elif kind in ('file', 'namespace'):
- nodes = node.getElementsByTagName('sectiondef')
- for n in nodes:
- self.parse(n)
-
- def do_includes(self, node):
- self.add_text('\n* @include ')
- self.generic_parse(node, pad=1)
-
- def do_parameterlist(self, node):
-
- print("himanshu :::::::::: do_parameterlist")
- text='unknown'
- for key, val in node.attributes.items():
- """if key == 'kind':
- if val == 'param': text = 'Parameters'
- elif val == 'exception': text = 'Exceptions'
- else: text = val
- break"""
- if key == 'kind':
- if val == 'param': text = '@param'
- elif val == 'exception': text = '@exception'
- else: text = val
- break
- #self.add_text(['\n', '\n', text, ':', '\n'])
- #self.add_text(['\n', '* ', text])
- self.para_kind = text
- self.generic_parse(node, pad=0)
-
- def do_para(self, node):
- print("himanshu :::::::: do_para ")
- #self.add_text(['\n'])
- self.generic_parse(node, pad=0)
-
- def do_parametername(self, node):
- print("himanshu :::::::: do_parametername")
- self.add_text(['\n', '* ', self.para_kind])
-
- try:
- data=node.firstChild.data
- except AttributeError: # perhaps a <ref> tag in it
- data=node.firstChild.firstChild.data
- if data.find('Exception') != -1:
- print("himanshu :::::::: Pronting DAta1")
- print data
- self.add_text(data)
- else:
- print("himanshu :::::::: Pronting DAta2")
- print data
- for key, val in node.attributes.items():
- if key == 'direction':
- self.add_text('[%s] '%val)
- self.add_text("%s "%data)
-
- def do_parameterdefinition(self, node):
- self.generic_parse(node, pad=1)
-
- def do_detaileddescription(self, node):
- #self.add_text('')
- self.generic_parse(node, pad=0)
-
- def do_briefdescription(self, node):
- #self.add_text("* @brief ")
- self.generic_parse(node, pad=0)
-
- def do_memberdef(self, node):
- prot = node.attributes['prot'].value
- id = node.attributes['id'].value
- kind = node.attributes['kind'].value
- tmp = node.parentNode.parentNode.parentNode
- compdef = tmp.getElementsByTagName('compounddef')[0]
- cdef_kind = compdef.attributes['kind'].value
- print('Himanshu :: ...... Memberdef........')
- print('prot= %s ....., id= %s ....., kind= %s..... ,cdef_kind= %s'%(prot,id,kind,cdef_kind))
-
- if prot == 'public':
- print('Entering here')
- first = self.get_specific_nodes(node, ('definition', 'name'))
- print first
- name = first['name'].firstChild.data
- print name
- if name[:8] == 'operator': # Don't handle operators yet.
- return
- print('Entering here2')
-
- # For ENUMS
- if kind == 'enum':
- #print('himanshu is in enum now')
- """self.add_text('\n\n')
- data = node.firstChild.data
- self.add_text('%csattributes ')
- self.add_text('%s\n"\n/**\n'%data)"""
- self.generic_parse(node, pad=0)
-
- ##################################################
- # For Classes & Functions
- if not first.has_key('definition') or \
- kind in ['variable', 'typedef']:
- return
- print('Entering here3')
-
- if self.include_function_definition:
- defn = first['definition'].firstChild.data
- else:
- defn = ""
- self.add_text('\n')
- briefd = node.getElementsByTagName('briefdescription');
- if kind == 'function' and briefd[0].firstChild.nodeValue == '\n': # first node value if briefdescription exists will be always \n
- print('Entering here4')
- self.add_text('%csmethodmodifiers ')
-
- anc = node.parentNode.parentNode
- if cdef_kind in ('file', 'namespace'):
- ns_node = anc.getElementsByTagName('innernamespace')
- if not ns_node and cdef_kind == 'namespace':
- ns_node = anc.getElementsByTagName('compoundname')
- if ns_node:
- ns = ns_node[0].firstChild.data
- print("himanshu :::::: do_memberdef....ns_node")
- self.add_text(' %s::%s "\n%s'%(ns, name, defn))
- else:
- print("himanshu :::::: do_memberdef....else")
- print name
- print("++++++++++++++++++++++++++++")
- print defn
- self.add_text(name)
- self.add_text(' \"')
- self.add_text('\n')
- self.add_text('/**\n')
- elif cdef_kind in ('class', 'struct'):
- # Get the full function name.
- anc_node = anc.getElementsByTagName('compoundname')
- cname = anc_node[0].firstChild.data
- print("himanshu :::::: do_memberdef...class/struct")
- self.add_text([' %s::%s'%(cname, name)])
- self.add_text(['\n','"\n/**\n'])
-
- for n in node.childNodes:
- if n not in first.values():
- self.parse(n)
- self.add_text(['\n','*/','\n','%s ";'%prot,'\n'])
-
- def do_definition(self, node):
- print("himanshu :::::: do_definition")
- data = node.firstChild.data
- self.add_text('%s "\n%s'%(data, data))
-
- def do_sectiondef(self, node):
- print('Himanshu : ........SectionDef ........')
- kind = node.attributes['kind'].value
- print('kind = %s'%kind)
- if kind in ('public-func', 'func', 'user-defined', 'public-type', ''):
- self.generic_parse(node)
-
- def do_header(self, node):
- """For a user defined section def a header field is present
- which should not be printed as such, so we comment it in the
- output."""
- data = node.firstChild.data
- self.add_text('\n/*\n %s \n*/\n'%data)
- # If our immediate sibling is a 'description' node then we
- # should comment that out also and remove it from the parent
- # node's children.
- parent = node.parentNode
- idx = parent.childNodes.index(node)
- if len(parent.childNodes) >= idx + 2:
- nd = parent.childNodes[idx+2]
- if nd.nodeName == 'description':
- nd = parent.removeChild(nd)
- self.add_text('\n/*')
- self.generic_parse(nd)
- self.add_text('\n*/\n')
-
- def do_parse_sect(self, node, kind):
- if kind in ('date', 'rcs', 'version'):
- pass
- elif kind == 'warning':
- self.add_text(['\n', '* @warning '])
- self.generic_parse(node,pad=0)
- elif kind == 'see':
- self.add_text('\n')
- self.add_text('* @see ')
- self.generic_parse(node,pad=0)
- elif kind == 'return':
- self.add_text('\n')
- self.add_text('* @return ')
- self.generic_parse(node,pad=0)
- elif kind == 'pre':
- self.add_text('\n')
- self.add_text('* @pre ')
- self.generic_parse(node,pad=0)
- elif kind == 'note':
- self.add_text('\n')
- self.add_text('* @note ')
- self.generic_parse(node,pad=0)
- elif kind == 'post':
- self.add_text('\n')
- self.add_text('* @post ')
- self.generic_parse(node,pad=0)
- else:
- self.add_text('\n')
- self.generic_parse(node,pad=0)
-
- def do_simplesect(self, node):
- kind = node.attributes['kind'].value
- self.simplesect_kind = kind
- self.do_parse_sect(node, kind)
- self.simplesect_kind = ''
-
- def do_simplesectsep(self, node):
- #tmp = node.parentnode
- self.do_parse_sect(node, self.simplesect_kind)
-
- def do_argsstring(self, node):
- #self.generic_parse(node, pad=1)
- x = 0
-
- def do_member(self, node):
- kind = node.attributes['kind'].value
- refid = node.attributes['refid'].value
- if kind == 'function' and refid[:9] == 'namespace':
- self.generic_parse(node)
-
- def do_doxygenindex(self, node):
- self.multi = 1
- comps = node.getElementsByTagName('compound')
- for c in comps:
- refid = c.attributes['refid'].value
- fname = refid + '.xml'
- if not os.path.exists(fname):
- fname = os.path.join(self.my_dir, fname)
- if not self.quiet:
- print "parsing file: %s"%fname
- p = Doxy2SWIG(fname, self.include_function_definition, self.quiet)
- p.generate()
- self.pieces.extend(self.clean_pieces(p.pieces))
-
- def do_emphasis(self,node):
- self.add_text('\n* <i> ')
- self.generic_parse(node,pad=0)
- self.add_text(' </i>')
-
- def do_heading(self,node):
- level = node.attributes['level'].value
- self.add_text('\n* <h%s> '%level)
- self.generic_parse(node,pad=0)
- self.add_text(' </h%s>\n* '%level)
-
- def do_itemizedlist(self, node):
- self.add_text(['\n* '])
- self.list_ctr = self.list_ctr + 2
- #self.firstListItem = self.firstListItem + 1
- self.generic_parse(node, pad=0)
- self.list_ctr = self.list_ctr - 2
-
- def do_listitem(self, node):
- #self.add_text('\n'* (self.firstListItem-1))
- #self.firstlistItem = self.firstListItem - 1
- self.add_text(' ' * self.list_ctr)
- self.add_text('- ')
- self.generic_parse(node, pad=0)
-
- def do_programlisting(self, node):
- self.add_text(['\n* '])
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@code\n*')
- self.generic_parse(node, pad=0)
- self.add_text(' ' * (self.list_ctr+2))
- self.add_text('@endcode\n*')
-
- def do_codeline(self, node):
- self.add_text(' ' * (self.list_ctr+2))
- self.generic_parse(node, pad=1)
-
- def do_highlight(self, node):
- cl = node.attributes['class'].value
- self.add_text(' ')
- #if cl == 'normal':
- self.generic_parse(node, pad=0)
-
- def do_sp(self, node):
- self.add_text(' ')
-
- """def do_table(self, node);
- rows = node.attributes['rows'].value
- cols = node.attributes['cols'].value"""
-
- def do_enumvalue(self, node):
- self.add_text('\n\n')
- #data = node.firstChild.nodeValue
- name = node.getElementsByTagName('name')
- data = name[0].firstChild.data
- print('Entering ENUM VALUE')
- print(data)
- self.add_text('%csattributes ')
- self.add_text('%s::%s\n"\n///< '%(self.cdef_data,data))
- self.generic_parse(node, pad=0)
- self.add_text('\n"')
-
- def write(self, fname):
- o = my_open_write(fname)
- if self.multi or 1:
- o.write("".join(self.pieces))
- else:
- o.write("".join(self.clean_pieces(self.pieces)))
- o.close()
-
- def remove_trailing_spaces(self, fname):
- clean_lines = []
- with open(fname) as o:
- line = o.readlines()
- clean_lines = [l.strip() for l in line if l.strip()]
-
- with open('temp','w+') as f:
- f.writelines('\n'.join(clean_lines))
-
- f.close()
- """with open('temp','r+') as f:
- text = f.read()
- f.close()
- t = textwrap.fill(text, 100, break_long_words=False)
- t = t.replace('\n','\n* '+' '*(self.list_ctr+2))
- #t = t.replace('1234',' '*self.list_ctr)
- with open('temp','w+') as f:
- f.write(t)
- """
- os.rename('temp',fname)
- f.close()
-
- def clean_pieces(self, pieces):
- """Cleans the list of strings given as `pieces`. It replaces
- multiple newlines by a maximum of 2 and returns a new list.
- It also wraps the paragraphs nicely.
- """
- ret = []
- count = 0
- for i in pieces:
- if i == '\n':
- count = count + 1
- else:
- if i == '";':
- if count:
- ret.append('\n')
- elif count > 2:
- ret.append('\n\n')
- elif count:
- ret.append('\n'*count)
- count = 0
- ret.append(i)
-
- _data = "".join(ret)
- ret = []
- for i in _data.split('\n\n'):
- if i == 'Parameters:' or i == 'Exceptions:':
- ret.extend([i, '\n-----------', '\n\n'])
- elif i.find('// File:') > -1: # leave comments alone.
- ret.extend([i, '\n'])
- else:
- _tmp = textwrap.fill(i.strip(), break_long_words=False)
- _tmp = self.lead_spc.sub(r'\1"\2', _tmp)
- ret.extend([_tmp, '\n\n'])
- return ret
-
-
-def convert(input, output, include_function_definition=True, quiet=False):
- p = Doxy2SWIG(input, include_function_definition, quiet)
- p.generate()
- p.pieces=[str(i) for i in p.pieces]
- print p.pieces
- p.write(output)
- p.remove_trailing_spaces(output)
-
-def main():
- usage = __doc__
- parser = optparse.OptionParser(usage)
- parser.add_option("-n", '--no-function-definition',
- action='store_true',
- default=False,
- dest='func_def',
- help='do not include doxygen function definitions')
- parser.add_option("-q", '--quiet',
- action='store_true',
- default=False,
- dest='quiet',
- help='be quiet and minimize output')
-
- options, args = parser.parse_args()
- if len(args) != 2:
- parser.error("error: no input and output specified")
-
- convert(args[0], args[1], not options.func_def, options.quiet)
-
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-########################################################################
-# #
-# This script takes all the class*.xml, struct*.xml and namespace*.xml #
-# generated & use them to generate .i files which can be added to #
-# dali.i for generation of doxygen comments for corresponding C# files #
-# #
-########################################################################
-
-#PATH="../../"
-# DoxyComments for class*.xml files in the folder
-for file in class*.xml; do
- suffix=".xml"
- python doxy2swig_class.py "$file" "${file%$suffix}.i" > temp_version;
-done
-
-
-# DoxyComments for struct*.xml files in the folder
-for file in struct*.xml; do
- suffix=".xml"
- python doxy2swig_struct.py "$file" "${file%$suffix}.i" > temp_version;
-done
-
-
-# DoxyComments for namespace*.xml files in the folder
-for file in namespace*.xml; do
- suffix=".xml"
- python doxy2swig_namespace.py "$file" "${file%$suffix}.i" > temp_version;
-done
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define ACCESSIBILITY_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
- %typemap(csimports) NameSpace::ClassName %{
- using System;
- using System.Runtime.InteropServices;
-%}
-
-%enddef
-
-
-%define ACCESSIBILITY_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
-
-
- /**
- * @brief Event arguments that passed via StatusChanged signal
- *
- */
- public class StatusChangedEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionNext signal
- *
- */
- public class ActionNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPrevious signal
- *
- */
- public class ActionPreviousEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionActivate signal
- *
- */
- public class ActionActivateEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionRead signal
- *
- */
- public class ActionReadEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionOver signal
- *
- */
- public class ActionOverEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadNext signal
- *
- */
- public class ActionReadNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadPrevious signal
- *
- */
- public class ActionReadPreviousEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionUp signal
- *
- */
- public class ActionUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionDown signal
- *
- */
- public class ActionDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionClearFocus signal
- *
- */
- public class ActionClearFocusEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionBack signal
- *
- */
- public class ActionBackEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionScrollUp signal
- *
- */
- public class ActionScrollUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionScrollDown signal
- *
- */
- public class ActionScrollDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageLeft signal
- *
- */
- public class ActionPageLeftEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageRight signal
- *
- */
- public class ActionPageRightEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageUp signal
- *
- */
- public class ActionPageUpEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionPageDown signal
- *
- */
- public class ActionPageDownEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionMoveToFirst signal
- *
- */
- public class ActionMoveToFirstEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionMoveToLast signal
- *
- */
- public class ActionMoveToLastEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadFromTop signal
- *
- */
- public class ActionReadFromTopEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadFromNext signal
- *
- */
- public class ActionReadFromNextEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionZoom signal
- *
- */
- public class ActionZoomEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadIndicatorInformation signal
- *
- */
- public class ActionReadIndicatorInformationEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionReadPauseResume signal
- *
- */
- public class ActionReadPauseResumeEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionStartStop signal
- *
- */
- public class ActionStartStopEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via ActionScroll signal
- *
- */
-/*
- // To be replaced by a new event that takes Touch
- public class ActionScrollEventArgs : EventArgs
- {
- private AccessibilityManager _accessibilityManager;
- private TouchEvent _touchEvent;
-
- public AccessibilityManager AccessibilityManager
- {
- get
- {
- return _accessibilityManager;
- }
- set
- {
- _accessibilityManager = value;
- }
- }
-
- public TouchEvent TouchEvent
- {
- get
- {
- return _touchEvent;
- }
- set
- {
- _touchEvent = value;
- }
- }
- }
-*/
-
- /**
- * @brief Event arguments that passed via ActionPageUp signal
- *
- */
- public class FocusChangedEventArgs : EventArgs
- {
- private Actor _actorCurrent;
- private Actor _actorNext;
-
- public Actor ActorCurrent
- {
- get
- {
- return _actorCurrent;
- }
- set
- {
- _actorCurrent = value;
- }
- }
-
- public Actor ActorNext
- {
- get
- {
- return _actorNext;
- }
- set
- {
- _actorNext = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via FocusedActorActivated signal
- *
- */
- public class FocusedActorActivatedEventArgs : EventArgs
- {
- private Actor _actor;
-
-
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via FocusOvershot signal
- *
- */
- public class FocusOvershotEventArgs : EventArgs
- {
- private Actor _currentFocusedActor;
- private AccessibilityManager.FocusOvershotDirection _focusOvershotDirection;
-
- public Actor CurrentFocusedActor
- {
- get
- {
- return _currentFocusedActor;
- }
- set
- {
- _currentFocusedActor = value;
- }
- }
-
- public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection
- {
- get
- {
- return _focusOvershotDirection;
- }
- set
- {
- _focusOvershotDirection = value;
- }
- }
- }
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> _accessibilityManagerStatusChangedEventHandler;
- private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> _accessibilityManagerActionNextEventHandler;
- private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> _accessibilityManagerActionPreviousEventHandler;
- private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> _accessibilityManagerActionActivateEventHandler;
- private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> _accessibilityManagerActionReadEventHandler;
- private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> _accessibilityManagerActionOverEventHandler;
- private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> _accessibilityManagerActionReadNextEventHandler;
- private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> _accessibilityManagerActionReadPreviousEventHandler;
- private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> _accessibilityManagerActionUpEventHandler;
- private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> _accessibilityManagerActionDownEventHandler;
- private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> _accessibilityManagerActionClearFocusEventHandler;
- private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> _accessibilityManagerActionBackEventHandler;
- private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> _accessibilityManagerActionScrollUpEventHandler;
- private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> _accessibilityManagerActionScrollDownEventHandler;
- private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> _accessibilityManagerActionPageLeftEventHandler;
- private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> _accessibilityManagerActionPageRightEventHandler;
- private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs,bool> _accessibilityManagerActionPageUpEventHandler;
- private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> _accessibilityManagerActionPageDownEventHandler;
- private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> _accessibilityManagerActionMoveToFirstEventHandler;
- private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> _accessibilityManagerActionMoveToLastEventHandler;
- private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> _accessibilityManagerActionReadFromTopEventHandler;
- private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> _accessibilityManagerActionReadFromNextEventHandler;
- private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> _accessibilityManagerActionZoomEventHandler;
- private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadIndicatorInformationEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> _accessibilityManagerActionReadIndicatorInformationEventHandler;
- private ActionReadIndicatorInformationEventCallbackDelegate _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> _accessibilityManagerActionReadPauseResumeEventHandler;
- private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager);
- private DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> _accessibilityManagerActionStartStopEventHandler;
- private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate;
-
-/*
- // To be replaced by a new event that takes Touch
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ActionScrollEventCallbackDelegate(IntPtr accessibilityManager, IntPtr touchEvent);
- private DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> _accessibilityManagerActionScrollEventHandler;
- private ActionScrollEventCallbackDelegate _accessibilityManagerActionScrollEventCallbackDelegate;
-*/
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusChangedEventCallbackDelegate(IntPtr actor1, IntPtr actor2);
- private DaliEventHandler<object,FocusChangedEventArgs> _accessibilityManagerFocusChangedEventHandler;
- private FocusChangedEventCallbackDelegate _accessibilityManagerFocusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusedActorActivatedEventCallbackDelegate(IntPtr actor);
- private DaliEventHandler<object,FocusedActorActivatedEventArgs> _accessibilityManagerFocusedActorActivatedEventHandler;
- private FocusedActorActivatedEventCallbackDelegate _accessibilityManagerFocusedActorActivatedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction);
- private DaliEventHandler<object,FocusOvershotEventArgs> _accessibilityManagerFocusOvershotEventHandler;
- private FocusOvershotEventCallbackDelegate _accessibilityManagerFocusOvershotEventCallbackDelegate;
-
- public event DaliEventHandlerWithReturnType<object,StatusChangedEventArgs,bool> StatusChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerStatusChangedEventHandler == null)
- {
- _accessibilityManagerStatusChangedEventHandler += value;
-
- _accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged);
- this.StatusChangedSignal().Connect(_accessibilityManagerStatusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerStatusChangedEventHandler != null)
- {
- this.StatusChangedSignal().Disconnect(_accessibilityManagerStatusChangedEventCallbackDelegate);
- }
-
- _accessibilityManagerStatusChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager StatusChangedSignal
- private bool OnStatusChanged(IntPtr data)
- {
- StatusChangedEventArgs e = new StatusChangedEventArgs();
-
- // Populate all members of "e" (StatusChangedEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerStatusChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerStatusChangedEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionNextEventArgs,bool> ActionNext
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionNextEventHandler == null)
- {
- _accessibilityManagerActionNextEventHandler += value;
-
- _accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext);
- this.ActionNextSignal().Connect(_accessibilityManagerActionNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionNextEventHandler != null)
- {
- this.ActionNextSignal().Disconnect(_accessibilityManagerActionNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionNextEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionNextSignal
- private bool OnActionNext(IntPtr data)
- {
- ActionNextEventArgs e = new ActionNextEventArgs();
-
- // Populate all members of "e" (ActionNextEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionNextEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionNextEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionPreviousEventArgs,bool> ActionPrevious
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPreviousEventHandler == null)
- {
- _accessibilityManagerActionPreviousEventHandler += value;
-
- _accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious);
- this.ActionPreviousSignal().Connect(_accessibilityManagerActionPreviousEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionPreviousEventHandler != null)
- {
- this.ActionPreviousSignal().Disconnect(_accessibilityManagerActionPreviousEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPreviousEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionPreviousSignal
- private bool OnActionPrevious(IntPtr data)
- {
- ActionPreviousEventArgs e = new ActionPreviousEventArgs();
-
- // Populate all members of "e" (ActionPreviousEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionPreviousEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionPreviousEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionActivateEventArgs,bool> ActionActivate
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionActivateEventHandler == null)
- {
- _accessibilityManagerActionActivateEventHandler += value;
-
- _accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate);
- this.ActionActivateSignal().Connect(_accessibilityManagerActionActivateEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionActivateEventHandler != null)
- {
- this.ActionActivateSignal().Disconnect(_accessibilityManagerActionActivateEventCallbackDelegate);
- }
-
- _accessibilityManagerActionActivateEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionActivateSignal
- private bool OnActionActivate(IntPtr data)
- {
- ActionActivateEventArgs e = new ActionActivateEventArgs();
-
- // Populate all members of "e" (ActionActivateEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionActivateEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionActivateEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadEventArgs,bool> ActionRead
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadEventHandler == null)
- {
- _accessibilityManagerActionReadEventHandler += value;
-
- _accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead);
- this.ActionReadSignal().Connect(_accessibilityManagerActionReadEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadEventHandler != null)
- {
- this.ActionReadSignal().Disconnect(_accessibilityManagerActionReadEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadSignal
- private bool OnActionRead(IntPtr data)
- {
- ActionReadEventArgs e = new ActionReadEventArgs();
-
- // Populate all members of "e" (ActionReadEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionOverEventArgs,bool> ActionOver
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionOverEventHandler == null)
- {
- _accessibilityManagerActionOverEventHandler += value;
-
- _accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver);
- this.ActionOverSignal().Connect(_accessibilityManagerActionOverEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionOverEventHandler != null)
- {
- this.ActionOverSignal().Disconnect(_accessibilityManagerActionOverEventCallbackDelegate);
- }
-
- _accessibilityManagerActionOverEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionOverSignal
- private bool OnActionOver(IntPtr data)
- {
- ActionOverEventArgs e = new ActionOverEventArgs();
-
- // Populate all members of "e" (ActionOverEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionOverEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionOverEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadNextEventArgs,bool> ActionReadNext
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadNextEventHandler == null)
- {
- _accessibilityManagerActionReadNextEventHandler += value;
-
- _accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext);
- this.ActionReadNextSignal().Connect(_accessibilityManagerActionReadNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadNextEventHandler != null)
- {
- this.ActionReadNextSignal().Disconnect(_accessibilityManagerActionReadNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadNextEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadNextSignal
- private bool OnActionReadNext(IntPtr data)
- {
- ActionReadNextEventArgs e = new ActionReadNextEventArgs();
-
- // Populate all members of "e" (ActionReadNextEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadNextEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadNextEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,ActionReadPreviousEventArgs,bool> ActionReadPrevious
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadPreviousEventHandler == null)
- {
- _accessibilityManagerActionReadPreviousEventHandler += value;
-
- _accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious);
- this.ActionReadPreviousSignal().Connect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadPreviousEventHandler != null)
- {
- this.ActionReadPreviousSignal().Disconnect(_accessibilityManagerActionReadPreviousEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadPreviousEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadPreviousSignal
- private bool OnActionReadPrevious(IntPtr data)
- {
- ActionReadPreviousEventArgs e = new ActionReadPreviousEventArgs();
-
- // Populate all members of "e" (ActionReadPreviousEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadPreviousEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadPreviousEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionUpEventArgs,bool> ActionUp
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionUpEventHandler == null)
- {
- _accessibilityManagerActionUpEventHandler += value;
-
- _accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp);
- this.ActionUpSignal().Connect(_accessibilityManagerActionUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionUpEventHandler != null)
- {
- this.ActionUpSignal().Disconnect(_accessibilityManagerActionUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionUpEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionUpSignal
- private bool OnActionUp(IntPtr data)
- {
- ActionUpEventArgs e = new ActionUpEventArgs();
-
- // Populate all members of "e" (ActionUpEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionUpEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionUpEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionDownEventArgs,bool> ActionDown
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionDownEventHandler == null)
- {
- _accessibilityManagerActionDownEventHandler += value;
-
- _accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown);
- this.ActionDownSignal().Connect(_accessibilityManagerActionDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionDownEventHandler != null)
- {
- this.ActionDownSignal().Disconnect(_accessibilityManagerActionDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionDownEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionDownSignal
- private bool OnActionDown(IntPtr data)
- {
- ActionDownEventArgs e = new ActionDownEventArgs();
-
- // Populate all members of "e" (ActionDownEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionDownEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionDownEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionClearFocusEventArgs,bool> ActionClearFocus
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionClearFocusEventHandler == null)
- {
- _accessibilityManagerActionClearFocusEventHandler += value;
-
- _accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus);
- this.ActionClearFocusSignal().Connect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionClearFocusEventHandler != null)
- {
- this.ActionClearFocusSignal().Disconnect(_accessibilityManagerActionClearFocusEventCallbackDelegate);
- }
-
- _accessibilityManagerActionClearFocusEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionClearFocusSignal
- private bool OnActionClearFocus(IntPtr data)
- {
- ActionClearFocusEventArgs e = new ActionClearFocusEventArgs();
-
- // Populate all members of "e" (ActionClearFocusEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionClearFocusEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionClearFocusEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionBackEventArgs,bool> ActionBack
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionBackEventHandler == null)
- {
- _accessibilityManagerActionBackEventHandler += value;
-
- _accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack);
- this.ActionBackSignal().Connect(_accessibilityManagerActionBackEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionBackEventHandler != null)
- {
- this.ActionBackSignal().Disconnect(_accessibilityManagerActionBackEventCallbackDelegate);
- }
-
- _accessibilityManagerActionBackEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionBackSignal
- private bool OnActionBack(IntPtr data)
- {
- ActionBackEventArgs e = new ActionBackEventArgs();
-
- // Populate all members of "e" (ActionBackEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionBackEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionBackEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionScrollUpEventArgs,bool> ActionScrollUp
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollUpEventHandler == null)
- {
- _accessibilityManagerActionScrollUpEventHandler += value;
-
- _accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp);
- this.ActionScrollUpSignal().Connect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionScrollUpEventHandler != null)
- {
- this.ActionScrollUpSignal().Disconnect(_accessibilityManagerActionScrollUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollUpEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionScrollUpSignal
- private bool OnActionScrollUp(IntPtr data)
- {
- ActionScrollUpEventArgs e = new ActionScrollUpEventArgs();
-
- // Populate all members of "e" (ActionScrollUpEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionScrollUpEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionScrollUpEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionScrollDownEventArgs,bool> ActionScrollDown
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollDownEventHandler == null)
- {
- _accessibilityManagerActionScrollDownEventHandler += value;
-
- _accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown);
- this.ActionScrollDownSignal().Connect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionScrollDownEventHandler != null)
- {
- this.ActionScrollDownSignal().Disconnect(_accessibilityManagerActionScrollDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollDownEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionScrollDownSignal
- private bool OnActionScrollDown(IntPtr data)
- {
- ActionScrollDownEventArgs e = new ActionScrollDownEventArgs();
-
- // Populate all members of "e" (ActionScrollDownEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionScrollDownEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionScrollDownEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,ActionPageLeftEventArgs,bool> ActionPageLeft
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageLeftEventHandler == null)
- {
- _accessibilityManagerActionPageLeftEventHandler += value;
-
- _accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft);
- this.ActionPageLeftSignal().Connect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionPageLeftEventHandler != null)
- {
- this.ActionPageLeftSignal().Disconnect(_accessibilityManagerActionPageLeftEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageLeftEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionPageLeftSignal
- private bool OnActionPageLeft(IntPtr data)
- {
- ActionPageLeftEventArgs e = new ActionPageLeftEventArgs();
-
- // Populate all members of "e" (ActionPageLeftEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionPageLeftEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionPageLeftEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionPageRightEventArgs,bool> ActionPageRight
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageRightEventHandler == null)
- {
- _accessibilityManagerActionPageRightEventHandler += value;
-
- _accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight);
- this.ActionPageRightSignal().Connect(_accessibilityManagerActionPageRightEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionPageRightEventHandler != null)
- {
- this.ActionPageRightSignal().Disconnect(_accessibilityManagerActionPageRightEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageRightEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionPageRightSignal
- private bool OnActionPageRight(IntPtr data)
- {
- ActionPageRightEventArgs e = new ActionPageRightEventArgs();
-
- // Populate all members of "e" (ActionPageRightEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionPageRightEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionPageRightEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionPageUpEventArgs, bool> ActionPageUp
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageUpEventHandler == null)
- {
- _accessibilityManagerActionPageUpEventHandler += value;
-
- _accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp);
- this.ActionPageUpSignal().Connect(_accessibilityManagerActionPageUpEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionPageUpEventHandler != null)
- {
- this.ActionPageUpSignal().Disconnect(_accessibilityManagerActionPageUpEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageUpEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionPageUpSignal
- private bool OnActionPageUp(IntPtr data)
- {
- ActionPageUpEventArgs e = new ActionPageUpEventArgs();
-
- // Populate all members of "e" (ActionPageUpEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionPageUpEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionPageUpEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,ActionPageDownEventArgs,bool> ActionPageDown
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionPageDownEventHandler == null)
- {
- _accessibilityManagerActionPageDownEventHandler += value;
-
- _accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown);
- this.ActionPageDownSignal().Connect(_accessibilityManagerActionPageDownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionPageDownEventHandler != null)
- {
- this.ActionPageDownSignal().Disconnect(_accessibilityManagerActionPageDownEventCallbackDelegate);
- }
-
- _accessibilityManagerActionPageDownEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionPageDownSignal
- private bool OnActionPageDown(IntPtr data)
- {
- ActionPageDownEventArgs e = new ActionPageDownEventArgs();
-
- // Populate all members of "e" (ActionPageDownEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionPageDownEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionPageDownEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,ActionMoveToFirstEventArgs,bool> ActionMoveToFirst
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionMoveToFirstEventHandler == null)
- {
- _accessibilityManagerActionMoveToFirstEventHandler += value;
-
- _accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst);
- this.ActionMoveToFirstSignal().Connect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionMoveToFirstEventHandler != null)
- {
- this.ActionMoveToFirstSignal().Disconnect(_accessibilityManagerActionMoveToFirstEventCallbackDelegate);
- }
-
- _accessibilityManagerActionMoveToFirstEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionMoveToFirstSignal
- private bool OnActionMoveToFirst(IntPtr data)
- {
- ActionMoveToFirstEventArgs e = new ActionMoveToFirstEventArgs();
-
- // Populate all members of "e" (ActionMoveToFirstEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionMoveToFirstEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionMoveToFirstEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionMoveToLastEventArgs,bool> ActionMoveToLast
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionMoveToLastEventHandler == null)
- {
- _accessibilityManagerActionMoveToLastEventHandler += value;
-
- _accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast);
- this.ActionMoveToLastSignal().Connect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionMoveToLastEventHandler != null)
- {
- this.ActionMoveToLastSignal().Disconnect(_accessibilityManagerActionMoveToLastEventCallbackDelegate);
- }
-
- _accessibilityManagerActionMoveToLastEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionMoveToLastSignal
- private bool OnActionMoveToLast(IntPtr data)
- {
- ActionMoveToLastEventArgs e = new ActionMoveToLastEventArgs();
-
- // Populate all members of "e" (ActionMoveToLastEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionMoveToLastEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionMoveToLastEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadFromTopEventArgs,bool> ActionReadFromTop
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadFromTopEventHandler == null)
- {
- _accessibilityManagerActionReadFromTopEventHandler += value;
-
- _accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop);
- this.ActionReadFromTopSignal().Connect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadFromTopEventHandler != null)
- {
- this.ActionReadFromTopSignal().Disconnect(_accessibilityManagerActionReadFromTopEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadFromTopEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadFromTopSignal
- private bool OnActionReadFromTop(IntPtr data)
- {
- ActionReadFromTopEventArgs e = new ActionReadFromTopEventArgs();
-
- // Populate all members of "e" (ActionReadFromTopEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadFromTopEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadFromTopEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadFromNextEventArgs,bool> ActionReadFromNext
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadFromNextEventHandler == null)
- {
- _accessibilityManagerActionReadFromNextEventHandler += value;
-
- _accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext);
- this.ActionReadFromNextSignal().Connect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadFromNextEventHandler != null)
- {
- this.ActionReadFromNextSignal().Disconnect(_accessibilityManagerActionReadFromNextEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadFromNextEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadFromNextSignal
- private bool OnActionReadFromNext(IntPtr data)
- {
- ActionReadFromNextEventArgs e = new ActionReadFromNextEventArgs();
-
- // Populate all members of "e" (ActionReadFromNextEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadFromNextEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadFromNextEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionZoomEventArgs,bool> ActionZoom
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionZoomEventHandler == null)
- {
- _accessibilityManagerActionZoomEventHandler += value;
-
- _accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom);
- this.ActionZoomSignal().Connect(_accessibilityManagerActionZoomEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionZoomEventHandler != null)
- {
- this.ActionZoomSignal().Disconnect(_accessibilityManagerActionZoomEventCallbackDelegate);
- }
-
- _accessibilityManagerActionZoomEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionZoomSignal
- private bool OnActionZoom(IntPtr data)
- {
- ActionZoomEventArgs e = new ActionZoomEventArgs();
-
- // Populate all members of "e" (ActionZoomEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionZoomEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionZoomEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadIndicatorInformationEventArgs,bool> ActionReadIndicatorInformation
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadIndicatorInformationEventHandler == null)
- {
- _accessibilityManagerActionReadIndicatorInformationEventHandler += value;
-
- _accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate = new ActionReadIndicatorInformationEventCallbackDelegate(OnActionReadIndicatorInformation);
- this.ActionReadIndicatorInformationSignal().Connect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
- {
- this.ActionReadIndicatorInformationSignal().Disconnect(_accessibilityManagerActionReadIndicatorInformationEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadIndicatorInformationEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadIndicatorInformationSignal
- private bool OnActionReadIndicatorInformation(IntPtr data)
- {
- ActionReadIndicatorInformationEventArgs e = new ActionReadIndicatorInformationEventArgs();
-
- // Populate all members of "e" (ActionReadIndicatorInformationEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadIndicatorInformationEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadIndicatorInformationEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionReadPauseResumeEventArgs,bool> ActionReadPauseResume
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionReadPauseResumeEventHandler == null)
- {
- _accessibilityManagerActionReadPauseResumeEventHandler += value;
-
- _accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume);
- this.ActionReadPauseResumeSignal().Connect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
- {
- this.ActionReadPauseResumeSignal().Disconnect(_accessibilityManagerActionReadPauseResumeEventCallbackDelegate);
- }
-
- _accessibilityManagerActionReadPauseResumeEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionReadPauseResumeSignal
- private bool OnActionReadPauseResume(IntPtr data)
- {
- ActionReadPauseResumeEventArgs e = new ActionReadPauseResumeEventArgs();
-
- // Populate all members of "e" (ActionReadPauseResumeEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionReadPauseResumeEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionReadPauseResumeEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,ActionStartStopEventArgs,bool> ActionStartStop
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionStartStopEventHandler == null)
- {
- _accessibilityManagerActionStartStopEventHandler += value;
-
- _accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop);
- this.ActionStartStopSignal().Connect(_accessibilityManagerActionStartStopEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionStartStopEventHandler != null)
- {
- this.ActionStartStopSignal().Disconnect(_accessibilityManagerActionStartStopEventCallbackDelegate);
- }
-
- _accessibilityManagerActionStartStopEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionStartStopSignal
- private bool OnActionStartStop(IntPtr data)
- {
- ActionStartStopEventArgs e = new ActionStartStopEventArgs();
-
- // Populate all members of "e" (ActionStartStopEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(data);
-
- if (_accessibilityManagerActionStartStopEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionStartStopEventHandler(this, e);
- }
- return false;
- }
-
-/*
- // To be replaced by a new event that takes Touch
- public event DaliEventHandlerWithReturnType<object,ActionScrollEventArgs,bool> ActionScroll
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerActionScrollEventHandler == null)
- {
- _accessibilityManagerActionScrollEventHandler += value;
-
- _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll);
- this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate);
- }
-
- _accessibilityManagerActionScrollEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager ActionScrollSignal
- private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent)
- {
- ActionScrollEventArgs e = new ActionScrollEventArgs();
-
- // Populate all members of "e" (ActionScrollEventArgs) with real data
- e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager);
- e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent);
-
- if (_accessibilityManagerActionScrollEventHandler != null)
- {
- //here we send all data to user event handlers
- return _accessibilityManagerActionScrollEventHandler(this, e);
- }
- return false;
- }
-*/
-
- public event DaliEventHandler<object,FocusChangedEventArgs> FocusChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusChangedEventHandler == null)
- {
- _accessibilityManagerFocusChangedEventHandler += value;
-
- _accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
- this.FocusChangedSignal().Connect(_accessibilityManagerFocusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerFocusChangedEventHandler != null)
- {
- this.FocusChangedSignal().Disconnect(_accessibilityManagerFocusChangedEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager FocusChangedSignal
- private void OnFocusChanged(IntPtr actor1, IntPtr actor2)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- // Populate all members of "e" (FocusChangedEventArgs) with real data
- e.ActorCurrent = Actor.GetActorFromPtr(actor1);
- e.ActorNext = Actor.GetActorFromPtr(actor2);
-
- if (_accessibilityManagerFocusChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _accessibilityManagerFocusChangedEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,FocusedActorActivatedEventArgs> FocusedActorActivated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusedActorActivatedEventHandler == null)
- {
- _accessibilityManagerFocusedActorActivatedEventHandler += value;
-
- _accessibilityManagerFocusedActorActivatedEventCallbackDelegate = new FocusedActorActivatedEventCallbackDelegate(OnFocusedActorActivated);
- this.FocusedActorActivatedSignal().Connect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
- {
- this.FocusedActorActivatedSignal().Disconnect(_accessibilityManagerFocusedActorActivatedEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusedActorActivatedEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager FocusedActorActivatedSignal
- private void OnFocusedActorActivated(IntPtr actor)
- {
- FocusedActorActivatedEventArgs e = new FocusedActorActivatedEventArgs();
-
- // Populate all members of "e" (FocusedActorActivatedEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
-
- if (_accessibilityManagerFocusedActorActivatedEventHandler != null)
- {
- //here we send all data to user event handlers
- _accessibilityManagerFocusedActorActivatedEventHandler(this, e);
- }
- }
-
-
- public event DaliEventHandler<object,FocusOvershotEventArgs> FocusOvershot
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_accessibilityManagerFocusOvershotEventHandler == null)
- {
- _accessibilityManagerFocusOvershotEventHandler += value;
-
- _accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot);
- this.FocusOvershotSignal().Connect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_accessibilityManagerFocusOvershotEventHandler != null)
- {
- this.FocusOvershotSignal().Disconnect(_accessibilityManagerFocusOvershotEventCallbackDelegate);
- }
-
- _accessibilityManagerFocusOvershotEventHandler -= value;
- }
- }
- }
-
- // Callback for AccessibilityManager FocusOvershotSignal
- private void OnFocusOvershot(IntPtr currentFocusedActor, AccessibilityManager.FocusOvershotDirection direction)
- {
- FocusOvershotEventArgs e = new FocusOvershotEventArgs();
-
- // Populate all members of "e" (FocusOvershotEventArgs) with real data
- e.CurrentFocusedActor = Actor.GetActorFromPtr(currentFocusedActor);
- e.FocusOvershotDirection = direction;
-
- if (_accessibilityManagerFocusOvershotEventHandler != null)
- {
- //here we send all data to user event handlers
- _accessibilityManagerFocusOvershotEventHandler(this, e);
- }
- }
-
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- %}
- %enddef
-
-%define DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( NameSpace, ClassName)
- ACCESSIBILITY_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- ACCESSIBILITY_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
- %enddef
-
- namespace Dali
-{
- DALI_ACCESSIBILITY_EVENTHANDLER_PARAM( Dali::Toolkit, AccessibilityManager);
-}
-
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%define ACTOR_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
- using System;
- using System.Runtime.InteropServices;
-%}
-
-%enddef
-
-%define ACTOR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public IntPtr GetPtrfrom ## ClassName ()
- {
- return (IntPtr)swigCPtr;
- }
-
- public Position CurrentPosition
- {
- get
- {
- return GetCurrentPosition();
- }
- }
-
- public Size2D Size2D
- {
- get
- {
- Size temp = new Size(0.0f,0.0f,0.0f);
- GetProperty( Actor.Property.SIZE).Get( temp );
- return new Size2D(temp);
- }
- set
- {
- SetProperty( Actor.Property.SIZE, new Dali.Property.Value( new Size(value) ) );
- }
- }
-
- public Size CurrentSize
- {
- get
- {
- return GetCurrentSize();
- }
- }
-
- public Actor Parent
- {
- get
- {
- return GetParent();
- }
- }
-
- public bool Visibility
- {
- get
- {
- return IsVisible();
- }
- }
-
- public float Opacity
- {
- get
- {
- float temp = 0;
- GetProperty( Actor.Property.OPACITY ).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) );
- }
- }
-
- public Position2D Position2D
- {
- get
- {
- Position temp = new Position(0.0f,0.0f,0.0f);
- GetProperty( Actor.Property.POSITION).Get( temp );
- return new Position2D(temp);
- }
- set
- {
- SetProperty( Actor.Property.POSITION, new Dali.Property.Value( new Position(value) ) );
- }
- }
-
- public Vector2 ScreenPosition
- {
- get
- {
- Vector2 temp = new Vector2( 0.0f, 0.0f );
- GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp );
- return temp;
- }
- }
-
- protected bool PositionUsesAnchorPoint
- {
- get
- {
- bool temp = false;
- GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value( value ) );
- }
- }
-
- public bool StateFocusEnable
- {
- get
- {
- return IsKeyboardFocusable();
- }
- set
- {
- SetKeyboardFocusable(value);
- }
- }
-
- public bool IsOnStage
- {
- get
- {
- return OnStage();
- }
- }
-
- public int SiblingOrder
- {
- get
- {
- int temp = 0;
- GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( Actor.Property.SIBLING_ORDER, new Dali.Property.Value( value ) );
- }
- }
-
- public void Show()
- {
- SetVisible(true);
- }
-
- public void Hide()
- {
- SetVisible(false);
- }
-
- public void Raise()
- {
- NDalicPINVOKE.Raise(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Lower()
- {
- NDalicPINVOKE.Lower(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void RaiseToTop()
- {
- NDalicPINVOKE.RaiseToTop(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void LowerToBottom()
- {
- NDalicPINVOKE.LowerToBottom(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void RaiseAbove(Actor target)
- {
- NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void LowerBelow(Actor target)
- {
- NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-%}
-
-%enddef
-
-%define DALI_ACTOR_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
-ACTOR_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
-ACTOR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_ACTOR_EVENTHANDLER_PARAM( Dali, Actor);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define Animation_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-%}
-
-%enddef
-
-%define Animation_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
-
-
- private EventCallbackDelegateType1<IntPtr> _animationFinishedEventCallbackDelegate;
- private event EventHandler _animationFinishedEventHandler;
-
- /**
- * @brief Event for Finished signal which can be used to subscribe/unsubscribe the event handler
- * Finished signal is emitted when an Animation's animations have finished.
- */
- public event EventHandler Finished
- {
- add
- {
- lock(this)
- {
- _animationFinishedEventHandler += value;
- _animationFinishedEventCallbackDelegate = OnFinished;
- this.FinishedSignal().Connect(_animationFinishedEventCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_animationFinishedEventHandler != null)
- {
- this.FinishedSignal().Disconnect(_animationFinishedEventCallbackDelegate);
- }
- _animationFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for Animation FinishedSignal
- private void OnFinished(IntPtr data)
- {
- if (_animationFinishedEventHandler != null)
- {
- //here we send all data to user event handlers
- _animationFinishedEventHandler(this, null);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private float MilliSecondsToSeconds( int millisec )
- {
- return (float)millisec / 1000.0f;
- }
-
- private int SecondsToMilliSeconds( float sec )
- {
- return (int)( sec * 1000 );
- }
-
- public int Duration
- {
- set
- {
- SetDuration( MilliSecondsToSeconds( value ) );
- }
- get
- {
- return SecondsToMilliSeconds( GetDuration() );
- }
- }
-
- public AlphaFunction DefaultAlphaFunction
- {
- set
- {
- SetDefaultAlphaFunction(value);
- }
- get
- {
- AlphaFunction ret = GetDefaultAlphaFunction();
- return ret;
- }
- }
-
- public Animation.State Status
- {
- get
- {
- return GetState();
- }
- }
-
- public int LoopCount
- {
- set
- {
- SetLoopCount(value);
- }
- get
- {
- int ret = GetLoopCount();
- return ret;
- }
- }
-
- public bool Looping
- {
- set
- {
- SetLooping(value);
- }
- get
- {
- bool ret = IsLooping();
- return ret;
- }
- }
-
- public Animation.EndActions EndAction
- {
- set
- {
- SetEndAction(value);
- }
- get
- {
- return GetEndAction();
- }
- }
-
- public void Stop(Animation.EndActions action)
- {
- SetEndAction(action);
- NDalicPINVOKE.Animation_Stop(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public int StartTime { set; get; }
- public int EndTime { set; get; }
- public string TargetProperty { set; get; }
- public object Destination { set; get; }
- public Dali.AlphaFunction AlphaFunction { set; get; }
-
-
- public void AnimateBy(Actor target)
- {
- string _str1 = TargetProperty.Substring(0, 1);
- string _str2 = TargetProperty.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)Destination;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateBy(Actor target, string propertyIndex)
- {
- string _str1 = propertyIndex.Substring(0, 1);
- string _str2 = propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)Destination;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateBy(Actor target, string propertyIndex, object relativeValue)
- {
- string _str1 = propertyIndex.Substring(0, 1);
- string _str2 = propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)relativeValue;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBy(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBy(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateTo(Actor target)
- {
- string _str1 = TargetProperty.Substring(0, 1);
- string _str2 = TargetProperty.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)Destination;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateTo(Actor target, string propertyIndex)
- {
- string _str1 = propertyIndex.Substring(0, 1);
- string _str2 = propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)Destination;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateTo(Actor target, string propertyIndex, object destinationValue)
- {
- string _str1 = propertyIndex.Substring(0, 1);
- string _str2 = propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- dynamic obj = (object)destinationValue;
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), this.AlphaFunction, time );
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateTo(new Property(target, _str), new Property.Value(obj) );
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateTo(new Property(target, _str), new Property.Value(obj), time );
- }
- }
- }
-
- public void AnimateBetween(Actor target, KeyFrames keyFrames)
- {
- string _str1 = TargetProperty.Substring(0, 1);
- string _str2 = TargetProperty.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction);
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, time);
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBetween(new Property(target, _str), keyFrames);
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBetween(new Property(target, _str), keyFrames, time);
- }
- }
- }
-
- public void AnimateBetween(Actor target, KeyFrames keyFrames, Animation.Interpolation interpolation)
- {
- string _str1 = TargetProperty.Substring(0, 1);
- string _str2 = TargetProperty.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
-
- if( this.AlphaFunction != null )
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, interpolation);
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBetween(new Property(target, _str), keyFrames, this.AlphaFunction, time, interpolation);
- }
- }
- else
- {
- if( this.StartTime == 0 && this.EndTime == 0 )
- {
- AnimateBetween(new Property(target, _str), keyFrames, interpolation);
- }
- else
- {
- Dali.TimePeriod time = new Dali.TimePeriod( MilliSecondsToSeconds( this.StartTime ), MilliSecondsToSeconds( this.EndTime - this.StartTime ) );
- AnimateBetween(new Property(target, _str), keyFrames, time, interpolation);
- }
- }
- }
-
-
- /**
- * @brief Create an initialized Animation.
- *
- * The animation will not loop.
- * The default end action is "Bake".
- * The default Alpha function is linear.
- * @since 1.0.0
- * @param [in] durationmSeconds The duration in milli seconds (int).
- * @return A handle to a newly allocated Dali resource.
- * @pre DurationmSeconds must be greater than zero.
- */
- public Animation (int durationmSeconds) : this (NDalicPINVOKE.Animation_New((float)durationmSeconds/1000.0f), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Animation () : this (NDalicPINVOKE.Animation_New( 0.0f ), true ) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-%}
-
-%enddef
-
-
-%define DALI_animation_EVENTHANDLER_PARAM( NameSpace, ClassName)
- Animation_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- Animation_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
- %enddef
-
- namespace Dali
-{
- DALI_animation_EVENTHANDLER_PARAM( Dali, Animation);
-
-%typemap(cscode) Dali::KeyFrames %{
-
- public void Add(float progress, object value)
- {
- dynamic obj = value;
- Add(progress, new Property.Value(obj));
- }
-
- public void Add(float progress, object value, AlphaFunction alpha)
- {
- dynamic obj = value;
- Add(progress, new Property.Value(obj), alpha);
- }
-
-%}
-
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define APPLICATION_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
- %typemap(csimports) NameSpace::ClassName %{
- using System;
- using System.Runtime.InteropServices;
-
- /**
- * @brief Event arguments that passed via NUIApplicationInit signal
- *
- */
- public class NUIApplicationInitEventArgs : EventArgs
- {
- private Application _application;
-
- /**
- * @brief Application - is the application that is being initialized
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationTerminate signal
- *
- */
- public class NUIApplicationTerminateEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being Terminated
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationPause signal
- *
- */
- public class NUIApplicationPauseEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being Paused
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationResume signal
- *
- */
- public class NUIApplicationResumeEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being Resumed
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationReset signal
- *
- */
- public class NUIApplicationResetEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being Reset
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationResize signal
- *
- */
- public class NUIApplicationResizeEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being Resized
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
- *
- */
- public class NUIApplicationLanguageChangedEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being affected with Device's language change
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationRegionChanged signal
- *
- */
- public class NUIApplicationRegionChangedEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being affected with Device's region change
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationBatteryLow signal
- *
- */
- public class NUIApplicationBatteryLowEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being affected when the battery level of the device is low
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationMemoryLow signal
- *
- */
- public class NUIApplicationMemoryLowEventArgs : EventArgs
- {
- private Application _application;
- /**
- * @brief Application - is the application that is being affected when the memory level of the device is low
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via NUIApplicationAppControl signal
- *
- */
- public class NUIApplicationAppControlEventArgs : EventArgs
- {
- private Application _application;
- private IntPtr _voidp;
- /**
- * @brief Application - is the application that is receiving the launch request from another application
- *
- */
- public Application Application
- {
- get
- {
- return _application;
- }
- set
- {
- _application = value;
- }
- }
- /**
- * @brief VoidP - contains the information about why the application is launched
- *
- */
- public IntPtr VoidP
- {
- get
- {
- return _voidp;
- }
- set
- {
- _voidp = value;
- }
- }
- }
-%}
-
-%enddef
-
-
-%define APPLICATION_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationInitEventArgs> _applicationInitEventHandler;
- private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
- private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
- private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
- private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResetEventArgs> _applicationResetEventHandler;
- private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
- private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
- private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
- private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
- private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
- private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
- private DaliEventHandler<object,NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
- private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
-
- /**
- * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
- * provided by the user. Initialized signal is emitted when application is initialised
- */
- public event DaliEventHandler<object,NUIApplicationInitEventArgs> Initialized
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationInitEventHandler == null)
- {
- _applicationInitEventHandler += value;
-
- _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
- this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationInitEventHandler != null)
- {
- this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
- }
-
- _applicationInitEventHandler -= value;
- }
- }
- }
-
- // Callback for Application InitSignal
- private void OnApplicationInit(IntPtr data)
- {
- // Initialize DisposeQueue Singleton class. This is also required to create DisposeQueue on main thread.
- DisposeQueue.Instance.Initialize();
-
- NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
-
- // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationInitEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationInitEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
- * provided by the user. Terminated signal is emitted when application is terminated
- */
- public event DaliEventHandler<object,NUIApplicationTerminateEventArgs> Terminated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationTerminateEventHandler == null)
- {
- _applicationTerminateEventHandler += value;
-
- _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
- this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationTerminateEventHandler != null)
- {
- this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
- }
-
- _applicationTerminateEventHandler -= value;
- }
- }
- }
-
- // Callback for Application TerminateSignal
- private void OnNUIApplicationTerminate(IntPtr data)
- {
- NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
-
- // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationTerminateEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationTerminateEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
- * provided by the user. Paused signal is emitted when application is paused
- */
- public event DaliEventHandler<object,NUIApplicationPauseEventArgs> Paused
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationPauseEventHandler == null)
- {
- _applicationPauseEventHandler += value;
-
- _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
- this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationPauseEventHandler != null)
- {
- this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
- }
-
- _applicationPauseEventHandler -= value;
- }
- }
- }
-
- // Callback for Application PauseSignal
- private void OnNUIApplicationPause(IntPtr data)
- {
- NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
-
- // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationPauseEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationPauseEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
- * provided by the user. Resumed signal is emitted when application is resumed
- */
- public event DaliEventHandler<object,NUIApplicationResumeEventArgs> Resumed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResumeEventHandler == null)
- {
- _applicationResumeEventHandler += value;
-
- _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
- this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResumeEventHandler != null)
- {
- this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
- }
-
- _applicationResumeEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResumeSignal
- private void OnNUIApplicationResume(IntPtr data)
- {
- NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
-
- // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResumeEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResumeEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
- * provided by the user. Reset signal is emitted when application is reset
- */
- public event DaliEventHandler<object,NUIApplicationResetEventArgs> Reset
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResetEventHandler == null)
- {
- _applicationResetEventHandler += value;
-
- _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
- this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResetEventHandler != null)
- {
- this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
- }
-
- _applicationResetEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResetSignal
- private void OnNUIApplicationReset(IntPtr data)
- {
- NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
-
- // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResetEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResetEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
- * provided by the user. Resized signal is emitted when application is resized
- */
- public event DaliEventHandler<object,NUIApplicationResizeEventArgs> Resized
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResizeEventHandler == null)
- {
- _applicationResizeEventHandler += value;
-
- _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
- this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResizeEventHandler != null)
- {
- this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
- }
-
- _applicationResizeEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResizeSignal
- private void OnNUIApplicationResize(IntPtr data)
- {
- NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
-
- // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResizeEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResizeEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
- * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
- */
- public event DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> LanguageChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationLanguageChangedEventHandler == null)
- {
- _applicationLanguageChangedEventHandler += value;
-
- _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
- this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationLanguageChangedEventHandler != null)
- {
- this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
- }
-
- _applicationLanguageChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for Application LanguageChangedSignal
- private void OnNUIApplicationLanguageChanged(IntPtr data)
- {
- NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
-
- // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationLanguageChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationLanguageChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
- * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
- */
- public event DaliEventHandler<object,NUIApplicationRegionChangedEventArgs> RegionChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationRegionChangedEventHandler == null)
- {
- _applicationRegionChangedEventHandler += value;
-
- _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
- this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationRegionChangedEventHandler != null)
- {
- this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
- }
-
- _applicationRegionChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for Application RegionChangedSignal
- private void OnNUIApplicationRegionChanged(IntPtr data)
- {
- NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
-
- // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationRegionChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationRegionChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
- * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
- */
- public event DaliEventHandler<object,NUIApplicationBatteryLowEventArgs> BatteryLow
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationBatteryLowEventHandler == null)
- {
- _applicationBatteryLowEventHandler += value;
-
- _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
- this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationBatteryLowEventHandler != null)
- {
- this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
- }
-
- _applicationBatteryLowEventHandler -= value;
- }
- }
- }
-
- // Callback for Application BatteryLowSignal
- private void OnNUIApplicationBatteryLow(IntPtr data)
- {
- NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
-
- // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationBatteryLowEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationBatteryLowEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
- * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
- */
- public event DaliEventHandler<object,NUIApplicationMemoryLowEventArgs> MemoryLow
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationMemoryLowEventHandler == null)
- {
- _applicationMemoryLowEventHandler += value;
-
- _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
- this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationMemoryLowEventHandler != null)
- {
- this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
- }
-
- _applicationMemoryLowEventHandler -= value;
- }
- }
- }
-
- // Callback for Application MemoryLowSignal
- private void OnNUIApplicationMemoryLow(IntPtr data)
- {
- NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
-
- // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationMemoryLowEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationMemoryLowEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
- * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
- */
- public event DaliEventHandler<object,NUIApplicationAppControlEventArgs> AppControl
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationAppControlEventHandler == null)
- {
- _applicationAppControlEventHandler += value;
-
- _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
- this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationAppControlEventHandler != null)
- {
- this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
- }
-
- _applicationAppControlEventHandler -= value;
- }
- }
- }
-
- // Callback for Application AppControlSignal
- private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)
- {
- NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();
-
- // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(application);
- e.VoidP = voidp;
-
- if (_applicationAppControlEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationAppControlEventHandler(this, e);
- }
- }
-
- private static Application _instance; // singleton
-
- public delegate void InitDelegate();
-
- public delegate void TerminateDelegate();
-
- public delegate void PauseDelegate();
-
- public delegate void ResumeDelegate();
-
- public delegate void ResizeDelegate();
-
- public delegate void AppControlDelegate();
-
- public delegate void LanguageChangedDelegate();
-
- public delegate void RegionChangedDelegate();
-
- public delegate void BatteryLowDelegate();
-
- public delegate void MemoryLowDelegate();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void InitDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void TerminateDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void PauseDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void ResumeDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void ResizeDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void AppControlDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void LanguageChangedDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void RegionChangedDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void BatteryLowDelegateInternal();
-
- [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
- internal delegate void MemoryLowDelegateInternal();
-
- static void Initialize()
- {
- // instance.InitDelegate();
- }
-
- public static Application Instance
- {
- get
- {
- return _instance;
- }
- }
-
- public static Application GetApplicationFromPtr(global::System.IntPtr cPtr) {
- Application ret = new Application(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal void SetupDelegates() {
- InitDelegateInternal initializeCallback = new InitDelegateInternal( Initialize );
- System.Console.WriteLine( "InitSignal connection count");
-
- this.InitSignal().Connect( initializeCallback );
- //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
- }
-
- public static Application NewApplication() {
- _instance = NewApplication("", Application.WINDOW_MODE.OPAQUE);
- return _instance;
- }
-
- public static Application NewApplication(string stylesheet) {
- _instance = NewApplication(stylesheet, Application.WINDOW_MODE.OPAQUE);
- return _instance;
- }
-
- public static Application NewApplication(string stylesheet, Application.WINDOW_MODE windowMode) {
-
- // register all Views with the type registry, so that can be created / styled via JSON
- ViewRegistryHelper.Initialize();
-
- Application ret = New(1, stylesheet, windowMode);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- // we've got an application now connect the signals
- ret.SetupDelegates();
- // set the singleton
- _instance = ret;
- return ret;
- }
-
- %}
- %enddef
-
-%define DALI_APPLICATION_EVENTHANDLER_PARAM( NameSpace, ClassName)
- APPLICATION_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- APPLICATION_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
- %enddef
-
- namespace Dali
-{
- DALI_APPLICATION_EVENTHANDLER_PARAM( Dali, Application);
-}
-
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define BUILDER_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
- using System;
- using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-
-%define BUILDER_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
-
- public class QuitEventArgs : EventArgs
- {
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void QuitEventCallbackDelegate();
- private DaliEventHandler<object,QuitEventArgs> _builderQuitEventHandler;
- private QuitEventCallbackDelegate _builderQuitEventCallbackDelegate;
-
- public event DaliEventHandler<object,QuitEventArgs> Quit
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_builderQuitEventHandler == null)
- {
- _builderQuitEventHandler += value;
-
- _builderQuitEventCallbackDelegate = new QuitEventCallbackDelegate(OnQuit);
- this.QuitSignal().Connect(_builderQuitEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_builderQuitEventHandler != null)
- {
- this.QuitSignal().Disconnect(_builderQuitEventCallbackDelegate);
- }
-
- _builderQuitEventHandler -= value;
- }
- }
- }
-
- // Callback for Builder QuitSignal
- private void OnQuit()
- {
- QuitEventArgs e = new QuitEventArgs();
-
- if (_builderQuitEventHandler != null)
- {
- //here we send all data to user event handlers
- _builderQuitEventHandler(this, e);
- }
- }
-
- ///
- public void LoadFromFile( string fileName )
- {
- try
- {
- string json = System.IO.File.ReadAllText( fileName );
- if( json.Length > 0 )
- {
- LoadFromString( json );
- }
- else
- {
- throw new global::System.InvalidOperationException("Failed to load file " +fileName);
-
- }
- }
- catch ( System.Exception e)
- {
- throw new global::System.InvalidOperationException("Failed to parse " +fileName);
- }
- }
-
-
- %}
- %enddef
-
-%define DALI_BUILDER_EVENTHANDLER_PARAM( NameSpace, ClassName)
- BUILDER_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- BUILDER_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
- %enddef
-
- namespace Dali
-{
- DALI_BUILDER_EVENTHANDLER_PARAM( Dali::Toolkit, Builder);
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// Example from Swig MACRO
-
-%define BUTTON_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define BUTTON_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class ClickedEventArgs : EventArgs
-{
- private Button _button;
-
- public Button Button
- {
- get
- {
- return _button;
- }
- set
- {
- _button = value;
- }
- }
-}
-
-public class PressedEventArgs : EventArgs
-{
- private Button _button;
-
- public Button Button
- {
- get
- {
- return _button;
- }
- set
- {
- _button = value;
- }
- }
-}
-
-public class ReleasedEventArgs : EventArgs
-{
- private Button _button;
-
- public Button Button
- {
- get
- {
- return _button;
- }
- set
- {
- _button = value;
- }
- }
-}
-
-public class StateChangedEventArgs : EventArgs
-{
- private Button _button;
-
- public Button Button
- {
- get
- {
- return _button;
- }
- set
- {
- _button = value;
- }
- }
-}
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ClickedCallbackDelegate(global::System.IntPtr data);
- private DaliEventHandlerWithReturnType<object,ClickedEventArgs,bool> _buttonClickedEventHandler;
- private ClickedCallbackDelegate _buttonClickedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool PressedCallbackDelegate(global::System.IntPtr data);
- private DaliEventHandlerWithReturnType<object,PressedEventArgs,bool> _buttonPressedEventHandler;
- private PressedCallbackDelegate _buttonPressedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ReleasedCallbackDelegate(global::System.IntPtr data);
- private DaliEventHandlerWithReturnType<object,ReleasedEventArgs,bool> _buttonReleasedEventHandler;
- private ReleasedCallbackDelegate _buttonReleasedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool StateChangedCallbackDelegate(global::System.IntPtr data);
- private DaliEventHandlerWithReturnType<object,StateChangedEventArgs,bool> _buttonStateChangedEventHandler;
- private StateChangedCallbackDelegate _buttonStateChangedCallbackDelegate;
-
-
- public event DaliEventHandlerWithReturnType<object,ClickedEventArgs,bool> Clicked
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_buttonClickedEventHandler == null)
- {
- _buttonClickedEventHandler += value;
-
- _buttonClickedCallbackDelegate = new ClickedCallbackDelegate(OnClicked);
- this.ClickedSignal().Connect(_buttonClickedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_buttonClickedEventHandler != null)
- {
- this.ClickedSignal().Disconnect(_buttonClickedCallbackDelegate);
- }
-
- _buttonClickedEventHandler -= value;
- }
- }
- }
-
- // Callback for button click signal
- private bool OnClicked (IntPtr data)
- {
- ClickedEventArgs e = new ClickedEventArgs();
-
- e.Button = Button.GetButtonFromPtr(data);
-
- if (_buttonClickedEventHandler != null)
- {
- //here we send all data to user event handlers
- return _buttonClickedEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,PressedEventArgs,bool> Pressed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_buttonPressedEventHandler == null)
- {
- _buttonPressedEventHandler += value;
-
- _buttonPressedCallbackDelegate = new PressedCallbackDelegate(OnPressed);
- this.PressedSignal().Connect(_buttonPressedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_buttonPressedEventHandler != null)
- {
- this.PressedSignal().Disconnect(_buttonPressedCallbackDelegate);
- }
-
- _buttonPressedEventHandler -= value;
- }
- }
- }
-
- // Callback for button click signal
- private bool OnPressed (IntPtr data)
- {
- PressedEventArgs e = new PressedEventArgs();
-
- e.Button = Button.GetButtonFromPtr(data);
-
- if (_buttonPressedEventHandler != null)
- {
- //here we send all data to user event handlers
- return _buttonPressedEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,ReleasedEventArgs,bool> Released
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_buttonReleasedEventHandler == null)
- {
- _buttonReleasedEventHandler += value;
-
- _buttonReleasedCallbackDelegate = new ReleasedCallbackDelegate(OnReleased);
- this.ReleasedSignal().Connect(_buttonReleasedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_buttonReleasedEventHandler != null)
- {
- this.ReleasedSignal().Disconnect(_buttonReleasedCallbackDelegate);
- }
-
- _buttonReleasedEventHandler -= value;
- }
- }
- }
-
- // Callback for button click signal
- private bool OnReleased (IntPtr data)
- {
- ReleasedEventArgs e = new ReleasedEventArgs();
-
- e.Button = Button.GetButtonFromPtr(data);
-
- if (_buttonReleasedEventHandler != null)
- {
- //here we send all data to user event handlers
- return _buttonReleasedEventHandler(this, e);
- }
- return false;
- }
-
-
- public event DaliEventHandlerWithReturnType<object,StateChangedEventArgs,bool> StateChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_buttonStateChangedEventHandler == null)
- {
- _buttonStateChangedEventHandler += value;
-
- _buttonStateChangedCallbackDelegate = new StateChangedCallbackDelegate(OnStateChanged);
- this.StateChangedSignal().Connect(_buttonStateChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_buttonStateChangedEventHandler != null)
- {
- this.StateChangedSignal().Disconnect(_buttonStateChangedCallbackDelegate);
- }
-
- _buttonStateChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for button click signal
- private bool OnStateChanged (IntPtr data)
- {
- StateChangedEventArgs e = new StateChangedEventArgs();
-
- e.Button = Button.GetButtonFromPtr(data);
-
- if (_buttonStateChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- return _buttonStateChangedEventHandler(this, e);
- }
- return false;
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Dali.Property.Map UnselectedVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.UNSELECTED_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map SelectedVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.SELECTED_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.SELECTED_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map DisabledSelectedVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.DISABLED_SELECTED_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.DISABLED_SELECTED_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map DisabledUnselectedVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map UnselectedBackgroundVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map SelectedBackgroundVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map DisabledUnselectedBackgroundVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map DisabledSelectedBackgroundVisual
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
- }
- }
-
- public string LabelRelativeAlignment
- {
- get
- {
- string temp;
- GetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT, new Dali.Property.Value( value ) );
- }
- }
-
- public Vector4 LabelPadding
- {
- get
- {
- Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
- GetProperty( Button.Property.LABEL_PADDING).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.LABEL_PADDING, new Dali.Property.Value( value ) );
- }
- }
-
- public Vector4 VisualPadding
- {
- get
- {
- Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
- GetProperty( Button.Property.VISUAL_PADDING).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( Button.Property.VISUAL_PADDING, new Dali.Property.Value( value ) );
- }
- }
-%}
-%enddef
-
-
-%define BUTTON_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- BUTTON_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- BUTTON_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- BUTTON_EVENTHANDLER_PARAM( Dali::Toolkit, Button);
-
-} // namespace DALi
-
-
-
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define CONTROL_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
- %typemap(csimports) NameSpace::ClassName %{
- using System;
- using System.Runtime.InteropServices;
-
- %}
-
- %enddef
-
-%define CONTROL_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
- %typemap(cscode) NameSpace::ClassName %{
-
- /**
- * @brief Event arguments that passed via KeyInputFocusGained signal
- *
- */
- public class KeyInputFocusGainedEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that gets Key Input Focus
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via KeyInputFocusLost signal
- *
- */
- public class KeyInputFocusLostEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that loses Key Input Focus
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Key signal
- *
- */
- public class KeyEventArgs : EventArgs
- {
- private View _view;
- private Key _key;
-
- /**
- * @brief View - is the view that recieves the key.
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Key - is the key sent to the View.
- *
- */
- public Key Key
- {
- get
- {
- return _key;
- }
- set
- {
- _key = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OnRelayout signal
- *
- */
- public class OnRelayoutEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being resized upon relayout
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
-
- /**
- * @brief Event arguments that passed via Touch signal
- *
- */
- public class TouchEventArgs : EventArgs
- {
- private View _view;
- private Touch _touch;
-
- /**
- * @brief View - is the view that is being touched
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Touch - contains the information of touch points
- *
- */
- public Touch Touch
- {
- get
- {
- return _touch;
- }
- set
- {
- _touch = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Hover signal
- *
- */
- public class HoverEventArgs : EventArgs
- {
- private View _view;
- private Hover _hover;
-
- /**
- * @brief View - is the view that is being hovered
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Hover - contains touch points that represent the points
- * that are currently being hovered or the points where a hover has stopped
- *
- */
- public Hover Hover
- {
- get
- {
- return _hover;
- }
- set
- {
- _hover = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Wheel signal
- *
- */
- public class WheelEventArgs : EventArgs
- {
- private View _view;
- private Wheel _wheel;
-
- /**
- * @brief View - is the view that is being wheeled
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Wheel - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
- *
- */
- public Wheel Wheel
- {
- get
- {
- return _wheel;
- }
- set
- {
- _wheel = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OnStage signal
- *
- */
- public class OnStageEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being connected to the stage
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OffStage signal
- *
- */
- public class OffStageEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being disconnected from the stage
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void KeyInputFocusGainedCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,KeyInputFocusGainedEventArgs> _KeyInputFocusGainedEventHandler;
- private KeyInputFocusGainedCallbackDelegate _KeyInputFocusGainedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void KeyInputFocusLostCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,KeyInputFocusLostEventArgs> _KeyInputFocusLostEventHandler;
- private KeyInputFocusLostCallbackDelegate _KeyInputFocusLostCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool KeyCallbackDelegate(IntPtr control, IntPtr key);
- private DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> _KeyHandler;
- private KeyCallbackDelegate _KeyCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OnRelayoutEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OnRelayoutEventArgs> _viewOnRelayoutEventHandler;
- private OnRelayoutEventCallbackDelegate _viewOnRelayoutEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool TouchCallbackDelegate(IntPtr view, IntPtr touch);
- private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _viewTouchHandler;
- private TouchCallbackDelegate _viewTouchCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool HoverCallbackDelegate(IntPtr view, IntPtr hover);
- private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _viewHoverHandler;
- private HoverCallbackDelegate _viewHoverCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool WheelCallbackDelegate(IntPtr view, IntPtr wheel);
- private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _viewWheelHandler;
- private WheelCallbackDelegate _viewWheelCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OnStageEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OnStageEventArgs> _viewOnStageEventHandler;
- private OnStageEventCallbackDelegate _viewOnStageEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OffStageEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OffStageEventArgs> _viewOffStageEventHandler;
- private OffStageEventCallbackDelegate _viewOffStageEventCallbackDelegate;
-
- /**
- * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyInputFocusGainedEventHandler-DaliEventHandler<object,KeyInputFocusGainedEventArgs>)
- * provided by the user. KeyInputFocusGained signal is emitted when the control gets Key Input Focus.
- */
- public event DaliEventHandler<object,KeyInputFocusGainedEventArgs> KeyInputFocusGained
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyInputFocusGainedEventHandler == null)
- {
- _KeyInputFocusGainedEventHandler += value;
- Console.WriteLine("View Key EVENT Locked....");
- _KeyInputFocusGainedCallbackDelegate = new KeyInputFocusGainedCallbackDelegate(OnKeyInputFocusGained);
- this.KeyInputFocusGainedSignal().Connect(_KeyInputFocusGainedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyInputFocusGainedEventHandler != null)
- {
- this.KeyInputFocusGainedSignal().Disconnect(_KeyInputFocusGainedCallbackDelegate);
- }
-
- _KeyInputFocusGainedEventHandler -= value;
- }
- }
- }
-
- private void OnKeyInputFocusGained(IntPtr view)
- {
- KeyInputFocusGainedEventArgs e = new KeyInputFocusGainedEventArgs();
- Console.WriteLine("View Key ....");
- // Populate all members of "e" (KeyInputFocusGainedEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
-
- if (_KeyInputFocusGainedEventHandler != null)
- {
- //here we send all data to user event handlers
- _KeyInputFocusGainedEventHandler(this, e);
- }
-
- }
-
- /**
- * @brief Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyInputFocusLostEventHandler-DaliEventHandler<object,KeyInputFocusLostEventArgs>)
- * provided by the user. KeyInputFocusLost signal is emitted when the control loses Key Input Focus.
- */
- public event DaliEventHandler<object,KeyInputFocusLostEventArgs> KeyInputFocusLost
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyInputFocusLostEventHandler == null)
- {
- _KeyInputFocusLostEventHandler += value;
-
- _KeyInputFocusLostCallbackDelegate = new KeyInputFocusLostCallbackDelegate(OnKeyInputFocusLost);
- this.KeyInputFocusLostSignal().Connect(_KeyInputFocusLostCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyInputFocusLostEventHandler != null)
- {
- this.KeyInputFocusLostSignal().Disconnect(_KeyInputFocusLostCallbackDelegate);
- }
-
- _KeyInputFocusLostEventHandler -= value;
- }
- }
- }
-
- private void OnKeyInputFocusLost(IntPtr view)
- {
- KeyInputFocusLostEventArgs e = new KeyInputFocusLostEventArgs();
-
- // Populate all members of "e" (KeyInputFocusLostEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
-
- if (_KeyInputFocusLostEventHandler != null)
- {
- //here we send all data to user event handlers
- _KeyInputFocusLostEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyHandler-DaliEventHandlerWithReturnType<object,KeyEventArgs,bool>)
- * provided by the user. KeyPressed signal is emitted when key event is received.
- */
- public event DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> KeyPressed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyHandler == null)
- {
- _KeyHandler += value;
-
- _KeyCallbackDelegate = new KeyCallbackDelegate(OnKey);
- this.KeyEventSignal().Connect(_KeyCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyHandler != null)
- {
- this.KeyEventSignal().Disconnect(_KeyCallbackDelegate);
- }
-
- _KeyHandler -= value;
- }
- }
- }
-
- private bool OnKey(IntPtr view, IntPtr key)
- {
- KeyEventArgs e = new KeyEventArgs();
-
- // Populate all members of "e" (KeyEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
- e.Key = Dali.Key.GetKeyFromPtr(key);
-
- if (_KeyHandler != null)
- {
- //here we send all data to user event handlers
- return _KeyHandler(this, e);
- }
- return false;
-
- }
-
- /**
- * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OnRelayoutEventHandler) provided by the user.
- * OnRelayout signal is emitted after the size has been set on the view during relayout.
- */
- public event DaliEventHandler<object,OnRelayoutEventArgs> OnRelayoutEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOnRelayoutEventHandler == null)
- {
- _viewOnRelayoutEventHandler += value;
- Console.WriteLine("View OnRelayoutEventArgs Locked....");
- _viewOnRelayoutEventCallbackDelegate = new OnRelayoutEventCallbackDelegate(OnRelayout);
- this.OnRelayoutSignal().Connect(_viewOnRelayoutEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOnRelayoutEventHandler != null)
- {
- this.OnRelayoutSignal().Disconnect(_viewOnRelayoutEventCallbackDelegate);
- }
-
- _viewOnRelayoutEventHandler -= value;
- }
- }
- }
-
- // Callback for View OnRelayout signal
- private void OnRelayout(IntPtr data)
- {
- OnRelayoutEventArgs e = new OnRelayoutEventArgs();
- Console.WriteLine("View OnRelayoutEventArgs....");
- // Populate all members of "e" (OnRelayoutEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- if (_viewOnRelayoutEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOnRelayoutEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of TouchHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
- * provided by the user. Touched signal is emitted when touch input is received.
- */
- public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewTouchHandler == null)
- {
- _viewTouchHandler += value;
- Console.WriteLine("View Touch EVENT LOCKED....");
- _viewTouchCallbackDelegate = new TouchCallbackDelegate(OnTouch);
- this.TouchSignal().Connect(_viewTouchCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewTouchHandler != null)
- {
- this.TouchSignal().Disconnect(_viewTouchCallbackDelegate);
- }
-
- _viewTouchHandler -= value;
- }
- }
- }
-
- // Callback for View TouchSignal
- private bool OnTouch(IntPtr view, IntPtr touch)
- {
- TouchEventArgs e = new TouchEventArgs();
- Console.WriteLine("View Touch EVENT....");
- // Populate all members of "e" (TouchEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Touch = Dali.Touch.GetTouchFromPtr(touch);
-
- if (_viewTouchHandler != null)
- {
- //here we send all data to user event handlers
- return _viewTouchHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of HoverHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
- * provided by the user. Hovered signal is emitted when hover input is received.
- */
- public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewHoverHandler == null)
- {
- _viewHoverHandler += value;
-
- _viewHoverCallbackDelegate = new HoverCallbackDelegate(OnHover);
- this.HoveredSignal().Connect(_viewHoverCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewHoverHandler != null)
- {
- this.HoveredSignal().Disconnect(_viewHoverCallbackDelegate);
- }
-
- _viewHoverHandler -= value;
- }
- }
- }
-
- // Callback for View Hover signal
- private bool OnHover(IntPtr view, IntPtr hover)
- {
- HoverEventArgs e = new HoverEventArgs();
-
- // Populate all members of "e" (HoverEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Hover = Dali.Hover.GetHoverFromPtr(hover);
-
- if (_viewHoverHandler != null)
- {
- //here we send all data to user event handlers
- return _viewHoverHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of WheelHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
- * provided by the user. WheelMoved signal is emitted when wheel event is received.
- */
- public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelMoved
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewWheelHandler == null)
- {
- _viewWheelHandler += value;
- Console.WriteLine("View Wheel EVENT LOCKED....");
- _viewWheelCallbackDelegate = new WheelCallbackDelegate(OnWheel);
- this.WheelEventSignal().Connect(_viewWheelCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewWheelHandler != null)
- {
- this.WheelEventSignal().Disconnect(_viewWheelCallbackDelegate);
- }
-
- _viewWheelHandler -= value;
- }
- }
- }
-
- // Callback for View Wheel signal
- private bool OnWheel(IntPtr view, IntPtr wheel)
- {
- WheelEventArgs e = new WheelEventArgs();
- Console.WriteLine("View Wheel EVENT ....");
- // Populate all members of "e" (WheelEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Wheel = Dali.Wheel.GetWheelFromPtr(wheel);
-
- if (_viewWheelHandler != null)
- {
- //here we send all data to user event handlers
- return _viewWheelHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OnStageEventHandler) provided by the user.
- * OnStage signal is emitted after the view has been connected to the stage.
- */
- public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOnStageEventHandler == null)
- {
- _viewOnStageEventHandler += value;
-
- _viewOnStageEventCallbackDelegate = new OnStageEventCallbackDelegate(OnStage);
- this.OnStageSignal().Connect(_viewOnStageEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOnStageEventHandler != null)
- {
- this.OnStageSignal().Disconnect(_viewOnStageEventCallbackDelegate);
- }
-
- _viewOnStageEventHandler -= value;
- }
- }
- }
-
- // Callback for View OnStage signal
- private void OnStage(IntPtr data)
- {
- OnStageEventArgs e = new OnStageEventArgs();
-
- // Populate all members of "e" (OnStageEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- //Console.WriteLine("############# OnStage()! e.View.Name=" + e.View.Name);
-
- if (_viewOnStageEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOnStageEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OffStageEventHandler) provided by the user.
- * OffStage signal is emitted after the view has been disconnected from the stage.
- */
- public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOffStageEventHandler == null)
- {
- _viewOffStageEventHandler += value;
-
- _viewOffStageEventCallbackDelegate = new OffStageEventCallbackDelegate(OffStage);
- this.OnStageSignal().Connect(_viewOffStageEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOffStageEventHandler != null)
- {
- this.OnStageSignal().Disconnect(_viewOffStageEventCallbackDelegate);
- }
-
- _viewOffStageEventHandler -= value;
- }
- }
- }
-
- // Callback for View OffStage signal
- private void OffStage(IntPtr data)
- {
- OffStageEventArgs e = new OffStageEventArgs();
-
- // Populate all members of "e" (OffStageEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- if (_viewOffStageEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOffStageEventHandler(this, e);
- }
- }
-
- public static View GetViewFromPtr(global::System.IntPtr cPtr) {
- View ret = new View(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Dali.Property.Map Tooltip
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( View.Property.TOOLTIP).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.TOOLTIP, new Dali.Property.Value( value ) );
- }
- }
-
- public string TooltipText
- {
- set
- {
- SetProperty( View.Property.TOOLTIP, new Dali.Property.Value( value ) );
- }
- }
- %}
-%enddef
-
-%define DALI_CONTROL_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- CONTROL_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- CONTROL_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_CONTROL_EVENTHANDLER_PARAM( Dali::Toolkit, Control);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define GAUSSIAN_BLURR_VIEW_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define GAUSSIAN_BLURR_VIEW_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class FinishedEventArgs : EventArgs
-{
- private GaussianBlurView _gaussianBlurView;
-
- public GaussianBlurView GaussianBlurView
- {
- get
- {
- return _gaussianBlurView;
- }
- set
- {
- _gaussianBlurView = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FinishedEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,FinishedEventArgs> _gaussianFinishedEventHandler;
- private FinishedEventCallbackDelegate _gaussianFinishedEventCallbackDelegate;
-
- public event DaliEventHandler<object,FinishedEventArgs> Finished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_gaussianFinishedEventHandler == null)
- {
- _gaussianFinishedEventHandler += value;
-
- _gaussianFinishedEventCallbackDelegate = new FinishedEventCallbackDelegate(OnFinished);
- this.FinishedSignal().Connect(_gaussianFinishedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_gaussianFinishedEventHandler != null)
- {
- this.FinishedSignal().Disconnect(_gaussianFinishedEventCallbackDelegate);
- }
-
- _gaussianFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for GaussianBlurView FinishedSignal
- private void OnFinished(IntPtr data)
- {
- FinishedEventArgs e = new FinishedEventArgs();
-
- // Populate all members of "e" (FinishedEventArgs) with real data
- e.GaussianBlurView = GaussianBlurView.GetGaussianBlurViewFromPtr(data);
-
- if (_gaussianFinishedEventHandler != null)
- {
- //here we send all data to user event handlers
- _gaussianFinishedEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-%enddef
-
-%define DALI_GAUSSIAN_BLURR_VIEW_EVENTHANDLER_PARAM( NameSpace, ClassName)
- GAUSSIAN_BLURR_VIEW_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- GAUSSIAN_BLURR_VIEW_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_GAUSSIAN_BLURR_VIEW_EVENTHANDLER_PARAM( Dali::Toolkit, GaussianBlurView);
-}
-
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define IMAGE_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define IMAGE_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-/**
- * @brief Event arguments that passed via Uploaded signal
- *
- */
-public class UploadedEventArgs : EventArgs
-{
- private Image _image;
- /**
- * @brief Image - is the image data that gets uploaded to GL.
- *
- */
- public Image Image
- {
- get
- {
- return _image;
- }
- set
- {
- _image = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void UploadedEventCallbackDelegate(IntPtr image);
- private DaliEventHandler<object,UploadedEventArgs> _imageUploadedEventHandler;
- private UploadedEventCallbackDelegate _imageUploadedEventCallbackDelegate;
-
- /**
- * @brief Event for Uploaded signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of UploadedEventHandler-DaliEventHandler<object,UploadedEventArgs>)
- * provided by the user. Uploaded signal is emitted when the image data gets uploaded to GL.
- */
- public event DaliEventHandler<object,UploadedEventArgs> Uploaded
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_imageUploadedEventHandler == null)
- {
- _imageUploadedEventHandler += value;
-
- _imageUploadedEventCallbackDelegate = new UploadedEventCallbackDelegate(OnUploaded);
- this.UploadedSignal().Connect(_imageUploadedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_imageUploadedEventHandler != null)
- {
- this.UploadedSignal().Disconnect(_imageUploadedEventCallbackDelegate);
- }
-
- _imageUploadedEventHandler -= value;
- }
- }
- }
-
- // Callback for Image UploadedSignal
- private void OnUploaded(IntPtr data)
- {
- UploadedEventArgs e = new UploadedEventArgs();
-
- // Populate all members of "e" (UploadedEventArgs) with real data
- e.Image = Image.GetImageFromPtr(data);
-
- if (_imageUploadedEventHandler != null)
- {
- //here we send all data to user event handlers
- _imageUploadedEventHandler(this, e);
- }
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_IMAGE_EVENTHANDLER_PARAM( NameSpace, ClassName)
- IMAGE_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- IMAGE_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_IMAGE_EVENTHANDLER_PARAM( Dali, Image);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define ITEMVIEW_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-
-%define ITEMVIEW_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
- public class LayoutActivatedEventArgs : EventArgs
- {
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void LayoutActivatedEventCallbackDelegate();
- private DaliEventHandler<object,LayoutActivatedEventArgs> _itemViewLayoutActivatedEventHandler;
- private LayoutActivatedEventCallbackDelegate _itemViewLayoutActivatedEventCallbackDelegate;
-
- public event DaliEventHandler<object,LayoutActivatedEventArgs> LayoutActivated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_itemViewLayoutActivatedEventHandler == null)
- {
- _itemViewLayoutActivatedEventHandler += value;
-
- _itemViewLayoutActivatedEventCallbackDelegate = new LayoutActivatedEventCallbackDelegate(OnLayoutActivated);
- this.LayoutActivatedSignal().Connect(_itemViewLayoutActivatedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_itemViewLayoutActivatedEventHandler != null)
- {
- this.LayoutActivatedSignal().Disconnect(_itemViewLayoutActivatedEventCallbackDelegate);
- }
-
- _itemViewLayoutActivatedEventHandler -= value;
- }
- }
- }
-
- // Callback for ItemView LayoutActivatedSignal
- private void OnLayoutActivated()
- {
- LayoutActivatedEventArgs e = new LayoutActivatedEventArgs();
-
- if (_itemViewLayoutActivatedEventHandler != null)
- {
- //here we send all data to user event handlers
- _itemViewLayoutActivatedEventHandler(this, e);
- }
- }
-
-%}
-%enddef
-
-%define DALI_ITEMVIEW_EVENTHANDLER_PARAM( NameSpace, ClassName)
- ITEMVIEW_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- ITEMVIEW_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_ITEMVIEW_EVENTHANDLER_PARAM( Dali::Toolkit, ItemView);
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-%}
-
-%enddef
-
-
-%define KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-/**
- * @brief Event arguments that passed via FocusChanged signal
- *
- */
-public class FocusChangedEventArgs : EventArgs
-{
- private Actor _actorCurrent;
- private Actor _actorNext;
-
- /**
- * @brief Actor - is the original focused Actor
- *
- */
- public Actor ActorCurrent
- {
- get
- {
- return _actorCurrent;
- }
- set
- {
- _actorCurrent = value;
- }
- }
-
- /**
- * @brief Actor - is the current focused Actor
- *
- */
- public Actor ActorNext
- {
- get
- {
- return _actorNext;
- }
- set
- {
- _actorNext = value;
- }
- }
-}
-
-/**
- * @brief Event arguments that passed via FocusGroupChanged signal
- *
- */
-public class FocusGroupChangedEventArgs : EventArgs
-{
- private Actor _currentFocusedActor;
- private bool _forwardDirection;
-
- /**
- * @brief Actor - is the current focused Actor
- *
- */
- public Actor CurrentFocusedActor
- {
- get
- {
- return _currentFocusedActor;
- }
- set
- {
- _currentFocusedActor = value;
- }
- }
-
- /**
- * @brief ForwardDirection - is the direction (forward or backward) in which to move the focus next
- *
- */
- public bool ForwardDirection
- {
- get
- {
- return _forwardDirection;
- }
- set
- {
- _forwardDirection = value;
- }
- }
-}
-
-/**
- * @brief Event arguments that passed via FocusedActorEnterKey signal
- *
- */
-public class FocusedActorEnterKeyEventArgs : EventArgs
-{
- private Actor _actor;
-
- /**
- * @brief Actor - is the current focused Actor which has the enter key pressed on it.
- *
- */
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusChangedEventCallbackDelegate(IntPtr actorCurrent, IntPtr actorNext);
- private DaliEventHandler<object,FocusChangedEventArgs> _keyboardFocusManagerFocusChangedEventHandler;
- private FocusChangedEventCallbackDelegate _keyboardFocusManagerFocusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusGroupChangedEventCallbackDelegate(IntPtr currentFocusedActor, bool forwardDirection);
- private DaliEventHandler<object,FocusGroupChangedEventArgs> _keyboardFocusManagerFocusGroupChangedEventHandler;
- private FocusGroupChangedEventCallbackDelegate _keyboardFocusManagerFocusGroupChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusedActorEnterKeyEventCallbackDelegate(IntPtr actor);
- private DaliEventHandler<object,FocusedActorEnterKeyEventArgs> _keyboardFocusManagerFocusedActorEnterKeyEventHandler;
- private FocusedActorEnterKeyEventCallbackDelegate _keyboardFocusManagerFocusedActorEnterKeyEventCallbackDelegate;
-
- /**
- * @brief Event for FocusChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusChangedEventHandler-DaliEventHandler<object,FocusChangedEventArgs>) provided by the user.
- * FocusChanged signal is emitted after the current focused actor has been changed.
- */
- public event DaliEventHandler<object,FocusChangedEventArgs> FocusChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_keyboardFocusManagerFocusChangedEventHandler == null)
- {
- _keyboardFocusManagerFocusChangedEventHandler += value;
-
- _keyboardFocusManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
- this.FocusChangedSignal().Connect(_keyboardFocusManagerFocusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_keyboardFocusManagerFocusChangedEventHandler != null)
- {
- this.FocusChangedSignal().Disconnect(_keyboardFocusManagerFocusChangedEventCallbackDelegate);
- }
-
- _keyboardFocusManagerFocusChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for KeyboardFocusManager FocusChangedSignal
- private void OnFocusChanged(IntPtr actorCurrent, IntPtr actorNext)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- // Populate all members of "e" (FocusChangedEventArgs) with real data
- e.ActorCurrent = Actor.GetActorFromPtr(actorCurrent);
- e.ActorNext = Actor.GetActorFromPtr(actorNext);
-
- if (_keyboardFocusManagerFocusChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _keyboardFocusManagerFocusChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for FocusGroupChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusGroupChangedEventHandler-DaliEventHandler<object,FocusGroupChangedEventArgs>)
- * provided by the user. FocusGroupChanged signal is emitted when the focus group has been changed.
- */
- public event DaliEventHandler<object,FocusGroupChangedEventArgs> FocusGroupChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_keyboardFocusManagerFocusGroupChangedEventHandler == null)
- {
- _keyboardFocusManagerFocusGroupChangedEventHandler += value;
-
- _keyboardFocusManagerFocusGroupChangedEventCallbackDelegate = new FocusGroupChangedEventCallbackDelegate(OnFocusGroupChanged);
- this.FocusGroupChangedSignal().Connect(_keyboardFocusManagerFocusGroupChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_keyboardFocusManagerFocusGroupChangedEventHandler != null)
- {
- this.FocusGroupChangedSignal().Disconnect(_keyboardFocusManagerFocusGroupChangedEventCallbackDelegate);
- }
-
- _keyboardFocusManagerFocusGroupChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for KeyboardFocusManager FocusGroupChangedSignal
- private void OnFocusGroupChanged(IntPtr currentFocusedActor, bool forwardDirection)
- {
- FocusGroupChangedEventArgs e = new FocusGroupChangedEventArgs();
-
- // Populate all members of "e" (FocusGroupChangedEventArgs) with real data
- e.CurrentFocusedActor = Actor.GetActorFromPtr(currentFocusedActor);
- e.ForwardDirection = forwardDirection;
-
- if (_keyboardFocusManagerFocusGroupChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _keyboardFocusManagerFocusGroupChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for FocusedActorEnterKeyPressed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusedActorEnterKeyEventHandler-DaliEventHandler<object,FocusedActorEnterKeyEventArgs>) provided by the user.
- * FocusedActorEnterKeyPressed signal is emitted when the current focused actor has the enter key pressed on it.
- */
- public event DaliEventHandler<object,FocusedActorEnterKeyEventArgs> FocusedActorEnterKeyPressed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_keyboardFocusManagerFocusedActorEnterKeyEventHandler == null)
- {
- _keyboardFocusManagerFocusedActorEnterKeyEventHandler += value;
-
- _keyboardFocusManagerFocusedActorEnterKeyEventCallbackDelegate = new FocusedActorEnterKeyEventCallbackDelegate(OnFocusedActorEnterKey);
- this.FocusedActorEnterKeySignal().Connect(_keyboardFocusManagerFocusedActorEnterKeyEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_keyboardFocusManagerFocusedActorEnterKeyEventHandler != null)
- {
- this.FocusedActorEnterKeySignal().Disconnect(_keyboardFocusManagerFocusedActorEnterKeyEventCallbackDelegate);
- }
-
- _keyboardFocusManagerFocusedActorEnterKeyEventHandler -= value;
- }
- }
- }
-
- // Callback for KeyboardFocusManager FocusedActorEnterKeySignal
- private void OnFocusedActorEnterKey(IntPtr actor)
- {
- FocusedActorEnterKeyEventArgs e = new FocusedActorEnterKeyEventArgs();
-
- // Populate all members of "e" (FocusedActorEnterKeyEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
-
- if (_keyboardFocusManagerFocusedActorEnterKeyEventHandler != null)
- {
- //here we send all data to user event handlers
- _keyboardFocusManagerFocusedActorEnterKeyEventHandler(this, e);
- }
- }
-
-%}
-%enddef
-
-%define DALI_KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_PARAM( NameSpace, ClassName)
- KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_KEYBOARD_FOCUS_MANAGER_EVENTHANDLER_PARAM( Dali::Toolkit, KeyboardFocusManager);
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define LongPressGesture_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-%}
-%enddef
-
-%define LongPressGesture_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class DetectedEventArgs : EventArgs
-{
- private Actor _actor;
- private LongPressGesture _longPressGesture;
-
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-
- public LongPressGesture LongPressGesture
- {
- get
- {
- return _longPressGesture;
- }
- set
- {
- _longPressGesture = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr longPressGesture);
- private DaliEventHandler<object,DetectedEventArgs> _longPressGestureEventHandler;
- private DetectedCallbackDelegate _longPressGestureCallbackDelegate;
-
-
- public event DaliEventHandler<object,DetectedEventArgs> Detected
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_longPressGestureEventHandler == null)
- {
- _longPressGestureEventHandler += value;
-
- _longPressGestureCallbackDelegate = new DetectedCallbackDelegate(OnLongPressGestureDetected);
- this.DetectedSignal().Connect(_longPressGestureCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_longPressGestureEventHandler != null)
- {
- this.DetectedSignal().Disconnect(_longPressGestureCallbackDelegate);
- }
-
- _longPressGestureEventHandler -= value;
- }
- }
- }
-
- private void OnLongPressGestureDetected(IntPtr actor, IntPtr longPressGesture)
- {
- DetectedEventArgs e = new DetectedEventArgs();
-
- // Populate all members of "e" (LongPressGestureEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
- e.LongPressGesture = Dali.LongPressGesture.GetLongPressGestureFromPtr(longPressGesture);
-
- if (_longPressGestureEventHandler != null)
- {
- //here we send all data to user event handlers
- _longPressGestureEventHandler(this, e);
- }
-
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_longPressGesture_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- LongPressGesture_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- LongPressGesture_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_longPressGesture_EVENTHANDLER_PARAM( Dali, LongPressGestureDetector);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define OBJECT_REGISTRY_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-
-%define OBJECT_REGISTRY_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class ObjectCreatedEventArgs : EventArgs
-{
- private BaseHandle _baseHandle;
-
- public BaseHandle BaseHandle
- {
- get
- {
- return _baseHandle;
- }
- set
- {
- _baseHandle = value;
- }
- }
-}
-
-public class ObjectDestroyedEventArgs : EventArgs
-{
- private RefObject _refObject;
-
- public RefObject RefObject
- {
- get
- {
- return _refObject;
- }
- set
- {
- _refObject = value;
- }
- }
-}
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ObjectCreatedEventCallbackDelegate(IntPtr baseHandle);
- private DaliEventHandler<object,ObjectCreatedEventArgs> _objectRegistryObjectCreatedEventHandler;
- private ObjectCreatedEventCallbackDelegate _objectRegistryObjectCreatedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ObjectDestroyedEventCallbackDelegate(IntPtr fefObject);
- private DaliEventHandler<object,ObjectDestroyedEventArgs> _objectRegistryObjectDestroyedEventHandler;
- private ObjectDestroyedEventCallbackDelegate _objectRegistryObjectDestroyedEventCallbackDelegate;
-
- public event DaliEventHandler<object,ObjectCreatedEventArgs> ObjectCreated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_objectRegistryObjectCreatedEventHandler == null)
- {
- _objectRegistryObjectCreatedEventHandler += value;
-
- _objectRegistryObjectCreatedEventCallbackDelegate = new ObjectCreatedEventCallbackDelegate(OnObjectCreated);
- this.ObjectCreatedSignal().Connect(_objectRegistryObjectCreatedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_objectRegistryObjectCreatedEventHandler != null)
- {
- this.ObjectCreatedSignal().Disconnect(_objectRegistryObjectCreatedEventCallbackDelegate);
- }
-
- _objectRegistryObjectCreatedEventHandler -= value;
- }
- }
- }
-
- // Callback for ObjectRegistry ObjectCreatedSignal
- private void OnObjectCreated(IntPtr baseHandle)
- {
- ObjectCreatedEventArgs e = new ObjectCreatedEventArgs();
-
- // Populate all members of "e" (ObjectCreatedEventArgs) with real data
- //e.BaseHandle = BaseHandle.GetBaseHandleFromPtr(baseHandle); //GetBaseHandleFromPtr() is not present in BaseHandle.cs. Not sure what is the reason?
-
- if (_objectRegistryObjectCreatedEventHandler != null)
- {
- //here we send all data to user event handlers
- _objectRegistryObjectCreatedEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,ObjectDestroyedEventArgs> ObjectDestroyed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_objectRegistryObjectDestroyedEventHandler == null)
- {
- _objectRegistryObjectDestroyedEventHandler += value;
-
- _objectRegistryObjectDestroyedEventCallbackDelegate = new ObjectDestroyedEventCallbackDelegate(OnObjectDestroyed);
- this.ObjectDestroyedSignal().Connect(_objectRegistryObjectDestroyedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_objectRegistryObjectDestroyedEventHandler != null)
- {
- this.ObjectDestroyedSignal().Disconnect(_objectRegistryObjectDestroyedEventCallbackDelegate);
- }
-
- _objectRegistryObjectDestroyedEventHandler -= value;
- }
- }
- }
-
- // Callback for ObjectRegistry ObjectDestroyedSignal
- private void OnObjectDestroyed(IntPtr refObject)
- {
- ObjectDestroyedEventArgs e = new ObjectDestroyedEventArgs();
-
- // Populate all members of "e" (ObjectDestroyedEventArgs) with real data
- e.RefObject = RefObject.GetRefObjectFromPtr(refObject);
-
- if (_objectRegistryObjectDestroyedEventHandler != null)
- {
- //here we send all data to user event handlers
- _objectRegistryObjectDestroyedEventHandler(this, e);
- }
- }
-
-%}
-%enddef
-
-%typemap(cscode) Dali::BaseHandle %{
- public static BaseHandle GetBaseHandleFromPtr(global::System.IntPtr cPtr) {
- BaseHandle ret = new BaseHandle(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-%}
-
-
-%define DALI_OBJECT_REGISTRY_EVENTHANDLER_PARAM( NameSpace, ClassName)
- OBJECT_REGISTRY_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- OBJECT_REGISTRY_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_OBJECT_REGISTRY_EVENTHANDLER_PARAM( Dali, ObjectRegistry);
-}
-
+++ /dev/null
-/*
- * 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.
- *
- */
-%csmethodmodifiers Dali::Rect<float>::x "private";
-%csmethodmodifiers Dali::Rect<float>::y "private";
-%csmethodmodifiers Dali::Rect<float>::left "private";
-%csmethodmodifiers Dali::Rect<float>::right "private";
-%csmethodmodifiers Dali::Rect<float>::width "private";
-%csmethodmodifiers Dali::Rect<float>::bottom "private";
-%csmethodmodifiers Dali::Rect<float>::height "private";
-%csmethodmodifiers Dali::Rect<float>::top "private";
-%ignore Dali::Rect<float>::IsEmpty;
-%ignore Dali::Rect<float>::Left;
-%ignore Dali::Rect<float>::Right;
-%ignore Dali::Rect<float>::Top;
-%ignore Dali::Rect<float>::Bottom;
-%ignore Dali::Rect<float>::Area;
-%ignore Dali::Rect<float>::Intersects;
-%ignore Dali::Rect<float>::Contains;
-
-%define DALI_PADDINGTYPE_PROPERTY_PARAM(NameSpace,ClassName)
- %typemap(cscode) NameSpace::ClassName %{
- public static bool operator ==(PaddingType a, PaddingType b)
- {
- // If both are null, or both are same instance, return true.
- if (System.Object.ReferenceEquals(a, b))
- {
- return true;
- }
-
- // If one is null, but not both, return false.
- if (((object)a == null) || ((object)b == null))
- {
- return false;
- }
-
- // Return true if the fields match:
- return ( System.Math.Abs( a.Left - b.Left ) < NDalic.GetRangedEpsilon(a.Left, b.Left) )&&
- ( System.Math.Abs( a.Right - b.Right ) < NDalic.GetRangedEpsilon(a.Right, b.Right) )&&
- ( System.Math.Abs( a.Bottom - b.Bottom ) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom) )&&
- ( System.Math.Abs( a.Top - b.Top ) < NDalic.GetRangedEpsilon(a.Top, b.Top) );
- }
-
- public static bool operator !=(PaddingType a, PaddingType b)
- {
- return !(a == b);
- }
-
- ///< The Left value
- public float Left
- {
- set
- {
- left = value;
- }
- get
- {
- return left;
- }
- }
-
- ///< The Right value
- public float Right
- {
- set
- {
- right = value;
- }
- get
- {
- return right;
- }
- }
-
- ///< The Bottom value
- public float Bottom
- {
- set
- {
- bottom = value;
- }
- get
- {
- return bottom;
- }
- }
-
- ///< The Top value
- public float Top
- {
- set
- {
- top = value;
- }
- get
- {
- return top;
- }
- }
-
-%}
-
-%enddef
-
-namespace Dali
-{
- DALI_PADDINGTYPE_PROPERTY_PARAM( Dali, Rect<float>);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define PAGETURNVIEW_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define PAGETURNVIEW_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class PagePanStartedEventArgs : EventArgs
-{
- private PageTurnView _pageTurnView;
-
- public PageTurnView PageTurnView
- {
- get
- {
- return _pageTurnView;
- }
- set
- {
- _pageTurnView = value;
- }
- }
-}
-
-public class PagePanFinishedEventArgs : EventArgs
-{
- private PageTurnView _pageTurnView;
-
- public PageTurnView PageTurnView
- {
- get
- {
- return _pageTurnView;
- }
- set
- {
- _pageTurnView = value;
- }
- }
-}
-
-public class PageTurnStartedEventArgs : EventArgs
-{
- private PageTurnView _pageTurnView;
- private uint _pageIndex;
- private bool _isTurningForward;
-
- public PageTurnView PageTurnView
- {
- get
- {
- return _pageTurnView;
- }
- set
- {
- _pageTurnView = value;
- }
- }
-
- public uint PageIndex
- {
- get
- {
- return _pageIndex;
- }
- set
- {
- _pageIndex = value;
- }
- }
-
- public bool IsTurningForward
- {
- get
- {
- return _isTurningForward;
- }
- set
- {
- _isTurningForward = value;
- }
- }
-
-}
-
-public class PageTurnFinishedEventArgs : EventArgs
-{
- private PageTurnView _pageTurnView;
- private uint _pageIndex;
- private bool _isTurningForward;
-
- public PageTurnView PageTurnView
- {
- get
- {
- return _pageTurnView;
- }
- set
- {
- _pageTurnView = value;
- }
- }
-
- public uint PageIndex
- {
- get
- {
- return _pageIndex;
- }
- set
- {
- _pageIndex = value;
- }
- }
-
- public bool IsTurningForward
- {
- get
- {
- return _isTurningForward;
- }
- set
- {
- _isTurningForward = value;
- }
- }
-
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void PagePanStartedCallbackDelegate(IntPtr page);
- private DaliEventHandler<object,PagePanStartedEventArgs> _pageTurnViewPagePanStartedEventHandler;
- private PagePanStartedCallbackDelegate _pageTurnViewPagePanStartedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void PagePanFinishedCallbackDelegate(IntPtr page);
- private DaliEventHandler<object,PagePanFinishedEventArgs> _pageTurnViewPagePanFinishedEventHandler;
- private PagePanFinishedCallbackDelegate _pageTurnViewPagePanFinishedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void PageTurnStartedCallbackDelegate(IntPtr page, uint pageIndex, bool isTurningForward);
- private DaliEventHandler<object,PageTurnStartedEventArgs> _pageTurnViewPageTurnStartedEventHandler;
- private PageTurnStartedCallbackDelegate _pageTurnViewPageTurnStartedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void PageTurnFinishedCallbackDelegate(IntPtr page, uint pageIndex, bool isTurningForward);
- private DaliEventHandler<object,PageTurnFinishedEventArgs> _pageTurnViewPageTurnFinishedEventHandler;
- private PageTurnFinishedCallbackDelegate _pageTurnViewPageTurnFinishedCallbackDelegate;
-
- public event DaliEventHandler<object,PagePanStartedEventArgs> PagePanStarted
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_pageTurnViewPagePanStartedEventHandler == null)
- {
- _pageTurnViewPagePanStartedEventHandler += value;
-
- _pageTurnViewPagePanStartedCallbackDelegate = new PagePanStartedCallbackDelegate(OnPagePanStarted);
- this.PagePanStartedSignal().Connect(_pageTurnViewPagePanStartedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_pageTurnViewPagePanStartedEventHandler != null)
- {
- this.PagePanStartedSignal().Disconnect(_pageTurnViewPagePanStartedCallbackDelegate);
- }
-
- _pageTurnViewPagePanStartedEventHandler -= value;
- }
- }
- }
-
- // Callback for PageTurnView PagePanStarted signal
- private void OnPagePanStarted(IntPtr page)
- {
- PagePanStartedEventArgs e = new PagePanStartedEventArgs();
-
- // Populate all members of "e" (PagePanStartedEventArgs) with real page
- e.PageTurnView = PageTurnView.GetPageTurnViewFromPtr( page );
-
- if (_pageTurnViewPagePanStartedEventHandler != null)
- {
- //here we send all page to user event handlers
- _pageTurnViewPagePanStartedEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,PagePanFinishedEventArgs> PagePanFinished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_pageTurnViewPagePanFinishedEventHandler == null)
- {
- _pageTurnViewPagePanFinishedEventHandler += value;
-
- _pageTurnViewPagePanFinishedCallbackDelegate = new PagePanFinishedCallbackDelegate(OnPagePanFinished);
- this.PagePanFinishedSignal().Connect(_pageTurnViewPagePanFinishedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_pageTurnViewPagePanFinishedEventHandler != null)
- {
- this.PagePanFinishedSignal().Disconnect(_pageTurnViewPagePanFinishedCallbackDelegate);
- }
-
- _pageTurnViewPagePanFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for PageTurnView PagePanFinished signal
- private void OnPagePanFinished(IntPtr page)
- {
- PagePanFinishedEventArgs e = new PagePanFinishedEventArgs();
-
- // Populate all members of "e" (PagePanFinishedEventArgs) with real page
- e.PageTurnView = PageTurnView.GetPageTurnViewFromPtr( page );
-
- if (_pageTurnViewPagePanFinishedEventHandler != null)
- {
- //here we send all page to user event handlers
- _pageTurnViewPagePanFinishedEventHandler(this, e);
- }
- }
-
-
- public event DaliEventHandler<object,PageTurnStartedEventArgs> PageTurnStarted
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_pageTurnViewPageTurnStartedEventHandler == null)
- {
- _pageTurnViewPageTurnStartedEventHandler += value;
-
- _pageTurnViewPageTurnStartedCallbackDelegate = new PageTurnStartedCallbackDelegate(OnPageTurnStarted);
- this.PageTurnStartedSignal().Connect(_pageTurnViewPageTurnStartedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_pageTurnViewPageTurnStartedEventHandler != null)
- {
- this.PageTurnStartedSignal().Disconnect(_pageTurnViewPageTurnStartedCallbackDelegate);
- }
-
- _pageTurnViewPageTurnStartedEventHandler -= value;
- }
- }
- }
-
- // Callback for PageTurnView PageTurnStarted signal
- private void OnPageTurnStarted(IntPtr page, uint pageIndex, bool isTurningForward)
- {
- PageTurnStartedEventArgs e = new PageTurnStartedEventArgs();
-
- // Populate all members of "e" (PageTurnStartedEventArgs) with real page
- e.PageTurnView = PageTurnView.GetPageTurnViewFromPtr( page );
- e.PageIndex = pageIndex;
- e.IsTurningForward = isTurningForward;
-
-
- if (_pageTurnViewPageTurnStartedEventHandler != null)
- {
- //here we send all page to user event handlers
- _pageTurnViewPageTurnStartedEventHandler(this, e);
- }
- }
-
-
- public event DaliEventHandler<object,PageTurnFinishedEventArgs> PageTurnFinished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_pageTurnViewPageTurnFinishedEventHandler == null)
- {
- _pageTurnViewPageTurnFinishedEventHandler += value;
-
- _pageTurnViewPageTurnFinishedCallbackDelegate = new PageTurnFinishedCallbackDelegate(OnPageTurnFinished);
- this.PageTurnFinishedSignal().Connect(_pageTurnViewPageTurnFinishedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_pageTurnViewPageTurnFinishedEventHandler != null)
- {
- this.PageTurnFinishedSignal().Disconnect(_pageTurnViewPageTurnFinishedCallbackDelegate);
- }
-
- _pageTurnViewPageTurnFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for PageTurnView PageTurnFinished signal
- private void OnPageTurnFinished(IntPtr page, uint pageIndex, bool isTurningForward)
- {
- PageTurnFinishedEventArgs e = new PageTurnFinishedEventArgs();
-
- // Populate all members of "e" (PageTurnFinishedEventArgs) with real page
- e.PageTurnView = PageTurnView.GetPageTurnViewFromPtr( page );
- e.PageIndex = pageIndex;
- e.IsTurningForward = isTurningForward;
-
-
- if (_pageTurnViewPageTurnFinishedEventHandler != null)
- {
- //here we send all page to user event handlers
- _pageTurnViewPageTurnFinishedEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_PAGETURNVIEW_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- PAGETURNVIEW_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- PAGETURNVIEW_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_PAGETURNVIEW_EVENTHANDLER_PARAM( Dali::Toolkit, PageTurnView);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define PANGESTURE_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define PANGESTURE_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class DetectedEventArgs : EventArgs
-{
- private Actor _actor;
- private PanGesture _panGesture;
-
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-
- public PanGesture PanGesture
- {
- get
- {
- return _panGesture;
- }
- set
- {
- _panGesture = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr panGesture);
- private DaliEventHandler<object,DetectedEventArgs> _panGestureEventHandler;
- private DetectedCallbackDelegate _panGestureCallbackDelegate;
-
-
- public event DaliEventHandler<object,DetectedEventArgs> Detected
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_panGestureEventHandler == null)
- {
- _panGestureEventHandler += value;
-
- _panGestureCallbackDelegate = new DetectedCallbackDelegate(OnPanGestureDetected);
- this.DetectedSignal().Connect(_panGestureCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_panGestureEventHandler != null)
- {
- this.DetectedSignal().Disconnect(_panGestureCallbackDelegate);
- }
-
- _panGestureEventHandler -= value;
- }
- }
- }
-
- private void OnPanGestureDetected(IntPtr actor, IntPtr panGesture)
- {
- DetectedEventArgs e = new DetectedEventArgs();
-
- // Populate all members of "e" (PanGestureEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
- e.PanGesture = Dali.PanGesture.GetPanGestureFromPtr(panGesture);
-
- if (_panGestureEventHandler != null)
- {
- //here we send all data to user event handlers
- _panGestureEventHandler(this, e);
- }
-
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_PANGESTURE_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- PANGESTURE_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- PANGESTURE_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_PANGESTURE_EVENTHANDLER_PARAM( Dali, PanGestureDetector);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define PINCHGESTURE_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define PINCHGESTURE_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class DetectedEventArgs : EventArgs
-{
- private Actor _actor;
- private PinchGesture _pinchGesture;
-
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-
- public PinchGesture PinchGesture
- {
- get
- {
- return _pinchGesture;
- }
- set
- {
- _pinchGesture = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr pinchGesture);
- private DaliEventHandler<object,DetectedEventArgs> _pinchGestureEventHandler;
- private DetectedCallbackDelegate _pinchGestureCallbackDelegate;
-
-
- public event DaliEventHandler<object,DetectedEventArgs> Detected
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_pinchGestureEventHandler == null)
- {
- _pinchGestureEventHandler += value;
-
- _pinchGestureCallbackDelegate = new DetectedCallbackDelegate(OnPinchGestureDetected);
- this.DetectedSignal().Connect(_pinchGestureCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_pinchGestureEventHandler != null)
- {
- this.DetectedSignal().Disconnect(_pinchGestureCallbackDelegate);
- }
-
- _pinchGestureEventHandler -= value;
- }
- }
- }
-
- private void OnPinchGestureDetected(IntPtr actor, IntPtr pinchGesture)
- {
- DetectedEventArgs e = new DetectedEventArgs();
-
- // Populate all members of "e" (DetectedEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
- e.PinchGesture = Dali.PinchGesture.GetPinchGestureFromPtr(pinchGesture);
-
- if (_pinchGestureEventHandler != null)
- {
- //here we send all data to user event handlers
- _pinchGestureEventHandler(this, e);
- }
-
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_PINCHGESTURE_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- PINCHGESTURE_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- PINCHGESTURE_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_PINCHGESTURE_EVENTHANDLER_PARAM( Dali, PinchGestureDetector);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define POPUP_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-
-%define POPUP_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
- public class OutsideTouchedEventArgs : EventArgs
- {
- }
-
- public class ShowingEventArgs : EventArgs
- {
- }
-
- public class ShownEventArgs : EventArgs
- {
- }
-
- public class HidingEventArgs : EventArgs
- {
- }
-
- public class HiddenEventArgs : EventArgs
- {
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OutsideTouchedEventCallbackDelegate();
- private DaliEventHandler<object,OutsideTouchedEventArgs> _popUpOutsideTouchedEventHandler;
- private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ShowingEventCallbackDelegate();
- private DaliEventHandler<object,ShowingEventArgs> _popUpShowingEventHandler;
- private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ShownEventCallbackDelegate();
- private DaliEventHandler<object,ShownEventArgs> _popUpShownEventHandler;
- private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void HidingEventCallbackDelegate();
- private DaliEventHandler<object,HidingEventArgs> _popUpHidingEventHandler;
- private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void HiddenEventCallbackDelegate();
- private DaliEventHandler<object,HiddenEventArgs> _popUpHiddenEventHandler;
- private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
-
- public event DaliEventHandler<object,OutsideTouchedEventArgs> OutsideTouched
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_popUpOutsideTouchedEventHandler == null)
- {
- _popUpOutsideTouchedEventHandler += value;
-
- _popUpOutsideTouchedEventCallbackDelegate = new OutsideTouchedEventCallbackDelegate(OnOutsideTouched);
- this.OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_popUpOutsideTouchedEventHandler != null)
- {
- this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
- }
-
- _popUpOutsideTouchedEventHandler -= value;
- }
- }
- }
-
- // Callback for Popup OutsideTouchedSignal
- private void OnOutsideTouched()
- {
- OutsideTouchedEventArgs e = new OutsideTouchedEventArgs();
-
- if (_popUpOutsideTouchedEventHandler != null)
- {
- //here we send all data to user event handlers
- _popUpOutsideTouchedEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,ShowingEventArgs> Showing
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_popUpShowingEventHandler == null)
- {
- _popUpShowingEventHandler += value;
-
- _popUpShowingEventCallbackDelegate = new ShowingEventCallbackDelegate(OnShowing);
- this.ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_popUpShowingEventHandler != null)
- {
- this.ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
- }
-
- _popUpShowingEventHandler -= value;
- }
- }
- }
-
- // Callback for ShowingSignal
- private void OnShowing()
- {
- ShowingEventArgs e = new ShowingEventArgs();
-
- if (_popUpShowingEventHandler != null)
- {
- //here we send all data to user event handlers
- _popUpShowingEventHandler(this, e);
- }
- }
-
-
- public event DaliEventHandler<object,ShownEventArgs> Shown
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_popUpShownEventHandler == null)
- {
- _popUpShownEventHandler += value;
-
- _popUpShownEventCallbackDelegate = new ShownEventCallbackDelegate(OnShown);
- this.ShownSignal().Connect(_popUpShownEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_popUpShownEventHandler != null)
- {
- this.ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
- }
-
- _popUpShownEventHandler -= value;
- }
- }
- }
-
- // Callback for ShownSignal
- private void OnShown()
- {
- ShownEventArgs e = new ShownEventArgs();
-
- if (_popUpShownEventHandler != null)
- {
- //here we send all data to user event handlers
- _popUpShownEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,HidingEventArgs> Hiding
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_popUpHidingEventHandler == null)
- {
- _popUpHidingEventHandler += value;
-
- _popUpHidingEventCallbackDelegate = new HidingEventCallbackDelegate(OnHiding);
- this.HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_popUpHidingEventHandler != null)
- {
- this.HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
- }
-
- _popUpHidingEventHandler -= value;
- }
- }
- }
-
- // Callback for HidingSignal
- private void OnHiding()
- {
- HidingEventArgs e = new HidingEventArgs();
-
- if (_popUpHidingEventHandler != null)
- {
- //here we send all data to user event handlers
- _popUpHidingEventHandler(this, e);
- }
- }
-
- public event DaliEventHandler<object,HiddenEventArgs> Hidden
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_popUpHiddenEventHandler == null)
- {
- _popUpHiddenEventHandler += value;
-
- _popUpHiddenEventCallbackDelegate = new HiddenEventCallbackDelegate(OnHidden);
- this.HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_popUpHiddenEventHandler != null)
- {
- this.HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
- }
-
- _popUpHiddenEventHandler -= value;
- }
- }
- }
-
- // Callback for HiddenSignal
- private void OnHidden()
- {
- HiddenEventArgs e = new HiddenEventArgs();
-
- if (_popUpHiddenEventHandler != null)
- {
- //here we send all data to user event handlers
- _popUpHiddenEventHandler(this, e);
- }
- }
-%}
-%enddef
-
-%define DALI_POPUP_EVENTHANDLER_PARAM( NameSpace, ClassName)
- POPUP_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- POPUP_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_POPUP_EVENTHANDLER_PARAM( Dali::Toolkit, Popup);
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define PROGRESS_BAR_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define PROGRESS_BAR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class ValueChangedEventArgs : EventArgs
-{
- private ProgressBar _progressBar;
- private float _progressValue;
- private float _secondaryProgressValue;
-
- public ProgressBar ProgressBar
- {
- get
- {
- return _progressBar;
- }
- set
- {
- _progressBar = value;
- }
- }
-
- public float ProgressValue
- {
- get
- {
- return _progressValue;
- }
- set
- {
- _progressValue = value;
- }
- }
-
- public float SecondaryProgressValue
- {
- get
- {
- return _secondaryProgressValue;
- }
- set
- {
- _secondaryProgressValue = value;
- }
- }
-
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ValueChangedCallbackDelegate(IntPtr progressBar, float progressValue, float secondaryProgressValue);
- private DaliEventHandler<object,ValueChangedEventArgs> _progressBarValueChangedEventHandler;
- private ValueChangedCallbackDelegate _progressBarValueChangedCallbackDelegate;
-
- public event DaliEventHandler<object,ValueChangedEventArgs> ValueChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_progressBarValueChangedEventHandler == null)
- {
- _progressBarValueChangedEventHandler += value;
-
- _progressBarValueChangedCallbackDelegate = new ValueChangedCallbackDelegate(OnValueChanged);
- this.ValueChangedSignal().Connect(_progressBarValueChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_progressBarValueChangedEventHandler != null)
- {
- this.ValueChangedSignal().Disconnect(_progressBarValueChangedCallbackDelegate);
- }
-
- _progressBarValueChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for ProgressBar ValueChanged signal
- private void OnValueChanged(IntPtr progressBar, float progressValue, float secondaryProgressValue)
- {
- ValueChangedEventArgs e = new ValueChangedEventArgs();
-
- // Populate all members of "e" (ValueChangedEventArgs) with real page
- e.ProgressBar = ProgressBar.GetProgressBarFromPtr( progressBar );
- e.ProgressValue = progressValue;
- e.SecondaryProgressValue = secondaryProgressValue;
-
- if (_progressBarValueChangedEventHandler != null)
- {
- _progressBarValueChangedEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_PROGRESS_BAR_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- PROGRESS_BAR_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- PROGRESS_BAR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_PROGRESS_BAR_EVENTHANDLER_PARAM( Dali::Toolkit, ProgressBar);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define PROPERTYNOTIFICATION_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-
-%define PROPERTYNOTIFICATION_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-/**
- * @brief Event arguments that passed via Notify signal
- *
- */
-public class NotifyEventArgs : EventArgs
-{
- private PropertyNotification _propertyNotification;
-
- /**
- * @brief PropertyNotification - is the PropertyNotification handle that has the notification properties.
- *
- */
- public PropertyNotification PropertyNotification
- {
- get
- {
- return _propertyNotification;
- }
- set
- {
- _propertyNotification = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NotifyEventCallbackDelegate(IntPtr propertyNotification);
- private DaliEventHandler<object,NotifyEventArgs> _propertyNotificationNotifyEventHandler;
- private NotifyEventCallbackDelegate _propertyNotificationNotifyEventCallbackDelegate;
-
- /**
- * @brief Event for Notified signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NotifyEventHandler-DaliEventHandler<object,NotifyEventArgs>) provided by the user.
- * Notified signal is emitted when the notification upon a condition of the property being met, has occurred.
- */
- public event DaliEventHandler<object,NotifyEventArgs> Notified
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_propertyNotificationNotifyEventHandler == null)
- {
- _propertyNotificationNotifyEventHandler += value;
-
- _propertyNotificationNotifyEventCallbackDelegate = new NotifyEventCallbackDelegate(OnPropertyNotificationNotify);
- this.NotifySignal().Connect(_propertyNotificationNotifyEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_propertyNotificationNotifyEventHandler != null)
- {
- this.NotifySignal().Disconnect(_propertyNotificationNotifyEventCallbackDelegate);
- }
-
- _propertyNotificationNotifyEventHandler -= value;
- }
- }
- }
-
- // Callback for PropertyNotification NotifySignal
- private void OnPropertyNotificationNotify(IntPtr propertyNotification)
- {
- NotifyEventArgs e = new NotifyEventArgs();
- e.PropertyNotification = GetPropertyNotificationFromPtr(propertyNotification);
-
- if (_propertyNotificationNotifyEventHandler != null)
- {
- //here we send all data to user event handlers
- _propertyNotificationNotifyEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-%enddef
-
-%define DALI_PROPERTYNOTIFICATION_EVENTHANDLER_PARAM( NameSpace, ClassName)
- PROPERTYNOTIFICATION_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- PROPERTYNOTIFICATION_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_PROPERTYNOTIFICATION_EVENTHANDLER_PARAM( Dali, PropertyNotification);
-}
-
+++ /dev/null
-/*
- * 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.
- *
- */
-%csmethodmodifiers Dali::Rect<int>::x "private";
-%csmethodmodifiers Dali::Rect<int>::y "private";
-%csmethodmodifiers Dali::Rect<int>::left "private";
-%csmethodmodifiers Dali::Rect<int>::right "private";
-%csmethodmodifiers Dali::Rect<int>::width "private";
-%csmethodmodifiers Dali::Rect<int>::bottom "private";
-%csmethodmodifiers Dali::Rect<int>::height "private";
-%csmethodmodifiers Dali::Rect<int>::top "private";
-
-%define DALI_RECTANGLE_PROPERTY_PARAM(NameSpace,ClassName)
- %typemap(cscode) NameSpace::ClassName %{
- public Rectangle(float x, float y, float width, float height) : this( (int)x, (int)y, (int)width, (int)height )
- {
- }
-
- public static bool operator ==(Rectangle a, Rectangle b)
- {
- // If both are null, or both are same instance, return true.
- if (System.Object.ReferenceEquals(a, b))
- {
- return true;
- }
-
- // If one is null, but not both, return false.
- if (((object)a == null) || ((object)b == null))
- {
- return false;
- }
-
- // Return true if the fields match:
- return a.X == b.X && a.Y == b.Y && a.Width == b.Width && a.Height == b.Height;
- }
-
- public static bool operator !=(Rectangle a, Rectangle b)
- {
- return !(a == b);
- }
-
- ///< X position of the rectangle, values after the decimal point are ignored, float type provided for convenience.
- public float X
- {
- set
- {
- x = (int)( value );
- }
- get
- {
- return x;
- }
- }
-
- ///< Y position of the rectangle, values after the decimal point are ignored, float type provided for convenience.
- public float Y
- {
- set
- {
- y = (int)( value );
- }
- get
- {
- return y;
- }
- }
-
- ///< Width of the rectangle, values after the decimal point are ignored, float type provided for convenience.
- public float Width
- {
- set
- {
- width = (int)( value );
- }
- get
- {
- return width;
- }
- }
-
- ///< Height of the rectangle, values after the decimal point are ignored, float type provided for convenience.
- public float Height
- {
- set
- {
- height = (int)( value );
- }
- get
- {
- return height;
- }
- }
-%}
-
-%enddef
-
-namespace Dali
-{
- DALI_RECTANGLE_PROPERTY_PARAM( Dali, Rect<int>);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define RenderTask_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define RenderTask_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class FinishedEventArgs : EventArgs
-{
- private RenderTask _renderTask;
-
- public RenderTask RenderTask
- {
- get
- {
- return _renderTask;
- }
- set
- {
- _renderTask = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void RenderTaskCallbackDelegate(IntPtr renderTask);
- private DaliEventHandler<object,FinishedEventArgs> _renderTaskEventHandler;
- private RenderTaskCallbackDelegate _renderTaskCallbackDelegate;
-
-
- public event DaliEventHandler<object,FinishedEventArgs> Finished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_renderTaskEventHandler == null)
- {
- _renderTaskEventHandler += value;
-
- _renderTaskCallbackDelegate = new RenderTaskCallbackDelegate(OnFinished);
- this.FinishedSignal().Connect(_renderTaskCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_renderTaskEventHandler != null)
- {
- this.FinishedSignal().Disconnect(_renderTaskCallbackDelegate);
- }
-
- _renderTaskEventHandler -= value;
- }
- }
- }
-
- private void OnFinished(IntPtr actor, IntPtr renderTask)
- {
- FinishedEventArgs e = new FinishedEventArgs();
-
- // Populate all members of "e" (FinishedEventArgs) with real data
- e.RenderTask = Dali.RenderTask.GetRenderTaskFromPtr(renderTask);
-
- if (_renderTaskEventHandler != null)
- {
- //here we send all data to user event handlers
- _renderTaskEventHandler(this, e);
- }
-
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_renderTask_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- RenderTask_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- RenderTask_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_renderTask_EVENTHANDLER_PARAM( Dali, RenderTask);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define ResourceImage_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define ResourceImage_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class LoadingFinishedEventArgs : EventArgs
-{
- private ResourceImage _resourceImage;
-
- public ResourceImage ResourceImage
- {
- get
- {
- return _resourceImage;
- }
- set
- {
- _resourceImage = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void LoadingFinishedEventCallbackDelegate(IntPtr ResourceImage);
- private DaliEventHandler<object,LoadingFinishedEventArgs> _resourceImageLoadingFinishedEventHandler;
- private LoadingFinishedEventCallbackDelegate _resourceImageLoadingFinishedEventCallbackDelegate;
-
- public event DaliEventHandler<object,LoadingFinishedEventArgs> LoadingFinished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_resourceImageLoadingFinishedEventHandler == null)
- {
- _resourceImageLoadingFinishedEventHandler += value;
-
- _resourceImageLoadingFinishedEventCallbackDelegate = new LoadingFinishedEventCallbackDelegate(OnLoadingFinished);
- this.LoadingFinishedSignal().Connect(_resourceImageLoadingFinishedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_resourceImageLoadingFinishedEventHandler != null)
- {
- this.LoadingFinishedSignal().Disconnect(_resourceImageLoadingFinishedEventCallbackDelegate);
- }
-
- _resourceImageLoadingFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for ResourceImage LoadingFinishedSignal
- private void OnLoadingFinished(IntPtr data)
- {
- LoadingFinishedEventArgs e = new LoadingFinishedEventArgs();
-
- // Populate all members of "e" (LoadingFinishedEventArgs) with real data
- e.ResourceImage = ResourceImage.GetResourceImageFromPtr(data);
-
- if (_resourceImageLoadingFinishedEventHandler != null)
- {
- //here we send all data to user event handlers
- _resourceImageLoadingFinishedEventHandler(this, e);
- }
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_resourceImage_EVENTHANDLER_PARAM( NameSpace, ClassName)
- ResourceImage_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- ResourceImage_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_resourceImage_EVENTHANDLER_PARAM( Dali, ResourceImage);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define SCROLLABLE_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define SCROLLABLE_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class StartedEventArgs : EventArgs
-{
- private Vector2 _vector2;
-
- public Vector2 Vector2
- {
- get
- {
- return _vector2;
- }
- set
- {
- _vector2 = value;
- }
- }
-}
-
-public class UpdatedEventArgs : EventArgs
-{
- private Vector2 _vector2;
-
- public Vector2 Vector2
- {
- get
- {
- return _vector2;
- }
- set
- {
- _vector2 = value;
- }
- }
-}
-
-public class CompletedEventArgs : EventArgs
-{
- private Vector2 _vector2;
-
- public Vector2 Vector2
- {
- get
- {
- return _vector2;
- }
- set
- {
- _vector2 = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void StartedCallbackDelegate(IntPtr vector2);
- private DaliEventHandler<object,StartedEventArgs> _scrollableStartedEventHandler;
- private StartedCallbackDelegate _scrollableStartedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void UpdatedCallbackDelegate(IntPtr vector2);
- private DaliEventHandler<object,UpdatedEventArgs> _scrollableUpdatedEventHandler;
- private UpdatedCallbackDelegate _scrollableUpdatedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void CompletedCallbackDelegate(IntPtr vector2);
- private DaliEventHandler<object,CompletedEventArgs> _scrollableCompletedEventHandler;
- private CompletedCallbackDelegate _scrollableCompletedCallbackDelegate;
-
- public event DaliEventHandler<object,StartedEventArgs> ScrollStarted
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollableStartedEventHandler == null)
- {
- _scrollableStartedEventHandler += value;
-
- _scrollableStartedCallbackDelegate = new StartedCallbackDelegate(OnStarted);
- this.ScrollStartedSignal().Connect(_scrollableStartedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollableStartedEventHandler != null)
- {
- this.ScrollStartedSignal().Disconnect(_scrollableStartedCallbackDelegate);
- }
-
- _scrollableStartedEventHandler -= value;
- }
- }
- }
-
- private void OnStarted(IntPtr vector2)
- {
- StartedEventArgs e = new StartedEventArgs();
-
- // Populate all members of "e" (StartedEventArgs) with real data
- e.Vector2 = Dali.Vector2.GetVector2FromPtr(vector2);
-
- if (_scrollableStartedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollableStartedEventHandler(this, e);
- }
-
- }
-
- public event DaliEventHandler<object,UpdatedEventArgs> ScrollUpdated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollableUpdatedEventHandler == null)
- {
- _scrollableUpdatedEventHandler += value;
-
- _scrollableUpdatedCallbackDelegate = new UpdatedCallbackDelegate(OnUpdated);
- this.ScrollUpdatedSignal().Connect(_scrollableUpdatedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollableUpdatedEventHandler != null)
- {
- this.ScrollUpdatedSignal().Disconnect(_scrollableUpdatedCallbackDelegate);
- }
-
- _scrollableUpdatedEventHandler -= value;
- }
- }
- }
-
- private void OnUpdated(IntPtr vector2)
- {
- UpdatedEventArgs e = new UpdatedEventArgs();
-
- // Populate all members of "e" (UpdatedEventArgs) with real data
- e.Vector2 = Dali.Vector2.GetVector2FromPtr(vector2);
-
- if (_scrollableUpdatedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollableUpdatedEventHandler(this, e);
- }
-
- }
-
- public event DaliEventHandler<object,CompletedEventArgs> ScrollCompleted
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollableCompletedEventHandler == null)
- {
- _scrollableCompletedEventHandler += value;
-
- _scrollableCompletedCallbackDelegate = new CompletedCallbackDelegate(OnCompleted);
- this.ScrollCompletedSignal().Connect(_scrollableCompletedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollableCompletedEventHandler != null)
- {
- this.ScrollCompletedSignal().Disconnect(_scrollableCompletedCallbackDelegate);
- }
-
- _scrollableCompletedEventHandler -= value;
- }
- }
- }
-
- private void OnCompleted(IntPtr vector2)
- {
- CompletedEventArgs e = new CompletedEventArgs();
-
- // Populate all members of "e" (CompletedEventArgs) with real data
- e.Vector2 = Dali.Vector2.GetVector2FromPtr(vector2);
-
- if (_scrollableCompletedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollableCompletedEventHandler(this, e);
- }
-
- }
-
-%}
-
-%enddef
-
-%define DALI_SCROLLABLE_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- SCROLLABLE_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- SCROLLABLE_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_SCROLLABLE_EVENTHANDLER_PARAM( Dali::Toolkit, Scrollable);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define SCROLLBAR_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-
-%define SCROLLBAR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class PanFinishedEventArgs : EventArgs
-{
-}
-
-public class ScrollPositionIntervalReachedEventArgs : EventArgs
-{
- private float _currentScrollPosition;
-
- public float CurrentScrollPosition
- {
- get
- {
- return _currentScrollPosition;
- }
- set
- {
- _currentScrollPosition = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void PanFinishedEventCallbackDelegate();
- private DaliEventHandler<object,PanFinishedEventArgs> _scrollBarPanFinishedEventHandler;
- private PanFinishedEventCallbackDelegate _scrollBarPanFinishedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ScrollPositionIntervalReachedEventCallbackDelegate();
- private DaliEventHandler<object,ScrollPositionIntervalReachedEventArgs> _scrollBarScrollPositionIntervalReachedEventHandler;
- private ScrollPositionIntervalReachedEventCallbackDelegate _scrollBarScrollPositionIntervalReachedEventCallbackDelegate;
-
- public event DaliEventHandler<object,PanFinishedEventArgs> PanFinished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollBarPanFinishedEventHandler == null)
- {
- _scrollBarPanFinishedEventHandler += value;
-
- _scrollBarPanFinishedEventCallbackDelegate = new PanFinishedEventCallbackDelegate(OnScrollBarPanFinished);
- this.PanFinishedSignal().Connect(_scrollBarPanFinishedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollBarPanFinishedEventHandler != null)
- {
- this.PanFinishedSignal().Disconnect(_scrollBarPanFinishedEventCallbackDelegate);
- }
-
- _scrollBarPanFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for ScrollBar PanFinishedSignal
- private void OnScrollBarPanFinished()
- {
- PanFinishedEventArgs e = new PanFinishedEventArgs();
-
- if (_scrollBarPanFinishedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollBarPanFinishedEventHandler(this, e);
- }
- }
-
-
- public event DaliEventHandler<object,ScrollPositionIntervalReachedEventArgs> ScrollPositionIntervalReached
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollBarScrollPositionIntervalReachedEventHandler == null)
- {
- _scrollBarScrollPositionIntervalReachedEventHandler += value;
-
- _scrollBarScrollPositionIntervalReachedEventCallbackDelegate = new ScrollPositionIntervalReachedEventCallbackDelegate(OnScrollBarScrollPositionIntervalReached);
- this.ScrollPositionIntervalReachedSignal().Connect(_scrollBarScrollPositionIntervalReachedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollBarScrollPositionIntervalReachedEventHandler != null)
- {
- this.ScrollPositionIntervalReachedSignal().Disconnect(_scrollBarScrollPositionIntervalReachedEventCallbackDelegate);
- }
-
- _scrollBarScrollPositionIntervalReachedEventHandler -= value;
- }
- }
- }
-
- // Callback for ScrollBar ScrollPositionIntervalReachedSignal
- private void OnScrollBarScrollPositionIntervalReached()
- {
- ScrollPositionIntervalReachedEventArgs e = new ScrollPositionIntervalReachedEventArgs();
-
- if (_scrollBarScrollPositionIntervalReachedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollBarScrollPositionIntervalReachedEventHandler(this, e);
- }
- }
-
-%}
-%enddef
-
-%define DALI_SCROLLBAR_EVENTHANDLER_PARAM( NameSpace, ClassName)
- SCROLLBAR_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- SCROLLBAR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-%enddef
-
-namespace Dali
-{
- DALI_SCROLLBAR_EVENTHANDLER_PARAM( Dali::Toolkit, ScrollBar);
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define SCROLLVIEW_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define SCROLLVIEW_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-/**
- * @brief Event arguments that passed via SnapStarted signal
- *
- */
-public class SnapStartedEventArgs : EventArgs
-{
- private Dali.ScrollView.SnapEvent _snapEvent;
-
- /**
- * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
- *
- */
- public Dali.ScrollView.SnapEvent SnapEventInfo
- {
- get
- {
- return _snapEvent;
- }
- set
- {
- _snapEvent = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void SnapStartedCallbackDelegate(IntPtr data);
- private DaliEventHandler<object,SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
- private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
-
- /**
- * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
- * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
- * position, scale, rotation for the snap or flick).
- *
- */
- public event DaliEventHandler<object,SnapStartedEventArgs> SnapStarted
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_scrollViewSnapStartedEventHandler == null)
- {
- _scrollViewSnapStartedEventHandler += value;
-
- _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
- this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_scrollViewSnapStartedEventHandler != null)
- {
- this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
- }
-
- _scrollViewSnapStartedEventHandler -= value;
- }
- }
- }
-
- // Callback for ScrollView SnapStarted signal
- private void OnSnapStarted(IntPtr data)
- {
- SnapStartedEventArgs e = new SnapStartedEventArgs();
-
- // Populate all members of "e" (SnapStartedEventArgs) with real data
- e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr( data );
-
- if (_scrollViewSnapStartedEventHandler != null)
- {
- //here we send all data to user event handlers
- _scrollViewSnapStartedEventHandler(this, e);
- }
- }
-
-%}
-
-%enddef
-
-
-%define DALI_SCROLLVIEW_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- SCROLLVIEW_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- SCROLLVIEW_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_SCROLLVIEW_EVENTHANDLER_PARAM( Dali::Toolkit, ScrollView);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define SLIDER_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define SLIDER_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class ValueChangedEventArgs : EventArgs
-{
- private Slider _slider;
- private float _slideValue;
-
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- public float SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
-}
-
-public class SlidingFinishedEventArgs : EventArgs
-{
- private Slider _slider;
- private float _slideValue;
-
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- public float SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
-}
-
-public class MarkReachedEventArgs : EventArgs
-{
- private Slider _slider;
- private int _slideValue;
-
- public Slider Slider
- {
- get
- {
- return _slider;
- }
- set
- {
- _slider = value;
- }
- }
-
- public int SlideValue
- {
- get
- {
- return _slideValue;
- }
- set
- {
- _slideValue = value;
- }
- }
-}
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool ValueChangedCallbackDelegate(IntPtr slider, float slideValue);
- private DaliEventHandlerWithReturnType<object,ValueChangedEventArgs,bool> _sliderValueChangedEventHandler;
- private ValueChangedCallbackDelegate _sliderValueChangedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool SlidingFinishedCallbackDelegate(IntPtr slider, float slideValue);
- private DaliEventHandlerWithReturnType<object,SlidingFinishedEventArgs,bool> _sliderSlidingFinishedEventHandler;
- private SlidingFinishedCallbackDelegate _sliderSlidingFinishedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool MarkReachedCallbackDelegate(IntPtr slider, int slideValue);
- private DaliEventHandlerWithReturnType<object,MarkReachedEventArgs,bool> _sliderMarkReachedEventHandler;
- private MarkReachedCallbackDelegate _sliderMarkReachedCallbackDelegate;
-
- public event DaliEventHandlerWithReturnType<object,ValueChangedEventArgs,bool> ValueChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_sliderValueChangedEventHandler == null)
- {
- _sliderValueChangedEventHandler += value;
-
- _sliderValueChangedCallbackDelegate = new ValueChangedCallbackDelegate(OnValueChanged);
- this.ValueChangedSignal().Connect(_sliderValueChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_sliderValueChangedEventHandler != null)
- {
- this.ValueChangedSignal().Disconnect(_sliderValueChangedCallbackDelegate);
- }
-
- _sliderValueChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for Slider ValueChanged signal
- private bool OnValueChanged(IntPtr slider, float slideValue)
- {
- ValueChangedEventArgs e = new ValueChangedEventArgs();
-
- // Populate all members of "e" (ValueChangedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr( slider );
- e.SlideValue = slideValue;
-
- if (_sliderValueChangedEventHandler != null)
- {
- //here we send all page to user event handlers
- return _sliderValueChangedEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,SlidingFinishedEventArgs,bool> SlidingFinished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_sliderSlidingFinishedEventHandler == null)
- {
- _sliderSlidingFinishedEventHandler += value;
-
- _sliderSlidingFinishedCallbackDelegate = new SlidingFinishedCallbackDelegate(OnSlidingFinished);
- this.SlidingFinishedSignal().Connect(_sliderSlidingFinishedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_sliderSlidingFinishedEventHandler != null)
- {
- this.SlidingFinishedSignal().Disconnect(_sliderSlidingFinishedCallbackDelegate);
- }
-
- _sliderSlidingFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for Slider SlidingFinished signal
- private bool OnSlidingFinished(IntPtr slider, float slideValue)
- {
- SlidingFinishedEventArgs e = new SlidingFinishedEventArgs();
-
- // Populate all members of "e" (SlidingFinishedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr( slider );
- e.SlideValue = slideValue;
-
- if (_sliderSlidingFinishedEventHandler != null)
- {
- //here we send all page to user event handlers
- return _sliderSlidingFinishedEventHandler(this, e);
- }
- return false;
- }
-
- public event DaliEventHandlerWithReturnType<object,MarkReachedEventArgs,bool> MarkReached
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_sliderMarkReachedEventHandler == null)
- {
- _sliderMarkReachedEventHandler += value;
-
- _sliderMarkReachedCallbackDelegate = new MarkReachedCallbackDelegate(OnMarkReached);
- this.MarkReachedSignal().Connect(_sliderMarkReachedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_sliderMarkReachedEventHandler != null)
- {
- this.MarkReachedSignal().Disconnect(_sliderMarkReachedCallbackDelegate);
- }
-
- _sliderMarkReachedEventHandler -= value;
- }
- }
- }
-
- // Callback for Slider MarkReached signal
- private bool OnMarkReached(IntPtr slider, int slideValue)
- {
- MarkReachedEventArgs e = new MarkReachedEventArgs();
-
- // Populate all members of "e" (MarkReachedEventArgs) with real page
- e.Slider = Slider.GetSliderFromPtr( slider );
- e.SlideValue = slideValue;
-
- if (_sliderMarkReachedEventHandler != null)
- {
- //here we send all page to user event handlers
- return _sliderMarkReachedEventHandler(this, e);
- }
- return false;
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_SLIDER_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- SLIDER_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- SLIDER_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_SLIDER_EVENTHANDLER_PARAM( Dali::Toolkit, Slider);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define STAGE_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define STAGE_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
- /**
- * @brief Event arguments that passed via Touch signal
- *
- */
- public class TouchEventArgs : EventArgs
- {
- private Touch _touch;
-
- /**
- * @brief Touch - contains the information of touch points
- *
- */
- public Touch Touch
- {
- get
- {
- return _touch;
- }
- set
- {
- _touch = value;
- }
- }
- }
-
- private event EventHandler<TouchEventArgs> _stageTouchHandler;
- private EventCallbackDelegateType1<IntPtr> _stageTouchCallbackDelegate;
-
- /**
- * @brief Event for TouchEvent signal which can be used to subscribe/unsubscribe the event handler
- * TouchEvent signal is emitted when the screen is touched and when the touch ends
- * (i.e. the down & up touch events only).
- *
- */
- public event EventHandler<TouchEventArgs> Touch
- {
- add
- {
- lock(this)
- {
- _stageTouchHandler += value;
- _stageTouchCallbackDelegate = OnStageTouch;
- this.TouchSignal().Connect(_stageTouchCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageTouchHandler != null)
- {
- this.TouchSignal().Disconnect(_stageTouchCallbackDelegate);
- }
- _stageTouchHandler -= value;
- }
- }
- }
-
- private void OnStageTouch(IntPtr data)
- {
- TouchEventArgs e = new TouchEventArgs();
-
- if( data != null )
- {
- e.Touch = Dali.Touch.GetTouchFromPtr( data );
- }
-
- if (_stageTouchHandler != null)
- {
- _stageTouchHandler(this, e);
- }
- }
-
- /**
- * @brief Wheel arguments that passed via Wheel signal
- *
- */
- public class WheelEventArgs : EventArgs
- {
- private Wheel _wheel;
-
- /**
- * @brief Wheel - store a wheel rolling type MOUSE_WHEEL or CUSTOM_WHEEL
- *
- */
- public Wheel Wheel
- {
- get
- {
- return _wheel;
- }
- set
- {
- _wheel = value;
- }
- }
- }
-
- private event EventHandler<WheelEventArgs> _stageWheelHandler;
- private EventCallbackDelegateType1<IntPtr> _stageWheelCallbackDelegate;
-
- /**
- * @brief Event for Wheel signal which can be used to subscribe/unsubscribe the event handler
- * Wheel signal is emitted is emitted when wheel event is received.
- *
- */
- public event EventHandler<WheelEventArgs> Wheel
- {
- add
- {
- lock(this)
- {
- _stageWheelHandler += value;
- _stageWheelCallbackDelegate = OnStageWheel;
- this.WheelEventSignal().Connect(_stageWheelCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageWheelHandler != null)
- {
- this.WheelEventSignal().Disconnect(_stageWheelCallbackDelegate);
- }
- _stageWheelHandler -= value;
- }
- }
- }
-
- private void OnStageWheel(IntPtr data)
- {
- WheelEventArgs e = new WheelEventArgs();
-
- if( data != null )
- {
- e.Wheel = Dali.Wheel.GetWheelFromPtr( data );
- }
-
- if (_stageWheelHandler != null)
- {
- _stageWheelHandler(this, e);
- }
- }
-
- /**
- * @brief Event arguments that passed via Key signal
- *
- */
- public class KeyEventArgs : EventArgs
- {
- private Key _key;
-
- /**
- * @brief Key - is the keyevent sent to Stage.
- *
- */
- public Key Key
- {
- get
- {
- return _key;
- }
- set
- {
- _key = value;
- }
- }
- }
-
- private event EventHandler<KeyEventArgs> _stageKeyHandler;
- private EventCallbackDelegateType1<IntPtr> _stageKeyCallbackDelegate;
-
- /**
- * @brief Event for Key signal which can be used to subscribe/unsubscribe the event handler
- * Key signal is emitted is emitted when key event is received.
- *
- */
- public event EventHandler<KeyEventArgs> Key
- {
- add
- {
- lock(this)
- {
- _stageKeyHandler += value;
- _stageKeyCallbackDelegate = OnStageKey;
- this.KeyEventSignal().Connect(_stageKeyCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageKeyHandler != null)
- {
- this.KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
- }
- _stageKeyHandler -= value;
- }
- }
- }
-
- // Callback for Stage KeyEventsignal
- private void OnStageKey(IntPtr data)
- {
- KeyEventArgs e = new KeyEventArgs();
-
- if( data != null )
- {
- e.Key = Dali.Key.GetKeyFromPtr( data );
- }
-
- if (_stageKeyHandler != null)
- {
- //here we send all data to user event handlers
- _stageKeyHandler(this, e);
- }
- }
-
-
- private event EventHandler _stageEventProcessingFinishedEventHandler;
- private EventCallbackDelegateType0 _stageEventProcessingFinishedEventCallbackDelegate;
-
- /**
- * @brief Event for EventProcessingFinished signal which can be used to subscribe/unsubscribe the event handler
- * provided by the user. EventProcessingFinished signal is emitted just after the event processing is finished.
- *
- */
- public event EventHandler EventProcessingFinished
- {
- add
- {
- lock(this)
- {
- _stageEventProcessingFinishedEventHandler += value;
- _stageEventProcessingFinishedEventCallbackDelegate = OnEventProcessingFinished;
- this.EventProcessingFinishedSignal().Connect(_stageEventProcessingFinishedEventCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageEventProcessingFinishedEventHandler != null)
- {
- this.EventProcessingFinishedSignal().Disconnect(_stageEventProcessingFinishedEventCallbackDelegate);
- }
- _stageEventProcessingFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for Stage EventProcessingFinishedSignal
- private void OnEventProcessingFinished()
- {
- if (_stageEventProcessingFinishedEventHandler != null)
- {
- _stageEventProcessingFinishedEventHandler(this, null);
- }
- }
-
-
- private EventHandler _stageContextLostEventHandler;
- private EventCallbackDelegateType0 _stageContextLostEventCallbackDelegate;
-
- /**
- * @brief Event for ContextLost signal which can be used to subscribe/unsubscribe the event handler
- * ContextLost signal is emitted when the GL context is lost (Platform specific behaviour).
- *
- */
- public event EventHandler ContextLost
- {
- add
- {
- lock(this)
- {
- _stageContextLostEventHandler += value;
- _stageContextLostEventCallbackDelegate = OnContextLost;
- this.ContextLostSignal().Connect(_stageContextLostEventCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageContextLostEventHandler != null)
- {
- this.ContextLostSignal().Disconnect(_stageContextLostEventCallbackDelegate);
- }
-
- _stageContextLostEventHandler -= value;
- }
- }
- }
-
- // Callback for Stage ContextLostSignal
- private void OnContextLost()
- {
- if (_stageContextLostEventHandler != null)
- {
- _stageContextLostEventHandler(this, null);
- }
- }
-
-
- private EventHandler _stageContextRegainedEventHandler;
- private EventCallbackDelegateType0 _stageContextRegainedEventCallbackDelegate;
-
- /**
- * @brief Event for ContextRegained signal which can be used to subscribe/unsubscribe the event handler
- * provided by the user. ContextRegained signal is emitted when the GL context is regained (Platform specific
- * behaviour).
- *
- */
- public event EventHandler ContextRegained
- {
- add
- {
- lock(this)
- {
- _stageContextRegainedEventHandler += value;
- _stageContextRegainedEventCallbackDelegate = OnContextRegained;
- this.ContextRegainedSignal().Connect(_stageContextRegainedEventCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageContextRegainedEventHandler != null)
- {
- this.ContextRegainedSignal().Disconnect(_stageContextRegainedEventCallbackDelegate);
- }
-
- _stageContextRegainedEventHandler -= value;
- }
- }
- }
-
- // Callback for Stage ContextRegainedSignal
- private void OnContextRegained()
- {
- if (_stageContextRegainedEventHandler != null)
- {
- _stageContextRegainedEventHandler(this, null);
- }
- }
-
-
- private EventHandler _stageSceneCreatedEventHandler;
- private EventCallbackDelegateType0 _stageSceneCreatedEventCallbackDelegate;
-
- /**
- * @brief Event for SceneCreated signal which can be used to subscribe/unsubscribe the event handler
- * SceneCreated signal is emitted after the initial scene is created.
- *
- */
- public event EventHandler SceneCreated
- {
- add
- {
- lock(this)
- {
- _stageSceneCreatedEventHandler += value;
- _stageSceneCreatedEventCallbackDelegate = OnSceneCreated;
- this.SceneCreatedSignal().Connect(_stageSceneCreatedEventCallbackDelegate);
- }
- }
- remove
- {
- lock(this)
- {
- if (_stageSceneCreatedEventHandler != null)
- {
- this.SceneCreatedSignal().Disconnect(_stageSceneCreatedEventCallbackDelegate);
- }
-
- _stageSceneCreatedEventHandler -= value;
- }
- }
- }
-
- // Callback for Stage SceneCreatedSignal
- private void OnSceneCreated()
- {
- if (_stageSceneCreatedEventHandler != null)
- {
- _stageSceneCreatedEventHandler(this, null);
- }
- }
-
-
- public Vector2 Size
- {
- get
- {
- Vector2 ret = GetSize();
- return ret;
- }
- }
-
- public Vector4 BackgroundColor
- {
- set
- {
- SetBackgroundColor(value);
- }
- get
- {
- Vector4 ret = GetBackgroundColor();
- return ret;
- }
- }
-
- private static readonly Stage instance = Stage.GetCurrent();
-
- public static Stage Instance
- {
- get
- {
- return instance;
- }
- }
-
- public Layer GetDefaultLayer()
- {
- return this.GetRootLayer();
- }
-
- public void AddLayer(Layer layer)
- {
- this.Add( (Actor)layer );
- }
-
- public void RemoveLayer(Layer layer)
- {
- this.Remove( (Actor)layer );
- }
-
-
-%}
-
-%enddef
-
-
-%define DALI_STAGE_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- STAGE_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- STAGE_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_STAGE_EVENTHANDLER_PARAM( Dali, Stage);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define STYLEMANAGER_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-%}
-%enddef
-
-%define STYLEMANAGER_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-/**
- * @brief Event arguments that passed via StyleChanged signal
- *
- */
-public class StyleChangedEventArgs : EventArgs
-{
- private StyleManager _styleManager;
- private Dali.StyleChangeType _styleChange;
-
- /**
- * @brief StyleManager - is the StyleManager that informs applications of system theme change,
- * and supports application theme change at runtime.
- *
- */
- public StyleManager StyleManager
- {
- get
- {
- return _styleManager;
- }
- set
- {
- _styleManager = value;
- }
- }
-
- /**
- * @brief StyleChange - contains Style change information (default font changed or
- * default font size changed or theme has changed)
- *
- */
- public Dali.StyleChangeType StyleChange
- {
- get
- {
- return _styleChange;
- }
- set
- {
- _styleChange = value;
- }
- }
-
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void StyleChangedCallbackDelegate(IntPtr styleManager, Dali.StyleChangeType styleChange);
- private DaliEventHandler<object,StyleChangedEventArgs> _styleManagerStyleChangedEventHandler;
- private StyleChangedCallbackDelegate _styleManagerStyleChangedCallbackDelegate;
-
- /**
- * @brief Event for StyleChanged signal which can be used to subscribe/unsubscribe the
- * event handler (in the type of StyleChangedEventHandler-DaliEventHandler<object,StyleChangedEventArgs>)
- * provided by the user. StyleChanged signal is is emitted after the style (e.g. theme/font change) has changed
- * and the controls have been informed.
- */
- public event DaliEventHandler<object,StyleChangedEventArgs> StyleChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_styleManagerStyleChangedEventHandler == null)
- {
- _styleManagerStyleChangedEventHandler += value;
-
- _styleManagerStyleChangedCallbackDelegate = new StyleChangedCallbackDelegate(OnStyleChanged);
- this.StyleChangedSignal().Connect(_styleManagerStyleChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_styleManagerStyleChangedEventHandler != null)
- {
- this.StyleChangedSignal().Disconnect(_styleManagerStyleChangedCallbackDelegate);
- }
-
- _styleManagerStyleChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for StyleManager StyleChangedsignal
- private void OnStyleChanged(IntPtr styleManager, Dali.StyleChangeType styleChange)
- {
- StyleChangedEventArgs e = new StyleChangedEventArgs();
-
- // Populate all members of "e" (StyleChangedEventArgs) with real data
- e.StyleManager = StyleManager.GetStyleManagerFromPtr( styleManager );
- e.StyleChange = styleChange;
-
- if (_styleManagerStyleChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _styleManagerStyleChangedEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_STYLEMANAGER_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- STYLEMANAGER_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- STYLEMANAGER_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_STYLEMANAGER_EVENTHANDLER_PARAM( Dali::Toolkit, StyleManager);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define TapGesture_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-%}
-
-%enddef
-
-%define TapGesture_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-
-public class DetectedEventArgs : EventArgs
-{
- private Actor _actor;
- private TapGesture _tapGesture;
-
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-
- public TapGesture TapGesture
- {
- get
- {
- return _tapGesture;
- }
- set
- {
- _tapGesture = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void DetectedCallbackDelegate(IntPtr actor, IntPtr TapGesture);
- private DaliEventHandler<object,DetectedEventArgs> _tapGestureEventHandler;
- private DetectedCallbackDelegate _tapGestureCallbackDelegate;
-
-
- public event DaliEventHandler<object,DetectedEventArgs> Detected
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_tapGestureEventHandler == null)
- {
- _tapGestureEventHandler += value;
-
- _tapGestureCallbackDelegate = new DetectedCallbackDelegate(OnTapGestureDetected);
- this.DetectedSignal().Connect(_tapGestureCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_tapGestureEventHandler != null)
- {
- this.DetectedSignal().Disconnect(_tapGestureCallbackDelegate);
- }
-
- _tapGestureEventHandler -= value;
- }
- }
- }
-
- private void OnTapGestureDetected(IntPtr actor, IntPtr tapGesture)
- {
- DetectedEventArgs e = new DetectedEventArgs();
-
- // Populate all members of "e" (DetectedEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
- e.TapGesture = Dali.TapGesture.GetTapGestureFromPtr(tapGesture);
-
- if (_tapGestureEventHandler != null)
- {
- //here we send all data to user event handlers
- _tapGestureEventHandler(this, e);
- }
-
- }
-
-
-public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_tapGesture_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- TapGesture_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- TapGesture_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_tapGesture_EVENTHANDLER_PARAM( Dali, TapGestureDetector);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define TEXTEDITOR_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define TEXTEDITOR_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-/**
- * @brief Event arguments that passed via TextChanged signal
- *
- */
-public class TextChangedEventArgs : EventArgs
-{
- private TextEditor _textEditor;
- /**
- * @brief TextEditor - is the texteditor control which has the text contents changed.
- *
- */
- public TextEditor TextEditor
- {
- get
- {
- return _textEditor;
- }
- set
- {
- _textEditor = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void TextChangedCallbackDelegate(IntPtr textEditor);
- private DaliEventHandler<object,TextChangedEventArgs> _textEditorTextChangedEventHandler;
- private TextChangedCallbackDelegate _textEditorTextChangedCallbackDelegate;
-
- /**
- * @brief Event for TextChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of TextChangedEventHandler-DaliEventHandler<object,TextChangedEventArgs>)
- * provided by the user. TextChanged signal is emitted when the text changes.
- */
- public event DaliEventHandler<object,TextChangedEventArgs> TextChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_textEditorTextChangedEventHandler == null)
- {
- _textEditorTextChangedEventHandler += value;
-
- _textEditorTextChangedCallbackDelegate = new TextChangedCallbackDelegate(OnTextChanged);
- this.TextChangedSignal().Connect(_textEditorTextChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_textEditorTextChangedEventHandler != null)
- {
- this.TextChangedSignal().Disconnect(_textEditorTextChangedCallbackDelegate);
- }
-
- _textEditorTextChangedEventHandler -= value;
- }
- }
- }
-
- private void OnTextChanged(IntPtr textEditor)
- {
- TextChangedEventArgs e = new TextChangedEventArgs();
-
- // Populate all members of "e" (TextChangedEventArgs) with real data
- e.TextEditor = Dali.TextEditor.GetTextEditorFromPtr(textEditor);
-
- if (_textEditorTextChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _textEditorTextChangedEventHandler(this, e);
- }
-
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_TEXTEDITOR_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- TEXTEDITOR_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- TEXTEDITOR_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_TEXTEDITOR_EVENTHANDLER_PARAM( Dali::Toolkit, TextEditor);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define TEXTFIELD_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-
-%enddef
-
-%define TEXTFIELD_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-public class TextChangedEventArgs : EventArgs
-{
- private TextField _textField;
-
- public TextField TextField
- {
- get
- {
- return _textField;
- }
- set
- {
- _textField = value;
- }
- }
-}
-
-public class MaxLengthReachedEventArgs : EventArgs
-{
- private TextField _textField;
-
- public TextField TextField
- {
- get
- {
- return _textField;
- }
- set
- {
- _textField = value;
- }
- }
-}
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void TextChangedCallbackDelegate(IntPtr textField);
- private DaliEventHandler<object,TextChangedEventArgs> _textFieldTextChangedEventHandler;
- private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
- private DaliEventHandler<object,MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
- private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
-
- public event DaliEventHandler<object,TextChangedEventArgs> TextChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_textFieldTextChangedEventHandler == null)
- {
- _textFieldTextChangedEventHandler += value;
-
- _textFieldTextChangedCallbackDelegate = new TextChangedCallbackDelegate(OnTextChanged);
- this.TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_textFieldTextChangedEventHandler != null)
- {
- this.TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
- }
-
- _textFieldTextChangedEventHandler -= value;
- }
- }
- }
-
- private void OnTextChanged(IntPtr textField)
- {
- TextChangedEventArgs e = new TextChangedEventArgs();
-
- // Populate all members of "e" (TextChangedEventArgs) with real data
- e.TextField = Dali.TextField.GetTextFieldFromPtr(textField);
-
- if (_textFieldTextChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _textFieldTextChangedEventHandler(this, e);
- }
-
- }
-
- public event DaliEventHandler<object,MaxLengthReachedEventArgs> MaxLengthReached
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_textFieldMaxLengthReachedEventHandler == null)
- {
- _textFieldMaxLengthReachedEventHandler += value;
-
- _textFieldMaxLengthReachedCallbackDelegate = new MaxLengthReachedCallbackDelegate(OnMaxLengthReached);
- this.MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_textFieldMaxLengthReachedEventHandler != null)
- {
- this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
- }
-
- _textFieldMaxLengthReachedEventHandler -= value;
- }
- }
- }
-
- private void OnMaxLengthReached(IntPtr textField)
- {
- MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
-
- // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
- e.TextField = Dali.TextField.GetTextFieldFromPtr(textField);
-
- if (_textFieldMaxLengthReachedEventHandler != null)
- {
- //here we send all data to user event handlers
- _textFieldMaxLengthReachedEventHandler(this, e);
- }
-
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-%define DALI_TEXTFIELD_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- TEXTFIELD_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- TEXTFIELD_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_TEXTFIELD_EVENTHANDLER_PARAM( Dali::Toolkit, TextField);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define TIMER_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define TIMER_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
- /**
- * @brief Event arguments that passed via Tick signal
- *
- */
- public class TickEventArgs : EventArgs
- {
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool TickCallbackDelegate(IntPtr data);
- private DaliEventHandlerWithReturnType<object,TickEventArgs,bool> _timerTickEventHandler;
- private TickCallbackDelegate _timerTickCallbackDelegate;
-
- /**
- * @brief Event for Ticked signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of TickEventHandler-DaliEventHandlerWithReturnType<object,TickEventArgs,bool>)
- * provided by the user. Ticked signal is emitted after specified time interval.
- */
- public event DaliEventHandlerWithReturnType<object,TickEventArgs,bool> Tick
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_timerTickEventHandler == null)
- {
- _timerTickEventHandler += value;
-
- _timerTickCallbackDelegate = new TickCallbackDelegate(OnTick);
- this.TickSignal().Connect(_timerTickCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_timerTickEventHandler != null)
- {
- this.TickSignal().Disconnect(_timerTickCallbackDelegate);
- }
-
- _timerTickEventHandler -= value;
- }
- }
- }
-
- // Callback for Timer Tick signal
- private bool OnTick(IntPtr data)
- {
- TickEventArgs e = new TickEventArgs();
-
- if (_timerTickEventHandler != null)
- {
- //here we send all data to user event handlers
- return _timerTickEventHandler(this, e);
- }
- return false;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_TIMER_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- TIMER_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- TIMER_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_TIMER_EVENTHANDLER_PARAM( Dali, Timer);
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-%define VIDEOVIEW_EVENTHANDLER_TYPEMAP_EVENTARG(NameSpace, ClassName)
-%typemap(csimports) NameSpace::ClassName %{
-using System;
-using System.Runtime.InteropServices;
-
-%}
-%enddef
-
-%define VIDEOVIEW_EVENTHANDLER_TYPEMAP_HELPER(NameSpace, ClassName)
-%typemap(cscode) NameSpace::ClassName %{
-
-/**
- * @brief Event arguments that passed via Finished signal
- *
- */
-public class FinishedEventArgs : EventArgs
-{
- private VideoView _videoView;
-
- /**
- * @brief VideoView - VideoView is a control for video playback and display.
- *
- */
- public VideoView VideoView
- {
- get
- {
- return _videoView;
- }
- set
- {
- _videoView = value;
- }
- }
-}
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FinishedCallbackDelegate(IntPtr data);
- private DaliEventHandler<object,FinishedEventArgs> _videoViewFinishedEventHandler;
- private FinishedCallbackDelegate _videoViewFinishedCallbackDelegate;
-
- /**
- * @brief Event for Finished signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FinishedEventHandler-DaliEventHandler<object,FinishedEventArgs>) provided by the user.
- * Finished signal is emitted when a video playback have finished.
- */
- public event DaliEventHandler<object,FinishedEventArgs> Finished
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_videoViewFinishedEventHandler == null)
- {
- _videoViewFinishedEventHandler += value;
-
- _videoViewFinishedCallbackDelegate = new FinishedCallbackDelegate(OnFinished);
- this.FinishedSignal().Connect(_videoViewFinishedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_videoViewFinishedEventHandler != null)
- {
- this.FinishedSignal().Disconnect(_videoViewFinishedCallbackDelegate);
- }
-
- _videoViewFinishedEventHandler -= value;
- }
- }
- }
-
- // Callback for VideoView Finished signal
- private void OnFinished(IntPtr data)
- {
- FinishedEventArgs e = new FinishedEventArgs();
-
- // Populate all members of "e" (FinishedEventArgs) with real data
- e.VideoView = VideoView.GetVideoViewFromPtr( data );
-
- if (_videoViewFinishedEventHandler != null)
- {
- //here we send all data to user event handlers
- _videoViewFinishedEventHandler(this, e);
- }
- }
-
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-%}
-
-%enddef
-
-
-%define DALI_VIDEOVIEW_EVENTHANDLER_PARAM( NameSpace, ClassName)
-
- VIDEOVIEW_EVENTHANDLER_TYPEMAP_EVENTARG( NameSpace, ClassName);
- VIDEOVIEW_EVENTHANDLER_TYPEMAP_HELPER( NameSpace, ClassName);
-
-%enddef
-
-namespace Dali
-{
- DALI_VIDEOVIEW_EVENTHANDLER_PARAM( Dali::Toolkit, VideoView);
-}
+++ /dev/null
-%rename(GestureType) Dali::Gesture::Type;
-%rename(StateType) Dali::Gesture::State;
-
-%csmethodmodifiers Dali::Gesture::type "private";
-%csmethodmodifiers Dali::Gesture::state "private";
-%csmethodmodifiers Dali::Gesture::time "private";
-
-%typemap(cscode) Dali::Gesture %{
- public Gesture.GestureType Type
- {
- get
- {
- return type;
- }
- }
-
- public Gesture.StateType State
- {
- get
- {
- return state;
- }
- }
-
- public uint Time
- {
- get
- {
- return time;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%rename(Hover) Dali::HoverEvent;
-
-%csmethodmodifiers Dali::HoverEvent::points "private";
-%csmethodmodifiers Dali::HoverEvent::time "private";
-
-%typemap(cscode) Dali::HoverEvent %{
- public static Hover GetHoverFromPtr(global::System.IntPtr cPtr) {
- Hover ret = new Hover(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint Time
- {
- get
- {
- return time;
- }
- }
-
- public int GetDeviceId(uint point) {
- if( point < points.Count )
- {
- return points[(int)point].deviceId;
- }
- return -1;
- }
-
- public PointStateType GetState(uint point) {
- if( point < points.Count )
- {
- return (Dali.PointStateType)(points[(int)point].state);
- }
- return PointStateType.FINISHED;
- }
-
- public Actor GetHitActor(uint point) {
- if( point < points.Count )
- {
- return points[(int)point].hitActor;
- }
- else
- {
- // Return a native empty handle
- Actor actor = new Actor();
- actor.Reset();
- return actor;
- }
- }
-
- public Vector2 GetLocalPosition(uint point) {
- if( point < points.Count )
- {
- return points[(int)point].local;
- }
- return new Vector2(0.0f, 0.0f);
- }
-
- public Vector2 GetScreenPosition(uint point) {
- if( point < points.Count )
- {
- return points[(int)point].screen;
- }
- return new Vector2(0.0f, 0.0f);
- }
-%}
\ No newline at end of file
+++ /dev/null
-%rename(Key) Dali::KeyEvent;
-%rename(StateType) Dali::KeyEvent::State;
-
-%csmethodmodifiers Dali::KeyEvent::keyPressedName "private";
-%csmethodmodifiers Dali::KeyEvent::keyPressed "private";
-%csmethodmodifiers Dali::KeyEvent::keyCode "private";
-%csmethodmodifiers Dali::KeyEvent::keyModifier "private";
-%csmethodmodifiers Dali::KeyEvent::time "private";
-%csmethodmodifiers Dali::KeyEvent::state "private";
-
-%csmethodmodifiers Dali::DevelKeyEvent::GetDeviceName "private";
-%csmethodmodifiers Dali::DevelKeyEvent::SetDeviceName "private";
-
-%typemap(cscode) Dali::KeyEvent %{
- public static Key GetKeyFromPtr(global::System.IntPtr cPtr) {
- Key ret = new Key(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public string DeviceName
- {
- get
- {
- string ret = NDalicPINVOKE.GetDeviceName(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public string KeyPressedName
- {
- get
- {
- return keyPressedName;
- }
- }
-
- public string KeyPressed
- {
- get
- {
- return keyPressed;
- }
- }
-
- public int KeyCode
- {
- get
- {
- return keyCode;
- }
- }
-
- public int KeyModifier
- {
- get
- {
- return keyModifier;
- }
- }
-
- public uint Time
- {
- get
- {
- return time;
- }
- }
-
- public Key.StateType State
- {
- get
- {
- return state;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%csmethodmodifiers Dali::LongPressGesture::numberOfTouches "private";
-%csmethodmodifiers Dali::LongPressGesture::screenPoint "private";
-%csmethodmodifiers Dali::LongPressGesture::localPoint "private";
-
-%typemap(cscode) Dali::LongPressGesture %{
- public static LongPressGesture GetLongPressGestureFromPtr(global::System.IntPtr cPtr) {
- LongPressGesture ret = new LongPressGesture(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint NumberOfTouches
- {
- get
- {
- return numberOfTouches;
- }
- }
-
- public Vector2 ScreenPoint
- {
- get
- {
- return screenPoint;
- }
- }
-
- public Vector2 LocalPoint
- {
- get
- {
- return localPoint;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%csmethodmodifiers Dali::PanGesture::velocity "private";
-%csmethodmodifiers Dali::PanGesture::displacement "private";
-%csmethodmodifiers Dali::PanGesture::position "private";
-%csmethodmodifiers Dali::PanGesture::screenVelocity "private";
-%csmethodmodifiers Dali::PanGesture::screenDisplacement "private";
-%csmethodmodifiers Dali::PanGesture::screenPosition "private";
-%csmethodmodifiers Dali::PanGesture::numberOfTouches "private";
-
-%typemap(cscode) Dali::PanGesture %{
- public static PanGesture GetPanGestureFromPtr(global::System.IntPtr cPtr) {
- PanGesture ret = new PanGesture(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Vector2 Velocity
- {
- get
- {
- return velocity;
- }
- }
-
- public Vector2 Displacement
- {
- get
- {
- return displacement;
- }
- }
-
- public Vector2 Position
- {
- get
- {
- return position;
- }
- }
-
- public Vector2 ScreenVelocity
- {
- get
- {
- return screenVelocity;
- }
- }
-
- public Vector2 ScreenDisplacement
- {
- get
- {
- return screenDisplacement;
- }
- }
-
- public Vector2 ScreenPosition
- {
- get
- {
- return screenPosition;
- }
- }
-
- public uint NumberOfTouches
- {
- get
- {
- return numberOfTouches;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%csmethodmodifiers Dali::PinchGesture::scale "private";
-%csmethodmodifiers Dali::PinchGesture::speed "private";
-%csmethodmodifiers Dali::PinchGesture::screenCenterPoint "private";
-%csmethodmodifiers Dali::PinchGesture::localCenterPoint "private";
-
-%typemap(cscode) Dali::PinchGesture %{
- public static PinchGesture GetPinchGestureFromPtr(global::System.IntPtr cPtr) {
- PinchGesture ret = new PinchGesture(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float Scale
- {
- get
- {
- return scale;
- }
- }
-
- public float Speed
- {
- get
- {
- return speed;
- }
- }
-
- public Vector2 ScreenCenterPoint
- {
- get
- {
- return screenCenterPoint;
- }
- }
-
- public Vector2 LocalCenterPoint
- {
- get
- {
- return localCenterPoint;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%csmethodmodifiers Dali::TapGesture::numberOfTaps "private";
-%csmethodmodifiers Dali::TapGesture::numberOfTouches "private";
-%csmethodmodifiers Dali::TapGesture::screenPoint "private";
-%csmethodmodifiers Dali::TapGesture::localPoint "private";
-
-%typemap(cscode) Dali::TapGesture %{
- public static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr) {
- TapGesture ret = new TapGesture(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint NumberOfTaps
- {
- get
- {
- return numberOfTaps;
- }
- }
-
- public uint NumberOfTouches
- {
- get
- {
- return numberOfTouches;
- }
- }
-
- public Vector2 ScreenPoint
- {
- get
- {
- return screenPoint;
- }
- }
-
- public Vector2 LocalPoint
- {
- get
- {
- return localPoint;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%rename(Touch) Dali::TouchData;
-
-%typemap(cscode) Dali::TouchData %{
- public static Touch GetTouchFromPtr(global::System.IntPtr cPtr) {
- Touch ret = new Touch(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-%}
\ No newline at end of file
+++ /dev/null
-%rename(Wheel) Dali::WheelEvent;
-%rename(WheelType) Dali::WheelEvent::Type;
-
-%csmethodmodifiers Dali::WheelEvent::type "private";
-%csmethodmodifiers Dali::WheelEvent::direction "private";
-%csmethodmodifiers Dali::WheelEvent::modifiers "private";
-%csmethodmodifiers Dali::WheelEvent::point "private";
-%csmethodmodifiers Dali::WheelEvent::z "private";
-%csmethodmodifiers Dali::WheelEvent::timeStamp "private";
-
-%typemap(cscode) Dali::WheelEvent %{
- public static Wheel GetWheelFromPtr(global::System.IntPtr cPtr) {
- Wheel ret = new Wheel(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Wheel.WheelType Type
- {
- get
- {
- return type;
- }
- }
-
- public int Direction
- {
- get
- {
- return direction;
- }
- }
-
- public uint Modifiers
- {
- get
- {
- return modifiers;
- }
- }
-
- public Vector2 Point
- {
- get
- {
- return point;
- }
- }
-
- public int Z
- {
- get
- {
- return z;
- }
- }
-
- public uint TimeStamp
- {
- get
- {
- return timeStamp;
- }
- }
-%}
\ No newline at end of file
+++ /dev/null
-%rename( EndActions ) Dali::Animation::EndAction;
-%rename( Cancel ) Dali::Animation::Bake;
-%rename( StopFinal ) Dali::Animation::BakeFinal;
-%rename( Stopped ) Dali::Animation::STOPPED;
-%rename( Playing ) Dali::Animation::PLAYING;
-%rename( Paused ) Dali::Animation::PAUSED;
-
-%rename( Default ) Dali::AlphaFunction::DEFAULT;
-%rename( Linear ) Dali::AlphaFunction::LINEAR;
-%rename( Reverse ) Dali::AlphaFunction::REVERSE;
-%rename( EaseInSquare ) Dali::AlphaFunction::EASE_IN_SQUARE;
-%rename( EaseOutSquare ) Dali::AlphaFunction::EASE_OUT_SQUARE;
-%rename( EaseIn ) Dali::AlphaFunction::EASE_IN;
-%rename( EaseOut ) Dali::AlphaFunction::EASE_OUT;
-%rename( EaseInOut ) Dali::AlphaFunction::EASE_IN_OUT;
-%rename( EaseInSine ) Dali::AlphaFunction::EASE_IN_SINE;
-%rename( EaseOutSine) Dali::AlphaFunction::EASE_OUT_SINE;
-%rename( EaseInOutSine ) Dali::AlphaFunction::EASE_IN_OUT_SINE;
-%rename( Bounce ) Dali::AlphaFunction::BOUNCE;
-%rename( Sin ) Dali::AlphaFunction::SIN;
-%rename( EaseOutBack) Dali::AlphaFunction::EASE_OUT_BACK;
-%rename( Count) Dali::AlphaFunction::COUNT;
-%rename( BuiltinFunction ) Dali::AlphaFunction::BUILTIN_FUNCTION;
-%rename( CustomFunction ) Dali::AlphaFunction::CUSTOM_FUNCTION;
-%rename( Bezier ) Dali::AlphaFunction::BEZIER;
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-#if defined(SWIGCSHARP)
-
-
- %typemap(cscode) Dali::Property::Value %{
-
- // Extension to property value class that allows us to create a
- // PropertyValue from a C# object, e.g. int, float, string
- static public Property.Value CreateFromObject( System.Object obj)
- {
- System.Type type = obj.GetType ();
-
- Property.Value value;
-
- if ( type.Equals (typeof(int)) )
- {
- System.Console.WriteLine (" got an int property value ");
- value = new Property.Value ((int) obj );
- }
- if ( type.Equals (typeof(System.Int32)) )
- {
- System.Console.WriteLine (" got an int property value ");
- value = new Property.Value ((int) obj );
- }
- else if ( type.Equals (typeof(bool)) )
- {
- System.Console.WriteLine (" got an bool property value ");
- value = new Property.Value ((bool) obj );
- }
- else if ( type.Equals (typeof(float)) )
- {
- System.Console.WriteLine (" got an float property value ");
- value = new Property.Value ((float) obj );
- }
- else if ( type.Equals (typeof(string)) )
- {
- System.Console.WriteLine (" got a string property value ");
- value = new Property.Value ((string) obj );
- }
- else if ( type.Equals (typeof(Vector2)) )
- {
- System.Console.WriteLine (" got an Vector2 property value ");
- value = new Property.Value ((Vector2) obj );
- }
- else if ( type.Equals (typeof(Vector3)) )
- {
- System.Console.WriteLine (" got an Vector3 property value ");
- value = new Property.Value ((Vector3) obj );
- }
- else if ( type.Equals (typeof(Vector4)) )
- {
- System.Console.WriteLine (" got an Vector4 property value ");
-
- value = new Property.Value ((Vector4) obj );
- }
- else if ( type.Equals (typeof(Position)) )
- {
- System.Console.WriteLine (" got an Position property value ");
- value = new Property.Value ((Position) obj );
- }
- else if ( type.Equals (typeof(Size)) )
- {
- System.Console.WriteLine (" got an Size property value ");
- value = new Property.Value ((Size) obj );
- }
- else if ( type.Equals (typeof(Color)) )
- {
- System.Console.WriteLine (" got an Color property value ");
- value = new Property.Value ((Color) obj );
- }
- else
- {
- throw new global::System.InvalidOperationException("Unimplemented type for Property Value");
- }
- return value;
- }
-
-
- public Value(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Value(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Value(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Value(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Value(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-
- public bool Get(Size2D vectorValue) {
- bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool Get(Size vectorValue) {
- bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool Get(Position2D vectorValue) {
- bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool Get(Position vectorValue) {
- bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool Get(Color vectorValue) {
- bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- %}
-
-
-
-
-#endif
+++ /dev/null
-/*
- * 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.
- *
- */
-
-%rename(Rotation) Dali::Quaternion;
-%rename(GetAxisAngle) Dali::Quaternion::ToAxisAngle;
-
-%ignore Dali::Quaternion::Quaternion( Radian pitch, Radian yaw, Radian roll );
-%ignore Dali::Quaternion::Quaternion(const Matrix& matrix);
-%ignore Dali::Quaternion::Quaternion( const Vector4& vector );
-%ignore Dali::Quaternion::Quaternion( const Vector3& v0, const Vector3& v1 );
-%ignore Dali::Quaternion::Quaternion( const Vector3& xAxis, const Vector3& yAxis, const Vector3& zAxis );
-%ignore Dali::Quaternion::Quaternion( float cosThetaBy2, float iBySineTheta, float jBySineTheta, float kBySineTheta );
-%ignore Dali::Quaternion::SetEuler( Radian pitch, Radian yaw, Radian roll );
-%ignore Dali::Quaternion::EulerAngles() const;
-%ignore Dali::Quaternion::AsVector() const;
-%ignore Dali::Quaternion::Rotate( const Vector4& vector ) const;
-%ignore Dali::Quaternion::Rotate( const Vector3& vector ) const;
-%ignore Dali::Quaternion::mVector;
-
-%csmethodmodifiers Dali::Quaternion::operator+ "private";
-%csmethodmodifiers Dali::Quaternion::operator- "private";
-%csmethodmodifiers Dali::Quaternion::operator* "private";
-%csmethodmodifiers Dali::Quaternion::operator/ "private";
-%csmethodmodifiers Dali::Quaternion::operator+= "private";
-%csmethodmodifiers Dali::Quaternion::operator-= "private";
-%csmethodmodifiers Dali::Quaternion::operator*= "private";
-%csmethodmodifiers Dali::Quaternion::operator/= "private";
-%csmethodmodifiers Dali::Quaternion::operator== "private";
-%csmethodmodifiers Dali::Quaternion::operator!= "private";
+++ /dev/null
- /*
- * Copyright (c) 2016 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.
- *
- */
-
- /**
- * WARNING: The macro below may be over-ridden by any other typemap(cscode)
- * customisation for a class.
- *
- * MACRO to inject a C# function in to a SWIG generated DALi C# wrapper class.
- * The MACRO allow you to create a C# wrapper class for a DALi C++ object (passed as a C PTR).
- *
- * Required to get access to any data passed as a parameter in a Signal ( in C# they are delegate parameters).
- * E.g.
- *
- * CREATE_CSHARP_WRAPPER_FROM_C_PTR_FUNCTION( Touch );
- * Creates a function called GetTouchFromPtr which allows you to:
- *
- * static void OnStageTouched(IntPtr data)
- * {
- * Touch touch = Touch.GetTouchFromPtr( data );
- * }
- *
- * ## means concat in a SWIG macro
- */
-
-%define DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( NameSpace, ClassName )
-
- %typemap(cscode) NameSpace::ClassName %{
- public static ClassName Get ## ClassName ## FromPtr(global::System.IntPtr cPtr) {
- ClassName ret = new ClassName(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-%}
-
-%enddef
-
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, Application );
-
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, Actor );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, Image );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, ResourceImage );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, Animation );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, PropertyNotification );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, BaseHandle );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, RefObject );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, RenderTask );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, Vector2 );
-
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, AccessibilityManager );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali, StyleManager );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, Control );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, Button );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, GaussianBlurView );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, PageTurnView );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, TextEditor );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, TextField );
-
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, TextField );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, VideoView );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit, Slider );
-DALI_CREATE_C_PTR_TO_CSHARP_FUNCTION( Dali::Toolkit::ScrollView, SnapEvent );
-
-
-
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// Example from Swig CSHARP documentation
-// To allow a CDate class to take
-// To achieve this mapping, we need to alter the default code generation slightly so that at the C# layer, a System.DateTime is converted into a CDate. The
-// intermediary layer will still take a pointer to the underlying CDate class. The typemaps to achieve this are shown below.
-
-// %typemap(cstype) const CDate & "System.DateTime"
-// %typemap(csin,
-// pre="
-// CDate temp$csinput = new CDate($csinput.Year, $csinput.Month, $csinput.Day);"
-// ) const CDate &
-// "$csclassname.getCPtr(temp$csinput)"
-// The csin typemap is used for converting function parameter types from the type
-// used in the proxy, module or type wrapper class to the type used in the PInvoke class.
-
-
-%include <dali/public-api/signals/dali-signal.h>
-
-/*
- * By default SWIG maps Derived types, structs, and classes to C pointers.
- * So for Signals which have a Connect /Disconnect function, the function parameter just gets maps to a C pointer.
- * However, call backs in C# are done using delegates, so we change the Connect / Disconnect parameter from
- * something like void (*func)( Dali::Actor ) to a C# delegate.
- * the parameter type is changed using the typemap(cstype) cstype = csharp-type
- * The actual conversion from a C# delegate to a c function pointer is done when Connect/Disconnect is called
- * using typemap(csin) with GetFunctionPointerForDelegate ( csin = csharp in code?).
- * So when connect is called on a Signal it will call the void Signal::Connect( void (*func)( Arg0 arg0 ) ) -- which
- * just takes a standard C function pointer. Not ideal as there is no delegate / connection tracking.
- *
- */
-%define SIGNAL_TYPEMAP_HELPER( SignalSignature )
-%typemap(cstype) SignalSignature "System.Delegate"
-%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ")
- SignalSignature "new System.Runtime.InteropServices.HandleRef(this, ip)"
-%enddef
-
-/**
- * SWIG can't auto generate wrappers for template parameters that are functions ( which dali-signal has)
- * so we have make them ourselves
- */
-
-%define SIGNAL_TEMPLATE_HELPER_0( returnType, returnFunc)
- template<> class Signal< returnType () >
- {
- public:
- %extend
- {
- bool Empty() const
- {
- return $self->Empty();
- }
- std::size_t GetConnectionCount() const
- {
- return $self->GetConnectionCount();
- }
- void Connect( returnType ( *func ) () )
- {
- $self->Connect( func );
- }
- void Disconnect( returnType ( *func ) () )
- {
- $self->Disconnect( func );
- }
- returnType Emit()
- {
- returnFunc $self->Emit();
- }
- }
- };
-%enddef
-
-%define SIGNAL_TEMPLATE_HELPER_1( returnType, returnFunc, argumentType )
- template<> class Signal< returnType ( argumentType ) >
- {
- public:
- %extend
- {
- bool Empty() const
- {
- return $self->Empty();
- }
- std::size_t GetConnectionCount() const
- {
- return $self->GetConnectionCount();
- }
- void Connect( returnType ( *func ) ( argumentType ) )
- {
- $self->Connect( func );
- }
- void Disconnect( returnType ( *func ) ( argumentType ) )
- {
- $self->Disconnect( func );
- }
- returnType Emit( argumentType arg)
- {
- returnFunc $self->Emit( arg );
- }
- }
- };
-%enddef
-
-%define SIGNAL_TEMPLATE_HELPER_2( returnType, returnFunc, argumentType1, argumentType2 )
- template<> class Signal< returnType ( argumentType1, argumentType2 ) >
- {
- public:
- %extend
- {
- bool Empty() const
- {
- return $self->Empty();
- }
- std::size_t GetConnectionCount() const
- {
- return $self->GetConnectionCount();
- }
- void Connect( returnType ( *func ) ( argumentType1, argumentType2 ) )
- {
- $self->Connect( func );
- }
- void Disconnect( returnType ( *func ) ( argumentType1, argumentType2 ) )
- {
- $self->Disconnect( func );
- }
- returnType Emit( argumentType1 arg1, argumentType2 arg2 )
- {
- returnFunc $self->Emit( arg1, arg2 );
- }
- }
- };
-%enddef
-
-%define SIGNAL_TEMPLATE_HELPER_3( returnType, returnFunc, argumentType1, argumentType2, argumentType3 )
- template<> class Signal< returnType ( argumentType1, argumentType2, argumentType3 ) >
- {
- public:
- %extend
- {
- bool Empty() const
- {
- return $self->Empty();
- }
- std::size_t GetConnectionCount() const
- {
- return $self->GetConnectionCount();
- }
- void Connect( returnType ( *func ) ( argumentType1, argumentType2, argumentType3 ) )
- {
- return $self->Connect( func );
- }
- void Disconnect( returnType ( *func ) ( argumentType1, argumentType2, argumentType3 ) )
- {
- $self->Disconnect( func );
- }
- returnType Emit( argumentType1 arg1, argumentType2 arg2, argumentType3 arg3 )
- {
- returnFunc $self->Emit( arg1, arg2, arg3 );
- }
- }
- };
-%enddef
-
-////////////////////////////////
-/*****************
- Macros for signals without return values
-*****************/
-
-// the emit for some signal has to emit a return value
-// this macro is just for signals that don't (instead of return Emit();.. it just does ;Emit();
-%define NO_RETURN_FUNC;
-%enddef
-
-// Macro to define a csharp signal.
-// 0 param signals ( no return )
-%define DALI_SIGNAL_0_PARAM()
-
- SIGNAL_TYPEMAP_HELPER( void (*func) () );
- SIGNAL_TEMPLATE_HELPER_0( void, NO_RETURN_FUNC);
-%enddef
-
-// 1 param signals ( no return )
-%define DALI_SIGNAL_1_PARAM( argumentType1 )
-
- SIGNAL_TYPEMAP_HELPER( void (*func) ( argumentType1 ) );
- SIGNAL_TEMPLATE_HELPER_1( void, NO_RETURN_FUNC, argumentType1);
-%enddef
-
-// 2 param signals ( no return )
-%define DALI_SIGNAL_2_PARAM( argumentType1, argumentType2)
-
- SIGNAL_TYPEMAP_HELPER( void (*func) ( argumentType1, argumentType2) );
- SIGNAL_TEMPLATE_HELPER_2( void, NO_RETURN_FUNC, argumentType1, argumentType2);
-
-%enddef
-
-// 3 param signals ( no return )
-%define DALI_SIGNAL_3_PARAM( argumentType1, argumentType2, argumentType3 )
-
- SIGNAL_TYPEMAP_HELPER( void (*func) ( argumentType1, argumentType2, argumentType3 ) );
- SIGNAL_TEMPLATE_HELPER_3( void, NO_RETURN_FUNC, argumentType1, argumentType2, argumentType3);
-
-%enddef
-
-/*****************
- Macros for signals with return values
-*****************/
-
-// 0 param signals ( with return )
-%define DALI_SIGNAL_0_PARAM_RETURN( returnType )
-
- SIGNAL_TYPEMAP_HELPER( returnType (*func) () );
- SIGNAL_TEMPLATE_HELPER_0( returnType, return);
-%enddef
-
-// 1 param signals ( with return )
-%define DALI_SIGNAL_1_PARAM_RETURN( returnType, argumentType1 )
-
- SIGNAL_TYPEMAP_HELPER( returnType (*func) ( argumentType1 ) );
- SIGNAL_TEMPLATE_HELPER_1( returnType, return, argumentType1);
-
-%enddef
-
-// 2 param signals ( with return )
-%define DALI_SIGNAL_2_PARAM_RETURN( returnType, argumentType1, argumentType2)
-
- SIGNAL_TYPEMAP_HELPER( returnType (*func) ( argumentType1, argumentType2) );
- SIGNAL_TEMPLATE_HELPER_2( returnType, return, argumentType1, argumentType2);
-
-%enddef
-
-// 3 param signals ( with return )
-%define DALI_SIGNAL_3_PARAM_RETURN( returnType, argumentType1, argumentType2, argumentType3 )
-
- SIGNAL_TYPEMAP_HELPER( returnType (*func) ( argumentType1, argumentType2, argumentType3 ) );
- SIGNAL_TEMPLATE_HELPER_3( returnType, return, argumentType1, argumentType2, argumentType3);
-
-%enddef
-
-namespace Dali
-{
-// Signal< void () >
-DALI_SIGNAL_0_PARAM();
-
-// Signal< bool () >
-DALI_SIGNAL_0_PARAM_RETURN( bool );
-
-// Signal< void (Actor) >
-DALI_SIGNAL_1_PARAM( Dali::Actor );
-
-// Signal< void (float) >
-DALI_SIGNAL_1_PARAM( float );
-
-// Signal< void (bool) >
-DALI_SIGNAL_1_PARAM( bool );
-
-// Signal< void (Dali::Application&) >
-DALI_SIGNAL_1_PARAM( Dali::Application& );
-
-// Signal< void (Dali::Application&, void*) >
-DALI_SIGNAL_2_PARAM( Dali::Application& , void* );
-
-// Signal< void (Dali::Image) >
-DALI_SIGNAL_1_PARAM( Dali::Image );
-
-// Signal< void (Dali::ResourceImage) >
-DALI_SIGNAL_1_PARAM( Dali::ResourceImage );
-
-// Signal< void (Dali::Animation&) >
-DALI_SIGNAL_1_PARAM( Dali::Animation& );
-
-// Signal< void (Dali::Actor, const Dali::TouchEvent&) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, const Dali::TouchEvent& );
-
-// Signal< bool (Dali::Actor, const Dali::TouchData&) >
-DALI_SIGNAL_2_PARAM_RETURN( bool, Dali::Actor, const Dali::TouchData& );
-
-// Signal< bool (Dali::Actor, const Dali::HoverEvent&) >
-DALI_SIGNAL_2_PARAM_RETURN( bool , Dali::Actor, const Dali::HoverEvent& );
-
-// Signal< bool (Dali::Actor, const Dali::WheelEvent&) >
-DALI_SIGNAL_2_PARAM_RETURN( bool , Dali::Actor, const Dali::WheelEvent& );
-
-// Signal< void (const Dali::KeyEvent&) >
-DALI_SIGNAL_1_PARAM( const Dali::KeyEvent& );
-
-// Signal< void (const Dali::TouchData&) >
-DALI_SIGNAL_1_PARAM( const Dali::TouchData& );
-
-// Signal< void (const Dali::HoverEvent&) >
-DALI_SIGNAL_1_PARAM( const Dali::HoverEvent& );
-
-// Signal< void (const Dali::WheelEvent&) >
-DALI_SIGNAL_1_PARAM( const Dali::WheelEvent& );
-
-// Signal< void (const Dali::LongPressGesture&) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, const Dali::LongPressGesture& );
-
-// Signal< void (Dali::Actor, const Dali::PanGesture&) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, const Dali::PanGesture& );
-
-// Signal< void (Dali::Actor, const Dali::PinchGesture&) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, const Dali::PinchGesture& );
-
-// Signal< void (Dali::Actor, const Dali::TapGesture&) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, const Dali::TapGesture& );
-
-// Signal< void (Dali::PropertyNotification) >
-DALI_SIGNAL_1_PARAM( Dali::PropertyNotification& ) ;
-
-// Signal< void (Dali::BaseHandle) >
-DALI_SIGNAL_1_PARAM( Dali::BaseHandle );
-
-// Signal< void (const Dali::RefObject*) >
-DALI_SIGNAL_1_PARAM( const Dali::RefObject* );
-
-// Signal< void (const Dali::RenderTask&) >
-DALI_SIGNAL_1_PARAM( const Dali::RenderTask& );
-
-// Signal< bool ( const Dali::Toolkit::AccessibilityManager& ) >
-DALI_SIGNAL_1_PARAM_RETURN( bool, Dali::Toolkit::AccessibilityManager& );
-
-// Signal< bool ( const Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent& ) >
-DALI_SIGNAL_2_PARAM_RETURN( bool, const Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent& );
-
-// Signal< void ( const Dali::Actor Dali::Toolkit::AccessibilityManager::FocusOvershotDirection ) >
-DALI_SIGNAL_2_PARAM( Dali::Actor, Dali::Toolkit::AccessibilityManager::FocusOvershotDirection );
-
-// Signal< bool ( Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent& ) >
-DALI_SIGNAL_2_PARAM_RETURN( bool ,Dali::Toolkit::AccessibilityManager&, const Dali::TouchEvent&);
-
-// Signal< void ( Dali::Toolkit::StyleManager, Dali::StyleChange::Type) >
-DALI_SIGNAL_2_PARAM( Dali::Toolkit::StyleManager, Dali::StyleChange::Type);
-
-// void Signal< Dali::Actor, bool >;
-DALI_SIGNAL_2_PARAM( Dali::Actor, bool);
-
-// void Signal< Dali::Actor, Dali::Actor >;
-DALI_SIGNAL_2_PARAM( Dali::Actor, Dali::Actor);
-
-// bool Signal< Dali::Toolkit::Button >;
-DALI_SIGNAL_1_PARAM_RETURN( bool, Dali::Toolkit::Button);
-
-// void Signal< Dali::Toolkit::GaussianBlurView >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::GaussianBlurView);
-
-// void Signal< Dali::Toolkit::PageTurnView, unsigned int, bool >;
-DALI_SIGNAL_3_PARAM( Dali::Toolkit::PageTurnView, unsigned int, bool );
-
-// void Signal< Dali::Toolkit::PageTurnView >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::PageTurnView );
-
-// void Signal< Dali::Toolkit::ProgressBar, float, float >;
-DALI_SIGNAL_3_PARAM( Dali::Toolkit::ProgressBar, float, float );
-
-// void Signal< const Dali::Toolkit::ScrollView::SnapEvent& >;
-DALI_SIGNAL_1_PARAM( const Dali::Toolkit::ScrollView::SnapEvent& );
-
-// void Signal< const Dali::Vector2& >;
-DALI_SIGNAL_1_PARAM( const Dali::Vector2& );
-
-// void Signal< Dali::Toolkit::TextEditor >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::TextEditor );
-
-// void Signal< Dali::Toolkit::TextField >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::TextField );
-
-// bool Signal< Dali::Toolkit::Control, const Dali::KeyEvent& >;
-DALI_SIGNAL_2_PARAM_RETURN( bool, Dali::Toolkit::Control, const Dali::KeyEvent& );
-
-// void Signal< Dali::Toolkit::Control >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::Control );
-
-// void Signal< Dali::Toolkit::VideoView& >;
-DALI_SIGNAL_1_PARAM( Dali::Toolkit::VideoView& );
-
-// Signal< bool (Dali::Toolkit::Slider, float) >;
-DALI_SIGNAL_2_PARAM_RETURN( bool,Dali::Toolkit::Slider, float );
-
-// Signal< bool(Dali::Toolkit::Slider, int) >;
-DALI_SIGNAL_2_PARAM_RETURN( bool,Dali::Toolkit::Slider, int );
-
-} // namespace DALi
-
-
+++ /dev/null
-#!/bin/sh
-
-# Run this to generate all the auto-generated files needed by the GNU
-# configure program
-
-autoreconf --force --install
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// DaliWrapper.cpp : Defines the entry point for the DLL application.
-//
-
-#include "stdafx.h"
-#include "DaliWrapper.h"
-
-BOOL APIENTRY DllMain( HANDLE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
-{
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
-}
-
-// This is an example of an exported variable
-DALIWRAPPER_API int nDaliWrapper=0;
-
-// This is an example of an exported function.
-DALIWRAPPER_API int fnDaliWrapper(void)
-{
- return 18;
-}
-
-// This is the constructor of a class that has been exported.
-// see DaliWrapper.h for the class definition
-CDaliWrapper::CDaliWrapper()
-{
- return;
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// The following ifdef block is the standard way of creating macros which make exporting
-// from a DLL simpler. All files within this DLL are compiled with the DALIWRAPPER_EXPORTS
-// symbol defined on the command line. this symbol should not be defined on any project
-// that uses this DLL. This way any other project whose source files include this file see
-// DALIWRAPPER_API functions as being imported from a DLL, whereas this DLL sees symbols
-// defined with this macro as being exported.
-
-#ifdef DALIWRAPPER_EXPORTS
-#define DALIWRAPPER_API __declspec(dllexport)
-#else
-#define DALIWRAPPER_API __declspec(dllimport)
-#endif
-
-// This class is exported from the DaliWrapper.dll
-class DALIWRAPPER_API CDaliWrapper
-{
-
-public:
- CDaliWrapper(void);
- // TODO: add your methods here.
-
-};
-
-extern DALIWRAPPER_API int nDaliWrapper;
-
-DALIWRAPPER_API int fnDaliWrapper(void);
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// stdafx.h : include file for standard system include files,
-// or project specific include files that are used frequently, but
-// are changed infrequently
-//
-
-#pragma once
-
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
-
-// Windows Header Files:
-#include <windows.h>
-
-// TODO: reference additional headers your program requires here
+++ /dev/null
-# Copyright (c) 2016 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.
-
-# Process this file with autoconf to produce a configure script.
-AC_INIT([Dali-SWIG], [0.1.1],
- [Dali-SWIG])
-AC_PREREQ(2.50)
-AC_CONFIG_AUX_DIR([config])
-AM_INIT_AUTOMAKE([-Wall foreign])
-
-# check target
-AC_MSG_CHECKING([system])
-target=`uname`
-AC_MSG_RESULT([$target])
-
-# check compiler
-AC_LANG([C++])
-
-# check for Dali libraries
-PKG_CHECK_MODULES(DALICORE, dali-core)
-PKG_CHECK_MODULES(DALIADAPTOR, dali-adaptor)
-PKG_CHECK_MODULES(DALITOOLKIT, dali-toolkit)
-
-# check for tools
-AC_PATH_PROG([SWIG], [swig])
-AC_PATH_PROG([RUBY], [ruby])
-
-AC_PATH_PROGS([MCS], [gmcs mcs gmcs2])
-AM_CONDITIONAL(HAVE_MCS, test "x${MCS}" != "x")
-
-AC_ARG_ENABLE([csharp],
- AC_HELP_STRING([--disable-csharp],
- [If disabled, the C# module
- will not be built]),
- [build_mcs=$enableval],
- [build_mcs=yes])
-AM_CONDITIONAL(BUILD_MCS, test "$build_mcs" != "no")
-
-# flags
-
-case "$target" in
-Darwin)
- AC_SUBST([SHARED_LIB],[${SHARED_LIB='-dynamiclib'}])
- AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='jnilib'}]) ;;
-*)
- AC_SUBST([SHARED_LIB],[${SHARED_LIB='-shared'}])
- AC_SUBST([JNILIB_EXTENSION],[${JNILIB_EXTENSION='so'}]) ;;
-esac
-
-
-# done, output the configured files
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
-
+++ /dev/null
-#!/usr/bin/env ruby
-# encoding: utf-8
-require 'pathname'
-require 'scanf'
-require 'fileutils'
-#
-# DALi traditonally use a static New function to create an object.
-# E.g. Actor myActor = Actor::New();
-#
-# However it has been request that for the CSharp DALi API we this coding convention
-#
-# Actor myActor = new Actor();
-#
-# Script does the follow:
-#
-# - greps dali csharp wrapper files for the class constructor (new Actor()) and the static New() e.g. functions ( TextLabel::New(), TextLabel::New( string label) )
-#
-# regexp for searching swig generated constructors grep -oP -n 'public [A-Z]([A-Z]*[a-z])*\(\)' *
-# regexp for searching for swig genereated New functions grep -oP -n -i 'static [a-zA-Z]\+ New'
-
-
-$fileHeader = "/*"\
- "* Copyright (c) #{Time.now.year} Samsung Electronics Co., Ltd.\n"\
- "*\n"\
- "* Licensed under the Apache License, Version 2.0 (the \"License\");\n"\
- "* you may not use this file except in compliance with the License.\n"\
- "* You may obtain a copy of the License at\n"\
- "*\n"\
- "* http://www.apache.org/licenses/LICENSE-2.0\n"\
- "*\n"\
- "* Unless required by applicable law or agreed to in writing, software\n"\
- "* distributed under the License is distributed on an \"AS IS\" BASIS,\n"\
- "* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n"\
- "* See the License for the specific language governing permissions and\n"\
- "* limitations under the License.\n"\
- "*\n"\
- "*/\n"\
- "// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts\n"
-
-# global paths
-$rootPath = ""
-$daliCSharpPath = ""
-$totalDaliClasses = 0
-$totalConstructorsGenerated = 0
-
-
-$swigConstructorNumLines = 3
-$swigNewFuncNumLines = 4
-
-
-# daliClass struct stores information about where the constructor / static New functions are in the file
-$daliClassStruct = Struct.new("DaliClass", :name, :file, :hasNewFunction, :hasConstructor, :constructorLine, :staticNewLines, :generatedConstructors)
-
-# Array
-$daliClassArray = Array.new
-
-def init
-
- pn = Pathname.new(Dir.pwd)
- fullPath = pn.to_s
-
- $rootPath = fullPath.slice(0..( fullPath.index('/dali-toolkit')))
- $daliCSharpPath = $rootPath + "dali-toolkit/plugins/dali-swig/automatic/csharp"
- puts("--------------------------------------------")
- puts("Modifying constructors for DALi C# files ")
- puts("E.g. modify TextLabel::New() ==> new TextLabel() ")
- puts("")
-
-
-end
-
-def getDaliClassItem( className )
-
- # puts( "getDaliClassItem "+ className )
- index = $daliClassArray.index{ |a| a.name == className }
-
- if( index == nil)
- # create a new item along with a array for it's properites
- classItem = $daliClassStruct.new( className );
-
- classItem.name = className
- classItem.hasNewFunction = false
- classItem.hasConstructor = false
- classItem.generatedConstructors = Array.new
- classItem.staticNewLines = Array.new
-
- $daliClassArray.push( classItem )
-
- else
-
- classItem = $daliClassArray[ index ]
- end
-
- return classItem;
-
-end
-
-def grepConstructorInfo
-
- # grep for strings like public Actor(), have to use double black slash on the parenthesis for some reason
- result =`grep -oP -n "public [A-Z]([A-Z]*[0-9]*[a-z])*\\(\\)" #{$daliCSharpPath}/*`
-
- # result is an array of lines that look like this:
- # /homepath/dali-toolkit/plugins/dali-swig/csharp/Window.cs:66:public Window()
-
- lines = result.split(/\n+/);
- for line in lines
-
- # Split the line into file name, line number
- data = line.split(":",3)
- fileName = data[0];
- lineNum = data[1]
-
-
- # Get the class name from the filename
- className = File.basename(fileName,".cs")
-
- # get or create a new DALi class item which stores the new / constructor information
- classItem = getDaliClassItem( className )
-
- classItem.file = fileName
- classItem.constructorLine = lineNum.to_i
- classItem.hasConstructor = true
- # puts classItem.name
-
- end
-
-end
-
-
-
-def grepStaticNewInfo
-
- # grep for strings like static Actor::New()
- result =`grep -oP -n -i "static [a-zA-Z0-9]\+ New" #{$daliCSharpPath}/*`
-
- lines = result.split(/\n+/);
- for line in lines
-
- #puts line
- # Split the line into file name and property macro, split 2 means just create two strings
- data = line.split(":",3)
- fileName = data[0];
- lineNum = data[1]
-
- # # Get the class name from the filename ( e.g. image-actor-impl.cpp => image-actor)
- className = File.basename(fileName,".cs")
-
- # get or create a new DALi class item which stores the property information
- classItem = getDaliClassItem( className )
-
- classItem.file = fileName
- classItem.hasNewFunction = true
- classItem.staticNewLines.push( lineNum.to_i )
- # puts "added line number #{lineNum} for #{classItem.name}"
-
- end
-
-end
-
-
-
-
-def generateNewConstructors
- todo = 2
-
- for daliClass in $daliClassArray
-
- # if the class doesn't have a New function and a constructor then skip it
- if ! (daliClass.hasNewFunction && daliClass.hasConstructor)
- #puts( "Doesn't have a New function #{daliClass.file}" )
- next
- end
-
- File.open(daliClass.file, 'r+') do |file|
-
- currentLine = 0
- for newEntryLine in daliClass.staticNewLines
- linesToRead = newEntryLine - currentLine -1
- # puts("lineToRead = #{linesToRead} #{newEntryLine}")
- linesToRead.times{ file.gets }
-
- currentLine += linesToRead +$swigConstructorNumLines # +3 for 3 lines of the New function that we read in below
- line = file.readline
- #puts("line = #{line} _________")
- parameterString = /\((.*)\)/.match(line) # pulls out the New parameter e.g. (float duration)
-
- #read the next line
- #file.gets
- line = file.readline
- constructorCall = /\((.*)\)/.match(line) # pulls out the constructor call e.g. ((NDalicPINVOKE.TextLabel_New__SWIG_1(text), true))
-
- exceptionLine = file.readline
-
- #res = file.line.line.grep(/asd/i)
- constructorCode = " public #{daliClass.name} #{parameterString} : this #{constructorCall} {\n"\
- " #{exceptionLine}\n"\
- " }\n"
-
-
- daliClass.generatedConstructors.push( constructorCode )
- #puts constructorCode
- end # for
- end # file open
- end # for
-end
-
-def InjectConstructors( daliClass, file )
-
- for code in daliClass.generatedConstructors
- file.puts( code )
- #puts code
- $totalConstructorsGenerated+=1
- end
-end
-
-def lineShouldBeSkipped(daliClass, line)
-
- if line.between?(daliClass.constructorLine-1, daliClass.constructorLine+$swigConstructorNumLines -1)
- return true
- end
-
-
- for n in daliClass.staticNewLines
- if line.between?(n-1, n+$swigNewFuncNumLines )
- return true
- end
- end
-
- return false
-end
-
-
-# helper class to color the background
-class String
-def blueBackground; "\e[45m#{self}\e[0m" end
-end
-
-def updateCSharpFiles
-
- # we now have a populated array of daliClassStructs.
- # With each class we open it's SWIG generated csharp file
- # create a new temp file, and copy the SWIG generated code over to the temporary one
- # except for the existing constructors and New() functions. e.g. Actor() and Actor::New()
- # We also inject our new constructor functions e.g. Actor()
-
- for daliClass in $daliClassArray
- # puts "writing file #{daliClass.name}..."
-
- # check the class has some constructors to write
- if (daliClass.generatedConstructors.length == 0 )
- # puts "no constructors for #{daliClass.name}..."
- next
- end
-
- if daliClass.name == "Application"
- next
- end
-
- $totalDaliClasses+=1 # for stats
-
- # create a file to store the modified output
- tempFileName = "#{daliClass.file}.tmp"
- tempFile = File.new(tempFileName, 'w')
-
- tempFile.puts $fileHeader
- currentLine = 0
- # open the the file
- constructorsWritten = false
-
- File.open(daliClass.file, 'r') do |file|
-
- file.each do |line|
-
- if lineShouldBeSkipped( daliClass, currentLine ) # lineShouldBeSkipped ( daliClass, currentLine )
- currentLine +=1
- if( !constructorsWritten )
- # inject our newly generated constructors
- InjectConstructors( daliClass, tempFile );
- puts("Converting static Class::New(xxx) ---> new Class(xxx) into #{daliClass.name}".blueBackground)
-
- constructorsWritten = true # only write our new constructors to the file once
- end
- next
- end # line should be skipped
-
- currentLine +=1
- tempFile.puts( line )
-
- end # file each
- end # file open
-
- tempFile.close
-
- # copy the temp file over the top of the exiting file
- FileUtils.mv tempFileName, daliClass.file
-
- end
- puts"\n"
- puts("Done. Generated #{$totalConstructorsGenerated} Constructors for #{$totalDaliClasses} DALi C# classes".blueBackground)
-
-
-
-end
-
-init
-grepConstructorInfo
-grepStaticNewInfo
-generateNewConstructors
-updateCSharpFiles
-
-
+++ /dev/null
-/** 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.
-*
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- class Example
- {
- // This is simple structure to contain Control name and implement state at once
- // name : control name
- // isImplemented : the state which the control is implemented in public or not
- private struct Item
- {
- public String name;
- public bool isImplemented;
-
- public Item(String name, bool isImplemented)
- {
- this.name = name;
- this.isImplemented = isImplemented;
- }
- }
-
- private Dali.Application _application;
- private TableView _contentContainer;
- private Timer _timer;
- private Stage _stage;
- private Popup _popup;
- private ProgressBar _progressBar;
-
- // List of items
- private Item[] mViewList = {
- new Item("PushButton", true), new Item("DropDown", false), new Item("Toggle", true),
- new Item("InputField", false), new Item("AnimateGif", false), new Item("Loading", false),
- new Item("ProgressBar", true), new Item("CheckBox", false), new Item("RadioButton", true),
- new Item("Tooltip", true), new Item("Popup", true), new Item("Toast", true),
- new Item("ItemView", false), new Item("CheckBox", true)
- };
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += OnInitialize;
- }
-
- public void OnInitialize(object source, NUIApplicationInitEventArgs e)
- {
- Console.WriteLine("Customized Application Initialize event handler");
- _stage = Stage.GetCurrent();
- _stage.BackgroundColor = Color.White;
-
- // Top label
- TextLabel topLabel = new TextLabel();
- topLabel.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- topLabel.SetResizePolicy(ResizePolicyType.SIZE_RELATIVE_TO_PARENT, DimensionType.HEIGHT);
- topLabel.AnchorPoint = NDalic.AnchorPointTopCenter;
- topLabel.Position = new Position(0, 0, 0);
- topLabel.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f));
- topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);
- topLabel.TextColor = NDalic.WHITE;
- topLabel.Text = " DALi Views";
- topLabel.HorizontalAlignment = "BEGIN";
- topLabel.VerticalAlignment = "CENTER";
- topLabel.PointSize = 42.0f;
- _stage.Add(topLabel);
-
- // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right )
- _contentContainer = new TableView(6, 5);
- _contentContainer.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- _contentContainer.SetResizePolicy(ResizePolicyType.SIZE_RELATIVE_TO_PARENT, DimensionType.HEIGHT);
- _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f));
- _contentContainer.AnchorPoint = NDalic.AnchorPointBottomCenter;
- _contentContainer.Position = new Position(0, _stage.Size.Height * 0.1f, 0);
- _contentContainer.SetRelativeHeight(0, 0.07f);
- _contentContainer.SetRelativeHeight(1, 0.26f);
- _contentContainer.SetRelativeHeight(2, 0.07f);
- _contentContainer.SetRelativeHeight(3, 0.26f);
- _contentContainer.SetRelativeHeight(4, 0.07f);
- _contentContainer.SetRelativeHeight(5, 0.26f);
- _contentContainer.SetKeyboardFocusable(true);
- _stage.Add(_contentContainer);
-
- CreateContent();
-
- FocusManager.Instance.PreFocusChange += OnPreFocusChange;
- }
-
- // Callback for KeyboardFocusManager
- private Actor OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)
- {
- if (!e.Proposed && !e.Current)
- {
- e.Proposed = _contentContainer.GetChildAt(1);
- }
- return e.Proposed;
- }
-
- private void CreateContent()
- {
- for (int i = 0; i < mViewList.Length; i++)
- {
- CreateItem(mViewList[i], i);
- }
- }
-
- private void CreateItem(Item item, int idx)
- {
- // Make label for item
- TextLabel itemLabel = new TextLabel(" " + item.name);
- itemLabel.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.05f, 0.0f);
- itemLabel.HorizontalAlignment = "BEGIN";
- itemLabel.VerticalAlignment = "BOTTOM";
- itemLabel.PointSize = 18.0f;
- _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5));
-
- // If item is implemented in public, attach it on stage
- if (item.isImplemented)
- {
- if (item.name.CompareTo("PushButton") == 0)
- {
- PushButton pushButton = new PushButton();
- pushButton.LabelText = "Push Button";
- pushButton.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- pushButton.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT);
- pushButton.UnselectedColor = new Vector4(1.0f, 0.0f, 0.0f, 1.0f);
- pushButton.SelectedColor = new Vector4(0.0f, 1.0f, 0.0f, 1.0f);
- pushButton.Clicked += (obj, e) =>
- {
- e.Button.LabelText = "Click Me";
- e.Button.UnselectedColor = new Vector4(0.0f, 0.0f, 1.0f, 1.0f);
- return true;
- };
-
- _contentContainer.AddChild(pushButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("DropDown") == 0)
- {
-
- }
- if (item.name.CompareTo("Toggle") == 0)
- {
- ToggleButton toggleButton = new ToggleButton();
- Dali.Property.Array array = new Dali.Property.Array();
- array.Add(new Dali.Property.Value("./images/star-highlight.png"));
- array.Add(new Dali.Property.Value("./images/star-mod.png"));
- array.Add(new Dali.Property.Value("./images/star-dim.png"));
- toggleButton.StateVisuals = array;
-
- Dali.Property.Array tooltips = new Dali.Property.Array();
- tooltips.Add(new Dali.Property.Value("State A"));
- tooltips.Add(new Dali.Property.Value("State B"));
- tooltips.Add(new Dali.Property.Value("State C"));
- toggleButton.Tooltips = tooltips;
-
- toggleButton.WidthResizePolicy = "FILL_TO_PARENT";
- toggleButton.HeightResizePolicy = "FILL_TO_PARENT";
- toggleButton.Clicked += (obj, e) =>
- {
- Console.WriteLine("Toggle button state changed.");
- return true;
- };
-
- _contentContainer.AddChild(toggleButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("InputField") == 0)
- {
-
- }
- if (item.name.CompareTo("AnimateGif") == 0)
- {
-
- }
- if (item.name.CompareTo("Loading") == 0)
- {
-
- }
- if (item.name.CompareTo("ProgressBar") == 0)
- {
- _progressBar = new ProgressBar();
- _progressBar.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- _progressBar.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.HEIGHT);
- _progressBar.SetSize(0, 50);
-
- _progressBar.ValueChanged += OnProgressBarValueChanged;
-
- _timer = new Timer(100);
- _timer.Tick += (obj, e) =>
- {
- float progress = (float)Math.Round(_progressBar.ProgressValue, 2);
-
- if (progress == 1.0f)
- {
- _progressBar.ProgressValue = 0.0f;
- _progressBar.SecondaryProgressValue = 0.01f;
- }
- else
- {
- _progressBar.ProgressValue = progress + 0.01f;
- _progressBar.SecondaryProgressValue = progress + 0.21f;
- }
- return true;
- };
- _timer.Start();
-
- _contentContainer.AddChild(_progressBar, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("ScrollBar") == 0)
- {
-
- }
- if (item.name.CompareTo("CheckBox") == 0)
- {
- CheckBoxButton checkBoxButton = new CheckBoxButton();
- checkBoxButton.LabelText = "Yes";
-
- _contentContainer.AddChild(checkBoxButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("RadioButton") == 0)
- {
- TableView tableView = new TableView(2, 1);
- tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT);
-
- RadioButton rButton = new RadioButton();
- rButton.LabelText = "Yes";
- rButton.Selected = true;
-
- tableView.AddChild(rButton, new TableView.CellPosition(0, 0));
-
- rButton = new RadioButton();
- rButton.LabelText = "No";
-
- tableView.AddChild(rButton, new TableView.CellPosition(1, 0));
-
- _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("Tooltip") == 0)
- {
- TableView tableView = new TableView(2, 1);
- tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- tableView.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT);
-
- // Create two push buttons and add them to a table view
- PushButton buttonWithSimpleTooltip = new PushButton();
- buttonWithSimpleTooltip.LabelText = "Tooltip with text only";
- buttonWithSimpleTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f);
- buttonWithSimpleTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f);
- buttonWithSimpleTooltip.WidthResizePolicy = "FILL_TO_PARENT";
- tableView.AddChild(buttonWithSimpleTooltip, new TableView.CellPosition(0, 0));
-
- PushButton buttonWithIconTooltip = new PushButton();
- buttonWithIconTooltip.LabelText = "Tooltip with Text and Icon";
- buttonWithIconTooltip.WidthResizePolicy = "FILL_TO_PARENT";
- buttonWithIconTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f);
- buttonWithIconTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f);
-
- tableView.AddChild(buttonWithIconTooltip, new TableView.CellPosition(1, 0));
-
- // Add a simple text only tooltip to the first push button
- buttonWithSimpleTooltip.TooltipText = "Simple Tooltip";
-
- // Create a property map for a tooltip with one icon and one text
- Property.Array iconTooltipContent = new Property.Array();
-
- Property.Map iconVisual = new Property.Map();
- iconVisual.Add(Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Image))
- .Add(Dali.Constants.ImageVisualProperty.URL, new Property.Value("./images/star-highlight.png"));
- iconTooltipContent.Add(new Property.Value(iconVisual));
-
- Property.Map textVisual = new Property.Map();
- textVisual.Add(Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Text))
- .Add(Dali.Constants.TextVisualProperty.Text, new Property.Value("Tooltip with Icon"));
- iconTooltipContent.Add(new Property.Value(textVisual));
-
- Property.Map iconTooltip = new Property.Map();
- iconTooltip.Add(Dali.Constants.Tooltip.Property.Content, new Property.Value(iconTooltipContent))
- .Add(Dali.Constants.Tooltip.Property.Tail, new Property.Value(true));
-
- // Add the tooltip with icon and text to the second push button
- buttonWithIconTooltip.Tooltip = iconTooltip;
-
- _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("Popup") == 0)
- {
- PushButton button = new PushButton();
- button.LabelText = "Popup";
- button.ParentOrigin = NDalic.ParentOriginCenter;
- button.AnchorPoint = NDalic.AnchorPointCenter;
- button.MaximumSize = new Vector2(90.0f, 50.0f);
- _popup = CreatePopup();
- _popup.SetTitle(CreateTitle("Popup"));
-
- TextLabel text = new TextLabel("This will erase the file permanently. Are you sure?");
- text.BackgroundColor = Color.White;
- text.MultiLine = true;
- text.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- text.SetResizePolicy(ResizePolicyType.DIMENSION_DEPENDENCY, DimensionType.HEIGHT);
- text.SetPadding(new PaddingType(10.0f, 10.0f, 20.0f, 0.0f));
- _popup.SetContent(text);
- _popup.SetKeyboardFocusable(true);
- _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN);
-
- button.Clicked += (obj, ee) =>
- {
- _stage.Add(_popup);
- _popup.SetDisplayState(Popup.DisplayStateType.SHOWN);
- FocusManager.Instance.SetCurrentFocusActor((_popup.FindChildByName("Footer")).FindChildByName("OKButton"));
- return true;
- };
- _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("Toast") == 0)
- {
- PushButton button = new PushButton();
- button.LabelText = "Toast";
- button.ParentOrigin = NDalic.ParentOriginCenter;
- button.AnchorPoint = NDalic.AnchorPointCenter;
- button.Clicked += (obj, ee) =>
- {
- TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo("PopupToast"));
- if (typeInfo)
- {
- BaseHandle baseHandle = typeInfo.CreateInstance();
- if (baseHandle)
- {
- Popup toast = Popup.DownCast(baseHandle);
- TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself");
- text.TextColor = Color.White;
- text.MultiLine = true;
- text.HorizontalAlignment = "center";
- toast.SetTitle(text);
- _stage.Add(toast);
- toast.SetDisplayState(Popup.DisplayStateType.SHOWN);
- }
- }
- return true;
- };
- _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- if (item.name.CompareTo("ItemView") == 0)
- {
-
- }
- }
- else
- {
- ImageView notSupportView = new ImageView("images/not_yet_sign.png");
- notSupportView.Size = new Vector3(_stage.GetSize().Width * 0.2f, _stage.GetSize().Height * 0.25f, 0.0f);
- notSupportView.SetKeyboardFocusable(true);
-
- _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
- }
- }
- Popup CreatePopup()
- {
- Popup confirmationPopup = new Popup();
-
- Actor footer = new Actor();
- footer.SetName("Footer");
- footer.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.WIDTH);
- footer.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.HEIGHT);
- footer.SetSize(0.0f, 80.0f);
- footer.ParentOrigin = NDalic.ParentOriginCenter;
- footer.AnchorPoint = NDalic.AnchorPointCenter;
-
- PushButton okButton = CreateOKButton();
- okButton.ParentOrigin = NDalic.ParentOriginCenter;
- okButton.AnchorPoint = NDalic.AnchorPointCenter;
- okButton.SetResizePolicy(ResizePolicyType.SIZE_FIXED_OFFSET_FROM_PARENT, DimensionType.ALL_DIMENSIONS);
- okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));
-
-
- PushButton cancelButton = CreateCancelButton();
- cancelButton.ParentOrigin = NDalic.ParentOriginCenter;
- cancelButton.AnchorPoint = NDalic.AnchorPointCenter;
- cancelButton.SetResizePolicy(ResizePolicyType.SIZE_FIXED_OFFSET_FROM_PARENT, DimensionType.ALL_DIMENSIONS);
- cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));
-
-
- TableView controlLayout = new TableView(1, 2);
- controlLayout.ParentOrigin = NDalic.ParentOriginCenter;
- controlLayout.AnchorPoint = NDalic.AnchorPointCenter;
- controlLayout.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS);
- controlLayout.SetCellPadding(new Size2D(10, 10));
- controlLayout.SetRelativeWidth(0, 0.5f);
- controlLayout.SetRelativeWidth(1, 0.5f);
- controlLayout.SetCellAlignment(new TableView.CellPosition(0, 0), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER);
- controlLayout.SetCellAlignment(new TableView.CellPosition(0, 1), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER);
- controlLayout.AddChild(okButton, new TableView.CellPosition(0, 0));
- controlLayout.AddChild(cancelButton, new TableView.CellPosition(0, 1));
-
-
- footer.Add(controlLayout);
-
- confirmationPopup.SetFooter(footer);
- return confirmationPopup;
- }
- Actor CreateTitle(string title)
- {
- TextLabel titleActor = new TextLabel(title);
- titleActor.TextColor = Color.White;
- titleActor.MultiLine = true;
- titleActor.HorizontalAlignment = "center";
-
- return titleActor;
- }
-
- PushButton CreateOKButton()
- {
- PushButton okayButton = new PushButton();
- okayButton.SetName("OKButton");
- okayButton.LabelText = "OK";
- okayButton.SetKeyboardFocusable(true);
- okayButton.Clicked += (obj, ee) =>
- {
- _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN);
- return true;
- };
- return okayButton;
- }
- PushButton CreateCancelButton()
- {
- PushButton cancelButton = new PushButton();
- cancelButton.LabelText = "Cancel";
- cancelButton.SetKeyboardFocusable(true);
- cancelButton.Clicked += (obj, ee) =>
- {
- _popup.SetDisplayState(Popup.DisplayStateType.HIDDEN);
- return true;
- };
- return cancelButton;
- }
-
- void OnProgressBarValueChanged(object source, ProgressBar.ValueChangedEventArgs e)
- {
- Property.Map labelVisual = new Property.Map();
- labelVisual.Add(Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Text))
- .Add(Dali.Constants.TextVisualProperty.Text, new Property.Value(Math.Round(e.ProgressBar.ProgressValue, 2) + " / " + Math.Round(e.ProgressBar.SecondaryProgressValue, 2)));
- e.ProgressBar.LabelVisual = labelVisual;
- return;
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
-
- [STAThread]
- static void Main(string[] args)
- {
- Console.WriteLine("Hello Mono World");
-
- Example example = new Example(Application.NewApplication("json/control-dashboard.json"));
- example.MainLoop();
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- // A custom control for star rating (draggable to change the rating)
- class StarRating : CustomView
- {
- private FlexContainer _container;
- private ImageView[] _images;
- private Vector3 _gestureDisplacement;
- private int _currentValue;
- private int _myRating;
- private bool _myDragEnabled;
-
- // Called by DALi Builder if it finds a StarRating control in a JSON file
- static CustomView CreateInstance()
- {
- return new StarRating();
- }
-
- // static constructor registers the control type (only runs once)
- static StarRating()
- {
- // ViewRegistry registers control type with DALi type registery
- // also uses introspection to find any properties that need to be registered with type registry
- ViewRegistry.Instance.Register(CreateInstance, typeof(StarRating) );
- }
-
- public StarRating() : base(typeof(StarRating).Name, ViewWrapperImpl.CustomViewBehaviour.VIEW_BEHAVIOUR_DEFAULT)
- {
- }
-
- public override void OnInitialize()
- {
- // Create a container for the star images
- _container = new FlexContainer();
-
- _container.ParentOrigin = NDalic.ParentOriginTopLeft;
- _container.AnchorPoint = NDalic.AnchorPointTopLeft;
- _container.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW;
- _container.WidthResizePolicy = "FILL_TO_PARENT";
- _container.HeightResizePolicy = "FILL_TO_PARENT";
-
- this.Add(_container);
-
- // Create the images
- _images = new ImageView[5];
-
- for(int i = 0; i < 5; i++)
- {
- _images[i] = new ImageView("./images/star-dim.png");
- _container.Add( _images[i] );
- }
-
- // Update the images according to the rating (dimmed star by default)
- _myRating = 0;
- UpdateStartImages(_myRating);
-
- // Enable pan gesture detection
- EnableGestureDetection(Gesture.GestureType.Pan);
- _myDragEnabled = true; // Allow dragging by default (can be disabled)
- }
-
- // Pan gesture handling
- public override void OnPan(PanGesture gesture)
- {
- // Only handle pan gesture if dragging is allowed
- if(_myDragEnabled)
- {
- switch (gesture.State)
- {
- case Gesture.StateType.Started:
- {
- _gestureDisplacement = new Vector3(0.0f, 0.0f, 0.0f);
- _currentValue = 0;
- break;
- }
- case Gesture.StateType.Continuing:
- {
- // Calculate the rating according to pan desture displacement
- _gestureDisplacement.X += gesture.Displacement.X;
- int delta = (int)Math.Ceiling(_gestureDisplacement.X / 40.0f);
- _currentValue = _myRating + delta;
-
- // Clamp the rating
- if(_currentValue < 0) _currentValue = 0;
- if(_currentValue > 5) _currentValue = 5;
-
- // Update the images according to the rating
- UpdateStartImages(_currentValue);
- break;
- }
- default:
- {
- _myRating = _currentValue;
- break;
- }
- }
- }
- }
-
- // Update the images according to the rating
- private void UpdateStartImages(int rating)
- {
- for(int i = 0; i < rating; i++)
- {
- _images[i].WidthResizePolicy = "USE_NATURAL_SIZE";
- _images[i].HeightResizePolicy = "USE_NATURAL_SIZE";
- _images[i].SetImage("./images/star-highlight.png");
- }
-
- for(int i = rating; i < 5; i++)
- {
- _images[i].WidthResizePolicy = "USE_NATURAL_SIZE";
- _images[i].HeightResizePolicy = "USE_NATURAL_SIZE";
- _images[i].SetImage("./images/star-dim.png");
- }
- }
-
- // Rating property of type int:
- public int Rating
- {
- get
- {
- return _myRating;
- }
- set
- {
- _myRating = value;
- UpdateStartImages(_myRating);
- }
- }
-
- // DragEnabled property of type bool:
- public bool DragEnabled
- {
- get
- {
- return _myDragEnabled;
- }
- set
- {
- _myDragEnabled = value;
- }
- }
- }
-
- class Example
- {
- private Dali.Application _application;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void CallbackDelegate();
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
-
- // Create a container to layout the rows of image and rating vertically
- FlexContainer container = new FlexContainer();
-
- container.ParentOrigin = NDalic.ParentOriginTopLeft;
- container.AnchorPoint = NDalic.AnchorPointTopLeft;
- container.FlexDirection = (int)FlexContainer.FlexDirectionType.COLUMN;
- container.WidthResizePolicy = "FILL_TO_PARENT";
- container.HeightResizePolicy = "FILL_TO_PARENT";
-
- stage.Add(container);
-
- Random random = new Random();
-
- for(int i = 0; i < 6; i++) // 6 rows in total
- {
- // Create a container to layout the image and rating (in each row) horizontally
- FlexContainer imageRow = new FlexContainer();
- imageRow.ParentOrigin = NDalic.ParentOriginTopLeft;
- imageRow.AnchorPoint = NDalic.AnchorPointTopLeft;
- imageRow.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW;
- imageRow.Flex = 1.0f;
- container.Add(imageRow);
-
- // Add the image view to the row
- ImageView image = new ImageView("./images/gallery-" + i + ".jpg");
- image.Size = new Vector3(120.0f, 120.0f, 0.0f);
- image.WidthResizePolicy = "FIXED";
- image.HeightResizePolicy = "FIXED";
- image.AlignSelf = (int)FlexContainer.Alignment.ALIGN_CENTER;
- image.Flex = 0.3f;
- image.FlexMargin = new Vector4(10.0f, 0.0f, 0.0f, 0.0f);
- imageRow.Add(image);
-
- // Create a rating control
- StarRating view = new StarRating();
-
- // Add the rating control to the row
- view.ParentOrigin = NDalic.ParentOriginCenter;
- view.AnchorPoint = NDalic.AnchorPointCenter;
- view.Size = new Vector3(200.0f, 40.0f, 0.0f);
- view.Flex = 0.7f;
- view.AlignSelf = (int)FlexContainer.Alignment.ALIGN_CENTER;
- view.FlexMargin = new Vector4(30.0f, 0.0f, 0.0f, 0.0f);
- imageRow.Add(view);
-
- // Set the initial rating randomly between 1 and 5
- view.Rating = random.Next(1, 6);
- }
- }
-
- public void MainLoop()
- {
- _application.MainLoop ();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(MyCSharpExample.StarRating).TypeHandle);
-
- Example example = new Example(Application.NewApplication());
- example.MainLoop ();
- }
- }
-}
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- class MyView : View
- {
- private string _myOwnName;
- public int _myCurrentValue;
-
- public MyView()
- {
- _myCurrentValue = 0;
- }
-
- public string MyOwnName
- {
- get
- {
- return _myOwnName;
- }
- set
- {
- _myOwnName = value;
- }
- }
- }
-
- class MyButton : PushButton
- {
- private string _myOwnName;
- public int _myCurrentValue;
-
- public MyButton()
- {
- _myCurrentValue = 0;
- }
-
- public string MyOwnName
- {
- get
- {
- return _myOwnName;
- }
- set
- {
- _myOwnName = value;
- }
- }
- }
-
- class MySpin : Spin
- {
- private string _myOwnName;
- public int _myCurrentValue;
-
- public MySpin()
- {
- _myCurrentValue = 0;
- }
-
- public string MyOwnName
- {
- get
- {
- return _myOwnName;
- }
- set
- {
- _myOwnName = value;
- }
- }
- }
-
- class Example
- {
- private Dali.Application _application;
-
- public Example(Dali.Application application)
- {
- _application = application;
- Console.WriteLine("1) InitSignal connection count = " + _application.InitSignal().GetConnectionCount());
-
- _application.Initialized += Initialize;
- Console.WriteLine("2) InitSignal connection count = " + _application.InitSignal().GetConnectionCount());
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
-
- //1)
- NavigationPropertiesTests();
-
- //2)
- OperatorTests();
-
- //3)
- CustomViewPropertyTest();
-
- //4)
- ActorHandleTest();
-
- //5)
- RectanglePaddingClassTest();
-
- //6)
- SizePositionTest();
-
- //7)
- ViewDownCastTest();
-
- }
-
-
- public void NavigationPropertiesTests()
- {
- Console.WriteLine("");
- Console.WriteLine("### [1] NavigationPropertiesTests START");
-
- View view = new View();
- View leftView, rightView, upView, downView, tmpView;
-
- leftView = new View();
- leftView.Name = "leftView";
- rightView = new View();
- rightView.Name = "rightView";
- upView = new View();
- upView.Name = "upView";
- downView = new View();
- downView.Name = "downView";
-
- Stage.Instance.Add(leftView);
- Stage.Instance.Add(rightView);
- Stage.Instance.Add(upView);
- Stage.Instance.Add(downView);
-
- view.LeftFocusableView = leftView;
- tmpView = view.LeftFocusableView;
- if (string.Compare(tmpView.Name, "leftView") == 0)
- {
- Console.WriteLine("Passed: LeftFocusedView = " + tmpView.Name);
- }
- else
- {
- Console.WriteLine("Failed: LeftFocusedView = " + tmpView.Name);
- }
-
- view.RightFocusableView = rightView;
- tmpView = view.RightFocusableView;
- if (string.Compare(tmpView.Name, "rightView") == 0)
- {
- Console.WriteLine("Passed: RightFocusedView = " + tmpView.Name);
- }
- else
- {
- Console.WriteLine("Failed: RightFocusedView = " + tmpView.Name);
- }
-
- Stage.Instance.Add(view);
-
- view.UpFocusableView = upView;
- tmpView = view.UpFocusableView;
- if (string.Compare(tmpView.Name, "upView") == 0)
- {
- Console.WriteLine("Passed: UpFocusedView = " + tmpView.Name);
- }
- else
- {
- Console.WriteLine("Failed: UpFocusedView = " + tmpView.Name);
- }
-
- view.DownFocusableView = downView;
- tmpView = view.DownFocusableView;
- if (string.Compare(tmpView.Name, "downView") == 0)
- {
- Console.WriteLine("Passed: DownFocusedView = " + tmpView.Name);
- }
- else
- {
- Console.WriteLine("Failed: DownFocusedView = " + tmpView.Name);
- }
-
- Stage.Instance.Remove(leftView);
- tmpView = view.LeftFocusableView;
- if (!tmpView)
- {
- Console.WriteLine("Passed: NULL LeftFocusedView");
- }
- else
- {
- Console.WriteLine("Failed: LeftFocusedView = " + tmpView.Name);
- }
-
- Console.WriteLine("### [1] NavigationPropertiesTests END");
- }
-
- public void OperatorTests()
- {
- Console.WriteLine("");
- Console.WriteLine("### [2] OperatorTests START");
- Actor actor = new Actor();
- Actor differentActor = new Actor();
- Actor actorSame = actor;
- Actor nullActor = null;
-
- // test the true operator
- if (actor)
- {
- Console.WriteLine("BaseHandle Operator true (actor) : test passed ");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator true (actor): test failed ");
- }
-
- Actor parent = actor.GetParent();
-
- if (parent)
- {
- Console.WriteLine("Handle with Empty body :failed ");
- }
- else
- {
- Console.WriteLine("Valid with Empty body :passed ");
- }
-
- actor.Add(differentActor);
-
- // here we test two different C# objects, which on the native side have the same body/ ref-object
- if (actor == differentActor.GetParent())
- {
- Console.WriteLine("actor == differentActor.GetParent() :passed ");
- }
- else
- {
- Console.WriteLine("actor == differentActor.GetParent() :failed ");
- }
-
- if (differentActor == differentActor.GetParent())
- {
- Console.WriteLine("differentActor == differentActor.GetParent() :failed ");
- }
- else
- {
- Console.WriteLine("differentActor == differentActor.GetParent() :passed ");
- }
-
- if (nullActor)
- {
- Console.WriteLine("BaseHandle Operator true (nullActor) : test failed ");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator true (nullActor): test passed ");
- }
-
- // ! operator
- if (!actor)
- {
- Console.WriteLine("BaseHandle Operator !(actor) : test failed ");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator !(actor): test passed ");
- }
-
- if (!nullActor)
- {
- Console.WriteLine("BaseHandle Operator !(nullActor) : test passed ");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator !(nullActor): test failed ");
- }
-
- // Note: operator false only used inside & operator
- // test equality operator ==
- if (actor == actorSame)
- {
- Console.WriteLine("BaseHandle Operator (actor == actorSame) : test passed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor == actorSame) : test failed");
- }
-
- if (actor == differentActor)
- {
- Console.WriteLine("BaseHandle Operator (actor == differentActor) : test failed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor == differentActor) : test passed");
- }
-
- if (actor == nullActor)
- {
- Console.WriteLine("BaseHandle Operator (actor == nullActor) : test failed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor == nullActor) : test passed");
- }
-
- if (nullActor == nullActor)
- {
- Console.WriteLine("BaseHandle Operator (nullActor == nullActor) : test passed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (nullActor == nullActor) : test failed");
- }
-
- // test || operator
- if (actor || actorSame)
- {
- Console.WriteLine("BaseHandle Operator (actor || actorSame) : test passed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor || actorSame) : test failed");
- }
-
- if (actor || nullActor)
- {
- Console.WriteLine("BaseHandle Operator (actor || nullActor) : test passed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor || nullActor) : test failed");
- }
-
- if (nullActor || nullActor)
- {
- Console.WriteLine("BaseHandle Operator (nullActor || nullActor) : test failed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (nullActor || nullActor) : test passed");
- }
-
- // test && operator
- if (actor && actorSame)
- {
- Console.WriteLine("BaseHandle Operator (actor && actorSame) : test passed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor && actorSame) : test failed");
- }
-
- if (actor && nullActor)
- {
- Console.WriteLine("BaseHandle Operator (actor && nullActor) : test failed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (actor && nullActor) : test passed");
- }
-
- if (nullActor && nullActor)
- {
- Console.WriteLine("BaseHandle Operator (nullActor && nullActor) : test failed");
- }
- else
- {
- Console.WriteLine("BaseHandle Operator (nullActor && nullActor) : test passed");
- }
-
- Console.WriteLine("### [2] OperatorTests END");
-
- }
-
- public void CustomViewPropertyTest()
- {
- Console.WriteLine("");
- Console.WriteLine("### [3] CustomViewPropertyTest START");
-
- // Create a Spin control
- Spin spin = new Spin();
-
- // Background property
- Property.Map background = new Property.Map();
- background.Add(Dali.Constants.Visual.Property.Type, new Property.Value((int)Dali.Constants.Visual.Type.Color))
- .Add(Dali.Constants.ColorVisualProperty.MixColor, new Property.Value(Color.Red));
- spin.Background = background;
-
- background = spin.Background;
- Color backgroundColor = new Color();
- background.Find(Dali.Constants.ColorVisualProperty.MixColor).Get(backgroundColor);
-
- if (backgroundColor == Color.Red)
- {
- Console.WriteLine("Custom View Background property : test passed");
- }
- else
- {
- Console.WriteLine("Custom View Background property : test failed");
- }
-
- // BackgroundColor property
- spin.BackgroundColor = Color.Yellow;
-
- if (spin.BackgroundColor.EqualTo(Color.Yellow))
- {
- Console.WriteLine("Custom View BackgroundColor property : test passed");
- }
- else
- {
- Console.WriteLine("Custom View BackgroundColor property : test failed");
- }
-
- // BackgroundImage property
- spin.BackgroundImage = "background-image.jpg";
- if (spin.BackgroundImage == "background-image.jpg")
- {
- Console.WriteLine("Custom View BackgroundImage property : test passed");
- }
- else
- {
- Console.WriteLine("Custom View BackgroundImage property : test failed");
- }
-
- // StyleName property
- spin.StyleName = "MyCustomStyle";
- if (spin.StyleName == "MyCustomStyle")
- {
- Console.WriteLine("Custom View StyleName property : test passed");
- }
- else
- {
- Console.WriteLine("Custom View StyleName property : test failed");
- }
-
- Console.WriteLine("### [3] CustomViewPropertyTest END");
- }
-
-
-
- public void ActorHandleTest()
- {
- Console.WriteLine("");
- Console.WriteLine("### [4] ActorHandleTest START");
-
- Handle handle = new Handle();
- int myPropertyIndex = handle.RegisterProperty("myProperty", new Property.Value(10.0f), Property.AccessMode.READ_WRITE);
- float myProperty = 0.0f;
- handle.GetProperty(myPropertyIndex).Get(ref myProperty);
- Console.WriteLine("myProperty value: " + myProperty);
-
- int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new Property.Value(new Size(5.0f, 5.0f, 5.0f)), Property.AccessMode.READ_WRITE);
- Size myProperty2 = new Size(0.0f, 0.0f, 0.0f);
- handle.GetProperty(myPropertyIndex2).Get(myProperty2);
- Console.WriteLine("myProperty2 value: " + myProperty2.Width + ", " + myProperty2.Height);
-
- Actor actor = new Actor();
- actor.Size = new Position(200.0f, 200.0f, 0.0f);
- actor.Name = "MyActor";
- Console.WriteLine("Actor id: {0}", actor.GetId());
- Console.WriteLine("Actor size: " + actor.Size.X + ", " + actor.Size.Y);
- Console.WriteLine("Actor name: " + actor.Name);
-
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
- Size2D stageSize = stage.Size;
- Console.WriteLine("Stage size: " + stageSize.Width + ", " + stageSize.Height);
- stage.Add(actor);
-
- TextLabel text = new TextLabel("Hello World");
- text.ParentOrigin = NDalic.ParentOriginCenter;
- text.AnchorPoint = NDalic.AnchorPointCenter;
- text.HorizontalAlignment = "CENTER";
- stage.Add(text);
-
- Console.WriteLine("Text label text: " + text.Text);
-
- Console.WriteLine("Text label point size: " + text.PointSize);
- text.PointSize = 32.0f;
- Console.WriteLine("Text label new point size: " + text.PointSize);
-
- Console.WriteLine("### [4] ActorHandleTest END");
-
- }
-
-
-
- public void RectanglePaddingClassTest()
- {
- Console.WriteLine("");
- Console.WriteLine("### [5] RectanglePaddingClassTest START");
-
- using (Rectangle r1 = new Rectangle(2, 5, 20, 30))
- {
- Console.WriteLine(" Created " + r1);
- Console.WriteLine(" IsEmpty() = " + r1.IsEmpty());
- Console.WriteLine(" Left = " + r1.Left());
- Console.WriteLine(" Right = " + r1.Right());
- Console.WriteLine(" Top = " + r1.Top());
- Console.WriteLine(" Bottom = " + r1.Bottom());
- Console.WriteLine(" Area = " + r1.Area());
- }
-
- Console.WriteLine(" *************************");
-
- using (Rectangle r2 = new Rectangle(2, 5, 20, 30))
- {
- Console.WriteLine(" Created " + r2);
- r2.Set(1, 1, 40, 40);
- Console.WriteLine(" IsEmpty() = " + r2.IsEmpty());
- Console.WriteLine(" Left = " + r2.Left());
- Console.WriteLine(" Right = " + r2.Right());
- Console.WriteLine(" Top = " + r2.Top());
- Console.WriteLine(" Bottom = " + r2.Bottom());
- Console.WriteLine(" Area = " + r2.Area());
- }
-
- Console.WriteLine(" *************************");
-
- Rectangle r3 = new Rectangle(10, 10, 20, 20);
- Rectangle r4 = new Rectangle(10, 10, 20, 20);
-
- if (r3 == r4)
- {
- Console.WriteLine("r3 == r4");
- }
- else
- {
- Console.WriteLine("r3 != r4");
- }
-
- r4 = new Rectangle(12, 10, 20, 20);
-
- if (r3 == r4)
- {
- Console.WriteLine("r3 == r4");
- }
- else
- {
- Console.WriteLine("r3 != r4");
- }
-
- PaddingType p1 = new PaddingType(10.5f, 10.7f, 20.8f, 20.8f);
- PaddingType p2 = new PaddingType(10.5f, 10.7f, 20.8f, 20.8f);
-
- if (p1 == p2)
- {
- Console.WriteLine("p1 == p2");
- }
- else
- {
- Console.WriteLine("p1 != p2");
- }
-
- p2 = new PaddingType(12.0f, 10.7f, 20.2f, 20.0f);
-
- if (p1 == p2)
- {
- Console.WriteLine("p1 == p2");
- }
- else
- {
- Console.WriteLine("p1 != p2");
- }
- Console.WriteLine("### [5] RectanglePaddingClassTest END");
-
- }
-
-
- public void SizePositionTest()
- {
- Console.WriteLine("");
- Console.WriteLine("### [6] SizePositionTest START");
-
- Size Size = new Size(100, 50, 25);
- Console.WriteLine(" Created " + Size);
- Console.WriteLine(" Size w = " + Size.Width + ", h = " + Size.Height + ", d = " + Size.Depth);
- Size += new Size(20, 20, 20);
- Console.WriteLine(" Size w = " + Size.Width + ", h = " + Size.Height + ", d = " + Size.Depth);
- Size.Width += 10;
- Size.Height += 10;
- Size.Depth += 10;
- Console.WriteLine(" Size width = " + Size.Width+ ", height = " + Size.Height + ", depth = " + Size.Depth);
-
- Console.WriteLine(" *************************");
- Position Position = new Position(20, 100, 50);
- Console.WriteLine(" Created " + Position);
- Console.WriteLine(" Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z);
- Position += new Position(20, 20, 20);
- Console.WriteLine(" Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z);
- Position.X += 10;
- Position.Y += 10;
- Position.Z += 10;
- Console.WriteLine(" Position width = " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z);
- Position parentOrigin = ParentOrigin.BottomRight;
- Console.WriteLine(" parentOrigin x = " + parentOrigin.X + ", y = " + parentOrigin.Y + ", z = " + parentOrigin.Z);
-
- Console.WriteLine(" *************************");
- Color color = new Color(20, 100, 50, 200);
- Console.WriteLine(" Created " + color);
- Console.WriteLine(" Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A);
- color += new Color(20, 20, 20, 20);
- Console.WriteLine(" Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A);
- color.R += 10;
- color.G += 10;
- color.B += 10;
- color.A += 10;
- Console.WriteLine(" Color r = " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A);
-
- Console.WriteLine("### [6] SizePositionTest END");
- }
-
-
- public void ViewDownCastTest()
- {
- Console.WriteLine("");
- Console.WriteLine("### [7] ViewDownCastTest START");
-
- View container = new View();
- container.Position = new Position(-800.0f, -800.0f, 0.0f);
- Stage.GetCurrent().Add(container);
-
- // Test downcast for native control
- TextLabel myLabel = new TextLabel();
- myLabel.Name = "MyLabelName";
- myLabel.Text = "MyText";
-
- Console.WriteLine("myLabel.Name = " + myLabel.Name + ", Text = " + myLabel.Text);
-
- container.Add(myLabel);
-
- Actor myLabelActor = container.FindChildByName("MyLabelName");
- if (myLabelActor)
- {
- TextLabel newLabel = View.DownCast<TextLabel>(myLabelActor);
- if (newLabel)
- {
- Console.WriteLine("Downcast to TextLabel successful: newLabel Name = " + newLabel.Name + ", Text = " + newLabel.Text);
- }
- else
- {
- Console.WriteLine("Downcast to TextLabel failed!");
- }
- }
-
- // Test downcast for class directly inherited from View
- MyView myView = new MyView();
- myView.Name = "MyViewName";
- myView.MyOwnName = "MyOwnViewName";
- myView._myCurrentValue = 5;
-
- Console.WriteLine("myView.Name = " + myView.Name + ", MyOwnName = " + myView.MyOwnName + ", myCurrentValue = " + myView._myCurrentValue);
-
- container.Add(myView);
-
- Actor myViewActor = container.FindChildByName("MyViewName");
- if (myViewActor)
- {
- MyView newView = View.DownCast<MyView>(myViewActor);
- if (newView)
- {
- Console.WriteLine("Downcast to MyView successful: newView Name = " + newView.Name + ", MyOwnName = " + newView.MyOwnName + ", myCurrentValue = " + newView._myCurrentValue);
- }
- else
- {
- Console.WriteLine("Downcast to MyView failed!");
- }
- }
-
- // Test downcast for class directly inherited from native control
- MyButton myButton = new MyButton();
- myButton.Name = "MyButtonName";
- myButton.MyOwnName = "MyOwnViewName";
- myButton.LabelText = "MyLabelText";
- myButton._myCurrentValue = 5;
-
- Console.WriteLine("myButton.Name = " + myButton.Name + ", MyOwnName = " + myButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + myButton._myCurrentValue);
-
- container.Add(myButton);
-
- Actor myButtonActor = container.FindChildByName("MyButtonName");
- if (myButtonActor)
- {
- MyButton newButton = View.DownCast<MyButton>(myButtonActor);
- if (newButton)
- {
- Console.WriteLine("Downcast to MyButton successful: newButton Name = " + newButton.Name + ", MyOwnName = " + newButton.MyOwnName + ", LabelText = " + myButton.LabelText + ", myCurrentValue = " + newButton._myCurrentValue);
- }
- else
- {
- Console.WriteLine("Downcast to MyButton failed!");
- }
- }
-
- // Test downcast for a CustomView
- Spin spin = new Spin();
- spin.Name = "SpinName";
- spin.MaxValue = 8888;
-
- Console.WriteLine("spin.Name = " + spin.Name + ", MaxValue = " + spin.MaxValue);
-
- container.Add(spin);
-
- Actor spinActor = container.FindChildByName("SpinName");
- if (spinActor)
- {
- Spin newSpin = View.DownCast<Spin>(spinActor);
- if (newSpin)
- {
- Console.WriteLine("Downcast to Spin successful: newSpin Name = " + newSpin.Name + ", MaxValue = " + newSpin.MaxValue);
- }
- else
- {
- Console.WriteLine("Downcast to Spin failed!");
- }
- }
-
- // Test downcast for class inherited from a CustomView
- MySpin mySpin = new MySpin();
- mySpin.Name = "MySpinName";
- mySpin.MyOwnName = "MyOwnSpinName";
- mySpin.MaxValue = 8888;
- mySpin._myCurrentValue = 5;
-
- Console.WriteLine("mySpin.Name = " + mySpin.Name + ", MyOwnName = " + mySpin.MyOwnName + ", MaxValue = " + mySpin.MaxValue + ", currentValue = " + mySpin._myCurrentValue);
-
- container.Add(mySpin);
-
- Actor mySpinActor = container.FindChildByName("MySpinName");
- if (mySpinActor)
- {
- MySpin newSpin = View.DownCast<MySpin>(mySpinActor);
- if (newSpin)
- {
- Console.WriteLine("Downcast to MySpin successful: newSpin Name = " + newSpin.Name + ", MyOwnName = " + newSpin.MyOwnName + ", MaxValue = " + newSpin.MaxValue + ", currentValue = " + newSpin._myCurrentValue);
- }
- else
- {
- Console.WriteLine("Downcast to MySpin failed!");
- }
- }
-
- Console.WriteLine("### [7] ViewDownCastTest END");
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World");
-
- Example example = new Example(Application.NewApplication());
- example.MainLoop();
- }
-
- private void LOG(string str, int result = -1)
- {
- if (result == 1) Console.WriteLine(str + " : test passed!");
- else if (result == 0) Console.WriteLine(str + " : test failed! TEST FAILED! test failed! TEST FAILED!");
- else Console.WriteLine(str);
- }
-
- private void CustomPropertyHighLevelClassTest()
- {
- LOG("=================================");
- LOG(" high level class test");
- LOG("=================================");
-
- Handle handle = new Handle();
- int myPropertyIndex1 = handle.RegisterProperty("myProperty1", new Property.Value(new Size(10, 20, 30)), Property.AccessMode.READ_WRITE);
- Size myProperty1 = Dali.Size.Zero;
- handle.GetProperty(myPropertyIndex1).Get(myProperty1);
- if (myProperty1.EqualTo(new Size(10, 20, 30))) LOG( "myProperty1 must be Size(10, 20, 30) get=" + myProperty1, 1);
- else LOG( "myProperty1 must be Size(10, 20, 30) get=" + myProperty1, 0);
-
- int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new Property.Value(new Position(40, 50, 60)), Property.AccessMode.READ_WRITE);
- Position myProperty2 = Dali.Position.Zero;
- handle.GetProperty(myPropertyIndex2).Get(myProperty2);
- if (myProperty2.EqualTo(new Position(40, 50, 60))) LOG( "myProperty2 must be Position(40, 50, 60) get=" + myProperty2, 1);
- else LOG( "myProperty2 must be Position(40, 50, 60) get=" + myProperty2, 0);
-
- int myPropertyIndex3 = handle.RegisterProperty("myProperty3", new Property.Value(Color.Cyan), Property.AccessMode.READ_WRITE);
- Color myProperty3 = Color.Transparent;
- handle.GetProperty(myPropertyIndex3).Get(myProperty3);
- if (myProperty3.EqualTo(Color.Cyan)) LOG( "myProperty3 must be Color.Cyan get=" + myProperty3, 1);
- else LOG( "myProperty3 must be Color.Cyan get=" + myProperty3, 0);
-
- int myPropertyIndex4 = handle.RegisterProperty("myProperty4", new Property.Value(new Size2D(100, 200)), Property.AccessMode.READ_WRITE);
- Size2D myProperty4 = new Size2D(0, 0);
- handle.GetProperty(myPropertyIndex4).Get(myProperty4);
- if (myProperty4.EqualTo(new Size2D(100, 200))) LOG( "myProperty4 must be new Size2D(100, 200) get=" + myProperty4, 1);
- else LOG( "myProperty4 must be new Size2D(100, 200) get=" + myProperty4, 0);
-
- int myPropertyIndex5 = handle.RegisterProperty("myProperty5", new Property.Value(new Position2D(200, 300)), Property.AccessMode.READ_WRITE);
- Position2D myProperty5 = new Position2D(0, 0);
- handle.GetProperty(myPropertyIndex5).Get(myProperty5);
- if (myProperty5.EqualTo(new Position2D(200, 300))) LOG( "myProperty5 must be new Position2D(200, 300) get=" + myProperty5, 1);
- else LOG( "myProperty5 must be new Position2D(200, 300) get=" + myProperty5, 0);
-
- View view = new View();
- view.Size2D = new Size2D(new Size(200.0f, 200.0f, 0.0f));
- view.Name = "MyView1";
- view.BackgroundColor = new Color(1.0f, 0.0f, 1.0f, 0.8f);
- LOG("view id: " + view.GetId());
- LOG("view size: " + view.Size.Width + ", " + view.Size.Height + "," + view.Size.Depth);
- LOG("view size2d: " + view.Size2D.Width + ", " + view.Size2D.Height);
- LOG("view name: " + view.Name);
-
- Stage stage = Stage.GetCurrent();
- Size2D stageSize = stage.Size;
- LOG("Stage size2d: " + stageSize.Width + ", " + stageSize.Height);
- stage.Add(view);
-
- Size Size = new Size(100, 50, 25);
- LOG( Size + "Created. this should be (100, 50, 25)!");
- LOG( "Size width= " + Size.Width + ", height=" + Size.Height + ",depth=" + Size.Depth );
- Size += new Size(20, 20, 20);
- if(Size.EqualTo(new Size(120, 70, 45))){ LOG( "plus Size(20,20,20) should be +20 for each! x = " + Size.Width + ", y = " + Size.Height + ", z = " + Size.Depth, 1);}
- else { LOG( "plus Size(20,20,20) should be +20 for each! x = " + Size.Width + ", y = " + Size.Height + ", z = " + Size.Depth, 0);}
-
- Size.Width += 10;
- Size.Height += 10;
- Size.Depth += 10;
- if(Size.EqualTo(new Size(130, 80, 55))){ LOG( "plus 10 for each! width = " + Size.Width + ", height = " + Size.Height + ", depth = " + Size.Depth, 1); }
- else { LOG( "plus 10 for each! width = " + Size.Width + ", height = " + Size.Height + ", depth = " + Size.Depth, 0); }
-
- Position Position = new Position(20, 100, 50);
- LOG(Position + "Created ");
- LOG( "Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z );
- Position += new Position(20, 20, 20);
- if(Position.EqualTo(new Position(40, 120, 70))) LOG( "plus Position(20, 20, 20)! Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z, 1);
- else LOG( "plus Position(20, 20, 20)! Position x = " + Position.X + ", y = " + Position.Y + ", z = " + Position.Z, 0);
-
- Position.X += 10;
- Position.Y += 10;
- Position.Z += 10;
- if(Position.EqualTo(new Position(50, 130, 80))) LOG( "plus +10 for each! Position width = " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z, 1 );
- else LOG( "plus +10 for each! Position width = " + Position.X + ", height = " + Position.Y + ", depth = " + Position.Z, 0 );
-
- Position2D _position2d = new Position2D(new Position(600.0f, 700.0f, 800.0f));
- LOG(_position2d + "Created ");
- LOG( "_postion2d x = " + _position2d.X + ", y = " + _position2d.Y);
- _position2d += new Position2D(20, 20);
- if(_position2d.EqualTo(new Position2D(620, 720))) LOG( "plus Position2D(20, 20)! Position x = " + _position2d.X + ", y = " + _position2d.Y, 1);
- else LOG( "plus Position2D(20, 20)! Position x = " + _position2d.X + ", y = " + _position2d.Y, 0);
-
- Position parentOrigin = ParentOrigin.BottomRight;
- LOG( "parentOrigin.BottomRight x=" + parentOrigin.X + ", y=" + parentOrigin.Y + ", z=" + parentOrigin.Z );
-
- Color color = new Color(20, 100, 50, 200);
- LOG( color + " Created ");
- LOG( "Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A );
- color += new Color(20, 20, 20, 20);
- if(color.EqualTo(new Color(40, 120, 70, 220))) LOG( "plus Color(20, 20, 20, 20)! Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A, 1 );
- else LOG( "plus Color(20, 20, 20, 20)! Color R = " + color.R + ", G = " + color.G + ", B = " + color.B + ", A = " + color.A, 0 );
- color.R += 10;
- color.G += 10;
- color.B += 10;
- color.A += 10;
- if(color.EqualTo(new Color(50, 130, 80, 230))) LOG( "plus +10 for each! Color r = " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A, 1 );
- else LOG( "plus +10 for each! Color r = " + color.R + ", g = " + color.G + ", b = " + color.B + ", a = " + color.A, 0 );
-
- LOG("=================================");
- }
-
- }
-}
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- // A spin control (for continously changing values when users can easily predict a set of values)
-
- class Example
- {
- private Dali.Application _application;
- private Spin _spinYear; // spin control for year
- private Spin _spinMonth; // spin control for month
- private Spin _spinDay; // spin control for day
- private Builder _builder; // DALi Builder
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
-
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
-
- // load date JSON template...
-
- _builder = new Builder ();
-
- // Optional constant to see logging information coming out
- // of DALi JSON parser (builder)
- Property.Map constants = new Property.Map();
- constants.Insert( "CONFIG_SCRIPT_LOG_LEVEL", new Property.Value( "Verbose") );
- _builder.AddConstants( constants );
-
- _builder.LoadFromFile( "./json/date-picker-template.json" );
-
- // create the date-picker from the template in the json file
- BaseHandle handle = _builder.Create( "date-picker");
-
- Actor actorTree = Actor.DownCast( handle );
-
- stage.Add( actorTree );
-
- Actor year = actorTree.FindChildByName("Year");
- Actor month = actorTree.FindChildByName("Month" );
- Actor day = actorTree.FindChildByName("Day");
-
- // need to get the actual C# Spin object associated with the actor,
- _spinYear = View.DownCast<Spin>( year );
- _spinMonth = View.DownCast<Spin>( month );
- _spinDay = View.DownCast<Spin>( day );
-
- _spinYear.Value = 2099;
- _spinMonth.Value = 5;
- _spinDay.Value = 23;
-
- _spinYear.SetKeyboardFocusable(true);
- _spinMonth.SetKeyboardFocusable(true);
- _spinDay.SetKeyboardFocusable(true);
-
- FocusManager keyboardFocusManager = FocusManager.Instance;
- keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange;
- keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed;
-
- }
-
- private Actor OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)
- {
- Actor nextFocusActor = e.Proposed;
-
- // When nothing has been focused initially, focus the text field in the first spin
- if (!e.Current && !e.Proposed)
- {
- nextFocusActor = _spinYear.SpinText;
- }
- else if(e.Direction == View.KeyboardFocus.Direction.LEFT)
- {
- // Move the focus to the spin in the left of the current focused spin
- if(e.Current == _spinMonth.SpinText)
- {
- nextFocusActor = _spinYear.SpinText;
- }
- else if(e.Current == _spinDay.SpinText)
- {
- nextFocusActor = _spinMonth.SpinText;
- }
- }
- else if(e.Direction == View.KeyboardFocus.Direction.RIGHT)
- {
- // Move the focus to the spin in the right of the current focused spin
- if(e.Current == _spinYear.SpinText)
- {
- nextFocusActor = _spinMonth.SpinText;
- }
- else if(e.Current == _spinMonth.SpinText)
- {
- nextFocusActor = _spinDay.SpinText;
- }
- }
-
- return nextFocusActor;
- }
-
- private void OnFocusedActorEnterKeyPressed(object source, FocusManager.FocusedActorEnterKeyEventArgs e)
- {
- // Make the text field in the current focused spin to take the key input
- KeyInputFocusManager manager = KeyInputFocusManager.Get();
-
- if (e.Actor == _spinYear.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinYear.SpinText)
- {
- manager.SetFocus(_spinYear.SpinText);
- }
- }
- else if (e.Actor == _spinMonth.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinMonth.SpinText)
- {
- manager.SetFocus(_spinMonth.SpinText);
- }
- }
- else if (e.Actor == _spinDay.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinDay.SpinText)
- {
- manager.SetFocus(_spinDay.SpinText);
- }
- }
- }
-
- public void MainLoop()
- {
- _application.MainLoop ();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Example example = new Example(Application.NewApplication());
- example.MainLoop ();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- // A spin control (for continously changing values when users can easily predict a set of values)
-
- class Example
- {
- private Dali.Application _application;
- private FlexContainer _container; // Flex container to hold spin controls
- private Spin _spinYear; // spin control for year
- private Spin _spinMonth; // spin control for month
- private Spin _spinDay; // spin control for day
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
-
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
-
- // Create a container for the spins
- _container = new FlexContainer();
-
- _container.ParentOrigin = NDalic.ParentOriginCenter;
- _container.AnchorPoint = NDalic.AnchorPointCenter;
- _container.FlexDirection = (int)FlexContainer.FlexDirectionType.ROW;
- _container.Size = new Vector3(480.0f, 150.0f, 0.0f);
-
- stage.Add(_container);
-
- // Create a Spin control for year
- _spinYear = new Spin();
- _spinYear.ParentOrigin = NDalic.ParentOriginCenter;
- _spinYear.AnchorPoint = NDalic.AnchorPointCenter;
- _spinYear.Flex = 0.3f;
- _spinYear.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
- _container.Add(_spinYear);
-
- _spinYear.MinValue = 1900;
- _spinYear.MaxValue = 2100;
- _spinYear.Value = 2016;
- _spinYear.Step = 1;
- _spinYear.MaxTextLength = 4;
- _spinYear.TextPointSize = 26;
- _spinYear.TextColor = Color.White;
- _spinYear.SetKeyboardFocusable(true);
- _spinYear.Name = "_spinYear";
-
- // Create a Spin control for month
- _spinMonth = new Spin();
- _spinMonth.ParentOrigin = NDalic.ParentOriginCenter;
- _spinMonth.AnchorPoint = NDalic.AnchorPointCenter;
- _spinMonth.Flex = 0.3f;
- _spinMonth.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
- _container.Add(_spinMonth);
-
- _spinMonth.MinValue = 1;
- _spinMonth.MaxValue = 12;
- _spinMonth.Value = 10;
- _spinMonth.Step = 1;
- _spinMonth.MaxTextLength = 2;
- _spinMonth.TextPointSize = 26;
- _spinMonth.TextColor = Color.White;
- _spinMonth.SetKeyboardFocusable(true);
- _spinMonth.Name = "_spinMonth";
-
- // Create a Spin control for day
- _spinDay = new Spin();
- _spinDay.ParentOrigin = NDalic.ParentOriginCenter;
- _spinDay.AnchorPoint = NDalic.AnchorPointCenter;
- _spinDay.Flex = 0.3f;
- _spinDay.FlexMargin = new Vector4(5.0f, 0.0f, 5.0f, 0.0f);
- _container.Add(_spinDay);
-
- _spinDay.MinValue = 1;
- _spinDay.MaxValue = 31;
- _spinDay.Value = 26;
- _spinDay.Step = 1;
- _spinDay.MaxTextLength = 2;
- _spinDay.TextPointSize = 26;
- _spinDay.TextColor = Color.White;
- _spinDay.SetKeyboardFocusable(true);
- _spinDay.Name = "_spinDay";
-
- FocusManager keyboardFocusManager = FocusManager.Instance;
- keyboardFocusManager.PreFocusChange += OnKeyboardPreFocusChange;
- keyboardFocusManager.FocusedActorEnterKeyPressed += OnFocusedActorEnterKeyPressed;
-
- }
-
- private Actor OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)
- {
- Actor nextFocusActor = e.Proposed;
-
- // When nothing has been focused initially, focus the text field in the first spin
- if (!e.Current && !e.Proposed)
- {
- nextFocusActor = _spinYear.SpinText;
- }
- else if(e.Direction == View.KeyboardFocus.Direction.LEFT)
- {
- // Move the focus to the spin in the left of the current focused spin
- if(e.Current == _spinMonth.SpinText)
- {
- nextFocusActor = _spinYear.SpinText;
- }
- else if(e.Current == _spinDay.SpinText)
- {
- nextFocusActor = _spinMonth.SpinText;
- }
- }
- else if(e.Direction == View.KeyboardFocus.Direction.RIGHT)
- {
- // Move the focus to the spin in the right of the current focused spin
- if(e.Current == _spinYear.SpinText)
- {
- nextFocusActor = _spinMonth.SpinText;
- }
- else if(e.Current == _spinMonth.SpinText)
- {
- nextFocusActor = _spinDay.SpinText;
- }
- }
-
- return nextFocusActor;
- }
-
- private void OnFocusedActorEnterKeyPressed(object source, FocusManager.FocusedActorEnterKeyEventArgs e)
- {
- // Make the text field in the current focused spin to take the key input
- KeyInputFocusManager manager = KeyInputFocusManager.Get();
-
- if (e.Actor == _spinYear.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinYear.SpinText)
- {
- manager.SetFocus(_spinYear.SpinText);
- }
- }
- else if (e.Actor == _spinMonth.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinMonth.SpinText)
- {
- manager.SetFocus(_spinMonth.SpinText);
- }
- }
- else if (e.Actor == _spinDay.SpinText)
- {
- if (manager.GetCurrentFocusControl() != _spinDay.SpinText)
- {
- manager.SetFocus(_spinDay.SpinText);
- }
- }
- }
-
- public void MainLoop()
- {
- _application.MainLoop ();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Example example = new Example(Application.NewApplication());
- example.MainLoop ();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-using Tizen.Applications;
-
-//------------------------------------------------------------------------------
-// <manual-generated />
-//
-// This file can only run on Tizen target. You should compile it with DaliApplication.cs, and
-// add tizen c# application related library as reference.
-//------------------------------------------------------------------------------
-namespace MyCSharpExample
-{
- class Example : DaliApplication
- {
- protected override void OnCreate()
- {
- base.OnCreate();
- Initialize();
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void CallbackDelegate(IntPtr data);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void TouchCallbackDelegate(IntPtr data);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void AnimationCallbackDelegate(IntPtr data);
-
- private Animation _animation;
- private TextLabel _text;
-
- public Example():base()
- {
- }
-
- public Example(string stylesheet):base(stylesheet)
- {
- }
-
- public Example(string stylesheet, Dali.Application.WINDOW_MODE windowMode):base(stylesheet, windowMode)
- {
- }
-
- private void Initialize()
- {
- // Connect the signal callback for stage touched signal
- TouchCallbackDelegate stageTouchedCallback = new TouchCallbackDelegate(OnStageTouched);
- stage.TouchSignal().Connect(stageTouchedCallback);
-
- // Add a _text label to the stage
- _text = new TextLabel("Hello Mono World");
- _text.ParentOrigin = NDalic.ParentOriginCenter;
- _text.AnchorPoint = NDalic.AnchorPointCenter;
- _text.HorizontalAlignment = "CENTER";
- _text.PointSize = 32.0f;
-
- stage.Add(_text);
- }
-
- // Callback for _animation finished signal handling
- private void AnimationFinished(IntPtr data)
- {
- Animation _animation = Animation.GetAnimationFromPtr( data );
- Console.WriteLine("Animation finished: duration = " + _animation.GetDuration());
- }
-
- // Callback for stage touched signal handling
- private void OnStageTouched(IntPtr data)
- {
- TouchData touchData = TouchData.GetTouchDataFromPtr( data );
-
- // Only animate the _text label when touch down happens
- if (touchData.GetState(0) == PointStateType.DOWN)
- {
- // Create a new _animation
- if (_animation)
- {
- _animation.Reset();
- }
-
- _animation = new Animation(1.0f); // 1 second of duration
-
- _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Quaternion(new Radian(new Degree(180.0f)), Vector3.XAXIS)), new AlphaFunction(AlphaFunction.BuiltinFunction.LINEAR), new TimePeriod(0.0f, 0.5f));
- _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Quaternion(new Radian(new Degree(0.0f)), Vector3.XAXIS)), new AlphaFunction(AlphaFunction.BuiltinFunction.LINEAR), new TimePeriod(0.5f, 0.5f));
-
- // Connect the signal callback for animaiton finished signal
- AnimationCallbackDelegate animFinishedDelegate = new AnimationCallbackDelegate(AnimationFinished);
- _animation.FinishedSignal().Connect(animFinishedDelegate);
-
- // Play the _animation
- _animation.Play();
- }
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
-
- [STAThread]
- static void Main(string[] args)
- {
- Console.WriteLine("Hello mono world.");
- //Example example = new Example();
- //Example example = new Example("stylesheet");
- Example example = new Example("stylesheet", Dali.Application.WINDOW_MODE.TRANSPARENT);
- example.Run(args);
- }
- }
-}
+++ /dev/null
-/*
-* Copyright (c) 2016 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.
-*
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-using Dali.Constants;
-
-namespace MyCSharpExample
-{
- class Example
- {
- private Dali.Application _application;
- private Animation _animation;
- private TextLabel _text;
- private Stage _stage;
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Console.WriteLine("Customized Application Initialize event handler");
- _stage = Stage.Instance;
- _stage.BackgroundColor = Color.White;
- _stage.Touch += OnStageTouched;
-
- // Add a _text label to the stage
- _text = new TextLabel("Hello Mono World");
- _text.ParentOrigin = ParentOrigin.Center;
- _text.AnchorPoint = AnchorPoint.Center;
- _text.HorizontalAlignment = "CENTER";
- _text.PointSize = 32.0f;
- _text.TextColor = Color.Magenta;
- _stage.Add(_text);
-
- _animation = new Animation
- {
- StartTime = 0,
- EndTime = 500,
- TargetProperty = "Orientation",
- Destination = new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X)
- };
- _animation.AnimateTo(_text);
-
- _animation.StartTime = 500;
- _animation.EndTime = 1000;
- _animation.TargetProperty = "Orientation";
- _animation.Destination = new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X);
- _animation.AnimateTo(_text);
-
- _animation.StartTime = 1000;
- _animation.EndTime = 1500;
- _animation.TargetProperty = "ScaleX";
- _animation.Destination = 3.0f;
- _animation.AnimateBy(_text);
-
- _animation.StartTime = 1500;
- _animation.EndTime = 2000;
- _animation.TargetProperty = "ScaleY";
- _animation.Destination = 4.0f;
- _animation.AnimateBy(_text);
-
- _animation.EndAction = Animation.EndActions.Discard;
-
- // Connect the signal callback for animaiton finished signal
- _animation.Finished += AnimationFinished;
- }
-
- // Callback for _animation finished signal handling
- public void AnimationFinished(object sender, EventArgs e)
- {
- Console.WriteLine("AnimationFinished()!");
- if (_animation)
- {
- Console.WriteLine("Duration= " + _animation.Duration);
- Console.WriteLine("EndAction= " + _animation.EndAction);
- }
- }
-
- // Callback for stage touched signal handling
- public void OnStageTouched(object sender, Stage.TouchEventArgs e)
- {
- // Only animate the _text label when touch down happens
- if (e.Touch.GetState(0) == PointStateType.DOWN)
- {
- Console.WriteLine("Customized Stage Touch event handler");
-
- // Create a new _animation
- if (_animation)
- {
- _animation.Stop();
- }
- // Play the _animation
- _animation.Play();
- }
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Console.WriteLine("Main() called!");
-
- Example example = new Example(Application.NewApplication());
- example.MainLoop();
- }
- }
-}
-
+++ /dev/null
-/** 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.
-*
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-using Dali.Constants;
-
-namespace ImageViewExample
-{
-
- class Example
- {
- public static void Log(string str)
- {
- Console.WriteLine("[DALI C# SAMPLE] " + str);
- }
-
- private Dali.Application _application;
- private Animation _animation;
- private ImageView _imageView;
- private bool _isAniFinised = true;
- private Layer layer, _layer1, _layer2;
- private PushButton _pushButton1, _pushButton2;
- private Stage stage;
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Log("Customized Application Initialize event handler");
- stage = Stage.Instance;
- stage.BackgroundColor = Color.Cyan;
- stage.Touch += OnStageTouched;
- stage.Wheel += OnStageWheelMoved;
- stage.Key += OnStageKeyPressed;
- //stage.EventProcessingFinished += OnStageEventProcessingFinished;
-
- layer = stage.GetDefaultLayer();
- _layer1 = new Layer();
- _layer2 = new Layer();
- stage.AddLayer(_layer1);
- stage.AddLayer(_layer2);
- Log("_layer1.Behavior =" + _layer1.Behavior);
- if (_layer1.Behavior == Layer.LayerBehavior.LAYER_UI)
- {
- _layer1.Behavior = Layer.LayerBehavior.LAYER_2D;
- Log("again _layer1.Behavior =" + _layer1.Behavior);
- }
- // Add a ImageView to the stage
- _imageView = new ImageView();
- _imageView.ResourceUrl = "./images/gallery-3.jpg";
- _imageView.ParentOrigin = ParentOrigin.Center;
- _imageView.AnchorPoint = AnchorPoint.Center;
- _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
- //_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS);
- layer.Add(_imageView);
-
- _pushButton1 = new PushButton();
- _pushButton1.ParentOrigin = ParentOrigin.BottomLeft;
- _pushButton1.AnchorPoint = AnchorPoint.BottomLeft;
- _pushButton1.LabelText = "start animation";
- _pushButton1.Position = new Vector3(0.0f, stage.Size.Height * 0.1f, 0.0f);
- _pushButton1.Clicked += OnPushButtonClicked1;
- _layer1.Add(_pushButton1);
-
- _pushButton2 = new PushButton();
- _pushButton2.ParentOrigin = ParentOrigin.BottomLeft;
- _pushButton2.AnchorPoint = AnchorPoint.BottomLeft;
- _pushButton2.LabelText = "reload image with same URL";
- _pushButton2.Position = new Vector3(0.0f, stage.Size.Height * 0.2f, 0.0f);
- _pushButton2.Clicked += OnPushButtonClicked2;
- _layer2.Add(_pushButton2);
-
- }
-
- public bool OnPushButtonClicked2(object sender, Button.ClickedEventArgs e)
- {
- if (_imageView)
- {
- Log("OnPushButtonClicked2()!");
- layer.Remove(_imageView);
- _imageView = new ImageView();
- _imageView.ResourceUrl = "./images/gallery-3.jpg";
- _imageView.ParentOrigin = ParentOrigin.Center;
- _imageView.AnchorPoint = AnchorPoint.Center;
- _imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
- //_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS);
- layer.Add(_imageView);
- }
-
- return true;
- }
-
-
- public bool OnPushButtonClicked1(object sender, Button.ClickedEventArgs e)
- {
- if (_isAniFinised == true)
- {
- _isAniFinised = false;
- Log("OnPushButtonClicked1()!");
-
- // Create a new _animation
- if (_animation)
- {
- //_animation.Stop(Dali.Constants.Animation.EndAction.Stop);
- _animation.Reset();
- }
-
- _animation = new Animation();
- _animation.StartTime = 0;
- _animation.EndTime = 1000;
- _animation.TargetProperty = "PixelArea";
- _animation.Destination = new Vector4(0.5f, 0.0f, 0.5f, 0.5f);
- _animation.AnimateTo(_imageView);
-
- _animation.StartTime = 1000;
- _animation.EndTime = 2000;
- _animation.TargetProperty = "PixelArea";
- _animation.Destination = new Vector4(0.5f, 0.5f, 0.5f, 0.5f);
- _animation.AnimateTo(_imageView);
-
- _animation.StartTime = 2000;
- _animation.EndTime = 3000;
- _animation.TargetProperty = "PixelArea";
- _animation.Destination = new Vector4(0.0f, 0.0f, 1.0f, 1.0f);
- _animation.AnimateTo(_imageView);
-
- _animation.StartTime = 3000;
- _animation.EndTime = 4000;
- _animation.TargetProperty = "PixelArea";
- _animation.Destination = new Vector4(0.5f, 0.5f, 0.5f, 0.5f);
- _animation.AnimateTo(_imageView);
-
- _animation.StartTime = 4000;
- _animation.EndTime = 6000;
- _animation.TargetProperty = "Size";
- KeyFrames _keyFrames = new KeyFrames();
- _keyFrames.Add(0.0f, new Size(0.0f, 0.0f, 0.0f));
- _keyFrames.Add(0.3f, new Size((stage.Size * 0.7f)));
- _keyFrames.Add(1.0f, new Size(stage.Size));
- _animation.AnimateBetween(_imageView, _keyFrames, Animation.Interpolation.Linear);
-
- _animation.EndAction = Animation.EndActions.Discard;
-
- // Connect the signal callback for animaiton finished signal
- _animation.Finished += AnimationFinished;
- _animation.Finished += AnimationFinished2;
-
- // Play the _animation
- _animation.Play();
- }
-
- return true;
- }
-
- // Callback for _animation finished signal handling
- public void AnimationFinished(object sender, EventArgs e)
- {
- Log("AnimationFinished()!");
- }
-
- // Callback for second _animation finished signal handling
- public void AnimationFinished2(object sender, EventArgs e)
- {
- Log("AnimationFinished2()!");
- if (_animation)
- {
- Log("Duration= " + _animation.Duration);
- Log("EndAction= " + _animation.EndAction);
- _isAniFinised = true;
- }
- }
-
- public void OnStageEventProcessingFinished(object sender, EventArgs e)
- {
- Log("OnStageEventProcessingFinished()!");
- if (e != null)
- {
- Log("e != null !");
- }
- }
-
- public void OnStageKeyPressed(object sender, Stage.KeyEventArgs e)
- {
- Log("OnStageKeyEventOccured()!");
- Log("keyPressedName=" + e.Key.KeyPressedName);
- Log("state=" + e.Key.State);
- }
-
- public void OnStageWheelMoved(object sender, Stage.WheelEventArgs e)
- {
- Log("OnStageWheelEventOccured()!");
- Log("direction=" + e.Wheel.Direction);
- Log("type=" + e.Wheel.Type);
- }
-
- // Callback for stage touched signal handling
- public void OnStageTouched(object sender, Stage.TouchEventArgs e)
- {
- Log("OnStageTouched()! e.TouchData.GetState(0)=" + e.Touch.GetState(0));
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Log("Main() called!");
-
- Example example = new Example(Application.NewApplication());
- example.MainLoop();
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyExampleApp
-{
- class Example
- {
- private Dali.Application _application;
- private Builder _builder;
- private string _jsonFileName;
-
- public Example(Dali.Application application, string fileName)
- {
- _application = application;
- _jsonFileName = fileName;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- if( _jsonFileName.Length == 0)
- {
- Console.WriteLine("Please specify JSON file to load");
- return;
- }
-
- _builder = new Builder ();
-
- Property.Map constants = new Property.Map();
-
- // In dali-demo we have some JSON files that can be loaded, but they need 3 different macros defining.
- // The JSON folder is typically installed into dali-env/opt/share/com.samsung.dali-demo/res:
- //
- //string demoDirectory = ".../dali-env/opt/share/com.samsung.dali-demo/res";
- //constants.Insert( "DEMO_IMAGE_DIR" , new Property.Value( demoDirectory+"/images") );
- //constants.Insert( "DEMO_MODEL_DIR" , new Property.Value( demoDirectory+"/models") );
- //constants.Insert( "DEMO_SCRIPT_DIR", new Property.Value( demoDirectory+"/scripts") );
- constants.Insert( "CONFIG_SCRIPT_LOG_LEVEL", new Property.Value( "Verbose") );
-
- _builder.AddConstants( constants );
-
-
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
-
- _builder.LoadFromFile( _jsonFileName );
-
- _builder.AddActors( stage.GetRootLayer() );
-
- }
-
-
- public void MainLoop()
- {
- _application.MainLoop ();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- string fileName= "";
-
- if( args.Length > 0)
- {
- fileName = args[0];
- }
-
- Console.WriteLine("arguments = " + args.Length);
- Example example = new Example(Application.NewApplication(), fileName);
- example.MainLoop ();
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * This file is part of Dali Toolkit
- *
- * 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.
- */
-
-{
- "styles":
- {
- "ProgressBar":
- {
- }
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2014 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.
- *
- */
-{
- // Data picker loaded directly on to the stage
- //
- "templates": {
- "date-picker":
- {
- "type":"FlexContainer",
- "name":"exampleDatePicker",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "flexDirection":"ROW",
- "size":[480.0, 150, 0 ],
- "actors": [
- {
-
- "type": "Spin",
- "name": "Year",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "Value":2017,
- "MinValue":1900,
- "MaxValue":2100,
- "Step":1,
- "TextColor":[0.0,0.0,1.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
- },
- {
-
- "type": "Spin",
- "name": "Month",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "parentOrigin": "CENTER",
- "Value":10,
- "Step":1,
- "MinValue":1,
- "MaxValue":12,
- "TextColor":[1.0,1.0,1.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
-
- },
- {
-
- "type": "Spin",
- "name": "Day",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "Value":1,
- "MinValue":1,
- "MaxValue":31,
- "TextColor":[1.0,0.0,0.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
- }]
-
- }
-}
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2014 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.
- *
- */
-{
- // Data picker loaded directly on to the stage
- //
- "stage": [{
-
- "type":"FlexContainer",
- "name":"exampleDatePicker",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "flexDirection":"ROW",
- "size":[480.0, 150, 0 ],
- "actors": [
- {
-
- "type": "Spin",
- "name": "Year",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "MinValue":1900,
- "MaxValue":2100,
- "Value":2017,
- "Step":1,
- "TextColor":[0.0,0.0,1.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
- },
- {
-
- "type": "Spin",
- "name": "Month",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "parentOrigin": "CENTER",
- "Step":1,
- "MinValue":1,
- "MaxValue":12,
- "Value":10,
- "TextColor":[1.0,1.0,1.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
-
- },
- {
-
- "type": "Spin",
- "name": "Day",
- "parentOrigin": "CENTER",
- "anchorPoint": "CENTER",
- "MinValue":1,
- "MaxValue":31,
- "Value":1,
- "TextColor":[1.0,0.0,0.0,1.0],
- "properties": { // properties registered dynamically
- "flex":0.3,
- "flexMargin": [5.0,0.0,5.0,0.0]
- }
- }]
-
-}]
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2014 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.
- *
- */
-{
- // a tree of actors
- "stage": [
- // You can add an array of Actors / Views here
- // Lets add a spin to the stage
- {
- "type":"Spin",
- "parentOrigin":"CENTER",
- "size":[120,120,0]
- // now lets use the C# app json-loader.exe to load it
- }
-
- ]
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-namespace MyCSharpExample
-{
- class Example
- {
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void CallbackDelegate(IntPtr data);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void ActorCallbackDelegate(IntPtr data);
-
- private Dali.Application _application;
- private ScrollView _scrollView;
- private ScrollBar _scrollBar;
- private Animation _animation;
- private TextLabel _text;
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- CreateScrollView();
- }
-
- private void CreateScrollView()
- {
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
-
- // Create a scroll view
- _scrollView = new ScrollView();
- Size2D stageSize = stage.Size;
- _scrollView.Size = new Position(stageSize.Width, stageSize.Height, 0.0f);
- _scrollView.ParentOrigin = NDalic.ParentOriginCenter;
- _scrollView.AnchorPoint = NDalic.AnchorPointCenter;
- stage.Add(_scrollView);
-
- // Add actors to a scroll view with 3 pages
- int pageRows = 1;
- int pageColumns = 3;
- for(int pageRow = 0; pageRow < pageRows; pageRow++)
- {
- for(int pageColumn = 0; pageColumn < pageColumns; pageColumn++)
- {
- View pageActor = new View();
- pageActor.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.ALL_DIMENSIONS);
- pageActor.ParentOrigin = NDalic.ParentOriginCenter;
- pageActor.AnchorPoint = NDalic.AnchorPointCenter;
- pageActor.Position = new Position(pageColumn * stageSize.Width, pageRow * stageSize.Height, 0.0f);
-
- // Add images in a 3x4 grid layout for each page
- int imageRows = 4;
- int imageColumns = 3;
- float margin = 10.0f;
- Position imageSize = new Position((stageSize.Width / imageColumns) - margin, (stageSize.Height/ imageRows) - margin, 0.0f);
-
- for(int row = 0; row < imageRows; row++)
- {
- for(int column = 0; column < imageColumns;column++)
- {
- int imageId = (row * imageColumns + column) % 2 + 1;
- ImageView imageView = new ImageView("images/image-" + imageId + ".jpg");
- imageView.ParentOrigin = NDalic.ParentOriginCenter;
- imageView.AnchorPoint = NDalic.AnchorPointCenter;
- imageView.Size = imageSize;
- imageView.Position = new Position( margin * 0.5f + (imageSize.X + margin) * column - stageSize.Width * 0.5f + imageSize.X * 0.5f,
- margin * 0.5f + (imageSize.Y + margin) * row - stageSize.Height * 0.5f + imageSize.Y * 0.5f, 0.0f );
- pageActor.Add(imageView);
- }
- }
-
- _scrollView.Add(pageActor);
- }
- }
-
- _scrollView.SetAxisAutoLock(true);
-
- // Set scroll view to have 3 pages in X axis and allow page snapping,
- // and also disable scrolling in Y axis.
- RulerPtr scrollRulerX = new RulerPtr(new FixedRuler(stageSize.Width));
- RulerPtr scrollRulerY = new RulerPtr(new DefaultRuler());
- scrollRulerX.SetDomain(new RulerDomain(0.0f, stageSize.Width * pageColumns, true));
- scrollRulerY.Disable();
- _scrollView.SetRulerX(scrollRulerX);
- _scrollView.SetRulerY(scrollRulerY);
-
- // Create a horizontal scroll bar in the bottom of scroll view (which is optional)
- _scrollBar = new ScrollBar();
- _scrollBar.ParentOrigin = NDalic.ParentOriginBottomLeft;
- _scrollBar.AnchorPoint = NDalic.AnchorPointTopLeft;
- _scrollBar.SetResizePolicy(ResizePolicyType.FIT_TO_CHILDREN, DimensionType.WIDTH);
- _scrollBar.SetResizePolicy(ResizePolicyType.FILL_TO_PARENT, DimensionType.HEIGHT);
- _scrollBar.Orientation = new Rotation( new Radian( new Degree( 270.0f ) ), Vector3.ZAXIS );
- _scrollBar.SetScrollDirection(ScrollBar.Direction.Horizontal);
- _scrollView.Add(_scrollBar);
-
- // Connect to the OnRelayout signal
- _scrollView.OnRelayoutEvent += OnScrollViewRelayout;
- _scrollView.Touched += OnTouch;
- _scrollView.WheelMoved += Onwheel;
- _scrollView.KeyInputFocusGained += OnKey;
- _text = new TextLabel("View Touch Event Handler Test");
- _text.AnchorPoint = NDalic.AnchorPointTopLeft;
- _text.HorizontalAlignment = "CENTER";
- _text.PointSize = 48.0f;
-
- _scrollView.Add(_text);
- }
-
- // Callback for _animation finished signal handling
- public void AnimationFinished(object sender, EventArgs e)
- {
- Console.WriteLine("Customized Animation Finished Event handler");
- }
- private void OnKey(object source, View.KeyInputFocusGainedEventArgs e)
- {
- Console.WriteLine("View Keyevent EVENT callback....");
- }
-
- private bool Onwheel(object source, View.WheelEventArgs e)
- {
- Console.WriteLine("View Wheel EVENT callback....");
- return true;
- }
-
- private bool OnTouch(object source, View.TouchEventArgs e)
- {
- Console.WriteLine("View TOUCH EVENT callback....");
-
- // Only animate the _text label when touch down happens
- if( e.Touch.GetState(0) == PointStateType.DOWN )
- {
- Console.WriteLine("Customized Stage Touch event handler");
- // Create a new _animation
- if( _animation )
- {
- _animation.Reset();
- }
-
- _animation = new Animation(1.0f); // 1 second of duration
-
- _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Rotation( new Radian( new Degree( 180.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.0f, 0.5f));
- _animation.AnimateTo(new Property(_text, Actor.Property.ORIENTATION), new Property.Value(new Rotation( new Radian( new Degree( 0.0f ) ), Vector3.XAXIS )), new AlphaFunction(AlphaFunction.BuiltinFunction.Linear), new TimePeriod(0.5f, 0.5f));
-
- // Connect the signal callback for animaiton finished signal
- _animation.Finished += AnimationFinished;
-
- // Play the _animation
- _animation.Play();
- }
- return true;
- }
-
- private void OnScrollViewRelayout(object source, View.OnRelayoutEventArgs e)
- {
- Console.WriteLine("View OnRelayoutEventArgs EVENT callback....");
-
- // Set the correct scroll bar size after size negotiation of scroll view is done
- _scrollBar.Size = new Position(0.0f, _scrollView.GetRelayoutSize(DimensionType.WIDTH), 0.0f);
- }
-
- public void MainLoop()
- {
- _application.MainLoop ();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Example example = new Example(Application.NewApplication());
- example.MainLoop ();
- }
- }
-}
+++ /dev/null
-/** 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.
-*
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-using Dali.Constants;
-
-namespace MyCSharpExample
-{
- class Example
- {
- private Dali.Application _application;
- private Animation _animation;
- private TextLabel _text;
- private View _view1, _view2, _view3;
- private UserAlphaFunctionDelegate _user_alpha_func;
- private int myCount;
-
- public static void Log(string str)
- {
- Console.WriteLine("[DALI C# SAMPLE] " + str);
- }
-
- public Example(Dali.Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- // Declare user alpha function delegate
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate float UserAlphaFunctionDelegate(float progress);
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Log("Initialize() is called!");
- Stage stage = Stage.GetCurrent();
- stage.BackgroundColor = Color.White;
- stage.Touch += OnStageTouched;
- stage.Touch += OnStageTouched2;
- stage.Wheel += OnStageWheelEvent;
-
- // Add a _text label to the stage
- _text = new TextLabel("Hello Mono World");
- _text.ParentOrigin = ParentOrigin.BottomCenter;
- _text.AnchorPoint = AnchorPoint.BottomCenter;
- _text.HorizontalAlignment = "CENTER";
- _text.PointSize = 32.0f;
- stage.Add(_text);
-
- _view1 = new View();
- _view1.Size = new Vector3(200.0f, 200.0f, 0.0f);
- _view1.BackgroundColor = Color.Green;
- _view1.ParentOrigin = ParentOrigin.Center;
- _view1.AnchorPoint = AnchorPoint.Center;
- _view1.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS);
- _view1.OnStageEvent += OnStage;
- stage.Add(_view1);
-
- _view2 = new View();
- _view2.BackgroundColor = Color.Red;
- _view2.Size = new Vector3(50.0f, 50.0f, 0.0f);
- _view2.ParentOrigin = ParentOrigin.TopLeft;
- _view2.AnchorPoint = AnchorPoint.TopLeft;
- _view2.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS);
- _view1.Add(_view2);
-
- _view3 = new View();
- _view3.BackgroundColor = Color.Blue;
- _view3.Size = new Vector3(50.0f, 50.0f, 0.0f);
- _view3.ParentOrigin = ParentOrigin.TopLeft;
- _view3.AnchorPoint = AnchorPoint.TopLeft;
- _view3.SetResizePolicy(ResizePolicyType.FIXED, DimensionType.ALL_DIMENSIONS);
- _view1.Add(_view3);
-
- _user_alpha_func = new UserAlphaFunctionDelegate(body);
-
- MyAnimating();
- }
-
- // User defines alpha function as custom alpha function
- // Important Notification : when this custom alpha-function is implemented,
- // the other function call nor other data excess is prevented.
- // this method must be implemented to calculate the values of input and output purely.
- // unless, this will cause application crash.
- float body(float progress)
- {
- if (progress > 0.2f && progress < 0.7f)
- {
- return progress + 0.8f;
- }
- return progress;
- }
-
- // Callback for _animation finished signal handling
- public void AnimationFinished(object sender, EventArgs e)
- {
- Log("AnimationFinished() is called!");
- myCount = 0;
- }
-
- public void MyAnimating()
- {
- // Create a new _animation
- if (_animation)
- {
- _animation.Clear();
- _animation.Reset();
- }
-
- _animation = new Animation(10000); // 10000 milli-second of duration
- _animation.StartTime = 5000;
- _animation.EndTime = 10000;
- _animation.TargetProperty = "Position";
- _animation.AlphaFunction = new AlphaFunction(_user_alpha_func);
- _animation.Destination = new Vector3(150.0f, 150.0f, 0.0f);
- _animation.AnimateTo(_view2);
- // Connect the signal callback for animaiton finished signal
- _animation.Finished += AnimationFinished;
- _animation.EndAction = Animation.EndActions.Discard;
- // Play the _animation
- _animation.Play();
- }
-
- // Callback for stage touched signal handling
- public void OnStageTouched(object source, Stage.TouchEventArgs e)
- {
- // Only animate the _text label when touch down happens
- if (e.Touch.GetState(0) == PointStateType.DOWN)
- {
- Log("OnStageTouched() is called! PointStateType.DOWN came!");
- myCount++;
- if (myCount > 1)
- {
- _animation.Stop();
- Log("_animation.Stop() is called!");
- }
- }
- }
-
- // Callback for stage touched signal handling
- public void OnStageTouched2(object source, Stage.TouchEventArgs e)
- {
- Log("OnStageTouched2() is called!state=" + e.Touch.GetState(0));
- }
-
- public void OnEventProcessingFinished(object source)
- {
- Log("OnEventProcessingFinished() is called!");
- }
-
- public void OnStageWheelEvent(object source, Stage.WheelEventArgs e)
- {
- Log("OnStageWheelEvent() is called!");
- }
-
-
- public void OnStage(object source, View.OnStageEventArgs e)
- {
- Log("OnStage() is called!");
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- [STAThread]
- static void Main(string[] args)
- {
- Log("Main() is called!");
-
- Example example = new Example(Application.NewApplication());
- example.MainLoop();
-
- Log("After MainLoop()");
- }
- }
-}
-
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using Dali;
-using Dali.Constants;
-
-namespace MyCSharpExample
-{
- class Example
- {
- private Application _application;
- private TextLabel _title;
-
- public Example(Application application)
- {
- _application = application;
- _application.Initialized += Initialize;
- }
-
- public void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Stage stage = Stage.Instance;
- stage.BackgroundColor = Color.White;
-
- TableView contentLayout = new TableView(4, 1);
- contentLayout.Name = ("ContentLayout");
- contentLayout.WidthResizePolicy = "FILL_TO_PARENT";
- contentLayout.HeightResizePolicy = "FILL_TO_PARENT";
- contentLayout.SetCellPadding(new Size2D(0, 5));
- contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
-
- stage.GetDefaultLayer().Add(contentLayout);
-
- _title = new TextLabel("Visuals Example");
- _title.Name = "Title";
- _title.StyleName = "Title";
- _title.WidthResizePolicy = "FILL_TO_PARENT";
- _title.HeightResizePolicy = "USE_NATURAL_SIZE";
- _title.HorizontalAlignment = "CENTER";
- _title.BackgroundColor = Color.Yellow;
- contentLayout.Add(_title);
- contentLayout.SetFitHeight(0);
-
- // Color Visual example
- View colorView = new View();
- colorView.WidthResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- colorView.HeightResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- Property.Map colorVisual = new Property.Map();
- colorVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Color ))
- .Add( ColorVisualProperty.MixColor, new Property.Value( Color.Green ));
- colorView.Background = colorVisual;
- contentLayout.Add(colorView);
-
- // Image Visual example
- View imageView = new View();
- imageView.WidthResizePolicy = "USE_NATURAL_SIZE";
- imageView.HeightResizePolicy = "USE_NATURAL_SIZE";
- Property.Map imageVisual = new Property.Map();
- imageVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Image ))
- .Add( ImageVisualProperty.URL, new Property.Value( "./images/gallery-0.jpg" ));
- imageView.Background = imageVisual;
- contentLayout.SetCellAlignment(new TableView.CellPosition(2, 0), HorizontalAlignmentType.CENTER, VerticalAlignmentType.CENTER);
- contentLayout.Add(imageView);
-
- // Primitive Visual example
- View primitiveView = new View();
- primitiveView.WidthResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- primitiveView.HeightResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- Property.Map primitiveVisual = new Property.Map();
- primitiveVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Primitive ))
- .Add( PrimitiveVisualProperty.Shape, new Property.Value((int)PrimitiveVisualShapeType.BEVELLED_CUBE))
- .Add( PrimitiveVisualProperty.BevelPercentage, new Property.Value(0.3f))
- .Add( PrimitiveVisualProperty.BevelSmoothness, new Property.Value(0.0f))
- .Add( PrimitiveVisualProperty.ScaleDimensions, new Property.Value(new Vector3(1.0f,1.0f,0.3f)))
- .Add( PrimitiveVisualProperty.MixColor, new Property.Value(new Vector4(0.7f, 0.5f, 0.05f, 1.0f)));
- primitiveView.Background = primitiveVisual;
- Radian rad = new Radian(new Degree(45.0f));
- primitiveView.Orientation = new Rotation(rad, Vector3.YAXIS);
- contentLayout.Add(primitiveView);
-
- // Text Visual example
- View textView = new View();
- textView.WidthResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- textView.HeightResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- Property.Map textVisual = new Property.Map();
- textVisual.Add( Visual.Property.Type, new Property.Value( (int)Visual.Type.Text ))
- .Add( TextVisualProperty.Text, new Property.Value("I am text visual"))
- .Add( TextVisualProperty.TextColor, new Property.Value(Color.Blue))
- .Add( TextVisualProperty.PointSize, new Property.Value(20));
- textView.Background = textVisual;
- contentLayout.Add(textView);
- }
-
- public void MainLoop()
- {
- _application.MainLoop();
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Example example = new Example(Application.NewApplication());
- example.MainLoop();
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using Dali;
-using Dali.Constants;
-
-namespace VisualsUsingCustomView
-{
- // The collection of contacts
- static class ContactsList
- {
- public static readonly ContactItem[] s_contactData = new ContactItem[]
- {
- new ContactItem ("Emmett Yates", "./images/gallery-small-43.jpg",
- new Color((73.0f/255.0f),(182.0f/255.0f), (245.0f/255.0f), 1.0f),
- (int)PrimitiveVisualShapeType.CONE),
- new ContactItem ("Leslie Wong", "./images/gallery-2.jpg",
- new Color((51.0f/255.0f), (51.0f/255.0f), (102.0f/255.0f), 1.0f),
- (int)PrimitiveVisualShapeType.SPHERE),
- new ContactItem ("Walter Jensen", "./images/gallery-0.jpg",
- new Color((151.0f/255.0f), (214.0f/255.0f), (240.0f/255.0f), 1.0f),
- (int)PrimitiveVisualShapeType.CYLINDER),
- new ContactItem ("Dan Haynes", "./images/gallery-1.jpg",
- new Color((102.0f/255.0f), (251.0f/255.0f), (102.0f/255.0f), 1.0f),
- (int)PrimitiveVisualShapeType.CONICAL_FRUSTRUM),
- new ContactItem ("Mable Hodges", "./images/gallery-3.jpg",
- new Color((255.0f/255.0f), (102.0f/255.0f), (102.0f/255.0f), 1.0f),
- (int)PrimitiveVisualShapeType.CUBE)
- };
- }
-
- // The information for an individual contact
- class ContactItem
- {
- private string _name;
- private string _imageURL;
- private Color _color;
- private int _shape;
-
- public ContactItem (string name, string imageURL, Color color, int shape)
- {
- _name = name;
- _imageURL = imageURL;
- _color = color;
- _shape = shape;
- }
-
- public string ImageURL
- {
- get
- {
- return _imageURL;
- }
- set
- {
- _imageURL = value;
- }
- }
-
- public string Name
- {
- get
- {
- return _name;
- }
- set
- {
- _name = value;
- }
- }
-
- public Color Color
- {
- get
- {
- return _color;
- }
- set
- {
- _color = value;
- }
- }
-
- public int Shape
- {
- get
- {
- return _shape;
- }
- set
- {
- _shape = value;
- }
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using Dali;
-using Dali.Constants;
-
-// A ContactView is a Custom View which consists of four visuals (Image, Primitive, Text and Color).
-// All of these visuals can be configured via properties - ImageURL (Image), Shape (Primitive), Name (Text) and Color.
-// Tap gesture is also enabled on the ContactView which changes the color visual to some random color when ContactView is tapped.
-
-namespace VisualsUsingCustomView
-{
- public class ContactView : CustomView
- {
- private const int ColorVisualPropertyIndex = 0;
- private const int PrimitiveVisualPropertyIndex = 1;
- private const int ImageVisualPropertyIndex = 2;
- private const int TextVisualPropertyIndex = 3;
- private VisualBase _imageVisual;
- private VisualBase _colorVisual;
- private VisualBase _primitiveVisual;
- private VisualBase _textVisual;
- private int _shape;
- private string _imageURL;
- private string _name;
- private Color _color;
-
- public ContactView() : base(typeof(ContactView).Name, ViewWrapperImpl.CustomViewBehaviour.REQUIRES_KEYBOARD_NAVIGATION_SUPPORT)
- {
- }
-
- public string ImageURL
- {
- get
- {
- return _imageURL;
- }
- set
- {
- _imageURL = value;
-
- // Create and Register Image Visual
- Dali.Property.Map imageVisual = new Dali.Property.Map();
- imageVisual.Add( Visual.Property.Type, new Dali.Property.Value( (int)Visual.Type.Image ))
- .Add( ImageVisualProperty.URL, new Dali.Property.Value( _imageURL ));
- _imageVisual = VisualFactory.Get().CreateVisual( imageVisual );
- RegisterVisual( ImageVisualPropertyIndex, _imageVisual );
-
- // Set the depth index for Image visual
- _imageVisual.SetDepthIndex(ImageVisualPropertyIndex);
- }
- }
-
- public string Name
- {
- get
- {
- return _name;
- }
- set
- {
- _name = value;
-
- // Create and Register Text Visual
- Dali.Property.Map textVisual = new Dali.Property.Map();
- textVisual.Add(Visual.Property.Type, new Dali.Property.Value((int)Visual.Type.Text))
- .Add(TextVisualProperty.Text, new Dali.Property.Value(_name))
- .Add(TextVisualProperty.TextColor, new Dali.Property.Value(Dali.Color.White))
- .Add(TextVisualProperty.PointSize, new Dali.Property.Value(15))
- .Add( TextVisualProperty.HorizontalAlignment, new Dali.Property.Value("CENTER"))
- .Add( TextVisualProperty.VerticalAlignment, new Dali.Property.Value("CENTER"));
- _textVisual = VisualFactory.Get().CreateVisual( textVisual );
- RegisterVisual( TextVisualPropertyIndex, _textVisual );
-
- // Set the depth index for Text visual
- _textVisual.SetDepthIndex(TextVisualPropertyIndex);
- }
- }
-
- public Color Color
- {
- get
- {
- return _color;
- }
- set
- {
- _color = value;
-
- // Create and Register Color Visual
- Dali.Property.Map colorVisual = new Dali.Property.Map();
- colorVisual.Add( Visual.Property.Type, new Dali.Property.Value( (int)Visual.Type.Color ))
- .Add( ColorVisualProperty.MixColor, new Dali.Property.Value( _color ));
- _colorVisual = VisualFactory.Get().CreateVisual( colorVisual );
- RegisterVisual( ColorVisualPropertyIndex, _colorVisual );
-
- // Set the depth index for Color visual
- _colorVisual.SetDepthIndex(ColorVisualPropertyIndex);
- }
- }
-
- public int Shape
- {
- get
- {
- return _shape;
- }
- set
- {
- _shape = value;
-
- // Create and Register Primitive Visual
- Dali.Property.Map primitiveVisual = new Dali.Property.Map();
- primitiveVisual.Add( Visual.Property.Type, new Dali.Property.Value( (int)Visual.Type.Primitive ))
- .Add( PrimitiveVisualProperty.Shape, new Dali.Property.Value(_shape))
- .Add( PrimitiveVisualProperty.BevelPercentage, new Dali.Property.Value(0.3f))
- .Add( PrimitiveVisualProperty.BevelSmoothness, new Dali.Property.Value(0.0f))
- .Add( PrimitiveVisualProperty.ScaleDimensions, new Dali.Property.Value(new Vector3(1.0f,1.0f,0.3f)))
- .Add( PrimitiveVisualProperty.MixColor, new Dali.Property.Value(new Vector4((245.0f/255.0f), (188.0f/255.0f), (73.0f/255.0f), 1.0f)));
- _primitiveVisual = VisualFactory.Get().CreateVisual( primitiveVisual );
- RegisterVisual( PrimitiveVisualPropertyIndex, _primitiveVisual );
-
- // Set the depth index for Primitive visual
- _primitiveVisual.SetDepthIndex(PrimitiveVisualPropertyIndex);
- }
- }
-
- public override void OnInitialize()
- {
- // Enable Tap gesture on ContactView
- EnableGestureDetection(Gesture.GestureType.Tap);
- }
-
- public override void OnTap(TapGesture tap)
- {
- // Change the Color visual of ContactView with some random color
- Random random = new Random();
- Color = new Color((random.Next(0, 256) / 255.0f), (random.Next(0, 256) / 255.0f), (random.Next(0, 256) / 255.0f), 1.0f);
- }
-
- public override void OnRelayout(Vector2 size, RelayoutContainer container)
- {
- // Configure the transform and size of Image visual.
- Dali.Property.Map imageVisualTransform = new Dali.Property.Map();
- imageVisualTransform.Add((int)VisualTransformPropertyType.OFFSET, new Dali.Property.Value(new Vector2(10.0f, 0.0f)))
- .Add((int)VisualTransformPropertyType.OFFSET_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.ABSOLUTE, (int)VisualTransformPolicyType.ABSOLUTE)))
- .Add((int)VisualTransformPropertyType.SIZE_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.ABSOLUTE, (int)VisualTransformPolicyType.ABSOLUTE)))
- .Add((int)VisualTransformPropertyType.SIZE, new Dali.Property.Value(new Vector2(40.0f, 40.0f)))
- .Add((int)VisualTransformPropertyType.ORIGIN, new Dali.Property.Value((int)AlignType.CENTER_BEGIN))
- .Add((int)VisualTransformPropertyType.ANCHOR_POINT, new Dali.Property.Value((int)AlignType.CENTER_BEGIN));
- _imageVisual.SetTransformAndSize(imageVisualTransform, size);
-
- // Configure the transform and size of Text visual.
- Dali.Property.Map textVisualTransform = new Dali.Property.Map();
- textVisualTransform.Add((int)VisualTransformPropertyType.OFFSET, new Dali.Property.Value(new Vector2(0.0f, 0.0f)))
- .Add((int)VisualTransformPropertyType.OFFSET_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.RELATIVE, (int)VisualTransformPolicyType.RELATIVE)))
- .Add((int)VisualTransformPropertyType.SIZE_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.ABSOLUTE, (int)VisualTransformPolicyType.ABSOLUTE)))
- .Add((int)VisualTransformPropertyType.SIZE, new Dali.Property.Value(new Vector2(size.X - 100.0f, 50.0f)))
- .Add((int)VisualTransformPropertyType.ORIGIN, new Dali.Property.Value((int)Align.Type.Center))
- .Add((int)VisualTransformPropertyType.ANCHOR_POINT, new Dali.Property.Value((int)Align.Type.Center));
- _textVisual.SetTransformAndSize(textVisualTransform, size);
-
- // Configure the transform and size of Primitive visual.
- Dali.Property.Map primitiveVisualTransform = new Dali.Property.Map();
- primitiveVisualTransform.Add((int)VisualTransformPropertyType.OFFSET, new Dali.Property.Value(new Vector2(size.X - 60.0f, 0.0f)))
- .Add((int)VisualTransformPropertyType.OFFSET_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.ABSOLUTE, (int)VisualTransformPolicyType.ABSOLUTE)))
- .Add((int)VisualTransformPropertyType.SIZE_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.ABSOLUTE, (int)VisualTransformPolicyType.ABSOLUTE)))
- .Add((int)VisualTransformPropertyType.SIZE, new Dali.Property.Value(new Vector2(40.0f, 40.0f)))
- .Add((int)VisualTransformPropertyType.ORIGIN, new Dali.Property.Value((int)AlignType.CENTER_BEGIN))
- .Add((int)VisualTransformPropertyType.ANCHOR_POINT, new Dali.Property.Value((int)AlignType.CENTER_BEGIN));
- _primitiveVisual.SetTransformAndSize(primitiveVisualTransform, size);
-
- // Configure the transform and size of Color visual. This is also the default value.
- Dali.Property.Map colorVisualTransform = new Dali.Property.Map();
- colorVisualTransform.Add( (int)VisualTransformPropertyType.OFFSET, new Dali.Property.Value(new Vector2(0.0f,0.0f)))
- .Add((int)VisualTransformPropertyType.OFFSET_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.RELATIVE, (int)VisualTransformPolicyType.RELATIVE)))
- .Add((int)VisualTransformPropertyType.SIZE_POLICY, new Dali.Property.Value(new Vector2((int)VisualTransformPolicyType.RELATIVE, (int)VisualTransformPolicyType.RELATIVE)))
- .Add( (int)VisualTransformPropertyType.SIZE, new Dali.Property.Value(new Vector2(1.0f, 1.0f)) )
- .Add( (int)VisualTransformPropertyType.ORIGIN, new Dali.Property.Value((int)AlignType.TOP_BEGIN) )
- .Add( (int)VisualTransformPropertyType.ANCHOR_POINT, new Dali.Property.Value((int)AlignType.TOP_BEGIN) );
- _colorVisual.SetTransformAndSize(colorVisualTransform, size);
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-/*
- * 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.
- *
- */
-
-using System;
-using Dali;
-using Dali.Constants;
-
-namespace VisualsUsingCustomView
-{
- class VisualsExample
- {
- public VisualsExample(Application application)
- {
- application.Initialized += Initialize;
- }
-
- private void Initialize(object source, NUIApplicationInitEventArgs e)
- {
- Stage stage = Stage.Instance;
- stage.BackgroundColor = Color.White;
-
- TableView contentLayout = new TableView(14, 1);
- contentLayout.Name = "ContentLayout";
- contentLayout.WidthResizePolicy = "FILL_TO_PARENT";
- contentLayout.HeightResizePolicy = "FILL_TO_PARENT";
- contentLayout.SetCellPadding(new Size2D(5, 5));
- contentLayout.BackgroundColor = new Color(0.949f, 0.949f, 0.949f, 1.0f);
-
- stage.GetDefaultLayer().Add(contentLayout);
-
- TextLabel title = new TextLabel("Contacts List with Visuals");
- title.Name = "Title";
- title.StyleName = "Title";
- title.WidthResizePolicy = "FILL_TO_PARENT";
- title.HeightResizePolicy = "USE_NATURAL_SIZE";
- title.HorizontalAlignment = "CENTER";
- contentLayout.Add(title);
- contentLayout.SetFitHeight(0);
-
- // Create ContactView(s) from ContactItem(s) in ContactsList and add them to TableView
- ContactView contactView;
- foreach (ContactItem contact in ContactsList.s_contactData)
- {
- contactView = new ContactView();
- contactView.WidthResizePolicy = "FILL_TO_PARENT";
- contactView.HeightResizePolicy = "FILL_TO_PARENT";
-
- // Configure visuals of ContactView via properties
- contactView.Name = contact.Name;
- contactView.ImageURL = contact.ImageURL;
- contactView.Color = contact.Color;
- contactView.Shape = contact.Shape;
- contentLayout.Add(contactView);
- }
- }
-
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main(string[] args)
- {
- Application application = Application.NewApplication();
- VisualsExample visualsExample = new VisualsExample(application);
- application.MainLoop();
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-#ifndef CSHARP_COMMON_H
-#define CSHARP_COMMON_H
-
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-#define SWIG_DIRECTORS
-
-#ifdef __cplusplus
-/* SwigValueWrapper is described in swig.swg */
-template<typename T> class SwigValueWrapper
-{
- struct SwigMovePointer
- {
- T *ptr;
- SwigMovePointer(T *p) : ptr(p) { }
- ~SwigMovePointer() { delete ptr; }
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
- } pointer;
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
-public:
- SwigValueWrapper() : pointer(0) { }
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
- operator T&() const { return *pointer.ptr; }
- T *operator&() { return pointer.ptr; }
-};
-
-template <typename T> T SwigValueInit()
-{
- return T();
-}
-#endif
-
-#include <stdexcept>
-
-#define SWIGSTDCALL
-
-/* attribute recognised by some compilers to avoid 'unused' warnings */
-#ifndef SWIGUNUSED
-# if defined(__GNUC__)
-# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
-# else
-# define SWIGUNUSED
-# endif
-#endif
-
-/* internal SWIG method */
-#ifndef SWIGINTERN
-# define SWIGINTERN static SWIGUNUSED
-#endif
-
-#ifndef SWIGEXPORT
-# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT
-# else
-# define SWIGEXPORT __declspec(dllexport)
-# endif
-# else
-# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
-# define SWIGEXPORT __attribute__ ((visibility("default")))
-# else
-# define SWIGEXPORT
-# endif
-# endif
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-
-/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
-#define SWIG_SystemError -10
-#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
-#define SWIG_NullReferenceError -13
-
-/* Support for throwing C# exceptions from C/C++. There are two types:
- * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */
-typedef enum
-{
- SWIG_CSharpApplicationException,
- SWIG_CSharpArithmeticException,
- SWIG_CSharpDivideByZeroException,
- SWIG_CSharpIndexOutOfRangeException,
- SWIG_CSharpInvalidCastException,
- SWIG_CSharpInvalidOperationException,
- SWIG_CSharpIOException,
- SWIG_CSharpNullReferenceException,
- SWIG_CSharpOutOfMemoryException,
- SWIG_CSharpOverflowException,
- SWIG_CSharpSystemException
-} SWIG_CSharpExceptionCodes;
-
-typedef enum
-{
- SWIG_CSharpArgumentException,
- SWIG_CSharpArgumentNullException,
- SWIG_CSharpArgumentOutOfRangeException
-} SWIG_CSharpExceptionArgumentCodes;
-
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *);
-typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *);
-
-typedef struct
-{
- SWIG_CSharpExceptionCodes code;
- SWIG_CSharpExceptionCallback_t callback;
-} SWIG_CSharpException_t;
-
-typedef struct
-{
- SWIG_CSharpExceptionArgumentCodes code;
- SWIG_CSharpExceptionArgumentCallback_t callback;
-} SWIG_CSharpExceptionArgument_t;
-
-static SWIG_CSharpException_t SWIG_csharp_exceptions[] =
-{
- { SWIG_CSharpApplicationException, NULL },
- { SWIG_CSharpArithmeticException, NULL },
- { SWIG_CSharpDivideByZeroException, NULL },
- { SWIG_CSharpIndexOutOfRangeException, NULL },
- { SWIG_CSharpInvalidCastException, NULL },
- { SWIG_CSharpInvalidOperationException, NULL },
- { SWIG_CSharpIOException, NULL },
- { SWIG_CSharpNullReferenceException, NULL },
- { SWIG_CSharpOutOfMemoryException, NULL },
- { SWIG_CSharpOverflowException, NULL },
- { SWIG_CSharpSystemException, NULL }
-};
-
-static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] =
-{
- { SWIG_CSharpArgumentException, NULL },
- { SWIG_CSharpArgumentNullException, NULL },
- { SWIG_CSharpArgumentOutOfRangeException, NULL }
-};
-
-static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg)
-{
- SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback;
- if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t))
- {
- callback = SWIG_csharp_exceptions[code].callback;
- }
- callback(msg);
-}
-
-static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) {
- SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback;
- if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) {
- callback = SWIG_csharp_exceptions_argument[code].callback;
- }
- callback(msg, param_name);
-}
-
-SWIGINTERN void SWIG_CSharpException(int code, const char *msg)
-{
- if (code == SWIG_ValueError)
- {
- SWIG_CSharpExceptionArgumentCodes exception_code = SWIG_CSharpArgumentOutOfRangeException;
- SWIG_CSharpSetPendingExceptionArgument(exception_code, msg, 0);
- }
- else
- {
- SWIG_CSharpExceptionCodes exception_code = SWIG_CSharpApplicationException;
- switch(code)
- {
- case SWIG_MemoryError:
- exception_code = SWIG_CSharpOutOfMemoryException;
- break;
- case SWIG_IndexError:
- exception_code = SWIG_CSharpIndexOutOfRangeException;
- break;
- case SWIG_DivisionByZero:
- exception_code = SWIG_CSharpDivideByZeroException;
- break;
- case SWIG_IOError:
- exception_code = SWIG_CSharpIOException;
- break;
- case SWIG_OverflowError:
- exception_code = SWIG_CSharpOverflowException;
- break;
- case SWIG_RuntimeError:
- case SWIG_TypeError:
- case SWIG_SyntaxError:
- case SWIG_SystemError:
- case SWIG_UnknownError:
- default:
- exception_code = SWIG_CSharpApplicationException;
- break;
- }
- SWIG_CSharpSetPendingException(exception_code, msg);
- }
-}
-
-#include <stdexcept>
-
-#define SWIGSTDCALL
-
-#include <dali/dali.h>
-#include <dali-toolkit/dali-toolkit.h>
-
-#include <dali-toolkit/devel-api/controls/control-wrapper.h>
-#include <dali-toolkit/devel-api/controls/control-wrapper-impl.h>
-
-#endif // CSHARP_COMMON_H
+++ /dev/null
-/*
- * 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_DEVEL_PROPERTY
-#define CSHARP_DEVEL_PROPERTY
-#endif
-
-#include "common.h"
-
-#include <dali/devel-api/actors/actor-devel.h>
-#include <dali/devel-api/rendering/renderer-devel.h>
-#include <dali-toolkit/devel-api/controls/control-devel.h>
-#include <dali-toolkit/devel-api/controls/scrollable/item-view/item-view-devel.h>
-#include <dali-toolkit/devel-api/controls/buttons/button-devel.h>
-#include <dali-toolkit/devel-api/controls/buttons/button-devel.h>
-#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
-#include <dali-toolkit/devel-api/visuals/image-visual-properties-devel.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SIBLING_ORDER_get() {
-
- return Dali::DevelActor::Property::SIBLING_ORDER;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_OPACITY_get() {
-
- return Dali::DevelActor::Property::OPACITY;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SCREEN_POSITION_get() {
-
- return Dali::DevelActor::Property::SCREEN_POSITION;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get() {
-
- return Dali::DevelActor::Property::POSITION_USES_ANCHOR_POINT;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_TOOLTIP_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelControl::Property::TOOLTIP;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_STATE_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelControl::Property::STATE;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_SUB_STATE_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelControl::Property::SUB_STATE;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_LEFT_FOCUSABLE_ACTOR_ID_get() {
- return Dali::Toolkit::DevelControl::Property::LEFT_FOCUSABLE_ACTOR_ID;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get() {
- return Dali::Toolkit::DevelControl::Property::RIGHT_FOCUSABLE_ACTOR_ID;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_UP_FOCUSABLE_ACTOR_ID_get() {
- return Dali::Toolkit::DevelControl::Property::UP_FOCUSABLE_ACTOR_ID;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_DOWN_FOCUSABLE_ACTOR_ID_get() {
- return Dali::Toolkit::DevelControl::Property::DOWN_FOCUSABLE_ACTOR_ID;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_ItemView_Property_LAYOUT_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelItemView::Property::LAYOUT;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_UNSELECTED_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::UNSELECTED_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_SELECTED_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::SELECTED_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_SELECTED_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_SELECTED_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_UNSELECTED_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_UNSELECTED_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_UNSELECTED_BACKGROUND_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_SELECTED_BACKGROUND_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::SELECTED_BACKGROUND_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_UNSELECTED_BACKGROUND_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::DISABLED_SELECTED_BACKGROUND_VISUAL;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_LABEL_RELATIVE_ALIGNMENT_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::LABEL_RELATIVE_ALIGNMENT;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_LABEL_PADDING_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::LABEL_PADDING;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Button_Property_VISUAL_PADDING_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelButton::Property::VISUAL_PADDING;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_TRANSFORM_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelVisual::Property::TRANSFORM;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_PREMULTIPLIED_ALPHA_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelVisual::Property::PREMULTIPLIED_ALPHA;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Visual_Property_MIX_COLOR_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelVisual::Property::MIX_COLOR;
- jresult = (int)result;
- return jresult;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Image_Visual_BORDER_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::DevelImageVisual::Property::BORDER;
- jresult = (int)result;
- return jresult;
-}
-
-#ifdef __cplusplus
-}
-#endif
-
+++ /dev/null
-/*
- * 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_EVENT_THREAD_CALLBACK
-#define CSHARP_EVENT_THREAD_CALLBACK
-#endif
-
-#include "common.h"
-#include <dali/devel-api/adaptor-framework/event-thread-callback.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef void (SWIGSTDCALL* SWIG_CallbackMakeCallback)(void);
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_EventThreadCallback(SWIG_CallbackMakeCallback callbackOnMakeCallback) {
- void * jresult ;
- void (*arg1)(void) = (void (*)(void)) 0 ;
- Dali::EventThreadCallback *result = 0 ;
-
- arg1 = (void (*)(void))callbackOnMakeCallback;
- {
- try {
- result = (Dali::EventThreadCallback *)new Dali::EventThreadCallback((Dali::CallbackBase *)Dali::MakeCallback(arg1));
- } catch (std::out_of_range& e) {
- {
- delete result;
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- delete result;
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- delete result;
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_EventThreadCallback(void * jarg1) {
- Dali::EventThreadCallback *arg1 = (Dali::EventThreadCallback *) 0 ;
-
- arg1 = (Dali::EventThreadCallback *)jarg1;
- {
- try {
- delete arg1;
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_EventThreadCallback_Trigger(void * jarg1) {
- Dali::EventThreadCallback *arg1 = (Dali::EventThreadCallback *) 0 ;
-
- arg1 = (Dali::EventThreadCallback *)jarg1;
- {
- try {
- (arg1)->Trigger();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-#ifdef __cplusplus
-}
-#endif //CSHARP_EVENT_THREAD_CALLBACK
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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_KEYBOARD_FOCUS_MANAGER
-#define CSHARP_KEYBOARD_FOCUS_MANAGER
-#endif
-
-#include "common.h"
-
-SWIGINTERN bool Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Empty(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > const *self){
- return self->Empty();
- }
-SWIGINTERN std::size_t Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__GetConnectionCount(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > const *self){
- return self->GetConnectionCount();
- }
-SWIGINTERN void Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Connect(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *self,Dali::Actor (*func)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction)){
- return self->Connect( func );
- }
-SWIGINTERN void Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Disconnect(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *self,Dali::Actor (*func)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction)){
- self->Disconnect( func );
- }
-SWIGINTERN Dali::Actor Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Emit(Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *self,Dali::Actor arg1,Dali::Actor arg2,Dali::Toolkit::Control::KeyboardFocus::Direction arg3){
- return self->Emit( arg1, arg2, arg3 );
- }
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_KeyboardFocusManager() {
- void * jresult;
- Dali::Toolkit::KeyboardFocusManager *result = 0 ;
-
- {
- try {
- result = (Dali::Toolkit::KeyboardFocusManager *)new Dali::Toolkit::KeyboardFocusManager();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_KeyboardFocusManager(void * jarg1) {
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- delete arg1;
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_Get() {
- void * jresult;
- Dali::Toolkit::KeyboardFocusManager result;
-
- {
- try {
- result = Dali::Toolkit::KeyboardFocusManager::Get();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Toolkit::KeyboardFocusManager((const Dali::Toolkit::KeyboardFocusManager &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_KeyboardFocusManager_SetCurrentFocusActor(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor arg2;
- Dali::Actor *argp2 ;
- bool result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return 0;
- }
- arg2 = *argp2;
- {
- try {
- result = (bool)(arg1)->SetCurrentFocusActor(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_GetCurrentFocusActor(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (arg1)->GetCurrentFocusActor();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Actor((const Dali::Actor &)result);
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_KeyboardFocusManager_MoveFocus(void * jarg1, int jarg2) {
- unsigned int jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Toolkit::Control::KeyboardFocus::Direction arg2;
- bool result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- arg2 = (Dali::Toolkit::Control::KeyboardFocus::Direction)jarg2;
- {
- try {
- result = (bool)(arg1)->MoveFocus(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardFocusManager_ClearFocus(void * jarg1) {
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- (arg1)->ClearFocus();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardFocusManager_SetFocusGroupLoop(void * jarg1, unsigned int jarg2) {
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0;
- bool arg2;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- arg2 = jarg2 ? true : false;
- {
- try {
- (arg1)->SetFocusGroupLoop(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_KeyboardFocusManager_GetFocusGroupLoop(void * jarg1) {
- unsigned int jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- bool result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (bool)((Dali::Toolkit::KeyboardFocusManager const *)arg1)->GetFocusGroupLoop();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardFocusManager_SetAsFocusGroup(void * jarg1, void * jarg2, unsigned int jarg3) {
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor arg2 ;
- bool arg3 ;
- Dali::Actor *argp2 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return ;
- }
- arg2 = *argp2;
- arg3 = jarg3 ? true : false;
- {
- try {
- (arg1)->SetAsFocusGroup(arg2,arg3);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_KeyboardFocusManager_IsFocusGroup(void * jarg1, void * jarg2) {
- unsigned int jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor arg2 ;
- Dali::Actor *argp2 ;
- bool result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return 0;
- }
- arg2 = *argp2;
- {
- try {
- result = (bool)((Dali::Toolkit::KeyboardFocusManager const *)arg1)->IsFocusGroup(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_GetFocusGroup(void * jarg1, void * jarg2) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor arg2 ;
- Dali::Actor *argp2 ;
- Dali::Actor result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return 0;
- }
- arg2 = *argp2;
- {
- try {
- result = (arg1)->GetFocusGroup(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Actor((const Dali::Actor &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardFocusManager_SetFocusIndicatorActor(void * jarg1, void * jarg2) {
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor arg2 ;
- Dali::Actor *argp2 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return ;
- }
- arg2 = *argp2;
- {
- try {
- (arg1)->SetFocusIndicatorActor(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_GetFocusIndicatorActor(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Actor result;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (arg1)->GetFocusIndicatorActor();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Actor((const Dali::Actor &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_PreFocusChangeSignal(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Toolkit::KeyboardFocusManager::PreFocusChangeSignalType *result = 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (Dali::Toolkit::KeyboardFocusManager::PreFocusChangeSignalType *) &(arg1)->PreFocusChangeSignal();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_FocusChangedSignal(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Toolkit::KeyboardFocusManager::FocusChangedSignalType *result = 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (Dali::Toolkit::KeyboardFocusManager::FocusChangedSignalType *) &(arg1)->FocusChangedSignal();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_FocusGroupChangedSignal(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Toolkit::KeyboardFocusManager::FocusGroupChangedSignalType *result = 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (Dali::Toolkit::KeyboardFocusManager::FocusGroupChangedSignalType *) &(arg1)->FocusGroupChangedSignal();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardFocusManager_FocusedActorEnterKeySignal(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::KeyboardFocusManager *arg1 = (Dali::Toolkit::KeyboardFocusManager *) 0 ;
- Dali::Toolkit::KeyboardFocusManager::FocusedActorEnterKeySignalType *result = 0 ;
-
- arg1 = (Dali::Toolkit::KeyboardFocusManager *)jarg1;
- {
- try {
- result = (Dali::Toolkit::KeyboardFocusManager::FocusedActorEnterKeySignalType *) &(arg1)->FocusedActorEnterKeySignal();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_Empty(void * jarg1) {
- unsigned int jresult ;
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
- bool result;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- {
- try {
- result = (bool)Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Empty((Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > const *)arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned long SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_GetConnectionCount(void * jarg1) {
- unsigned long jresult ;
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
- std::size_t result;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- {
- try {
- result = Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__GetConnectionCount((Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > const *)arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (unsigned long)result;
- return jresult;
-}
-
-typedef void* (SWIGSTDCALL* SWIG_CallbackKbPreFocusChange)(void *, void *, int);
-SWIG_CallbackKbPreFocusChange swig_callbackOnKbPreFocusChange;
-
-Dali::Actor OnKbPreFocusChangeCallback(Dali::Actor current, Dali::Actor proposed, Dali::Toolkit::Control::KeyboardFocus::Direction direction)
-{
- Dali::Actor *actorp;
- Dali::Actor actor;
-
- actorp = (Dali::Actor *)swig_callbackOnKbPreFocusChange((void *)¤t, (void *)&proposed, direction);
- actor = *actorp;
-
- return actor;
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_Connect(void * jarg1, SWIG_CallbackKbPreFocusChange callbackOnKbPreFocusChange) {
-
- swig_callbackOnKbPreFocusChange = callbackOnKbPreFocusChange;
-
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
- Dali::Actor (*arg2)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) = (Dali::Actor (*)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction)) 0 ;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- arg2 = (Dali::Actor (*)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction))OnKbPreFocusChangeCallback;
-
- {
- try {
- Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Connect(arg1,arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_Disconnect(void * jarg1, void * jarg2) {
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
- Dali::Actor (*arg2)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) = (Dali::Actor (*)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction)) 0 ;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- arg2 = (Dali::Actor (*)(Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction))jarg2;
- {
- try {
- Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Disconnect(arg1,arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_KeyboardPreFocusChangeSignal_Emit(void * jarg1, void * jarg2, void * jarg3, int jarg4) {
- void * jresult ;
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
- Dali::Actor arg2 ;
- Dali::Actor arg3 ;
- Dali::Toolkit::Control::KeyboardFocus::Direction arg4 ;
- Dali::Actor *argp2 ;
- Dali::Actor *argp3 ;
- Dali::Actor result;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- argp2 = (Dali::Actor *)jarg2;
- if (!argp2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return 0;
- }
- arg2 = *argp2;
- argp3 = (Dali::Actor *)jarg3;
- if (!argp3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
- return 0;
- }
- arg3 = *argp3;
- arg4 = (Dali::Toolkit::Control::KeyboardFocus::Direction)jarg4;
- {
- try {
- result = Dali_Signal_Sl_Dali_Actor_Sp_Dali_Actor_Sc_Dali_Actor_Sc_Dali_Toolkit_Control_KeyboardFocus_Direction_SP__Sg__Emit(arg1,arg2,arg3,arg4);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Actor((const Dali::Actor &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_new_KeyboardPreFocusChangeSignal() {
- void * jresult ;
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *result = 0 ;
-
- {
- try {
- result = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)new Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) >();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_delete_KeyboardPreFocusChangeSignal(void * jarg1) {
- Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *) 0 ;
-
- arg1 = (Dali::Signal< Dali::Actor (Dali::Actor,Dali::Actor,Dali::Toolkit::Control::KeyboardFocus::Direction) > *)jarg1;
- {
- try {
- delete arg1;
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_KeyboardFocusManager_SWIGUpcast(Dali::Toolkit::KeyboardFocusManager *jarg1) {
- return (Dali::BaseHandle *)jarg1;
-}
-
-#ifdef __cplusplus
-}
-#endif
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-// CLASS HEADER
-#include "view-wrapper-impl-wrap.h"
-
-// INTERNAL INCLUDES
-#include <dali-toolkit/devel-api/visual-factory/visual-base.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-SwigDirector_ViewWrapperImpl::SwigDirector_ViewWrapperImpl(Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour behaviourFlags) : Dali::Toolkit::Internal::ControlWrapper(behaviourFlags) {
- swig_init_callbacks();
-}
-
-SwigDirector_ViewWrapperImpl::~SwigDirector_ViewWrapperImpl() {
-
-}
-
-
-void SwigDirector_ViewWrapperImpl::OnStageConnection(int depth) {
- swig_callbackOnStageConnection(depth);
-
- Dali::Toolkit::Internal::Control::OnStageConnection(depth);
-}
-
-void SwigDirector_ViewWrapperImpl::OnStageDisconnection() {
- swig_callbackOnStageDisconnection();
-
- Dali::Toolkit::Internal::Control::OnStageDisconnection();
-}
-
-void SwigDirector_ViewWrapperImpl::OnChildAdd(Dali::Actor &child) {
- void * jchild = (Dali::Actor *) &child;
- swig_callbackOnChildAdd(jchild);
-
- Dali::Toolkit::Internal::Control::OnChildAdd( child );
-}
-
-void SwigDirector_ViewWrapperImpl::OnChildRemove(Dali::Actor &child) {
- void * jchild = (Dali::Actor *) &child;
- swig_callbackOnChildRemove(jchild);
-
- Dali::Toolkit::Internal::Control::OnChildRemove( child );
-}
-
-void SwigDirector_ViewWrapperImpl::OnPropertySet(Dali::Property::Index index, Dali::Property::Value propertyValue) {
- int jindex ;
- void * jpropertyValue ;
-
- jindex = index;
- jpropertyValue = (void *)new Dali::Property::Value((const Dali::Property::Value &)propertyValue);
- swig_callbackOnPropertySet(jindex, jpropertyValue);
-
- Dali::Toolkit::Internal::ControlWrapper::OnPropertySet(index,propertyValue);
-}
-
-void SwigDirector_ViewWrapperImpl::OnSizeSet(Dali::Vector3 const &targetSize) {
- swig_callbackOnSizeSet((Dali::Vector3 *) &targetSize);
-
- Dali::Toolkit::Internal::Control::OnSizeSet(targetSize);
-}
-
-void SwigDirector_ViewWrapperImpl::OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize) {
- swig_callbackOnSizeAnimation(&animation, (Dali::Vector3 *) &targetSize);
-
- Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
-}
-
-bool SwigDirector_ViewWrapperImpl::OnTouchEvent(Dali::TouchEvent const &event) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jarg0 = 0 ;
-
- if (!swig_callbackOnTouchEvent) {
- return Dali::Toolkit::Internal::Control::OnTouchEvent(event);
- } else {
- jarg0 = (Dali::TouchEvent *) &event;
- jresult = (unsigned int) swig_callbackOnTouchEvent(jarg0);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnHoverEvent(Dali::HoverEvent const &event) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jarg0 = 0 ;
-
- if (!swig_callbackOnHoverEvent) {
- return Dali::Toolkit::Internal::Control::OnHoverEvent(event);
- } else {
- jarg0 = (Dali::HoverEvent *) &event;
- jresult = (unsigned int) swig_callbackOnHoverEvent(jarg0);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnKeyEvent(Dali::KeyEvent const &event) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jarg0 = 0 ;
-
- if (!swig_callbackOnKeyEvent) {
- return Dali::Toolkit::Internal::Control::OnKeyEvent(event);
- } else {
- jarg0 = (Dali::KeyEvent *) &event;
- jresult = (unsigned int) swig_callbackOnKeyEvent(jarg0);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnWheelEvent(Dali::WheelEvent const &event) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jarg0 = 0 ;
-
- if (!swig_callbackOnWheelEvent) {
- return Dali::Toolkit::Internal::Control::OnWheelEvent(event);
- } else {
- jarg0 = (Dali::WheelEvent *) &event;
- jresult = (unsigned int) swig_callbackOnWheelEvent(jarg0);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-void SwigDirector_ViewWrapperImpl::OnRelayout(Dali::Vector2 const &size, Dali::RelayoutContainer &container) {
- void * jsize = 0 ;
- void * jcontainer = 0 ;
-
- jsize = (Dali::Vector2 *) &size;
- jcontainer = (Dali::RelayoutContainer *) &container;
- swig_callbackOnRelayout(jsize, jcontainer);
-
- Dali::Toolkit::Internal::Control::OnRelayout(size,container);
-}
-
-void SwigDirector_ViewWrapperImpl::OnSetResizePolicy(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension) {
- int jpolicy ;
- int jdimension ;
-
- jpolicy = (int)policy;
- jdimension = (int)dimension;
- swig_callbackOnSetResizePolicy(jpolicy, jdimension);
-
- Dali::Toolkit::Internal::Control::OnSetResizePolicy(policy,dimension);
-}
-
-Dali::Vector3 SwigDirector_ViewWrapperImpl::GetNaturalSize() {
- Dali::Vector3 c_result ;
- void * jresult = 0 ;
-
- if (!swig_callbackGetNaturalSize) {
- return Dali::Toolkit::Internal::Control::GetNaturalSize();
- } else {
- jresult = (void *) swig_callbackGetNaturalSize();
- if (!jresult) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Vector3", 0);
- return c_result;
- }
- c_result = *(Dali::Vector3 *)jresult;
- }
- return c_result;
-}
-
-float SwigDirector_ViewWrapperImpl::CalculateChildSize(Dali::Actor const &child, Dali::Dimension::Type dimension) {
- float c_result = SwigValueInit< float >() ;
- float jresult = 0 ;
- void * jchild = 0 ;
- int jdimension ;
-
- if (!swig_callbackCalculateChildSize) {
- return Dali::Toolkit::Internal::Control::CalculateChildSize(child,dimension);
- } else {
- jchild = (Dali::Actor *) &child;
- jdimension = (int)dimension;
- jresult = (float) swig_callbackCalculateChildSize(jchild, jdimension);
- c_result = (float)jresult;
- }
- return c_result;
-}
-
-float SwigDirector_ViewWrapperImpl::GetHeightForWidth(float width) {
- float c_result = SwigValueInit< float >() ;
- float jresult = 0 ;
- float jwidth ;
-
- if (!swig_callbackGetHeightForWidth) {
- return Dali::Toolkit::Internal::Control::GetHeightForWidth(width);
- } else {
- jwidth = width;
- jresult = (float) swig_callbackGetHeightForWidth(jwidth);
- c_result = (float)jresult;
- }
- return c_result;
-}
-
-float SwigDirector_ViewWrapperImpl::GetWidthForHeight(float height) {
- float c_result = SwigValueInit< float >() ;
- float jresult = 0 ;
- float jheight ;
-
- if (!swig_callbackGetWidthForHeight) {
- return Dali::Toolkit::Internal::Control::GetWidthForHeight(height);
- } else {
- jheight = height;
- jresult = (float) swig_callbackGetWidthForHeight(jheight);
- c_result = (float)jresult;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::RelayoutDependentOnChildren(Dali::Dimension::Type dimension) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- int jdimension ;
-
- if (!swig_callbackRelayoutDependentOnChildren__SWIG_0) {
- return Dali::Toolkit::Internal::Control::RelayoutDependentOnChildren(dimension);
- } else {
- jdimension = (int)dimension;
- jresult = (unsigned int) swig_callbackRelayoutDependentOnChildren__SWIG_0(jdimension);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-void SwigDirector_ViewWrapperImpl::OnCalculateRelayoutSize(Dali::Dimension::Type dimension) {
- int jdimension ;
-
- jdimension = (int)dimension;
- swig_callbackOnCalculateRelayoutSize(jdimension);
-
- Dali::Toolkit::Internal::Control::OnCalculateRelayoutSize(dimension);
-}
-
-void SwigDirector_ViewWrapperImpl::OnLayoutNegotiated(float size, Dali::Dimension::Type dimension) {
- float jsize ;
- int jdimension ;
-
- jsize = size;
- jdimension = (int)dimension;
- swig_callbackOnLayoutNegotiated(jsize, jdimension);
-
- Dali::Toolkit::Internal::Control::OnLayoutNegotiated(size,dimension);
-}
-
-void SwigDirector_ViewWrapperImpl::OnInitialize() {
- swig_callbackOnInitialize();
-
- Dali::Toolkit::Internal::Control::OnInitialize();
-}
-
-void SwigDirector_ViewWrapperImpl::OnControlChildAdd(Dali::Actor &child) {
- swig_callbackOnControlChildAdd(&child);
-
- Dali::Toolkit::Internal::Control::OnControlChildAdd(child);
-}
-
-void SwigDirector_ViewWrapperImpl::OnControlChildRemove(Dali::Actor &child) {
- swig_callbackOnControlChildRemove(&child);
-
- Dali::Toolkit::Internal::Control::OnControlChildRemove(child);
-}
-
-void SwigDirector_ViewWrapperImpl::OnStyleChange(Dali::Toolkit::StyleManager styleManager, Dali::StyleChange::Type change) {
- void * jstyleManager ;
- int jchange ;
-
- jstyleManager = (void *)new Dali::Toolkit::StyleManager((const Dali::Toolkit::StyleManager &)styleManager);
- jchange = (int)change;
- swig_callbackOnStyleChange(jstyleManager, jchange);
-
- Dali::Toolkit::Internal::Control::OnStyleChange(styleManager,change);
-}
-
-bool SwigDirector_ViewWrapperImpl::OnAccessibilityActivated() {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
-
- if (!swig_callbackOnAccessibilityActivated) {
- return Dali::Toolkit::Internal::Control::OnAccessibilityActivated();
- } else {
- jresult = (unsigned int) swig_callbackOnAccessibilityActivated();
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnAccessibilityPan(Dali::PanGesture gesture) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jgesture ;
-
- if (!swig_callbackOnAccessibilityPan) {
- return Dali::Toolkit::Internal::Control::OnAccessibilityPan(gesture);
- } else {
- jgesture = (void *)new Dali::PanGesture((const Dali::PanGesture &)gesture);
- jresult = (unsigned int) swig_callbackOnAccessibilityPan(jgesture);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnAccessibilityTouch(Dali::TouchEvent const &touchEvent) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- void * jtouchEvent = 0 ;
-
- if (!swig_callbackOnAccessibilityTouch) {
- return Dali::Toolkit::Internal::Control::OnAccessibilityTouch(touchEvent);
- } else {
- jtouchEvent = (Dali::TouchEvent *) &touchEvent;
- jresult = (unsigned int) swig_callbackOnAccessibilityTouch(jtouchEvent);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnAccessibilityValueChange(bool isIncrease) {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
- unsigned int jisIncrease ;
-
- if (!swig_callbackOnAccessibilityValueChange) {
- return Dali::Toolkit::Internal::Control::OnAccessibilityValueChange(isIncrease);
- } else {
- jisIncrease = isIncrease;
- jresult = (unsigned int) swig_callbackOnAccessibilityValueChange(jisIncrease);
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-bool SwigDirector_ViewWrapperImpl::OnAccessibilityZoom() {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
-
- if (!swig_callbackOnAccessibilityZoom) {
- return Dali::Toolkit::Internal::Control::OnAccessibilityZoom();
- } else {
- jresult = (unsigned int) swig_callbackOnAccessibilityZoom();
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-void SwigDirector_ViewWrapperImpl::OnKeyInputFocusGained() {
- swig_callbackOnKeyInputFocusGained();
-
- Dali::Toolkit::Internal::Control::OnKeyInputFocusGained();
-}
-
-void SwigDirector_ViewWrapperImpl::OnKeyInputFocusLost() {
- swig_callbackOnKeyInputFocusLost();
-
- Dali::Toolkit::Internal::Control::OnKeyInputFocusLost();
-}
-
-Dali::Actor SwigDirector_ViewWrapperImpl::GetNextKeyboardFocusableActor(Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled) {
- Dali::Actor c_result ;
- void * jresult = 0 ;
- void * jcurrentFocusedActor ;
- int jdirection ;
- unsigned int jloopEnabled ;
-
- if (!swig_callbackGetNextKeyboardFocusableActor) {
- return Dali::Toolkit::Internal::Control::GetNextKeyboardFocusableActor(currentFocusedActor,direction,loopEnabled);
- } else {
- jcurrentFocusedActor = (void *)new Dali::Actor((const Dali::Actor &)currentFocusedActor);
- jdirection = (int)direction;
- jloopEnabled = loopEnabled;
- jresult = (void *) swig_callbackGetNextKeyboardFocusableActor(jcurrentFocusedActor, jdirection, jloopEnabled);
- if (!jresult) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Unexpected null return for type Dali::Actor", 0);
- return c_result;
- }
- c_result = *(Dali::Actor *)jresult;
- }
- return c_result;
-}
-
-void SwigDirector_ViewWrapperImpl::OnKeyboardFocusChangeCommitted(Dali::Actor commitedFocusableActor) {
- void * jcommitedFocusableActor ;
- jcommitedFocusableActor = (void *)new Dali::Actor((const Dali::Actor &)commitedFocusableActor);
- swig_callbackOnKeyboardFocusChangeCommitted(jcommitedFocusableActor);
-
- Dali::Toolkit::Internal::Control::OnKeyboardFocusChangeCommitted(commitedFocusableActor);
-}
-
-bool SwigDirector_ViewWrapperImpl::OnKeyboardEnter() {
- bool c_result = SwigValueInit< bool >() ;
- unsigned int jresult = 0 ;
-
- if (!swig_callbackOnKeyboardEnter) {
- return Dali::Toolkit::Internal::Control::OnKeyboardEnter();
- } else {
- jresult = (unsigned int) swig_callbackOnKeyboardEnter();
- c_result = jresult ? true : false;
- }
- return c_result;
-}
-
-void SwigDirector_ViewWrapperImpl::OnPinch(Dali::PinchGesture const &pinch) {
- void * jpinch = 0 ;
- jpinch = (Dali::PinchGesture *) &pinch;
- swig_callbackOnPinch(jpinch);
-
- Dali::Toolkit::Internal::Control::OnPinch(pinch);
-}
-
-void SwigDirector_ViewWrapperImpl::OnPan(Dali::PanGesture const &pan) {
- void * jpan = 0 ;
- jpan = (Dali::PanGesture *) &pan;
- swig_callbackOnPan(jpan);
-
- Dali::Toolkit::Internal::Control::OnPan(pan);
-}
-
-void SwigDirector_ViewWrapperImpl::OnTap(Dali::TapGesture const &tap) {
- void * jtap = 0 ;
- jtap = (Dali::TapGesture *) &tap;
- swig_callbackOnTap(jtap);
-
- Dali::Toolkit::Internal::Control::OnTap(tap);
-}
-
-void SwigDirector_ViewWrapperImpl::OnLongPress(Dali::LongPressGesture const &longPress) {
- void * jlongPress = 0 ;
-
- jlongPress = (Dali::LongPressGesture *) &longPress;
- swig_callbackOnLongPress(jlongPress);
-
- Dali::Toolkit::Internal::Control::OnLongPress(longPress);
-}
-
-Dali::Toolkit::Internal::Control::Extension *SwigDirector_ViewWrapperImpl::GetControlExtension() {
- return Dali::Toolkit::Internal::Control::GetControlExtension();
-}
-
-void SwigDirector_ViewWrapperImpl::swig_connect_director(SWIG_Callback0_t callbackOnStageConnection, SWIG_Callback1_t callbackOnStageDisconnection, SWIG_Callback2_t callbackOnChildAdd, SWIG_Callback3_t callbackOnChildRemove, SWIG_Callback4_t callbackOnPropertySet, SWIG_Callback5_t callbackOnSizeSet, SWIG_Callback6_t callbackOnSizeAnimation, SWIG_Callback7_t callbackOnTouchEvent, SWIG_Callback8_t callbackOnHoverEvent, SWIG_Callback9_t callbackOnKeyEvent, SWIG_Callback10_t callbackOnWheelEvent, 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_Callback22_t callbackOnControlChildAdd, SWIG_Callback23_t callbackOnControlChildRemove, SWIG_Callback24_t callbackOnStyleChange, SWIG_Callback25_t callbackOnAccessibilityActivated, SWIG_Callback26_t callbackOnAccessibilityPan, SWIG_Callback27_t callbackOnAccessibilityTouch, 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) {
- swig_callbackOnStageConnection = callbackOnStageConnection;
- swig_callbackOnStageDisconnection = callbackOnStageDisconnection;
- swig_callbackOnChildAdd = callbackOnChildAdd;
- swig_callbackOnChildRemove = callbackOnChildRemove;
- swig_callbackOnPropertySet = callbackOnPropertySet;
- swig_callbackOnSizeSet = callbackOnSizeSet;
- swig_callbackOnSizeAnimation = callbackOnSizeAnimation;
- swig_callbackOnTouchEvent = callbackOnTouchEvent;
- swig_callbackOnHoverEvent = callbackOnHoverEvent;
- swig_callbackOnKeyEvent = callbackOnKeyEvent;
- swig_callbackOnWheelEvent = callbackOnWheelEvent;
- swig_callbackOnRelayout = callbackOnRelayout;
- swig_callbackOnSetResizePolicy = callbackOnSetResizePolicy;
- swig_callbackGetNaturalSize = callbackGetNaturalSize;
- swig_callbackCalculateChildSize = callbackCalculateChildSize;
- swig_callbackGetHeightForWidth = callbackGetHeightForWidth;
- swig_callbackGetWidthForHeight = callbackGetWidthForHeight;
- swig_callbackRelayoutDependentOnChildren__SWIG_0 = callbackRelayoutDependentOnChildren__SWIG_0;
- swig_callbackRelayoutDependentOnChildren__SWIG_1 = callbackRelayoutDependentOnChildren__SWIG_1;
- swig_callbackOnCalculateRelayoutSize = callbackOnCalculateRelayoutSize;
- swig_callbackOnLayoutNegotiated = callbackOnLayoutNegotiated;
- swig_callbackOnInitialize = callbackOnInitialize;
- swig_callbackOnControlChildAdd = callbackOnControlChildAdd;
- swig_callbackOnControlChildRemove = callbackOnControlChildRemove;
- swig_callbackOnStyleChange = callbackOnStyleChange;
- swig_callbackOnAccessibilityActivated = callbackOnAccessibilityActivated;
- swig_callbackOnAccessibilityPan = callbackOnAccessibilityPan;
- swig_callbackOnAccessibilityTouch = callbackOnAccessibilityTouch;
- swig_callbackOnAccessibilityValueChange = callbackOnAccessibilityValueChange;
- swig_callbackOnAccessibilityZoom = callbackOnAccessibilityZoom;
- swig_callbackOnKeyInputFocusGained = callbackOnKeyInputFocusGained;
- swig_callbackOnKeyInputFocusLost = callbackOnKeyInputFocusLost;
- swig_callbackGetNextKeyboardFocusableActor = callbackGetNextKeyboardFocusableActor;
- swig_callbackOnKeyboardFocusChangeCommitted = callbackOnKeyboardFocusChangeCommitted;
- swig_callbackOnKeyboardEnter = callbackOnKeyboardEnter;
- swig_callbackOnPinch = callbackOnPinch;
- swig_callbackOnPan = callbackOnPan;
- swig_callbackOnTap = callbackOnTap;
- swig_callbackOnLongPress = callbackOnLongPress;
- swig_callbackSignalConnected = callbackSignalConnected;
- swig_callbackSignalDisconnected = callbackSignalDisconnected;
-}
-
-void SwigDirector_ViewWrapperImpl::swig_init_callbacks() {
- swig_callbackOnStageConnection = 0;
- swig_callbackOnStageDisconnection = 0;
- swig_callbackOnChildAdd = 0;
- swig_callbackOnChildRemove = 0;
- swig_callbackOnPropertySet = 0;
- swig_callbackOnSizeSet = 0;
- swig_callbackOnSizeAnimation = 0;
- swig_callbackOnTouchEvent = 0;
- swig_callbackOnHoverEvent = 0;
- swig_callbackOnKeyEvent = 0;
- swig_callbackOnWheelEvent = 0;
- swig_callbackOnRelayout = 0;
- swig_callbackOnSetResizePolicy = 0;
- swig_callbackGetNaturalSize = 0;
- swig_callbackCalculateChildSize = 0;
- swig_callbackGetHeightForWidth = 0;
- swig_callbackGetWidthForHeight = 0;
- swig_callbackRelayoutDependentOnChildren__SWIG_0 = 0;
- swig_callbackRelayoutDependentOnChildren__SWIG_1 = 0;
- swig_callbackOnCalculateRelayoutSize = 0;
- swig_callbackOnLayoutNegotiated = 0;
- swig_callbackOnInitialize = 0;
- swig_callbackOnControlChildAdd = 0;
- swig_callbackOnControlChildRemove = 0;
- swig_callbackOnStyleChange = 0;
- swig_callbackOnAccessibilityActivated = 0;
- swig_callbackOnAccessibilityPan = 0;
- swig_callbackOnAccessibilityTouch = 0;
- swig_callbackOnAccessibilityValueChange = 0;
- swig_callbackOnAccessibilityZoom = 0;
- swig_callbackOnKeyInputFocusGained = 0;
- swig_callbackOnKeyInputFocusLost = 0;
- swig_callbackGetNextKeyboardFocusableActor = 0;
- swig_callbackOnKeyboardFocusChangeCommitted = 0;
- swig_callbackOnKeyboardEnter = 0;
- swig_callbackOnPinch = 0;
- swig_callbackOnPan = 0;
- swig_callbackOnTap = 0;
- swig_callbackOnLongPress = 0;
- swig_callbackSignalConnected = 0;
- swig_callbackSignalDisconnected = 0;
-}
-
-SWIGEXPORT int SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get() {
- int jresult ;
- int result;
-
- result = (int)Dali::Toolkit::Internal::ControlWrapper::CONTROL_BEHAVIOUR_FLAG_COUNT;
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapperImpl(int jarg1) {
- void * jresult ;
- Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour arg1 ;
- Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour)jarg1;
- {
- try {
- result = (Dali::Toolkit::Internal::ControlWrapper *)new SwigDirector_ViewWrapperImpl(arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_New(char * jarg1, void * jarg2) {
- void * jresult ;
- std::string arg1 ;
- Dali::Toolkit::Internal::ControlWrapper *arg2 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Toolkit::ControlWrapper result;
-
- if (!jarg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
- return 0;
- }
- (&arg1)->assign(jarg1);
- arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
- {
- try {
- result = Dali::Toolkit::Internal::ControlWrapper::New(arg1,arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapperImpl(void * jarg1) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- {
- try {
- if (arg1)
- {
- arg1->Unreference();
- }
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_director_connect(void *objarg, SwigDirector_ViewWrapperImpl::SWIG_Callback0_t callback0, SwigDirector_ViewWrapperImpl::SWIG_Callback1_t callback1, SwigDirector_ViewWrapperImpl::SWIG_Callback2_t callback2, SwigDirector_ViewWrapperImpl::SWIG_Callback3_t callback3, SwigDirector_ViewWrapperImpl::SWIG_Callback4_t callback4, SwigDirector_ViewWrapperImpl::SWIG_Callback5_t callback5, SwigDirector_ViewWrapperImpl::SWIG_Callback6_t callback6, SwigDirector_ViewWrapperImpl::SWIG_Callback7_t callback7, SwigDirector_ViewWrapperImpl::SWIG_Callback8_t callback8, SwigDirector_ViewWrapperImpl::SWIG_Callback9_t callback9, SwigDirector_ViewWrapperImpl::SWIG_Callback10_t callback10, SwigDirector_ViewWrapperImpl::SWIG_Callback11_t callback11, SwigDirector_ViewWrapperImpl::SWIG_Callback12_t callback12, SwigDirector_ViewWrapperImpl::SWIG_Callback13_t callback13, SwigDirector_ViewWrapperImpl::SWIG_Callback14_t callback14, SwigDirector_ViewWrapperImpl::SWIG_Callback15_t callback15, SwigDirector_ViewWrapperImpl::SWIG_Callback16_t callback16, SwigDirector_ViewWrapperImpl::SWIG_Callback17_t callback17, SwigDirector_ViewWrapperImpl::SWIG_Callback18_t callback18, SwigDirector_ViewWrapperImpl::SWIG_Callback19_t callback19, SwigDirector_ViewWrapperImpl::SWIG_Callback20_t callback20, SwigDirector_ViewWrapperImpl::SWIG_Callback21_t callback21, SwigDirector_ViewWrapperImpl::SWIG_Callback22_t callback22, SwigDirector_ViewWrapperImpl::SWIG_Callback23_t callback23, SwigDirector_ViewWrapperImpl::SWIG_Callback24_t callback24, SwigDirector_ViewWrapperImpl::SWIG_Callback25_t callback25, SwigDirector_ViewWrapperImpl::SWIG_Callback26_t callback26, SwigDirector_ViewWrapperImpl::SWIG_Callback27_t callback27, SwigDirector_ViewWrapperImpl::SWIG_Callback28_t callback28, SwigDirector_ViewWrapperImpl::SWIG_Callback29_t callback29, SwigDirector_ViewWrapperImpl::SWIG_Callback30_t callback30, SwigDirector_ViewWrapperImpl::SWIG_Callback31_t callback31, SwigDirector_ViewWrapperImpl::SWIG_Callback32_t callback32, SwigDirector_ViewWrapperImpl::SWIG_Callback33_t callback33, SwigDirector_ViewWrapperImpl::SWIG_Callback34_t callback34, SwigDirector_ViewWrapperImpl::SWIG_Callback35_t callback35, SwigDirector_ViewWrapperImpl::SWIG_Callback36_t callback36, SwigDirector_ViewWrapperImpl::SWIG_Callback37_t callback37, SwigDirector_ViewWrapperImpl::SWIG_Callback38_t callback38, SwigDirector_ViewWrapperImpl::SWIG_Callback39_t callback39, SwigDirector_ViewWrapperImpl::SWIG_Callback40_t callback40) {
- Dali::Toolkit::Internal::ControlWrapper *obj = (Dali::Toolkit::Internal::ControlWrapper *)objarg;
- SwigDirector_ViewWrapperImpl *director = dynamic_cast<SwigDirector_ViewWrapperImpl *>(obj);
- if (director) {
- director->swig_connect_director(callback0, callback1, callback2, callback3, callback4, callback5, callback6, callback7, callback8, callback9, callback10, callback11, callback12, callback13, callback14, callback15, callback16, callback17, callback18, callback19, callback20, callback21, callback22, callback23, callback24, callback25, callback26, callback27, callback28, callback29, callback30, callback31, callback32, callback33, callback34, callback35, callback36, callback37, callback38, callback39, callback40);
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetControlWrapperImpl__SWIG_0(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::ControlWrapper *arg1 = 0 ;
- Dali::Toolkit::Internal::ControlWrapper *result = 0 ;
-
- arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper & type is null", 0);
- return 0;
- }
- {
- try {
- result = (Dali::Toolkit::Internal::ControlWrapper *) &Dali::Toolkit::GetControlWrapperImpl(*arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_New(char * jarg1, void * jarg2) {
- void * jresult ;
- std::string arg1 ;
- Dali::Toolkit::Internal::ControlWrapper *arg2 = 0 ;
- Dali::Toolkit::ControlWrapper result;
-
- if (!jarg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
- return 0;
- }
- (&arg1)->assign(jarg1);
- arg2 = (Dali::Toolkit::Internal::ControlWrapper *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Internal::ControlWrapper & type is null", 0);
- return 0;
- }
- {
- try {
- result = Dali::Toolkit::ControlWrapper::New(arg1,*arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_0() {
- void * jresult ;
- Dali::Toolkit::ControlWrapper *result = 0 ;
-
- {
- try {
- result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ViewWrapper(void * jarg1) {
- Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
-
- arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
- {
- try {
- delete arg1;
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ViewWrapper__SWIG_1(void * jarg1) {
- void * jresult ;
- Dali::Toolkit::ControlWrapper *arg1 = 0 ;
- Dali::Toolkit::ControlWrapper *result = 0 ;
-
- arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
- if (!arg1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
- return 0;
- }
- {
- try {
- result = (Dali::Toolkit::ControlWrapper *)new Dali::Toolkit::ControlWrapper((Dali::Toolkit::ControlWrapper const &)*arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_Assign(void * jarg1, void * jarg2) {
- void * jresult ;
- Dali::Toolkit::ControlWrapper *arg1 = (Dali::Toolkit::ControlWrapper *) 0 ;
- Dali::Toolkit::ControlWrapper *arg2 = 0 ;
- Dali::Toolkit::ControlWrapper *result = 0 ;
-
- arg1 = (Dali::Toolkit::ControlWrapper *)jarg1;
- arg2 = (Dali::Toolkit::ControlWrapper *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::ControlWrapper const & type is null", 0);
- return 0;
- }
- {
- try {
- result = (Dali::Toolkit::ControlWrapper *) &(arg1)->operator =((Dali::Toolkit::ControlWrapper const &)*arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_ViewWrapper_DownCast(void * jarg1) {
- void * jresult ;
- Dali::BaseHandle arg1 ;
- Dali::BaseHandle *argp1 ;
- Dali::Toolkit::ControlWrapper result;
-
- argp1 = (Dali::BaseHandle *)jarg1;
- if (!argp1) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
- return 0;
- }
- arg1 = *argp1;
- {
- try {
- result = Dali::Toolkit::ControlWrapper::DownCast(arg1);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Toolkit::ControlWrapper((const Dali::Toolkit::ControlWrapper &)result);
- return jresult;
-}
-
-SWIGEXPORT Dali::Toolkit::Internal::Control * SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_SWIGUpcast(Dali::Toolkit::Internal::ControlWrapper *jarg1) {
- return (Dali::Toolkit::Internal::Control *)jarg1;
-}
-
-SWIGEXPORT Dali::Toolkit::Control * SWIGSTDCALL CSharp_Dali_ViewWrapper_SWIGUpcast(Dali::Toolkit::ControlWrapper *jarg1) {
- return (Dali::Toolkit::Control *)jarg1;
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutRequest(void * jarg1) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- {
- try {
- (arg1)->RelayoutRequest();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetHeightForWidthBase(void * jarg1, float jarg2) {
- float jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- float arg2 ;
- float result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (float)jarg2;
- {
- try {
- result = (float)(arg1)->GetHeightForWidthBase(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_GetWidthForHeightBase(void * jarg1, float jarg2) {
- float jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- float arg2 ;
- float result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (float)jarg2;
- {
- try {
- result = (float)(arg1)->GetWidthForHeightBase(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT float SWIGSTDCALL CSharp_ViewWrapperImpl_CalculateChildSizeBase(void * jarg1, void * jarg2, int jarg3) {
- float jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Actor *arg2 = 0 ;
- Dali::Dimension::Type arg3 ;
- float result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Actor *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Actor const & type is null", 0);
- return 0;
- }
- arg3 = (Dali::Dimension::Type)jarg3;
- {
- try {
- result = (float)(arg1)->CalculateChildSizeBase((Dali::Actor const &)*arg2,arg3);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(void * jarg1, int jarg2) {
- unsigned int jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Dimension::Type arg2 ;
- bool result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Dimension::Type)jarg2;
- {
- try {
- result = (bool)(arg1)->RelayoutDependentOnChildrenBase(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(void * jarg1) {
- unsigned int jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- bool result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- {
- try {
- result = (bool)(arg1)->RelayoutDependentOnChildrenBase();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_0(void * jarg1, int jarg2, void * jarg3) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
- Dali::Toolkit::Visual::Base *arg3 = 0 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
- return ;
- }
- {
- try {
- (arg1)->RegisterVisual(arg2,*arg3);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_RegisterVisual__SWIG_1(void * jarg1, int jarg2, void * jarg3, unsigned int jarg4) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
- Dali::Toolkit::Visual::Base *arg3 = 0 ;
- bool arg4 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- arg3 = (Dali::Toolkit::Visual::Base *)jarg3;
- if (!arg3) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Visual::Base & type is null", 0);
- return ;
- }
- arg4 = jarg4 ? true : false;
- {
- try {
- (arg1)->RegisterVisual(arg2,*arg3,arg4);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_UnregisterVisual(void * jarg1, int jarg2) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- {
- try {
- (arg1)->UnregisterVisual(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_GetVisual(void * jarg1, int jarg2) {
- void * jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
- Dali::Toolkit::Visual::Base result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- {
- try {
- result = ((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->GetVisual(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Toolkit::Visual::Base((const Dali::Toolkit::Visual::Base &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EnableVisual(void * jarg1, int jarg2, unsigned int jarg3) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
- bool arg3 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- arg3 = jarg3 ? true : false;
- {
- try {
- (arg1)->EnableVisual(arg2,arg3);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-SWIGEXPORT unsigned int SWIGSTDCALL CSharp_ViewWrapperImpl_IsVisualEnabled(void * jarg1, int jarg2) {
- unsigned int jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Property::Index arg2 ;
- bool result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Property::Index)jarg2;
- {
- try {
- result = (bool)((Dali::Toolkit::Internal::ControlWrapper const *)arg1)->IsVisualEnabled(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = result;
- return jresult;
-}
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_ViewWrapperImpl_CreateTransition(void * jarg1, void * jarg2) {
- void * jresult ;
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- Dali::Toolkit::TransitionData *arg2 = 0 ;
- Dali::Animation result;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = (Dali::Toolkit::TransitionData *)jarg2;
- if (!arg2) {
- SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::TransitionData const & type is null", 0);
- return 0;
- }
- {
- try {
- result = (arg1)->CreateTransition((Dali::Toolkit::TransitionData const &)*arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
- };
- }
- }
- jresult = new Dali::Animation((const Dali::Animation &)result);
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_ViewWrapperImpl_EmitKeyInputFocusSignal(void * jarg1, unsigned int jarg2) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
- bool arg2 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- arg2 = jarg2 ? true : false;
- {
- try {
- (arg1)->EmitKeyInputFocusSignal(arg2);
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ViewWrapperImpl_ApplyThemeStyle(void * jarg1) {
- Dali::Toolkit::Internal::ControlWrapper *arg1 = (Dali::Toolkit::Internal::ControlWrapper *) 0 ;
-
- arg1 = (Dali::Toolkit::Internal::ControlWrapper *)jarg1;
- {
- try {
- (arg1)->ApplyThemeStyle();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-}
-
-
-#ifdef __cplusplus
-}
-#endif
+++ /dev/null
-#ifndef CSHARP_VIEW_WRAPPER_IMPL_H
-#define CSHARP_VIEW_WRAPPER_IMPL_H
-
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-#include "common.h"
-
-class SwigDirector_ViewWrapperImpl : public Dali::Toolkit::Internal::ControlWrapper
-{
-public:
-
- SwigDirector_ViewWrapperImpl(Dali::Toolkit::Internal::ControlWrapper::CustomControlBehaviour behaviourFlags);
- virtual ~SwigDirector_ViewWrapperImpl();
- virtual void OnStageConnection(int depth);
- virtual void OnStageConnectionSwigPublic(int depth)
- {
- Dali::Toolkit::Internal::Control::OnStageConnection(depth);
- }
- virtual void OnStageDisconnection();
- virtual void OnStageDisconnectionSwigPublic()
- {
- Dali::Toolkit::Internal::Control::OnStageDisconnection();
- }
- virtual void OnChildAdd(Dali::Actor &child);
- virtual void OnChildAddSwigPublic(Dali::Actor &child)
- {
- Dali::Toolkit::Internal::Control::OnChildAdd(child);
- }
- virtual void OnChildRemove(Dali::Actor &child);
- virtual void OnChildRemoveSwigPublic(Dali::Actor &child)
- {
- Dali::Toolkit::Internal::Control::OnChildRemove(child);
- }
- virtual void OnPropertySet(Dali::Property::Index index, Dali::Property::Value propertyValue);
- virtual void OnSizeSet(Dali::Vector3 const &targetSize);
- virtual void OnSizeSetSwigPublic(Dali::Vector3 const &targetSize)
- {
- Dali::Toolkit::Internal::Control::OnSizeSet(targetSize);
- }
- virtual void OnSizeAnimation(Dali::Animation &animation, Dali::Vector3 const &targetSize);
- virtual void OnSizeAnimationSwigPublic(Dali::Animation &animation, Dali::Vector3 const &targetSize)
- {
- Dali::Toolkit::Internal::Control::OnSizeAnimation(animation,targetSize);
- }
- virtual bool OnTouchEvent(Dali::TouchEvent const &event);
- virtual bool OnTouchEventSwigPublic(Dali::TouchEvent const &event)
- {
- return Dali::Toolkit::Internal::Control::OnTouchEvent(event);
- }
- virtual bool OnHoverEvent(Dali::HoverEvent const &event);
- virtual bool OnHoverEventSwigPublic(Dali::HoverEvent const &event)
- {
- return Dali::Toolkit::Internal::Control::OnHoverEvent(event);
- }
- virtual bool OnKeyEvent(Dali::KeyEvent const &event);
- virtual bool OnKeyEventSwigPublic(Dali::KeyEvent const &event)
- {
- return Dali::Toolkit::Internal::Control::OnKeyEvent(event);
- }
- virtual bool OnWheelEvent(Dali::WheelEvent const &event);
- virtual bool OnWheelEventSwigPublic(Dali::WheelEvent const &event)
- {
- return Dali::Toolkit::Internal::Control::OnWheelEvent(event);
- }
- virtual void OnRelayout(Dali::Vector2 const &size, Dali::RelayoutContainer &container);
- virtual void OnRelayoutSwigPublic(Dali::Vector2 const &size, Dali::RelayoutContainer &container)
- {
- Dali::Toolkit::Internal::Control::OnRelayout(size,container);
- }
- virtual void OnSetResizePolicy(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension);
- virtual void OnSetResizePolicySwigPublic(Dali::ResizePolicy::Type policy, Dali::Dimension::Type dimension)
- {
- Dali::Toolkit::Internal::Control::OnSetResizePolicy(policy,dimension);
- }
- virtual Dali::Vector3 GetNaturalSize();
- virtual Dali::Vector3 GetNaturalSizeSwigPublic()
- {
- return Dali::Toolkit::Internal::Control::GetNaturalSize();
- }
- virtual float CalculateChildSize(Dali::Actor const &child, Dali::Dimension::Type dimension);
- virtual float CalculateChildSizeSwigPublic(Dali::Actor const &child, Dali::Dimension::Type dimension)
- {
- return Dali::Toolkit::Internal::Control::CalculateChildSize(child,dimension);
- }
- virtual float GetHeightForWidth(float width);
- virtual float GetHeightForWidthSwigPublic(float width)
- {
- return Dali::Toolkit::Internal::Control::GetHeightForWidth(width);
- }
- virtual float GetWidthForHeight(float height);
- virtual float GetWidthForHeightSwigPublic(float height)
- {
- return Dali::Toolkit::Internal::Control::GetWidthForHeight(height);
- }
- virtual bool RelayoutDependentOnChildren(Dali::Dimension::Type dimension = Dali::Dimension::ALL_DIMENSIONS);
- virtual bool RelayoutDependentOnChildrenSwigPublic(Dali::Dimension::Type dimension = Dali::Dimension::ALL_DIMENSIONS)
- {
- return Dali::Toolkit::Internal::Control::RelayoutDependentOnChildren(dimension);
- }
- virtual void OnCalculateRelayoutSize(Dali::Dimension::Type dimension);
- virtual void OnCalculateRelayoutSizeSwigPublic(Dali::Dimension::Type dimension)
- {
- Dali::Toolkit::Internal::Control::OnCalculateRelayoutSize(dimension);
- }
- virtual void OnLayoutNegotiated(float size, Dali::Dimension::Type dimension);
- virtual void OnLayoutNegotiatedSwigPublic(float size, Dali::Dimension::Type dimension)
- {
- Dali::Toolkit::Internal::Control::OnLayoutNegotiated(size,dimension);
- }
- virtual void OnInitialize();
- virtual void OnControlChildAdd(Dali::Actor &child);
- virtual void OnControlChildRemove(Dali::Actor &child);
- virtual void OnStyleChange(Dali::Toolkit::StyleManager styleManager, Dali::StyleChange::Type change);
- virtual bool OnAccessibilityActivated();
- virtual bool OnAccessibilityPan(Dali::PanGesture gesture);
- virtual bool OnAccessibilityTouch(Dali::TouchEvent const &touchEvent);
- virtual bool OnAccessibilityValueChange(bool isIncrease);
- virtual bool OnAccessibilityZoom();
- virtual void OnKeyInputFocusGained();
- virtual void OnKeyInputFocusLost();
- virtual Dali::Actor GetNextKeyboardFocusableActor(Dali::Actor currentFocusedActor, Dali::Toolkit::Control::KeyboardFocus::Direction direction, bool loopEnabled);
- virtual void OnKeyboardFocusChangeCommitted(Dali::Actor commitedFocusableActor);
- virtual bool OnKeyboardEnter();
- virtual void OnPinch(Dali::PinchGesture const &pinch);
- virtual void OnPan(Dali::PanGesture const &pan);
- virtual void OnTap(Dali::TapGesture const &tap);
- virtual void OnLongPress(Dali::LongPressGesture const &longPress);
- virtual Dali::Toolkit::Internal::Control::Extension *GetControlExtension();
-
- typedef void (SWIGSTDCALL* SWIG_Callback0_t)(int);
- typedef void (SWIGSTDCALL* SWIG_Callback1_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback2_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback3_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback4_t)(int, void *);
- typedef void (SWIGSTDCALL* SWIG_Callback5_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback6_t)(void *, void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback7_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback8_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback9_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback10_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback11_t)(void *, void *);
- typedef void (SWIGSTDCALL* SWIG_Callback12_t)(int, int);
- typedef void * (SWIGSTDCALL* SWIG_Callback13_t)();
- typedef float (SWIGSTDCALL* SWIG_Callback14_t)(void *, int);
- typedef float (SWIGSTDCALL* SWIG_Callback15_t)(float);
- typedef float (SWIGSTDCALL* SWIG_Callback16_t)(float);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback17_t)(int);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback18_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback19_t)(int);
- typedef void (SWIGSTDCALL* SWIG_Callback20_t)(float, int);
- typedef void (SWIGSTDCALL* SWIG_Callback21_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback22_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback23_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback24_t)(void *, int);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback25_t)();
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback26_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback27_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback28_t)(unsigned int);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback29_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback30_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback31_t)();
- typedef void * (SWIGSTDCALL* SWIG_Callback32_t)(void *, int, unsigned int);
- typedef void (SWIGSTDCALL* SWIG_Callback33_t)(void *);
- typedef unsigned int (SWIGSTDCALL* SWIG_Callback34_t)();
- typedef void (SWIGSTDCALL* SWIG_Callback35_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback36_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback37_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback38_t)(void *);
- typedef void (SWIGSTDCALL* SWIG_Callback39_t)(void *, void *);
- typedef void (SWIGSTDCALL* SWIG_Callback40_t)(void *, void *);
- void swig_connect_director(SWIG_Callback0_t callbackOnStageConnection, SWIG_Callback1_t callbackOnStageDisconnection, SWIG_Callback2_t callbackOnChildAdd, SWIG_Callback3_t callbackOnChildRemove, SWIG_Callback4_t callbackOnPropertySet, SWIG_Callback5_t callbackOnSizeSet, SWIG_Callback6_t callbackOnSizeAnimation, SWIG_Callback7_t callbackOnTouchEvent, SWIG_Callback8_t callbackOnHoverEvent, SWIG_Callback9_t callbackOnKeyEvent, SWIG_Callback10_t callbackOnWheelEvent, 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_Callback22_t callbackOnControlChildAdd, SWIG_Callback23_t callbackOnControlChildRemove, SWIG_Callback24_t callbackOnStyleChange, SWIG_Callback25_t callbackOnAccessibilityActivated, SWIG_Callback26_t callbackOnAccessibilityPan, SWIG_Callback27_t callbackOnAccessibilityTouch, 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);
-
-private:
- SWIG_Callback0_t swig_callbackOnStageConnection;
- SWIG_Callback1_t swig_callbackOnStageDisconnection;
- SWIG_Callback2_t swig_callbackOnChildAdd;
- SWIG_Callback3_t swig_callbackOnChildRemove;
- SWIG_Callback4_t swig_callbackOnPropertySet;
- SWIG_Callback5_t swig_callbackOnSizeSet;
- SWIG_Callback6_t swig_callbackOnSizeAnimation;
- SWIG_Callback7_t swig_callbackOnTouchEvent;
- SWIG_Callback8_t swig_callbackOnHoverEvent;
- SWIG_Callback9_t swig_callbackOnKeyEvent;
- SWIG_Callback10_t swig_callbackOnWheelEvent;
- SWIG_Callback11_t swig_callbackOnRelayout;
- SWIG_Callback12_t swig_callbackOnSetResizePolicy;
- SWIG_Callback13_t swig_callbackGetNaturalSize;
- SWIG_Callback14_t swig_callbackCalculateChildSize;
- SWIG_Callback15_t swig_callbackGetHeightForWidth;
- SWIG_Callback16_t swig_callbackGetWidthForHeight;
- SWIG_Callback17_t swig_callbackRelayoutDependentOnChildren__SWIG_0;
- SWIG_Callback18_t swig_callbackRelayoutDependentOnChildren__SWIG_1;
- SWIG_Callback19_t swig_callbackOnCalculateRelayoutSize;
- SWIG_Callback20_t swig_callbackOnLayoutNegotiated;
- SWIG_Callback21_t swig_callbackOnInitialize;
- SWIG_Callback22_t swig_callbackOnControlChildAdd;
- SWIG_Callback23_t swig_callbackOnControlChildRemove;
- SWIG_Callback24_t swig_callbackOnStyleChange;
- SWIG_Callback25_t swig_callbackOnAccessibilityActivated;
- SWIG_Callback26_t swig_callbackOnAccessibilityPan;
- SWIG_Callback27_t swig_callbackOnAccessibilityTouch;
- SWIG_Callback28_t swig_callbackOnAccessibilityValueChange;
- SWIG_Callback29_t swig_callbackOnAccessibilityZoom;
- SWIG_Callback30_t swig_callbackOnKeyInputFocusGained;
- SWIG_Callback31_t swig_callbackOnKeyInputFocusLost;
- SWIG_Callback32_t swig_callbackGetNextKeyboardFocusableActor;
- SWIG_Callback33_t swig_callbackOnKeyboardFocusChangeCommitted;
- SWIG_Callback34_t swig_callbackOnKeyboardEnter;
- SWIG_Callback35_t swig_callbackOnPinch;
- SWIG_Callback36_t swig_callbackOnPan;
- SWIG_Callback37_t swig_callbackOnTap;
- SWIG_Callback38_t swig_callbackOnLongPress;
- SWIG_Callback39_t swig_callbackSignalConnected;
- SWIG_Callback40_t swig_callbackSignalDisconnected;
- void swig_init_callbacks();
-};
-
-#endif /* CSHARP_VIEW_WRAPPER_IMPL_H */
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali {
-
-using System;
-
-public class Color : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Color(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Color obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Color() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector4(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
-
- public static Color operator+(Color arg1, Color arg2) {
- return arg1.Add(arg2);
- }
-
- public static Color operator-(Color arg1, Color arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Color operator-(Color arg1) {
- return arg1.Subtract();
- }
-
- public static Color operator*(Color arg1, Color arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Color operator*(Color arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Color operator/(Color arg1, Color arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Color operator/(Color arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Color GetColorFromPtr(global::System.IntPtr cPtr) {
- Color ret = new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public Color() : this(NDalicPINVOKE.new_Vector4__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Color(float r, float g, float b, float a) : this(NDalicPINVOKE.new_Vector4__SWIG_1(r, g, b, a), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Color(float[] array) : this(NDalicPINVOKE.new_Vector4__SWIG_2(array), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private Color Add(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Add(swigCPtr, Color.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color AddAssign(Vector4 rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_AddAssign(swigCPtr, Color.getCPtr(rhs)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Subtract(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Subtract__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color SubtractAssign(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_SubtractAssign(swigCPtr, Color.getCPtr(rhs)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Multiply(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Multiply__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Multiply(float rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color MultiplyAssign(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Color.getCPtr(rhs)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color MultiplyAssign(float rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Divide(Vector4 rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Divide__SWIG_0(swigCPtr, Color.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Divide(float rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_Divide__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color DivideAssign(Color rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_DivideAssign__SWIG_0(swigCPtr, Color.getCPtr(rhs)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color DivideAssign(float rhs) {
- Color ret = new Color(NDalicPINVOKE.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Color Subtract() {
- Color ret = new Color(NDalicPINVOKE.Vector4_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool EqualTo(Color rhs) {
- bool ret = NDalicPINVOKE.Vector4_EqualTo(swigCPtr, Color.getCPtr(rhs));
-
- if(rhs == null) return false;
-
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool NotEqualTo(Color rhs) {
- bool ret = NDalicPINVOKE.Vector4_NotEqualTo(swigCPtr, Color.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private float ValueOfIndex(uint index) {
- float ret = NDalicPINVOKE.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float R {
- set {
- NDalicPINVOKE.Vector4_r_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector4_r_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float G {
- set {
- NDalicPINVOKE.Vector4_g_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector4_g_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float B {
- set {
- NDalicPINVOKE.Vector4_b_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector4_b_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float A {
- set {
- NDalicPINVOKE.Vector4_a_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector4_a_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Black {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.BLACK_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color White {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.WHITE_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Red {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.RED_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Green {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.GREEN_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Blue {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.BLUE_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Yellow {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.YELLOW_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Magenta {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.MAGENTA_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Cyan {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.CYAN_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Color Transparent {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.TRANSPARENT_get();
- Color ret = (cPtr == global::System.IntPtr.Zero) ? null : new Color(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static implicit operator Vector4(Color color)
- {
- return new Vector4(color.R, color.G, color.B, color.A);
- }
-
- public static implicit operator Color(Vector4 vec)
- {
- return new Color(vec.r, vec.g, vec.b, vec.a);
- }
-
-}
-
-}
-
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-namespace Dali
-{
- public class CustomView : ViewWrapper
- {
- public CustomView(string typeName, ViewWrapperImpl.CustomViewBehaviour behaviour) : base(typeName, new ViewWrapperImpl(behaviour))
- {
- // Registering CustomView virtual functions to viewWrapperImpl delegates.
- viewWrapperImpl.OnStageConnection = new ViewWrapperImpl.OnStageConnectionDelegate(OnStageConnection);
- viewWrapperImpl.OnStageDisconnection = new ViewWrapperImpl.OnStageDisconnectionDelegate(OnStageDisconnection);
- viewWrapperImpl.OnChildAdd = new ViewWrapperImpl.OnChildAddDelegate(OnChildAdd);
- viewWrapperImpl.OnChildRemove = new ViewWrapperImpl.OnChildRemoveDelegate(OnChildRemove);
- viewWrapperImpl.OnPropertySet = new ViewWrapperImpl.OnPropertySetDelegate(OnPropertySet);
- viewWrapperImpl.OnSizeSet = new ViewWrapperImpl.OnSizeSetDelegate(OnSizeSet);
- viewWrapperImpl.OnSizeAnimation = new ViewWrapperImpl.OnSizeAnimationDelegate(OnSizeAnimation);
- viewWrapperImpl.OnTouch = new ViewWrapperImpl.OnTouchDelegate(OnTouch);
- viewWrapperImpl.OnHover = new ViewWrapperImpl.OnHoverDelegate(OnHover);
- viewWrapperImpl.OnKey = new ViewWrapperImpl.OnKeyDelegate(OnKey);
- viewWrapperImpl.OnWheel = new ViewWrapperImpl.OnWheelDelegate(OnWheel);
- viewWrapperImpl.OnRelayout = new ViewWrapperImpl.OnRelayoutDelegate(OnRelayout);
- viewWrapperImpl.OnSetResizePolicy = new ViewWrapperImpl.OnSetResizePolicyDelegate(OnSetResizePolicy);
- viewWrapperImpl.GetNaturalSize = new ViewWrapperImpl.GetNaturalSizeDelegate(GetNaturalSize);
- viewWrapperImpl.CalculateChildSize = new ViewWrapperImpl.CalculateChildSizeDelegate(CalculateChildSize);
- viewWrapperImpl.GetHeightForWidth = new ViewWrapperImpl.GetHeightForWidthDelegate(GetHeightForWidth);
- viewWrapperImpl.GetWidthForHeight = new ViewWrapperImpl.GetWidthForHeightDelegate(GetWidthForHeight);
- viewWrapperImpl.RelayoutDependentOnChildrenDimension = new ViewWrapperImpl.RelayoutDependentOnChildrenDimensionDelegate(RelayoutDependentOnChildren);
- viewWrapperImpl.RelayoutDependentOnChildren = new ViewWrapperImpl.RelayoutDependentOnChildrenDelegate(RelayoutDependentOnChildren);
- viewWrapperImpl.OnCalculateRelayoutSize = new ViewWrapperImpl.OnCalculateRelayoutSizeDelegate(OnCalculateRelayoutSize);
- viewWrapperImpl.OnLayoutNegotiated = new ViewWrapperImpl.OnLayoutNegotiatedDelegate(OnLayoutNegotiated);
- viewWrapperImpl.OnControlChildAdd = new ViewWrapperImpl.OnControlChildAddDelegate(OnControlChildAdd);
- viewWrapperImpl.OnControlChildRemove = new ViewWrapperImpl.OnControlChildRemoveDelegate(OnControlChildRemove);
- viewWrapperImpl.OnStyleChange = new ViewWrapperImpl.OnStyleChangeDelegate(OnStyleChange);
- viewWrapperImpl.OnAccessibilityActivated = new ViewWrapperImpl.OnAccessibilityActivatedDelegate(OnAccessibilityActivated);
- viewWrapperImpl.OnAccessibilityPan = new ViewWrapperImpl.OnAccessibilityPanDelegate(OnAccessibilityPan);
- viewWrapperImpl.OnAccessibilityTouch = new ViewWrapperImpl.OnAccessibilityTouchDelegate(OnAccessibilityTouch);
- viewWrapperImpl.OnAccessibilityValueChange = new ViewWrapperImpl.OnAccessibilityValueChangeDelegate(OnAccessibilityValueChange);
- viewWrapperImpl.OnAccessibilityZoom = new ViewWrapperImpl.OnAccessibilityZoomDelegate(OnAccessibilityZoom);
- viewWrapperImpl.OnKeyInputFocusGained = new ViewWrapperImpl.OnKeyInputFocusGainedDelegate(OnKeyInputFocusGained);
- viewWrapperImpl.OnKeyInputFocusLost = new ViewWrapperImpl.OnKeyInputFocusLostDelegate(OnKeyInputFocusLost);
- viewWrapperImpl.GetNextKeyboardFocusableActor = new ViewWrapperImpl.GetNextKeyboardFocusableActorDelegate(GetNextKeyboardFocusableActor);
- viewWrapperImpl.OnKeyboardFocusChangeCommitted = new ViewWrapperImpl.OnKeyboardFocusChangeCommittedDelegate(OnKeyboardFocusChangeCommitted);
- viewWrapperImpl.OnKeyboardEnter = new ViewWrapperImpl.OnKeyboardEnterDelegate(OnKeyboardEnter);
- viewWrapperImpl.OnPinch = new ViewWrapperImpl.OnPinchDelegate(OnPinch);
- viewWrapperImpl.OnPan = new ViewWrapperImpl.OnPanDelegate(OnPan);
- viewWrapperImpl.OnTap = new ViewWrapperImpl.OnTapDelegate(OnTap);
- viewWrapperImpl.OnLongPress = new ViewWrapperImpl.OnLongPressDelegate(OnLongPress);
-
- // By default, we do not want the position to use the anchor point
- this.PositionUsesAnchorPoint = false;
-
- // Make sure CustomView is initialized.
- OnInitialize();
-
- // Set the StyleName the name of the View
- // We have to do this because the StyleManager on Native side can't workout it out
- // This will also ensure that the style of actors/visuals initialized above are applied by the style manager.
- SetStyleName( this.GetType().Name );
- }
-
- /**
- * @brief Set the background with a property map.
- *
- * @param[in] map The background property map.
- */
- public void SetBackground(Dali.Property.Map map)
- {
- viewWrapperImpl.SetBackground(map);
- }
-
- /**
- * @brief Allows deriving classes to enable any of the gesture detectors that are available.
- *
- * Gesture detection can be enabled one at a time or in bitwise format as shown:
- * @code
- * EnableGestureDetection(Gesture.Type.Pinch | Gesture.Type.Tap | Gesture.Type.Pan));
- * @endcode
- * @param[in] type The gesture type(s) to enable.
- */
- public void EnableGestureDetection(Gesture.GestureType type)
- {
- viewWrapperImpl.EnableGestureDetection(type);
- }
-
- /**
- * @brief Allows deriving classes to disable any of the gesture detectors.
- *
- * Like EnableGestureDetection, this can also be called using bitwise or.
- * @param[in] type The gesture type(s) to disable.
- * @see EnableGetureDetection
- */
- public void DisableGestureDetection(Gesture.GestureType type)
- {
- viewWrapperImpl.DisableGestureDetection(type);
- }
-
- /**
- * @brief Sets whether this control supports two dimensional
- * keyboard navigation (i.e. whether it knows how to handle the
- * keyboard focus movement between its child actors).
- *
- * The control doesn't support it by default.
- * @param[in] isSupported Whether this control supports two dimensional keyboard navigation.
- */
- public void SetKeyboardNavigationSupport(bool isSupported)
- {
- viewWrapperImpl.SetKeyboardNavigationSupport(isSupported);
- }
-
- /**
- * @brief Gets whether this control supports two dimensional keyboard navigation.
- *
- * @return true if this control supports two dimensional keyboard navigation.
- */
- public bool IsKeyboardNavigationSupported()
- {
- return viewWrapperImpl.IsKeyboardNavigationSupported();
- }
-
- /**
- * @brief Sets whether this control is a focus group for keyboard navigation.
- *
- * (i.e. the scope of keyboard focus movement
- * can be limitied to its child actors). The control is not a focus group by default.
- * @param[in] isFocusGroup Whether this control is set as a focus group for keyboard navigation.
- */
- public void SetAsKeyboardFocusGroup(bool isFocusGroup)
- {
- viewWrapperImpl.SetAsKeyboardFocusGroup(isFocusGroup);
- }
-
- /**
- * @brief Gets whether this control is a focus group for keyboard navigation.
- *
- * @return true if this control is set as a focus group for keyboard navigation.
- */
- public bool IsKeyboardFocusGroup()
- {
- return viewWrapperImpl.IsKeyboardFocusGroup();
- }
-
- /**
- * @brief Called by the AccessibilityManager to activate the Control.
- * @SINCE_1_0.0
- */
- public void AccessibilityActivate()
- {
- viewWrapperImpl.AccessibilityActivate();
- }
-
- /**
- * @brief Called by the KeyboardFocusManager.
- */
- public void KeyboardEnter()
- {
- viewWrapperImpl.KeyboardEnter();
- }
-
- /**
- * @brief Called by the KeyInputFocusManager to emit key event signals.
- *
- * @param[in] key The key event.
- * @return True if the event was consumed.
- */
- public bool EmitKeyEventSignal(Key key)
- {
- return viewWrapperImpl.EmitKeyEventSignal(key);
- }
-
- /**
- * @brief Request a relayout, which means performing a size negotiation on this actor, its parent and children (and potentially whole scene).
- *
- * This method can also be called from a derived class every time it needs a different size.
- * At the end of event processing, the relayout process starts and
- * all controls which requested Relayout will have their sizes (re)negotiated.
- *
- * @note RelayoutRequest() can be called multiple times; the size negotiation is still
- * only performed once, i.e. there is no need to keep track of this in the calling side.
- */
- protected void RelayoutRequest()
- {
- viewWrapperImpl.RelayoutRequest();
- }
-
- /**
- * @brief Provides the Actor implementation of GetHeightForWidth.
- * @param width Width to use.
- * @return The height based on the width.
- */
- protected float GetHeightForWidthBase(float width)
- {
- return viewWrapperImpl.GetHeightForWidthBase( width );
- }
-
- /**
- * @brief Provides the Actor implementation of GetWidthForHeight.
- * @param height Height to use.
- * @return The width based on the height.
- */
- protected float GetWidthForHeightBase(float height)
- {
- return viewWrapperImpl.GetWidthForHeightBase( height );
- }
-
- /**
- * @brief Calculate the size for a child using the base actor object.
- *
- * @param[in] child The child actor to calculate the size for
- * @param[in] dimension The dimension to calculate the size for. E.g. width or height
- * @return Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found.
- */
- protected float CalculateChildSizeBase(Actor child, DimensionType dimension)
- {
- return viewWrapperImpl.CalculateChildSizeBase( child, dimension );
- }
-
- /**
- * @brief Determine if this actor is dependent on it's children for relayout from the base class.
- *
- * @param dimension The dimension(s) to check for
- * @return Return if the actor is dependent on it's children.
- */
- protected bool RelayoutDependentOnChildrenBase(DimensionType dimension)
- {
- return viewWrapperImpl.RelayoutDependentOnChildrenBase( dimension );
- }
-
- /**
- * @brief Determine if this actor is dependent on it's children for relayout from the base class.
- *
- * @param dimension The dimension(s) to check for
- * @return Return if the actor is dependent on it's children.
- */
- protected bool RelayoutDependentOnChildrenBase()
- {
- return viewWrapperImpl.RelayoutDependentOnChildrenBase();
- }
-
- /**
- * @brief Register a visual by Property Index, linking an Actor to visual when required.
- * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle.
- * No parenting is done during registration, this should be done by derived class.
- *
- * @param[in] index The Property index of the visual, used to reference visual
- * @param[in] visual The visual to register
- * @note Derived class should not call visual.SetOnStage(actor). It is the responsibility of the base class to connect/disconnect registered visual to stage.
- * Use below API with enabled set to false if derived class wishes to control when visual is staged.
- */
- protected void RegisterVisual(int index, VisualBase visual)
- {
- viewWrapperImpl.RegisterVisual( index, visual );
- }
-
- /**
- * @brief Register a visual by Property Index, linking an Actor to visual when required.
- * In the case of the visual being an actor or control deeming visual not required then visual should be an empty handle.
- * If enabled is false then the visual is not set on stage until enabled by the derived class.
- * @see EnableVisual
- *
- * @param[in] index The Property index of the visual, used to reference visual
- * @param[in] visual The visual to register
- * @param[in] enabled false if derived class wants to control when visual is set on stage.
- *
- */
- protected void RegisterVisual(int index, VisualBase visual, bool enabled)
- {
- viewWrapperImpl.RegisterVisual( index, visual, enabled );
- }
-
- /**
- * @brief Erase the entry matching the given index from the list of registered visuals
- * @param[in] index The Property index of the visual, used to reference visual
- *
- */
- protected void UnregisterVisual(int index)
- {
- viewWrapperImpl.UnregisterVisual( index );
- }
-
- /**
- * @brief Retrieve the visual associated with the given property index.
- *
- * @param[in] index The Property index of the visual.
- * @return The registered visual if exist, otherwise empty handle.
- * @note For managing object life-cycle, do not store the returned visual as a member which increments its reference count.
- */
- protected VisualBase GetVisual(int index)
- {
- return viewWrapperImpl.GetVisual( index );
- }
-
- /**
- * @brief Sets the given visual to be displayed or not when parent staged.
- *
- * @param[in] index The Property index of the visual
- * @param[in] enable flag to set enabled or disabled.
- */
- protected void EnableVisual(int index, bool enable)
- {
- viewWrapperImpl.EnableVisual( index, enable );
- }
-
- /**
- * @brief Queries if the given visual is to be displayed when parent staged.
- *
- * @param[in] index The Property index of the visual
- * @return bool whether visual is enabled or not
- */
- protected bool IsVisualEnabled(int index)
- {
- return viewWrapperImpl.IsVisualEnabled( index );
- }
-
- /**
- * @brief Create a transition effect on the control.
- *
- * @param[in] transitionData The transition data describing the effect to create
- * @return A handle to an animation defined with the given effect, or an empty
- * handle if no properties match.
- */
- protected Animation CreateTransition(TransitionData transitionData)
- {
- return viewWrapperImpl.CreateTransition( transitionData );
- }
-
- /**
- * @brief Emits KeyInputFocusGained signal if true else emits KeyInputFocusLost signal
- *
- * Should be called last by the control after it acts on the Input Focus change.
- *
- * @param[in] focusGained True if gained, False if lost
- */
- protected void EmitKeyInputFocusSignal(bool focusGained)
- {
- viewWrapperImpl.EmitKeyInputFocusSignal( focusGained );
- }
-
- /**
- * @brief This method is called after the Control has been initialized.
- *
- * Derived classes should do any second phase initialization by overriding this method.
- */
- public virtual void OnInitialize()
- {
- }
-
- /**
- * @brief Called after the actor has been connected to the stage.
- *
- * When an actor is connected, it will be directly or indirectly parented to the root Actor.
- * @param[in] depth The depth in the hierarchy for the actor
- *
- * @note The root Actor is provided automatically by Dali::Stage, and is always considered to be connected.
- * When the parent of a set of actors is connected to the stage, then all of the children
- * will received this callback.
- * For the following actor tree, the callback order will be A, B, D, E, C, and finally F.
- *
- * @code
- *
- * A (parent)
- * / \
- * B C
- * / \ \
- * D E F
- *
- * @endcode
- * @param[in] depth The depth in the hierarchy for the actor
- */
- public virtual void OnStageConnection(int depth)
- {
- }
-
- /**
- * @brief Called after the actor has been disconnected from Stage.
- *
- * If an actor is disconnected it either has no parent, or is parented to a disconnected actor.
- *
- * @note When the parent of a set of actors is disconnected to the stage, then all of the children
- * will received this callback, starting with the leaf actors.
- * For the following actor tree, the callback order will be D, E, B, F, C, and finally A.
- *
- * @code
- *
- * A (parent)
- * / \
- * B C
- * / \ \
- * D E F
- *
- * @endcode
- */
- public virtual void OnStageDisconnection()
- {
- }
-
- /**
- * @brief Called after a child has been added to the owning actor.
- *
- * @param[in] child The child which has been added
- */
- public virtual void OnChildAdd(Actor actor)
- {
- }
-
- /**
- * @brief Called after the owning actor has attempted to remove a child( regardless of whether it succeeded or not ).
- *
- * @param[in] child The child being removed
- */
- public virtual void OnChildRemove(Actor actor)
- {
- }
-
- /**
- * @brief Called when the owning actor property is set.
- *
- * @param[in] index The Property index that was set
- * @param[in] propertyValue The value to set
- */
- public virtual void OnPropertySet(int index, Dali.Property.Value propertyValue)
- {
- }
-
- /**
- * @brief Called when the owning actor's size is set e.g. using Actor::SetSize().
- *
- * @param[in] targetSize The target size. Note that this target size may not match the size returned via Actor.GetTargetSize.
- */
- public virtual void OnSizeSet(Vector3 targetSize)
- {
- }
-
- /**
- * @brief Called when the owning actor's size is animated e.g. using Animation::AnimateTo( Property( actor, Actor::Property::SIZE ), ... ).
- *
- * @param[in] animation The object which is animating the owning actor.
- * @param[in] targetSize The target size. Note that this target size may not match the size returned via @ref Actor.GetTargetSize.
- */
- public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize)
- {
- }
-
- /**
- * @DEPRECATED_1_1.37 Connect to TouchSignal() instead.
- *
- * @brief Called after a touch-event is received by the owning actor.
- *
- * @param[in] touch The touch event
- * @return True if the event should be consumed.
- * @note CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- */
- public virtual bool OnTouch(Touch touch)
- {
- return false; // Do not consume
- }
-
- /**
- * @brief Called after a hover-event is received by the owning actor.
- *
- * @param[in] hover The hover event
- * @return True if the hover event should be consumed.
- * @note CustomViewBehaviour.REQUIRES_HOVER_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- */
- public virtual bool OnHover(Hover hover)
- {
- return false; // Do not consume
- }
-
- /**
- * @brief Called after a key-event is received by the actor that has had its focus set.
- *
- * @param[in] key the Key Event
- * @return True if the event should be consumed.
- */
- public virtual bool OnKey(Key key)
- {
- return false; // Do not consume
- }
-
- /**
- * @brief Called after a wheel-event is received by the owning actor.
- *
- * @param[in] wheel The wheel event
- * @return True if the event should be consumed.
- * @note CustomViewBehaviour.REQUIRES_WHEEL_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- */
- public virtual bool OnWheel(Wheel wheel)
- {
- return false; // Do not consume
- }
-
- /**
- * @brief Called after the size negotiation has been finished for this control.
- *
- * The control is expected to assign this given size to itself/its children.
- *
- * Should be overridden by derived classes if they need to layout
- * actors differently after certain operations like add or remove
- * actors, resize or after changing specific properties.
- *
- * @param[in] size The allocated size.
- * @param[in,out] container The control should add actors to this container that it is not able
- * to allocate a size for.
- * @note As this function is called from inside the size negotiation algorithm, you cannot
- * call RequestRelayout (the call would just be ignored).
- */
- public virtual void OnRelayout(Vector2 size, RelayoutContainer container)
- {
- }
-
- /**
- * @brief Notification for deriving classes
- *
- * @param[in] policy The policy being set
- * @param[in] dimension The dimension the policy is being set for
- */
- public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension)
- {
- }
-
- /**
- * @brief Return the natural size of the actor.
- *
- * @return The actor's natural size
- */
- public virtual Vector3 GetNaturalSize()
- {
- return new Vector3(0.0f, 0.0f, 0.0f);
- }
-
- /**
- * @brief Calculate the size for a child.
- *
- * @param[in] child The child actor to calculate the size for
- * @param[in] dimension The dimension to calculate the size for. E.g. width or height.
- * @return Return the calculated size for the given dimension.
- */
- public virtual float CalculateChildSize(Actor child, DimensionType dimension)
- {
- return viewWrapperImpl.CalculateChildSizeBase( child, dimension );
- }
-
- /**
- * @brief This method is called during size negotiation when a height is required for a given width.
- *
- * Derived classes should override this if they wish to customize the height returned.
- *
- * @param width Width to use.
- * @return The height based on the width.
- */
- public virtual float GetHeightForWidth(float width)
- {
- return viewWrapperImpl.GetHeightForWidthBase( width );
- }
-
- /**
- * @brief This method is called during size negotiation when a width is required for a given height.
- *
- * Derived classes should override this if they wish to customize the width returned.
- *
- * @param height Height to use.
- * @return The width based on the width.
- */
- public virtual float GetWidthForHeight(float height)
- {
- return viewWrapperImpl.GetWidthForHeightBase( height );
- }
-
- /**
- * @brief Determine if this actor is dependent on it's children for relayout.
- *
- * @param dimension The dimension(s) to check for
- * @return Return if the actor is dependent on it's children.
- */
- public virtual bool RelayoutDependentOnChildren(DimensionType dimension)
- {
- return viewWrapperImpl.RelayoutDependentOnChildrenBase( dimension );
- }
-
- /**
- * @brief Determine if this actor is dependent on it's children for relayout from the base class.
- *
- * @return Return if the actor is dependent on it's children.
- */
- public virtual bool RelayoutDependentOnChildren()
- {
- return viewWrapperImpl.RelayoutDependentOnChildrenBase();
- }
-
- /**
- * @brief Virtual method to notify deriving classes that relayout dependencies have been
- * met and the size for this object is about to be calculated for the given dimension
- *
- * @param dimension The dimension that is about to be calculated
- */
- public virtual void OnCalculateRelayoutSize(DimensionType dimension)
- {
- }
-
- /**
- * @brief Virtual method to notify deriving classes that the size for a dimension
- * has just been negotiated
- *
- * @param[in] size The new size for the given dimension
- * @param[in] dimension The dimension that was just negotiated
- */
- public virtual void OnLayoutNegotiated(float size, DimensionType dimension)
- {
- }
-
- /**
- * @brief This method should be overridden by deriving classes requiring notifications when the style changes.
- *
- * @param[in] styleManager The StyleManager object.
- * @param[in] change Information denoting what has changed.
- */
- public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change)
- {
- }
-
- /**
- * @brief This method is called when the control is accessibility activated.
- *
- * Derived classes should override this to perform custom accessibility activation.
- * @return true if this control can perform accessibility activation.
- */
- public virtual bool OnAccessibilityActivated()
- {
- return false;
- }
-
- /**
- * @brief This method should be overridden by deriving classes when they wish to respond the accessibility
- * pan gesture.
- *
- * @param[in] gesture The pan gesture.
- * @return true if the pan gesture has been consumed by this control
- */
- public virtual bool OnAccessibilityPan(PanGesture gestures)
- {
- return false;
- }
-
- /**
- * @brief This method should be overridden by deriving classes when they wish to respond the accessibility
- * touch event.
- *
- * @param[in] touch The touch event.
- * @return true if the touch event has been consumed by this control
- */
- public virtual bool OnAccessibilityTouch(Touch touch)
- {
- return false;
- }
-
- /**
- * @brief This method should be overridden by deriving classes when they wish to respond
- * the accessibility up and down action (i.e. value change of slider control).
- *
- * @param[in] isIncrease Whether the value should be increased or decreased
- * @return true if the value changed action has been consumed by this control
- */
- public virtual bool OnAccessibilityValueChange(bool isIncrease)
- {
- return false;
- }
-
- /**
- * @brief This method should be overridden by deriving classes when they wish to respond
- * the accessibility zoom action.
- *
- * @return true if the zoom action has been consumed by this control
- */
- public virtual bool OnAccessibilityZoom()
- {
- return false;
- }
-
- /**
- * @brief This method should be overridden by deriving classes when they wish to respond
- * the accessibility zoom action.
- *
- * @return true if the zoom action has been consumed by this control
- */
- public virtual void OnKeyInputFocusGained()
- {
- }
-
- /**
- * @brief Called when the control loses key input focus.
- *
- * Should be overridden by derived classes if they need to customize what happens when focus is lost.
- */
- public virtual void OnKeyInputFocusLost()
- {
- }
-
- /**
- * @brief Gets the next keyboard focusable actor in this control towards the given direction.
- *
- * A control needs to override this function in order to support two dimensional keyboard navigation.
- * @param[in] currentFocusedActor The current focused actor.
- * @param[in] direction The direction to move the focus towards.
- * @param[in] loopEnabled Whether the focus movement should be looped within the control.
- * @return the next keyboard focusable actor in this control or an empty handle if no actor can be focused.
- */
- public virtual Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, View.KeyboardFocus.Direction direction, bool loopEnabled)
- {
- return new Actor();
- }
-
- /**
- * @brief Informs this control that its chosen focusable actor will be focused.
- *
- * This allows the application to preform any actions if wishes
- * before the focus is actually moved to the chosen actor.
- *
- * @param[in] commitedFocusableActor The commited focusable actor.
- */
- public virtual void OnKeyboardFocusChangeCommitted(Actor commitedFocusableActor)
- {
- }
-
- /**
- * @brief This method is called when the control has enter pressed on it.
- *
- * Derived classes should override this to perform custom actions.
- * @return true if this control supported this action.
- */
- public virtual bool OnKeyboardEnter()
- {
- return false;
- }
-
- /**
- * @brief Called whenever a pinch gesture is detected on this control.
- *
- * This can be overridden by deriving classes when pinch detection
- * is enabled. The default behaviour is to scale the control by the
- * pinch scale.
- *
- * @param[in] pinch The pinch gesture.
- * @note If overridden, then the default behaviour will not occur.
- * @note Pinch detection should be enabled via EnableGestureDetection().
- * @see EnableGestureDetection
- */
- public virtual void OnPinch(PinchGesture pinch)
- {
- }
-
- /**
- * @brief Called whenever a pan gesture is detected on this control.
- *
- * This should be overridden by deriving classes when pan detection
- * is enabled.
- *
- * @param[in] pan The pan gesture.
- * @note There is no default behaviour with panning.
- * @note Pan detection should be enabled via EnableGestureDetection().
- * @see EnableGestureDetection
- */
- public virtual void OnPan(PanGesture pan)
- {
- }
-
- /**
- * @brief Called whenever a tap gesture is detected on this control.
- *
- * This should be overridden by deriving classes when tap detection
- * is enabled.
- *
- * @param[in] tap The tap gesture.
- * @note There is no default behaviour with a tap.
- * @note Tap detection should be enabled via EnableGestureDetection().
- * @see EnableGestureDetection
- */
- public virtual void OnTap(TapGesture tap)
- {
- }
-
- /**
- * @brief Called whenever a long press gesture is detected on this control.
- *
- * This should be overridden by deriving classes when long press
- * detection is enabled.
- *
- * @param[in] longPress The long press gesture.
- * @note There is no default behaviour associated with a long press.
- * @note Long press detection should be enabled via EnableGestureDetection().
- * @see EnableGestureDetection
- */
- public virtual void OnLongPress(LongPressGesture longPress)
- {
- }
-
- private void OnControlChildAdd(Actor child)
- {
- }
-
- private void OnControlChildRemove(Actor child)
- {
- }
- }
-}
+++ /dev/null
-/** Copyright (c) 2016 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.
- *
- */
-using System;
-
-namespace Dali
-{
- namespace Constants
- {
- public enum TextureType
- {
- Texture2D = Dali.TextureType.TEXTURE_2D, ///< One 2D image @SINCE_1_1.43
- TextureCube = Dali.TextureType.TEXTURE_CUBE ///< Six 2D images arranged in a cube-shape @SINCE_1_1.43
- }
-
- public enum ViewMode
- {
- Mono = Dali.ViewMode.MONO, ///< Monoscopic (single camera). This is the default @SINCE_1_0.0
- StereoHorizontal = Dali.ViewMode.STEREO_HORIZONTAL, ///< Stereoscopic. Frame buffer is split horizontally with the left and right camera views in their respective sides. @SINCE_1_0.0
- StereoVertical = Dali.ViewMode.STEREO_VERTICAL, ///< Stereoscopic. Frame buffer is split vertically with the left camera view at the top and the right camera view at the bottom. @SINCE_1_0.0
- StereoInterlaced = Dali.ViewMode.STEREO_INTERLACED ///< @DEPRECATED_1_1.19 @brief Stereoscopic. Left/Right camera views are rendered into the framebuffer on alternate frames. @SINCE_1_0.0
- }
-
- public enum MeshVisualShadingModeValue
- {
- TexturelessWithDiffuseLighting = Dali.MeshVisualShadingModeValue.TEXTURELESS_WITH_DIFFUSE_LIGHTING, ///< *Simplest*. One color that is lit by ambient and diffuse lighting. @SINCE_1_1.45
- TexturedWithSpecularLigting = Dali.MeshVisualShadingModeValue.TEXTURED_WITH_SPECULAR_LIGHTING, ///< Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting. @SINCE_1_1.45
- TexturedWithDetailedSpecularLighting = Dali.MeshVisualShadingModeValue.TEXTURED_WITH_DETAILED_SPECULAR_LIGHTING ///< Uses all textures provided including a gloss, normal and texture map along with specular, ambient and diffuse lighting. @SINCE_1_1.45
- }
-
- public enum ProjectionMode
- {
- PerspectiveProjection = Dali.ProjectionMode.PERSPECTIVE_PROJECTION, ///< Distance causes foreshortening; objects further from the camera appear smaller @SINCE_1_0.0
- OrthographicProjection = Dali.ProjectionMode.ORTHOGRAPHIC_PROJECTION ///< Relative distance from the camera does not affect the size of objects @SINCE_1_0.0
- }
-
- public struct Direction
- {
- public enum Type
- {
- LeftToRight = Dali.DirectionType.LEFT_TO_RIGHT,
- RightToLeft = Dali.DirectionType.RIGHT_TO_LEFT
- }
- }
-
- public struct Align
- {
- public enum Type
- {
- TopBegin = Dali.AlignType.TOP_BEGIN,
- TopCenter = Dali.AlignType.TOP_CENTER,
- TopEnd = Dali.AlignType.TOP_END,
- CenterBegin = Dali.AlignType.CENTER_BEGIN,
- Center = Dali.AlignType.CENTER,
- CenterEnd = Dali.AlignType.CENTER_END,
- BottomBegin = Dali.AlignType.BOTTOM_BEGIN,
- BottomCenter = Dali.AlignType.BOTTOM_CENTER,
- BottomEnd = Dali.AlignType.BOTTOM_END
- }
- }
-
- public struct Visual
- {
- public enum Type
- {
- Border = Dali.VisualType.BORDER,
- Color = Dali.VisualType.COLOR,
- Gradient = Dali.VisualType.GRADIENT,
- Image = Dali.VisualType.IMAGE,
- Mesh = Dali.VisualType.MESH,
- Primitive = Dali.VisualType.PRIMITIVE,
- WireFrame = Dali.VisualType.WIREFRAME,
- Text = Dali.VisualType.TEXT,
- NPatch = Dali.VisualType.N_PATCH,
- Svg = Dali.VisualType.SVG,
- AnimatedImage = Dali.VisualType.ANIMATED_IMAGE
- }
-
- public struct Property
- {
- public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
- public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
- public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
- public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
- public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
- }
-
- public struct ShaderProperty
- {
- public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
- public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
- public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
- public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
- public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
- }
- }
-
- public struct BorderVisualProperty
- {
- public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
- public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
- public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
- }
-
- public struct ColorVisualProperty
- {
- public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
- }
-
- public struct GradientVisualProperty
- {
- public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
- public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
- public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
- public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
- public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
- public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
- public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
- public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
- }
-
- public struct ImageVisualProperty
- {
- public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
- public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
- public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
- public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
- public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
- public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
- public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
- public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
- public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
- public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
- public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
- }
-
- public struct MeshVisualProperty
- {
- public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
- public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
- public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
- public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
- public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
- public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
- public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
- }
-
- public struct PrimitiveVisualProperty
- {
- public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
- public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
- public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
- public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
- public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
- public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
- public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
- public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
- public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
- public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
- public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
- public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
- }
-
- public struct TextVisualProperty
- {
- public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
- public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
- public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
- public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
- public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
- public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
- public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
- public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
- public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
- }
-
- public struct Tooltip
- {
- public struct Property
- {
- public static readonly int Content = NDalic.TOOLTIP_CONTENT;
- public static readonly int Layout = NDalic.TOOLTIP_LAYOUT;
- public static readonly int WaitTime = NDalic.TOOLTIP_WAIT_TIME;
- public static readonly int Background = NDalic.TOOLTIP_BACKGROUND;
- public static readonly int Tail = NDalic.TOOLTIP_TAIL;
- public static readonly int Position = NDalic.TOOLTIP_POSITION;
- public static readonly int HoverPointOffset = NDalic.TOOLTIP_HOVER_POINT_OFFSET;
- public static readonly int MovementThreshold = NDalic.TOOLTIP_MOVEMENT_THRESHOLD;
- public static readonly int DisappearOnMovement = NDalic.TOOLTIP_DISAPPEAR_ON_MOVEMENT;
- }
-
- public struct BackgroundProperty
- {
- public static readonly int Visual = NDalic.TOOLTIP_BACKGROUND_VISUAL;
- public static readonly int Border = NDalic.TOOLTIP_BACKGROUND_BORDER;
- }
-
- public struct TailProperty
- {
- public static readonly int Visibility = NDalic.TOOLTIP_TAIL_VISIBILITY;
- public static readonly int AboveVisual = NDalic.TOOLTIP_TAIL_ABOVE_VISUAL;
- public static readonly int BelowVisual = NDalic.TOOLTIP_TAIL_BELOW_VISUAL;
- }
- }
- } // namespace Constants
-} // namesapce Dali
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-namespace Dali {
-
- using System;
- using System.Runtime.InteropServices;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate R DaliEventHandlerWithReturnType<T,U,R>(T source, U e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- internal delegate void EventCallbackDelegateType0();
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- internal delegate void EventCallbackDelegateType1<T>(T arg1);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- internal delegate void EventCallbackDelegateType2<T,U>(T arg1, U arg2);
-
-
- //this should be removed with EventHandler from .NET
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void DaliEventHandler<T,U>(T source, U e);
-
-
-}
+++ /dev/null
-// Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
-// PROPRIETARY/CONFIDENTIAL
-// This software is the confidential and proprietary
-// information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
-// not disclose such Confidential Information and shall use it only in
-// accordance with the terms of the license agreement you entered into with
-// SAMSUNG ELECTRONICS.
-//
-
-using System;
-using System.Collections.Generic;
-
-namespace Dali
-{
- public class DisposeQueue
- {
- private static readonly DisposeQueue _disposableQueue = new DisposeQueue();
- private List<IDisposable> _disposables = new List<IDisposable>();
- private Object _listLock = new object();
- private EventThreadCallback _eventThreadCallback;
- private EventThreadCallback.CallbackDelegate _disposeQueueProcessDisposablesDelegate;
-
- private DisposeQueue()
- {
- }
-
- ~DisposeQueue()
- {
- }
-
- public static DisposeQueue Instance
- {
- get { return _disposableQueue; }
- }
-
- public void Initialize()
- {
- _disposeQueueProcessDisposablesDelegate = new EventThreadCallback.CallbackDelegate(ProcessDisposables);
- _eventThreadCallback = new EventThreadCallback(_disposeQueueProcessDisposablesDelegate);
- }
-
- public void Add(IDisposable disposable)
- {
- lock (_listLock)
- {
- _disposables.Add(disposable);
- }
-
- _eventThreadCallback.Trigger();
- }
-
- private void ProcessDisposables()
- {
- lock (_listLock)
- {
- foreach (IDisposable disposable in _disposables)
- {
- disposable.Dispose();
- }
- _disposables.Clear();
- }
- }
- }
-}
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali
-{
-
- public class EventThreadCallback : global::System.IDisposable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
- public delegate void CallbackDelegate();
-
- internal EventThreadCallback(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(EventThreadCallback obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~EventThreadCallback()
- {
- Dispose();
- }
-
- public virtual void Dispose()
- {
- lock (this)
- {
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_EventThreadCallback(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
- public EventThreadCallback(CallbackDelegate func) : this(NDalicManualPINVOKE.new_EventThreadCallback(func), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Trigger()
- {
- NDalicManualPINVOKE.EventThreadCallback_Trigger(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending)
- throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- }
-
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-namespace Dali {
-
-using System;
-using System.Runtime.InteropServices;
-
-public class FocusManager : BaseHandle {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- private CustomAlgorithmInterfaceWrapper _customAlgorithmInterfaceWrapper;
-
- internal FocusManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.FocusManager_SWIGUpcast(cPtr), cMemoryOwn) {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FocusManager obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~FocusManager() {
- DisposeQueue.Instance.Add(this);
- }
-
- public override void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_FocusManager(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-
-
-/**
- * @brief Event arguments that passed via FocusChanged signal
- *
- */
-public class FocusChangedEventArgs : EventArgs
-{
- private Actor _actorCurrent;
- private Actor _actorNext;
-
- /**
- * @brief Actor - is the original focused Actor
- *
- */
- public Actor ActorCurrent
- {
- get
- {
- return _actorCurrent;
- }
- set
- {
- _actorCurrent = value;
- }
- }
-
- /**
- * @brief Actor - is the current focused Actor
- *
- */
- public Actor ActorNext
- {
- get
- {
- return _actorNext;
- }
- set
- {
- _actorNext = value;
- }
- }
-}
-
-/**
- * @brief Event arguments that passed via FocusGroupChanged signal
- *
- */
-public class FocusGroupChangedEventArgs : EventArgs
-{
- private Actor _currentFocusedActor;
- private bool _forwardDirection;
-
- /**
- * @brief Actor - is the current focused Actor
- *
- */
- public Actor CurrentFocusedActor
- {
- get
- {
- return _currentFocusedActor;
- }
- set
- {
- _currentFocusedActor = value;
- }
- }
-
- /**
- * @brief ForwardDirection - is the direction (forward or backward) in which to move the focus next
- *
- */
- public bool ForwardDirection
- {
- get
- {
- return _forwardDirection;
- }
- set
- {
- _forwardDirection = value;
- }
- }
-}
-
-/**
- * @brief Event arguments that passed via FocusedActorEnterKey signal
- *
- */
-public class FocusedActorEnterKeyEventArgs : EventArgs
-{
- private Actor _actor;
-
- /**
- * @brief Actor - is the current focused Actor which has the enter key pressed on it.
- *
- */
- public Actor Actor
- {
- get
- {
- return _actor;
- }
- set
- {
- _actor = value;
- }
- }
-}
-
-/**
- * @brief Event arguments that passed via PreFocusChange signal
- *
- */
-public class PreFocusChangeEventArgs : EventArgs
-{
- private Actor _current;
- private Actor _proposed;
- private View.KeyboardFocus.Direction _direction;
-
- /**
- * @brief Actor - is the current focused Actor.
- *
- */
- public Actor Current
- {
- get
- {
- return _current;
- }
- set
- {
- _current = value;
- }
- }
-
- /**
- * @brief Actor - is the proposed focused Actor.
- *
- */
- public Actor Proposed
- {
- get
- {
- return _proposed;
- }
- set
- {
- _proposed = value;
- }
- }
-
- /**
- * @brief Direction - is the direction of Focus change.
- *
- */
- public View.KeyboardFocus.Direction Direction
- {
- get
- {
- return _direction;
- }
- set
- {
- _direction = value;
- }
- }
-}
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void FocusChangedEventHandler(object source, FocusChangedEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void FocusGroupChangedEventHandler(object source, FocusGroupChangedEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate void FocusedActorEnterKeyEventHandler(object source, FocusedActorEnterKeyEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate Actor PreFocusChangeEventHandler(object source, PreFocusChangeEventArgs e);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate IntPtr PreFocusChangeEventCallbackDelegate(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction);
- private PreFocusChangeEventHandler _FocusManagerPreFocusChangeEventHandler;
- private PreFocusChangeEventCallbackDelegate _FocusManagerPreFocusChangeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusChangedEventCallbackDelegate(IntPtr actorCurrent, IntPtr actorNext);
- private FocusChangedEventHandler _FocusManagerFocusChangedEventHandler;
- private FocusChangedEventCallbackDelegate _FocusManagerFocusChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusGroupChangedEventCallbackDelegate(IntPtr currentFocusedActor, bool forwardDirection);
- private FocusGroupChangedEventHandler _FocusManagerFocusGroupChangedEventHandler;
- private FocusGroupChangedEventCallbackDelegate _FocusManagerFocusGroupChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void FocusedActorEnterKeyEventCallbackDelegate(IntPtr actor);
- private FocusedActorEnterKeyEventHandler _FocusManagerFocusedActorEnterKeyEventHandler;
- private FocusedActorEnterKeyEventCallbackDelegate _FocusManagerFocusedActorEnterKeyEventCallbackDelegate;
-
- public event PreFocusChangeEventHandler PreFocusChange
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_FocusManagerPreFocusChangeEventHandler == null)
- {
- _FocusManagerPreFocusChangeEventHandler += value;
-
- _FocusManagerPreFocusChangeEventCallbackDelegate = new PreFocusChangeEventCallbackDelegate(OnPreFocusChange);
- this.PreFocusChangeSignal().Connect(_FocusManagerPreFocusChangeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_FocusManagerPreFocusChangeEventHandler != null)
- {
- this.PreFocusChangeSignal().Disconnect(_FocusManagerPreFocusChangeEventCallbackDelegate);
- }
-
- _FocusManagerPreFocusChangeEventHandler -= value;
- }
- }
- }
-
- // Callback for FocusManager PreFocusChangeSignal
- private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction)
- {
- Actor actor = null;
- PreFocusChangeEventArgs e = new PreFocusChangeEventArgs();
-
- // Populate all members of "e" (PreFocusChangeEventArgs) with real data
- e.Current = Actor.GetActorFromPtr(current);
- e.Proposed = Actor.GetActorFromPtr(proposed);
- e.Direction = direction;
-
- if (_FocusManagerPreFocusChangeEventHandler != null)
- {
- //here we send all data to user event handlers
- actor = _FocusManagerPreFocusChangeEventHandler(this, e);
- }
-
- return actor.GetPtrfromActor();
- }
-
- /**
- * @brief Event for FocusChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusChangedEventHandler) provided by the user.
- * FocusChanged signal is emitted after the current focused actor has been changed.
- */
- public event FocusChangedEventHandler FocusChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_FocusManagerFocusChangedEventHandler == null)
- {
- _FocusManagerFocusChangedEventHandler += value;
-
- _FocusManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged);
- this.FocusChangedSignal().Connect(_FocusManagerFocusChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_FocusManagerFocusChangedEventHandler != null)
- {
- this.FocusChangedSignal().Disconnect(_FocusManagerFocusChangedEventCallbackDelegate);
- }
-
- _FocusManagerFocusChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for FocusManager FocusChangedSignal
- private void OnFocusChanged(IntPtr actorCurrent, IntPtr actorNext)
- {
- FocusChangedEventArgs e = new FocusChangedEventArgs();
-
- // Populate all members of "e" (FocusChangedEventArgs) with real data
- e.ActorCurrent = Actor.GetActorFromPtr(actorCurrent);
- e.ActorNext = Actor.GetActorFromPtr(actorNext);
-
- if (_FocusManagerFocusChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _FocusManagerFocusChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for FocusGroupChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusGroupChangedEventHandler) provided by the user.
- * FocusGroupChanged signal is emitted when the focus group has been changed.
- */
- public event FocusGroupChangedEventHandler FocusGroupChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_FocusManagerFocusGroupChangedEventHandler == null)
- {
- _FocusManagerFocusGroupChangedEventHandler += value;
-
- _FocusManagerFocusGroupChangedEventCallbackDelegate = new FocusGroupChangedEventCallbackDelegate(OnFocusGroupChanged);
- this.FocusGroupChangedSignal().Connect(_FocusManagerFocusGroupChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_FocusManagerFocusGroupChangedEventHandler != null)
- {
- this.FocusGroupChangedSignal().Disconnect(_FocusManagerFocusGroupChangedEventCallbackDelegate);
- }
-
- _FocusManagerFocusGroupChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for FocusManager FocusGroupChangedSignal
- private void OnFocusGroupChanged(IntPtr currentFocusedActor, bool forwardDirection)
- {
- FocusGroupChangedEventArgs e = new FocusGroupChangedEventArgs();
-
- // Populate all members of "e" (FocusGroupChangedEventArgs) with real data
- e.CurrentFocusedActor = Actor.GetActorFromPtr(currentFocusedActor);
- e.ForwardDirection = forwardDirection;
-
- if (_FocusManagerFocusGroupChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _FocusManagerFocusGroupChangedEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for FocusedActorEnterKeyPressed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of FocusedActorEnterKeyEventHandler) provided by the user.
- * FocusedActorEnterKeyPressed signal is emitted when the current focused actor has the enter key pressed on it.
- */
- public event FocusedActorEnterKeyEventHandler FocusedActorEnterKeyPressed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_FocusManagerFocusedActorEnterKeyEventHandler == null)
- {
- _FocusManagerFocusedActorEnterKeyEventHandler += value;
-
- _FocusManagerFocusedActorEnterKeyEventCallbackDelegate = new FocusedActorEnterKeyEventCallbackDelegate(OnFocusedActorEnterKey);
- this.FocusedActorEnterKeySignal().Connect(_FocusManagerFocusedActorEnterKeyEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_FocusManagerFocusedActorEnterKeyEventHandler != null)
- {
- this.FocusedActorEnterKeySignal().Disconnect(_FocusManagerFocusedActorEnterKeyEventCallbackDelegate);
- }
-
- _FocusManagerFocusedActorEnterKeyEventHandler -= value;
- }
- }
- }
-
- // Callback for FocusManager FocusedActorEnterKeySignal
- private void OnFocusedActorEnterKey(IntPtr actor)
- {
- FocusedActorEnterKeyEventArgs e = new FocusedActorEnterKeyEventArgs();
-
- // Populate all members of "e" (FocusedActorEnterKeyEventArgs) with real data
- e.Actor = Actor.GetActorFromPtr(actor);
-
- if (_FocusManagerFocusedActorEnterKeyEventHandler != null)
- {
- //here we send all data to user event handlers
- _FocusManagerFocusedActorEnterKeyEventHandler(this, e);
- }
- }
-
- public FocusManager() : this(NDalicManualPINVOKE.new_FocusManager(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public static FocusManager Get() {
- FocusManager ret = new FocusManager(NDalicManualPINVOKE.FocusManager_Get(), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool SetCurrentFocusActor(Actor actor) {
- bool ret = NDalicManualPINVOKE.FocusManager_SetCurrentFocusActor(swigCPtr, Actor.getCPtr(actor));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Actor GetCurrentFocusActor() {
- Actor ret = new Actor(NDalicManualPINVOKE.FocusManager_GetCurrentFocusActor(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool MoveFocus(View.KeyboardFocus.Direction direction) {
- bool ret = NDalicManualPINVOKE.FocusManager_MoveFocus(swigCPtr, (int)direction);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void ClearFocus() {
- NDalicManualPINVOKE.FocusManager_ClearFocus(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void SetFocusGroupLoop(bool enabled) {
- NDalicManualPINVOKE.FocusManager_SetFocusGroupLoop(swigCPtr, enabled);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public bool GetFocusGroupLoop() {
- bool ret = NDalicManualPINVOKE.FocusManager_GetFocusGroupLoop(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetAsFocusGroup(Actor actor, bool isFocusGroup) {
- NDalicManualPINVOKE.FocusManager_SetAsFocusGroup(swigCPtr, Actor.getCPtr(actor), isFocusGroup);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public bool IsFocusGroup(Actor actor) {
- bool ret = NDalicManualPINVOKE.FocusManager_IsFocusGroup(swigCPtr, Actor.getCPtr(actor));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Actor GetFocusGroup(Actor actor) {
- Actor ret = new Actor(NDalicManualPINVOKE.FocusManager_GetFocusGroup(swigCPtr, Actor.getCPtr(actor)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetFocusIndicatorActor(Actor indicator) {
- NDalicManualPINVOKE.FocusManager_SetFocusIndicatorActor(swigCPtr, Actor.getCPtr(indicator));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Actor GetFocusIndicatorActor() {
- Actor ret = new Actor(NDalicManualPINVOKE.FocusManager_GetFocusIndicatorActor(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetCustomAlgorithm(ICustomFocusAlgorithm arg0) {
- _customAlgorithmInterfaceWrapper = new CustomAlgorithmInterfaceWrapper();
- _customAlgorithmInterfaceWrapper.SetFocusAlgorithm(arg0);
-
- NDalicPINVOKE.SetCustomAlgorithm(swigCPtr, CustomAlgorithmInterface.getCPtr(_customAlgorithmInterfaceWrapper));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public PreFocusChangeSignal PreFocusChangeSignal() {
- PreFocusChangeSignal ret = new PreFocusChangeSignal(NDalicManualPINVOKE.FocusManager_PreFocusChangeSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public FocusChangedSignal FocusChangedSignal() {
- FocusChangedSignal ret = new FocusChangedSignal(NDalicManualPINVOKE.FocusManager_FocusChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public FocusGroupChangedSignal FocusGroupChangedSignal() {
- FocusGroupChangedSignal ret = new FocusGroupChangedSignal(NDalicManualPINVOKE.FocusManager_FocusGroupChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public ActorSignal FocusedActorEnterKeySignal() {
- ActorSignal ret = new ActorSignal(NDalicManualPINVOKE.FocusManager_FocusedActorEnterKeySignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private static readonly FocusManager instance = FocusManager.Get();
-
- public static FocusManager Instance
- {
- get
- {
- return instance;
- }
- }
-
- public interface ICustomFocusAlgorithm
- {
- View GetNextFocusableActor(View current, View proposed, View.KeyboardFocus.Direction direction);
- }
-
- private class CustomAlgorithmInterfaceWrapper : CustomAlgorithmInterface
- {
- private FocusManager.ICustomFocusAlgorithm _customFocusAlgorithm;
-
- public CustomAlgorithmInterfaceWrapper()
- {
- }
-
- public void SetFocusAlgorithm(FocusManager.ICustomFocusAlgorithm customFocusAlgorithm)
- {
- _customFocusAlgorithm = customFocusAlgorithm;
- }
-
- public override Actor GetNextFocusableActor(Actor current, Actor proposed, View.KeyboardFocus.Direction direction)
- {
- View currentView = View.DownCast<View>(current);
- View proposedView = View.DownCast<View>(proposed);
- return _customFocusAlgorithm.GetNextFocusableActor(currentView, proposedView, direction);
- }
- }
-}
-
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-
-namespace Dali {
-
-public delegate IntPtr SwigDelegatePreFocusChangeSignal(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction);
-
-public class PreFocusChangeSignal : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal PreFocusChangeSignal(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PreFocusChangeSignal obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~PreFocusChangeSignal() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_PreFocusChangeSignal(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
- public bool Empty() {
- bool ret = NDalicManualPINVOKE.PreFocusChangeSignal_Empty(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public uint GetConnectionCount() {
- uint ret = NDalicManualPINVOKE.PreFocusChangeSignal_GetConnectionCount(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void Connect(FocusManager.PreFocusChangeEventCallbackDelegate func) {
- NDalicManualPINVOKE.PreFocusChangeSignal_Connect(swigCPtr, func);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void Disconnect(System.Delegate func) {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
- {
- NDalicManualPINVOKE.PreFocusChangeSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- public Actor Emit(Actor arg1, Actor arg2, View.KeyboardFocus.Direction arg3) {
- Actor ret = new Actor(NDalicManualPINVOKE.PreFocusChangeSignal_Emit(swigCPtr, Actor.getCPtr(arg1), Actor.getCPtr(arg2), (int)arg3), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public PreFocusChangeSignal() : this(NDalicManualPINVOKE.new_PreFocusChangeSignal(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-}
-
-}
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali
-{
- class NDalicManualPINVOKE
- {
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_new_KeyboardFocusManager")]
- public static extern global::System.IntPtr new_FocusManager();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_delete_KeyboardFocusManager")]
- public static extern void delete_FocusManager(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_Get")]
- public static extern global::System.IntPtr FocusManager_Get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_SetCurrentFocusActor")]
- public static extern bool FocusManager_SetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_GetCurrentFocusActor")]
- public static extern global::System.IntPtr FocusManager_GetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_MoveFocus")]
- public static extern bool FocusManager_MoveFocus(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_ClearFocus")]
- public static extern void FocusManager_ClearFocus(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_SetFocusGroupLoop")]
- public static extern void FocusManager_SetFocusGroupLoop(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_GetFocusGroupLoop")]
- public static extern bool FocusManager_GetFocusGroupLoop(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_SetAsFocusGroup")]
- public static extern void FocusManager_SetAsFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_IsFocusGroup")]
- public static extern bool FocusManager_IsFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_GetFocusGroup")]
- public static extern global::System.IntPtr FocusManager_GetFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_SetFocusIndicatorActor")]
- public static extern void FocusManager_SetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_GetFocusIndicatorActor")]
- public static extern global::System.IntPtr FocusManager_GetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_PreFocusChangeSignal")]
- public static extern global::System.IntPtr FocusManager_PreFocusChangeSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_FocusChangedSignal")]
- public static extern global::System.IntPtr FocusManager_FocusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_FocusGroupChangedSignal")]
- public static extern global::System.IntPtr FocusManager_FocusGroupChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_FocusedActorEnterKeySignal")]
- public static extern global::System.IntPtr FocusManager_FocusedActorEnterKeySignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Empty")]
- public static extern bool PreFocusChangeSignal_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_GetConnectionCount")]
- public static extern uint PreFocusChangeSignal_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Connect")]
- public static extern void PreFocusChangeSignal_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, FocusManager.PreFocusChangeEventCallbackDelegate delegate1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Disconnect")]
- public static extern void PreFocusChangeSignal_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardPreFocusChangeSignal_Emit")]
- public static extern global::System.IntPtr PreFocusChangeSignal_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, int jarg4);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_new_KeyboardPreFocusChangeSignal")]
- public static extern global::System.IntPtr new_PreFocusChangeSignal();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_delete_KeyboardPreFocusChangeSignal")]
- public static extern void delete_PreFocusChangeSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_KeyboardFocusManager_SWIGUpcast")]
- public static extern global::System.IntPtr FocusManager_SWIGUpcast(global::System.IntPtr jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get")]
- public static extern int ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_new_ViewWrapperImpl")]
- public static extern global::System.IntPtr new_ViewWrapperImpl(int jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapperImpl_New")]
- public static extern global::System.IntPtr ViewWrapperImpl_New(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_delete_ViewWrapperImpl")]
- public static extern void delete_ViewWrapperImpl(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapperImpl_director_connect")]
- public static extern void ViewWrapperImpl_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, ViewWrapperImpl.DelegateViewWrapperImpl_0 delegate0, ViewWrapperImpl.DelegateViewWrapperImpl_1 delegate1, ViewWrapperImpl.DelegateViewWrapperImpl_2 delegate2, ViewWrapperImpl.DelegateViewWrapperImpl_3 delegate3, ViewWrapperImpl.DelegateViewWrapperImpl_4 delegate4, ViewWrapperImpl.DelegateViewWrapperImpl_5 delegate5, ViewWrapperImpl.DelegateViewWrapperImpl_6 delegate6, ViewWrapperImpl.DelegateViewWrapperImpl_7 delegate7, ViewWrapperImpl.DelegateViewWrapperImpl_8 delegate8, ViewWrapperImpl.DelegateViewWrapperImpl_9 delegate9, ViewWrapperImpl.DelegateViewWrapperImpl_10 delegate10, ViewWrapperImpl.DelegateViewWrapperImpl_11 delegate11, ViewWrapperImpl.DelegateViewWrapperImpl_12 delegate12, ViewWrapperImpl.DelegateViewWrapperImpl_13 delegate13, ViewWrapperImpl.DelegateViewWrapperImpl_14 delegate14, ViewWrapperImpl.DelegateViewWrapperImpl_15 delegate15, ViewWrapperImpl.DelegateViewWrapperImpl_16 delegate16, ViewWrapperImpl.DelegateViewWrapperImpl_17 delegate17, ViewWrapperImpl.DelegateViewWrapperImpl_18 delegate18, ViewWrapperImpl.DelegateViewWrapperImpl_19 delegate19, ViewWrapperImpl.DelegateViewWrapperImpl_20 delegate20, ViewWrapperImpl.DelegateViewWrapperImpl_21 delegate21, ViewWrapperImpl.DelegateViewWrapperImpl_22 delegate22, ViewWrapperImpl.DelegateViewWrapperImpl_23 delegate23, ViewWrapperImpl.DelegateViewWrapperImpl_24 delegate24, ViewWrapperImpl.DelegateViewWrapperImpl_25 delegate25, ViewWrapperImpl.DelegateViewWrapperImpl_26 delegate26, ViewWrapperImpl.DelegateViewWrapperImpl_27 delegate27, ViewWrapperImpl.DelegateViewWrapperImpl_28 delegate28, ViewWrapperImpl.DelegateViewWrapperImpl_29 delegate29, ViewWrapperImpl.DelegateViewWrapperImpl_30 delegate30, ViewWrapperImpl.DelegateViewWrapperImpl_31 delegate31, ViewWrapperImpl.DelegateViewWrapperImpl_32 delegate32, ViewWrapperImpl.DelegateViewWrapperImpl_33 delegate33, ViewWrapperImpl.DelegateViewWrapperImpl_34 delegate34, ViewWrapperImpl.DelegateViewWrapperImpl_35 delegate35, ViewWrapperImpl.DelegateViewWrapperImpl_36 delegate36, ViewWrapperImpl.DelegateViewWrapperImpl_37 delegate37, ViewWrapperImpl.DelegateViewWrapperImpl_38 delegate38, ViewWrapperImpl.DelegateViewWrapperImpl_39 delegate39, ViewWrapperImpl.DelegateViewWrapperImpl_40 delegate40);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_GetControlWrapperImpl__SWIG_0")]
- public static extern global::System.IntPtr GetControlWrapperImpl__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapper_New")]
- public static extern global::System.IntPtr ViewWrapper_New(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_new_ViewWrapper__SWIG_0")]
- public static extern global::System.IntPtr new_ViewWrapper__SWIG_0();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_delete_ViewWrapper")]
- public static extern void delete_ViewWrapper(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_new_ViewWrapper__SWIG_1")]
- public static extern global::System.IntPtr new_ViewWrapper__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapper_Assign")]
- public static extern global::System.IntPtr ViewWrapper_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapper_DownCast")]
- public static extern global::System.IntPtr ViewWrapper_DownCast(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapperImpl_SWIGUpcast")]
- public static extern global::System.IntPtr ViewWrapperImpl_SWIGUpcast(global::System.IntPtr jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapper_SWIGUpcast")]
- public static extern global::System.IntPtr ViewWrapper_SWIGUpcast(global::System.IntPtr jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_RelayoutRequest")]
- public static extern void ViewWrapperImpl_RelayoutRequest(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_GetHeightForWidthBase")]
- public static extern float ViewWrapperImpl_GetHeightForWidthBase(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_GetWidthForHeightBase")]
- public static extern float ViewWrapperImpl_GetWidthForHeightBase(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_CalculateChildSizeBase")]
- public static extern float ViewWrapperImpl_CalculateChildSizeBase(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0")]
- public static extern bool ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1")]
- public static extern bool ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_RegisterVisual__SWIG_0")]
- public static extern void ViewWrapperImpl_RegisterVisual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_RegisterVisual__SWIG_1")]
- public static extern void ViewWrapperImpl_RegisterVisual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_UnregisterVisual")]
- public static extern void ViewWrapperImpl_UnregisterVisual(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_GetVisual")]
- public static extern global::System.IntPtr ViewWrapperImpl_GetVisual(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_EnableVisual")]
- public static extern void ViewWrapperImpl_EnableVisual(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_IsVisualEnabled")]
- public static extern bool ViewWrapperImpl_IsVisualEnabled(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_CreateTransition")]
- public static extern global::System.IntPtr ViewWrapperImpl_CreateTransition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ViewWrapperImpl_EmitKeyInputFocusSignal")]
- public static extern void ViewWrapperImpl_EmitKeyInputFocusSignal(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_ViewWrapperImpl_ApplyThemeStyle")]
- public static extern void ViewWrapperImpl_ApplyThemeStyle(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_new_EventThreadCallback")]
- public static extern global::System.IntPtr new_EventThreadCallback(EventThreadCallback.CallbackDelegate delegate1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_delete_EventThreadCallback")]
- public static extern void delete_EventThreadCallback(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Dali_EventThreadCallback_Trigger")]
- public static extern void EventThreadCallback_Trigger(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_SIBLING_ORDER_get")]
- public static extern int Actor_Property_SIBLING_ORDER_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_OPACITY_get")]
- public static extern int Actor_Property_OPACITY_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_SCREEN_POSITION_get")]
- public static extern int Actor_Property_SCREEN_POSITION_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_POSITION_USES_ANCHOR_POINT_get")]
- public static extern int Actor_Property_POSITION_USES_ANCHOR_POINT_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_TOOLTIP_get")]
- public static extern int View_Property_TOOLTIP_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_STATE_get")]
- public static extern int View_Property_STATE_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_SUB_STATE_get")]
- public static extern int View_Property_SUB_STATE_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_LEFT_FOCUSABLE_ACTOR_ID_get")]
- public static extern int View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get")]
- public static extern int View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_UP_FOCUSABLE_ACTOR_ID_get")]
- public static extern int View_Property_UP_FOCUSABLE_ACTOR_ID_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_DOWN_FOCUSABLE_ACTOR_ID_get")]
- public static extern int View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_ItemView_Property_LAYOUT_get")]
- public static extern int ItemView_Property_LAYOUT_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_UNSELECTED_VISUAL_get")]
- public static extern int Button_Property_UNSELECTED_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_SELECTED_VISUAL_get")]
- public static extern int Button_Property_SELECTED_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_DISABLED_SELECTED_VISUAL_get")]
- public static extern int Button_Property_DISABLED_SELECTED_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_DISABLED_UNSELECTED_VISUAL_get")]
- public static extern int Button_Property_DISABLED_UNSELECTED_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_UNSELECTED_BACKGROUND_VISUAL_get")]
- public static extern int Button_Property_UNSELECTED_BACKGROUND_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_SELECTED_BACKGROUND_VISUAL_get")]
- public static extern int Button_Property_SELECTED_BACKGROUND_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get")]
- public static extern int Button_Property_DISABLED_UNSELECTED_BACKGROUND_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get")]
- public static extern int Button_Property_DISABLED_SELECTED_BACKGROUND_VISUAL_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_LABEL_RELATIVE_ALIGNMENT_get")]
- public static extern int Button_Property_LABEL_RELATIVE_ALIGNMENT_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_LABEL_PADDING_get")]
- public static extern int Button_Property_LABEL_PADDING_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Button_Property_VISUAL_PADDING_get")]
- public static extern int Button_Property_VISUAL_PADDING_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Visual_Property_TRANSFORM_get")]
- public static extern int Visual_Property_TRANSFORM_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Visual_Property_PREMULTIPLIED_ALPHA_get")]
- public static extern int Visual_Property_PREMULTIPLIED_ALPHA_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Visual_Property_MIX_COLOR_get")]
- public static extern int Visual_Property_MIX_COLOR_get();
-
- [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Image_Visual_BORDER_get")]
- public static extern int Image_Visual_BORDER_get();
- }
-}
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali {
-
-public class Position : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Position(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Position() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector3(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
-
- public static Position operator+(Position arg1, Position arg2) {
- return arg1.Add(arg2);
- }
-
- public static Position operator-(Position arg1, Position arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Position operator-(Position arg1) {
- return arg1.Subtract();
- }
-
- public static Position operator*(Position arg1, Position arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Position operator*(Position arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Position operator/(Position arg1, Position arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Position operator/(Position arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Position GetPositionFromPtr(global::System.IntPtr cPtr) {
- Position ret = new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-
-
- private Position Add(Position rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Add(swigCPtr, Position.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Subtract(Position rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Multiply(Position rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Multiply(float rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Divide(Position rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Position.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Divide(float rhs) {
- Position ret = new Position(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position Subtract() {
- Position ret = new Position(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private float ValueOfIndex(uint index) {
- float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool EqualTo(Position rhs) {
- bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool NotEqualTo(Position rhs) {
- bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public float X {
- set {
- NDalicPINVOKE.Vector3_X_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_X_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float Y {
- set {
- NDalicPINVOKE.Vector3_Y_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_Y_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float Z {
- set {
- NDalicPINVOKE.Vector3_Z_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_Z_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float ParentOriginTop
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginTop_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float ParentOriginBottom
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginBottom_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float ParentOriginLeft
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginLeft_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float ParentOriginRight
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginRight_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float ParentOriginMiddle
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginMiddle_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginTopLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginTopCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginTopRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginCenterLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginCenterRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginBottomLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginBottomCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ParentOriginBottomRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float AnchorPointTop
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointTop_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float AnchorPointBottom
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointBottom_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float AnchorPointLeft
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointLeft_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float AnchorPointRight
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointRight_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static float AnchorPointMiddle
- {
- get
- {
- float ret = NDalicPINVOKE.AnchorPointMiddle_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointTopLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointTopCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointTopRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointTopRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointCenterLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointCenterRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointCenterRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointBottomLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointBottomCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position AnchorPointBottomRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.AnchorPointBottomRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Position One {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ONE_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position XAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position YAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position ZAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position NegativeXAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position NegativeYAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- internal static Position NegativeZAxis {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static Position Zero {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public static implicit operator Vector3(Position Position)
- {
- return new Vector3(Position.X, Position.Y, Position.Z);
- }
-
- public static implicit operator Position(Vector3 vec)
- {
- return new Position(vec.X, vec.Y, vec.Z);
- }
-
-}
-
- public struct ParentOrigin
- {
- public static readonly float Top = Position.ParentOriginTop;
- public static readonly float Bottom = Position.ParentOriginBottom;
- public static readonly float Left = Position.ParentOriginLeft;
- public static readonly float Right = Position.ParentOriginRight;
- public static readonly float Middle = Position.ParentOriginMiddle;
- public static readonly Position TopLeft = Position.ParentOriginTopLeft;
- public static readonly Position TopCenter = Position.ParentOriginTopCenter;
- public static readonly Position TopRight = Position.ParentOriginTopRight;
- public static readonly Position CenterLeft = Position.ParentOriginCenterLeft;
- public static readonly Position Center = Position.ParentOriginCenter;
- public static readonly Position CenterRight = Position.ParentOriginCenterRight;
- public static readonly Position BottomLeft = Position.ParentOriginBottomLeft;
- public static readonly Position BottomCenter = Position.ParentOriginBottomCenter;
- public static readonly Position BottomRight = Position.ParentOriginBottomRight;
- }
- public struct AnchorPoint
- {
- public static readonly float Top = Position.AnchorPointTop;
- public static readonly float Bottom = Position.AnchorPointBottom;
- public static readonly float Left = Position.AnchorPointLeft;
- public static readonly float Right = Position.AnchorPointRight;
- public static readonly float Middle = Position.AnchorPointMiddle;
- public static readonly Position TopLeft = Position.AnchorPointTopLeft;
- public static readonly Position TopCenter = Position.AnchorPointTopCenter;
- public static readonly Position TopRight = Position.AnchorPointTopRight;
- public static readonly Position CenterLeft = Position.AnchorPointCenterLeft;
- public static readonly Position Center = Position.AnchorPointCenter;
- public static readonly Position CenterRight = Position.AnchorPointCenterRight;
- public static readonly Position BottomLeft = Position.AnchorPointBottomLeft;
- public static readonly Position BottomCenter = Position.AnchorPointBottomCenter;
- public static readonly Position BottomRight = Position.AnchorPointBottomRight;
- }
- public struct PositionAxis
- {
- public static readonly Position X = Position.XAxis;
- public static readonly Position Y = Position.YAxis;
- public static readonly Position Z = Position.ZAxis;
- public static readonly Position NegativeX = Position.NegativeXAxis;
- public static readonly Position NegativeY = Position.NegativeYAxis;
- public static readonly Position NegativeZ = Position.NegativeZAxis;
- }
-
-}
-
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali {
-
-public class Position2D : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Position2D(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Position2D obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Position2D() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector2(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
-
- public static Position2D operator+(Position2D arg1, Position2D arg2) {
- return arg1.Add(arg2);
- }
-
- public static Position2D operator-(Position2D arg1, Position2D arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Position2D operator-(Position2D arg1) {
- return arg1.Subtract();
- }
-
- public static Position2D operator*(Position2D arg1, Position2D arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Position2D operator*(Position2D arg1, int arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Position2D operator/(Position2D arg1, Position2D arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Position2D operator/(Position2D arg1, int arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Position2D GetPosition2DFromPtr(global::System.IntPtr cPtr) {
- Position2D ret = new Position2D(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public Position2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Position2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Position2D(Position position) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Position.getCPtr(position)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private Position2D Add(Position2D rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Subtract(Position2D rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Position2D Multiply(Position2D rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Multiply(int rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Multiply__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Position2D Divide(Position2D rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Position2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Divide(int rhs) {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Divide__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Position2D Subtract() {
- Position2D ret = new Position2D(NDalicPINVOKE.Vector2_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool EqualTo(Position2D rhs) {
- bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Position2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool NotEqualTo(Position2D rhs) {
- bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private int ValueOfIndex(uint index) {
- int ret = (int)NDalicPINVOKE.Vector2_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public int X {
- set {
- NDalicPINVOKE.Vector2_X_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector2_X_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
- public int Y {
- set {
- NDalicPINVOKE.Vector2_Y_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector2_Y_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
- public static implicit operator Vector2(Position2D position2d)
- {
- return new Vector2((float)position2d.X, (float)position2d.Y);
- }
-
- public static implicit operator Position2D(Vector2 vec)
- {
- return new Position2D((int)vec.X, (int)vec.Y);
- }
-
-}
-
-}
-
-
+++ /dev/null
-using System;
-using System.Runtime.InteropServices;
-using System.Collections.Generic;
-
-namespace Dali
-{
- /// <summary>
- /// Helper class for calculating what property indexes should be assigned to C# View (view) classes.
- /// </summary>
- public class PropertyRangeManager
- {
- private Dictionary<String, PropertyRange > _propertyRange;
-
- /// <summary>
- /// Initializes a new instance of the <see cref="Dali.PropertyRangeManager"/> class.
- /// </summary>
- public PropertyRangeManager ()
- {
- _propertyRange = new Dictionary<String, PropertyRange > ();
- }
-
- /// <summary>
- /// Only called if a View has scriptable properties
- /// </summary>
- private PropertyRange RegisterView( string viewName, System.Type viewType )
- {
- PropertyRange range;
-
- if ( _propertyRange.TryGetValue (viewName, out range) )
- {
- // already registered
- return range;
- }
-
- // Find out the event and animatable start indexes for the type
- range = new PropertyRange();
-
- GetPropertyStartRange( viewType, ref range);
-
- // add it to our dictionary
- _propertyRange.Add( viewName, range );
-
- return range;
-
- }
-
- /// <summary>
- /// Gets the index of the property.
- /// Each property has to have unique index for this view type
- /// </summary>
- /// <returns>The property index.</returns>
- /// <param name="viewName">View name</param>
- /// <param name="viewType">View type</param>
- /// <param name="type">Type.</param>
- public int GetPropertyIndex( string viewName, System.Type viewType, ScriptableProperty.ScriptableType type )
- {
-
- PropertyRange range;
-
- if (! _propertyRange.TryGetValue (viewName, out range) )
- {
- // view not found, register it now
- range = RegisterView( viewName, viewType);
- }
-
- int index = range.GetNextFreePropertyIndex ( type );
-
- // update the dictionary
- _propertyRange[viewName]=range;
-
- return index;
-
- }
-
- ///<summary>
- /// We calculate the start property indices, based on the type and it's class heirachy, e.g. DateView (70,000)- > Spin (60,000) -> View (50,000)
- /// </summary>
- private void GetPropertyStartRange( System.Type viewType, ref PropertyRange range )
- {
- const int maxCountPerDerivation = 1000; // For child and animtable properties we use a gap of 1000 between each
- // views property range in the heirachy
-
- // custom views start there property index, at view_PROPERTY_END_INDEX
- // we add 1000, just incase View class (our C# custom view base) starts using scriptable properties
- int startEventPropertyIndex = (int)View.PropertyRange.CONTROL_PROPERTY_END_INDEX+maxCountPerDerivation;
-
- // for animatable properties current range starts at ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
- // we add 1000, just incase View class starts using animatable properties
- int startAnimatablePropertyIndex = (int)Dali.PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX +maxCountPerDerivation;
-
- while ( viewType.BaseType.Name != "CustomView" ) // custom view is our C# view base class. we don't go any deeper.
- {
- // for every base class increase property start index
- startEventPropertyIndex += (int)Dali.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000
- startAnimatablePropertyIndex += maxCountPerDerivation;
-
- //Console.WriteLine ("getStartPropertyIndex = " + viewType.Name +"current index " + startEventPropertyIndex);
- viewType = viewType.BaseType;
- }
-
- range.startEventIndex = startEventPropertyIndex;
- range.lastUsedEventIndex = startEventPropertyIndex;
-
- range.startAnimationIndex = startAnimatablePropertyIndex;
- range.lastUsedAnimationIndex = startAnimatablePropertyIndex;
-
- }
-
-
- public struct PropertyRange
- {
-
- public int GetNextFreePropertyIndex( ScriptableProperty.ScriptableType type)
- {
- if ( type == ScriptableProperty.ScriptableType.Default )
- {
- lastUsedEventIndex++;
- return lastUsedEventIndex;
- }
- else
- {
- lastUsedAnimationIndex++;
- return lastUsedAnimationIndex ;
- }
- }
-
-
- public int startEventIndex; /// start of the property range
- public int lastUsedEventIndex; /// last used of the property index
-
- public int startAnimationIndex; /// start of the property range
- public int lastUsedAnimationIndex; /// last used of the property index
- };
-
-
-
-}
-}
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali {
-
-public class Size : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Size(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Size obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Size() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector3(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
-
- public static Size operator+(Size arg1, Size arg2) {
- return arg1.Add(arg2);
- }
-
- public static Size operator-(Size arg1, Size arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Size operator-(Size arg1) {
- return arg1.Subtract();
- }
-
- public static Size operator*(Size arg1, Size arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Size operator*(Size arg1, float arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Size operator/(Size arg1, Size arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Size operator/(Size arg1, float arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Size GetSizeFromPtr(global::System.IntPtr cPtr) {
- Size ret = new Size(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public Size() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Size(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Size(Size2D size2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Size2D.getCPtr(size2d)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-
- public static Size Zero {
- get {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZERO_get();
- Size ret = (cPtr == global::System.IntPtr.Zero) ? null : new Size(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- private Size Add(Size rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Add(swigCPtr, Size.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Subtract(Size rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Subtract__SWIG_0(swigCPtr, Size.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Multiply(Size rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Multiply__SWIG_0(swigCPtr, Size.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Multiply(float rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Multiply__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Divide(Size rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Divide__SWIG_0(swigCPtr, Size.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Divide(float rhs) {
- Size ret = new Size(NDalicPINVOKE.Vector3_Divide__SWIG_1(swigCPtr, rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size Subtract() {
- Size ret = new Size(NDalicPINVOKE.Vector3_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private float ValueOfIndex(uint index) {
- float ret = NDalicPINVOKE.Vector3_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool EqualTo(Size rhs) {
- bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Size.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool NotEqualTo(Size rhs) {
- bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Size.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public float Width {
- set {
- NDalicPINVOKE.Vector3_Width_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_Width_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float Height {
- set {
- NDalicPINVOKE.Vector3_Height_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_Height_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- public float Depth {
- set {
- NDalicPINVOKE.Vector3_Depth_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector3_Depth_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
-
- public static implicit operator Vector3(Size size)
- {
- return new Vector3(size.Width, size.Height, size.Depth);
- }
-
- public static implicit operator Size(Vector3 vec)
- {
- return new Size(vec.Width, vec.Height, vec.Depth);
- }
-
-}
-
-}
-
+++ /dev/null
-/*
- * 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.
- *
- */
-
-namespace Dali {
-
-public class Size2D : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Size2D(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Size2D obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Size2D() {
- DisposeQueue.Instance.Add(this);
- }
-
- public virtual void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector2(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
-
- public static Size2D operator+(Size2D arg1, Size2D arg2) {
- return arg1.Add(arg2);
- }
-
- public static Size2D operator-(Size2D arg1, Size2D arg2) {
- return arg1.Subtract(arg2);
- }
-
- public static Size2D operator-(Size2D arg1) {
- return arg1.Subtract();
- }
-
- public static Size2D operator*(Size2D arg1, Size2D arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Size2D operator*(Size2D arg1, int arg2) {
- return arg1.Multiply(arg2);
- }
-
- public static Size2D operator/(Size2D arg1, Size2D arg2) {
- return arg1.Divide(arg2);
- }
-
- public static Size2D operator/(Size2D arg1, int arg2) {
- return arg1.Divide(arg2);
- }
-
- public float this[uint index]
- {
- get
- {
- return ValueOfIndex(index);
- }
- }
-
- public static Size2D GetSize2DFromPtr(global::System.IntPtr cPtr) {
- Size2D ret = new Size2D(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public Size2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Size2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Size2D(Size size) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Size.getCPtr(size)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private Size2D Add(Size2D rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Add(swigCPtr, Size2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size2D Subtract(Size2D rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Subtract__SWIG_0(swigCPtr, Size2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Size2D Multiply(Size2D rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Multiply__SWIG_0(swigCPtr, Size2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size2D Multiply(int rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Multiply__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- private Size2D Divide(Size2D rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Divide__SWIG_0(swigCPtr, Size2D.getCPtr(rhs)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size2D Divide(int rhs) {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Divide__SWIG_1(swigCPtr, (float)rhs), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private Size2D Subtract() {
- Size2D ret = new Size2D(NDalicPINVOKE.Vector2_Subtract__SWIG_1(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool EqualTo(Size2D rhs) {
- bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Size2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool NotEqualTo(Size2D rhs) {
- bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Size2D.getCPtr(rhs));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private int ValueOfIndex(uint index) {
- int ret = (int)NDalicPINVOKE.Vector2_ValueOfIndex__SWIG_0(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
-
- public int Width {
- set {
- NDalicPINVOKE.Vector2_Width_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector2_Width_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
- public int Height {
- set {
- NDalicPINVOKE.Vector2_Height_set(swigCPtr, (float)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get {
- float ret = NDalicPINVOKE.Vector2_Height_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return (int)ret;
- }
- }
-
- public static implicit operator Vector2(Size2D size)
- {
- return new Vector2((float)size.Width, (float)size.Height);
- }
-
- public static implicit operator Size2D(Vector2 vec)
- {
- return new Size2D((int)vec.X, (int)vec.Y);
- }
-
-}
-
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-using System;
-using Dali;
-
-//------------------------------------------------------------------------------
-// This file can only run on Tizen target. You should compile it with hello-test.cs, and
-// add tizen c# application related library as reference.
-//------------------------------------------------------------------------------
-namespace Tizen.Applications
-{
- /// <summary>
- /// Represents an application that have UI screen. The DaliApplication class has a default stage.
- /// </summary>
- public class DaliApplication : CoreUIApplication
- {
- /// <summary>
- /// The instance of the Dali Application.
- /// </summary>
- /// <remarks>
- /// This application is created before OnCreate() or created event. And the DaliApplication will be terminated when this application is closed.
- /// </remarks>
- protected Dali.Application application;
-
- /// <summary>
- /// The instance of the Dali Application extension.
- /// </summary>
- protected Dali.ApplicationExtensions applicationExt;
-
- /// <summary>
- /// Store the stylesheet value.
- /// </summary>
- protected string m_stylesheet;
-
- /// <summary>
- /// Store the window mode value.
- /// </summary>
- protected Dali.Application.WINDOW_MODE m_windowMode;
-
- /// <summary>
- /// Store the app mode value.
- /// </summary>
- protected APP_MODE appMode;
-
- /// <summary>
- /// The instance of the Dali Stage.
- /// </summary>
- public Stage stage { get; private set; }
-
- /// <summary>
- /// The default constructor.
- /// </summary>
- public DaliApplication():base()
- {
- appMode = APP_MODE.DEFAULT;
- }
-
- /// <summary>
- /// The constructor with stylesheet.
- /// </summary>
- public DaliApplication(string stylesheet):base()
- {
- //handle the stylesheet
- appMode = APP_MODE.STYLESHEETONLY;
- m_stylesheet = stylesheet;
- }
-
- /// <summary>
- /// The constructor with stylesheet and window mode.
- /// </summary>
- public DaliApplication(string stylesheet, Dali.Application.WINDOW_MODE windowMode)
- : base()
- {
- //handle the stylesheet and windowMode
- appMode = APP_MODE.STYLESHEETWITHWINDOWMODE;
- m_stylesheet = stylesheet;
- m_windowMode = windowMode;
- }
-
- /// <summary>
- /// Overrides this method if want to handle behavior before calling OnCreate().
- /// stage property is initialized in this overrided method.
- /// </summary>
- protected override void OnPreCreate()
- {
- switch(appMode)
- {
- case APP_MODE.DEFAULT:
- application = Dali.Application.NewApplication();
- break;
- case APP_MODE.STYLESHEETONLY:
- application = Dali.Application.NewApplication(m_stylesheet);
- break;
- case APP_MODE.STYLESHEETWITHWINDOWMODE:
- application = Dali.Application.NewApplication(m_stylesheet, m_windowMode);
- break;
- default:
- break;
- }
-
- applicationExt = new Dali.ApplicationExtensions(application);
- applicationExt.Init();
-
- stage = Stage.GetCurrent();
- stage.SetBackgroundColor( NDalic.WHITE );
- }
-
- /// <summary>
- /// Overrides this method if want to handle behavior.
- /// </summary>
- protected override void OnTerminate()
- {
- base.OnTerminate();
- applicationExt.Terminate();
- }
-
- /// <summary>
- /// Overrides this method if want to handle behavior.
- /// </summary>
- protected override void OnPause()
- {
- base.OnPause();
- applicationExt.Pause();
- }
-
- /// <summary>
- /// Overrides this method if want to handle behavior.
- /// </summary>
- protected override void OnResume()
- {
- base.OnResume();
- applicationExt.Resume();
- }
-
- /// <summary>
- /// Overrides this method if want to handle behavior.
- /// </summary>
- protected override void OnLocaleChanged(LocaleChangedEventArgs e)
- {
- base.OnLocaleChanged(e);
- applicationExt.LanguageChange();
- }
-
- /// <summary>
- /// The mode of creating Dali application.
- /// </summary>
- protected enum APP_MODE
- {
- DEFAULT = 0,
- STYLESHEETONLY = 1,
- STYLESHEETWITHWINDOWMODE = 2
- }
- }
-}
+++ /dev/null
-/** 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.
-*
-*/
-
-namespace Dali {
-
- using System;
- using System.Runtime.InteropServices;
-
-
-public class View : CustomActor {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn) {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
-
- // Register this instance of view in the view registry.
- ViewRegistry.RegisterView(this);
-
- // By default, we do not want the position to use the anchor point
- this.PositionUsesAnchorPoint = false;
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~View() {
- DisposeQueue.Instance.Add(this);
-
- // Unregister this instance of view from the view registry.
- ViewRegistry.UnregisterView(this);
- }
-
- public override void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_View(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-
- /**
- * @brief Event arguments that passed via KeyInputFocusGained signal
- *
- */
- public class KeyInputFocusGainedEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that gets Key Input Focus
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via KeyInputFocusLost signal
- *
- */
- public class KeyInputFocusLostEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that loses Key Input Focus
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Key signal
- *
- */
- public class KeyEventArgs : EventArgs
- {
- private View _view;
- private Key _key;
-
- /**
- * @brief View - is the view that recieves the key.
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Key - is the key sent to the View.
- *
- */
- public Key Key
- {
- get
- {
- return _key;
- }
- set
- {
- _key = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OnRelayout signal
- *
- */
- public class OnRelayoutEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being resized upon relayout
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
-
- /**
- * @brief Event arguments that passed via Touch signal
- *
- */
- public class TouchEventArgs : EventArgs
- {
- private View _view;
- private Touch _touch;
-
- /**
- * @brief View - is the view that is being touched
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Touch - contains the information of touch points
- *
- */
- public Touch Touch
- {
- get
- {
- return _touch;
- }
- set
- {
- _touch = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Hover signal
- *
- */
- public class HoverEventArgs : EventArgs
- {
- private View _view;
- private Hover _hover;
-
- /**
- * @brief View - is the view that is being hovered
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Hover - contains touch points that represent the points
- * that are currently being hovered or the points where a hover has stopped
- *
- */
- public Hover Hover
- {
- get
- {
- return _hover;
- }
- set
- {
- _hover = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via Wheel signal
- *
- */
- public class WheelEventArgs : EventArgs
- {
- private View _view;
- private Wheel _wheel;
-
- /**
- * @brief View - is the view that is being wheeled
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
-
- /**
- * @brief Wheel - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
- *
- */
- public Wheel Wheel
- {
- get
- {
- return _wheel;
- }
- set
- {
- _wheel = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OnStage signal
- *
- */
- public class OnStageEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being connected to the stage
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- /**
- * @brief Event arguments that passed via OffStage signal
- *
- */
- public class OffStageEventArgs : EventArgs
- {
- private View _view;
-
- /**
- * @brief View - is the view that is being disconnected from the stage
- *
- */
- public View View
- {
- get
- {
- return _view;
- }
- set
- {
- _view = value;
- }
- }
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void KeyInputFocusGainedCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,KeyInputFocusGainedEventArgs> _KeyInputFocusGainedEventHandler;
- private KeyInputFocusGainedCallbackDelegate _KeyInputFocusGainedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void KeyInputFocusLostCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,KeyInputFocusLostEventArgs> _KeyInputFocusLostEventHandler;
- private KeyInputFocusLostCallbackDelegate _KeyInputFocusLostCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool KeyCallbackDelegate(IntPtr control, IntPtr key);
- private DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> _KeyHandler;
- private KeyCallbackDelegate _KeyCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OnRelayoutEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OnRelayoutEventArgs> _viewOnRelayoutEventHandler;
- private OnRelayoutEventCallbackDelegate _viewOnRelayoutEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool TouchCallbackDelegate(IntPtr view, IntPtr touch);
- private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _viewTouchHandler;
- private TouchCallbackDelegate _viewTouchCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool HoverCallbackDelegate(IntPtr view, IntPtr hover);
- private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _viewHoverHandler;
- private HoverCallbackDelegate _viewHoverCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate bool WheelCallbackDelegate(IntPtr view, IntPtr wheel);
- private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _viewWheelHandler;
- private WheelCallbackDelegate _viewWheelCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OnStageEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OnStageEventArgs> _viewOnStageEventHandler;
- private OnStageEventCallbackDelegate _viewOnStageEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void OffStageEventCallbackDelegate(IntPtr control);
- private DaliEventHandler<object,OffStageEventArgs> _viewOffStageEventHandler;
- private OffStageEventCallbackDelegate _viewOffStageEventCallbackDelegate;
-
- /**
- * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyInputFocusGainedEventHandler-DaliEventHandler<object,KeyInputFocusGainedEventArgs>)
- * provided by the user. KeyInputFocusGained signal is emitted when the control gets Key Input Focus.
- */
- public event DaliEventHandler<object,KeyInputFocusGainedEventArgs> KeyInputFocusGained
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyInputFocusGainedEventHandler == null)
- {
- _KeyInputFocusGainedEventHandler += value;
- Console.WriteLine("View Key EVENT Locked....");
- _KeyInputFocusGainedCallbackDelegate = new KeyInputFocusGainedCallbackDelegate(OnKeyInputFocusGained);
- this.KeyInputFocusGainedSignal().Connect(_KeyInputFocusGainedCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyInputFocusGainedEventHandler != null)
- {
- this.KeyInputFocusGainedSignal().Disconnect(_KeyInputFocusGainedCallbackDelegate);
- }
-
- _KeyInputFocusGainedEventHandler -= value;
- }
- }
- }
-
- private void OnKeyInputFocusGained(IntPtr view)
- {
- KeyInputFocusGainedEventArgs e = new KeyInputFocusGainedEventArgs();
- Console.WriteLine("View Key ....");
- // Populate all members of "e" (KeyInputFocusGainedEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
-
- if (_KeyInputFocusGainedEventHandler != null)
- {
- //here we send all data to user event handlers
- _KeyInputFocusGainedEventHandler(this, e);
- }
-
- }
-
- /**
- * @brief Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyInputFocusLostEventHandler-DaliEventHandler<object,KeyInputFocusLostEventArgs>)
- * provided by the user. KeyInputFocusLost signal is emitted when the control loses Key Input Focus.
- */
- public event DaliEventHandler<object,KeyInputFocusLostEventArgs> KeyInputFocusLost
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyInputFocusLostEventHandler == null)
- {
- _KeyInputFocusLostEventHandler += value;
-
- _KeyInputFocusLostCallbackDelegate = new KeyInputFocusLostCallbackDelegate(OnKeyInputFocusLost);
- this.KeyInputFocusLostSignal().Connect(_KeyInputFocusLostCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyInputFocusLostEventHandler != null)
- {
- this.KeyInputFocusLostSignal().Disconnect(_KeyInputFocusLostCallbackDelegate);
- }
-
- _KeyInputFocusLostEventHandler -= value;
- }
- }
- }
-
- private void OnKeyInputFocusLost(IntPtr view)
- {
- KeyInputFocusLostEventArgs e = new KeyInputFocusLostEventArgs();
-
- // Populate all members of "e" (KeyInputFocusLostEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
-
- if (_KeyInputFocusLostEventHandler != null)
- {
- //here we send all data to user event handlers
- _KeyInputFocusLostEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of KeyHandler-DaliEventHandlerWithReturnType<object,KeyEventArgs,bool>)
- * provided by the user. KeyPressed signal is emitted when key event is received.
- */
- public event DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> KeyPressed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_KeyHandler == null)
- {
- _KeyHandler += value;
-
- _KeyCallbackDelegate = new KeyCallbackDelegate(OnKey);
- this.KeyEventSignal().Connect(_KeyCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_KeyHandler != null)
- {
- this.KeyEventSignal().Disconnect(_KeyCallbackDelegate);
- }
-
- _KeyHandler -= value;
- }
- }
- }
-
- private bool OnKey(IntPtr view, IntPtr key)
- {
- KeyEventArgs e = new KeyEventArgs();
-
- // Populate all members of "e" (KeyEventArgs) with real data
- e.View = Dali.View.GetViewFromPtr(view);
- e.Key = Dali.Key.GetKeyFromPtr(key);
-
- if (_KeyHandler != null)
- {
- //here we send all data to user event handlers
- return _KeyHandler(this, e);
- }
- return false;
-
- }
-
- /**
- * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OnRelayoutEventHandler) provided by the user.
- * OnRelayout signal is emitted after the size has been set on the view during relayout.
- */
- public event DaliEventHandler<object,OnRelayoutEventArgs> OnRelayoutEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOnRelayoutEventHandler == null)
- {
- _viewOnRelayoutEventHandler += value;
- Console.WriteLine("View OnRelayoutEventArgs Locked....");
- _viewOnRelayoutEventCallbackDelegate = new OnRelayoutEventCallbackDelegate(OnRelayout);
- this.OnRelayoutSignal().Connect(_viewOnRelayoutEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOnRelayoutEventHandler != null)
- {
- this.OnRelayoutSignal().Disconnect(_viewOnRelayoutEventCallbackDelegate);
- }
-
- _viewOnRelayoutEventHandler -= value;
- }
- }
- }
-
- // Callback for View OnRelayout signal
- private void OnRelayout(IntPtr data)
- {
- OnRelayoutEventArgs e = new OnRelayoutEventArgs();
- Console.WriteLine("View OnRelayoutEventArgs....");
- // Populate all members of "e" (OnRelayoutEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- if (_viewOnRelayoutEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOnRelayoutEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of TouchHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
- * provided by the user. Touched signal is emitted when touch input is received.
- */
- public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewTouchHandler == null)
- {
- _viewTouchHandler += value;
- Console.WriteLine("View Touch EVENT LOCKED....");
- _viewTouchCallbackDelegate = new TouchCallbackDelegate(OnTouch);
- this.TouchSignal().Connect(_viewTouchCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewTouchHandler != null)
- {
- this.TouchSignal().Disconnect(_viewTouchCallbackDelegate);
- }
-
- _viewTouchHandler -= value;
- }
- }
- }
-
- // Callback for View TouchSignal
- private bool OnTouch(IntPtr view, IntPtr touch)
- {
- TouchEventArgs e = new TouchEventArgs();
- Console.WriteLine("View Touch EVENT....");
- // Populate all members of "e" (TouchEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Touch = Dali.Touch.GetTouchFromPtr(touch);
-
- if (_viewTouchHandler != null)
- {
- //here we send all data to user event handlers
- return _viewTouchHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of HoverHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
- * provided by the user. Hovered signal is emitted when hover input is received.
- */
- public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewHoverHandler == null)
- {
- _viewHoverHandler += value;
-
- _viewHoverCallbackDelegate = new HoverCallbackDelegate(OnHover);
- this.HoveredSignal().Connect(_viewHoverCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewHoverHandler != null)
- {
- this.HoveredSignal().Disconnect(_viewHoverCallbackDelegate);
- }
-
- _viewHoverHandler -= value;
- }
- }
- }
-
- // Callback for View Hover signal
- private bool OnHover(IntPtr view, IntPtr hover)
- {
- HoverEventArgs e = new HoverEventArgs();
-
- // Populate all members of "e" (HoverEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Hover = Dali.Hover.GetHoverFromPtr(hover);
-
- if (_viewHoverHandler != null)
- {
- //here we send all data to user event handlers
- return _viewHoverHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of WheelHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
- * provided by the user. WheelMoved signal is emitted when wheel event is received.
- */
- public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelMoved
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewWheelHandler == null)
- {
- _viewWheelHandler += value;
- Console.WriteLine("View Wheel EVENT LOCKED....");
- _viewWheelCallbackDelegate = new WheelCallbackDelegate(OnWheel);
- this.WheelEventSignal().Connect(_viewWheelCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewWheelHandler != null)
- {
- this.WheelEventSignal().Disconnect(_viewWheelCallbackDelegate);
- }
-
- _viewWheelHandler -= value;
- }
- }
- }
-
- // Callback for View Wheel signal
- private bool OnWheel(IntPtr view, IntPtr wheel)
- {
- WheelEventArgs e = new WheelEventArgs();
- Console.WriteLine("View Wheel EVENT ....");
- // Populate all members of "e" (WheelEventArgs) with real data
- e.View = View.GetViewFromPtr(view);
- e.Wheel = Dali.Wheel.GetWheelFromPtr(wheel);
-
- if (_viewWheelHandler != null)
- {
- //here we send all data to user event handlers
- return _viewWheelHandler(this, e);
- }
-
- return false;
- }
-
- /**
- * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OnStageEventHandler) provided by the user.
- * OnStage signal is emitted after the view has been connected to the stage.
- */
- public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOnStageEventHandler == null)
- {
- _viewOnStageEventHandler += value;
-
- _viewOnStageEventCallbackDelegate = new OnStageEventCallbackDelegate(OnStage);
- this.OnStageSignal().Connect(_viewOnStageEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOnStageEventHandler != null)
- {
- this.OnStageSignal().Disconnect(_viewOnStageEventCallbackDelegate);
- }
-
- _viewOnStageEventHandler -= value;
- }
- }
- }
-
- // Callback for View OnStage signal
- private void OnStage(IntPtr data)
- {
- OnStageEventArgs e = new OnStageEventArgs();
-
- // Populate all members of "e" (OnStageEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- //Console.WriteLine("############# OnStage()! e.View.Name=" + e.View.Name);
-
- if (_viewOnStageEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOnStageEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of OffStageEventHandler) provided by the user.
- * OffStage signal is emitted after the view has been disconnected from the stage.
- */
- public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_viewOffStageEventHandler == null)
- {
- _viewOffStageEventHandler += value;
-
- _viewOffStageEventCallbackDelegate = new OffStageEventCallbackDelegate(OffStage);
- this.OnStageSignal().Connect(_viewOffStageEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_viewOffStageEventHandler != null)
- {
- this.OnStageSignal().Disconnect(_viewOffStageEventCallbackDelegate);
- }
-
- _viewOffStageEventHandler -= value;
- }
- }
- }
-
- // Callback for View OffStage signal
- private void OffStage(IntPtr data)
- {
- OffStageEventArgs e = new OffStageEventArgs();
-
- // Populate all members of "e" (OffStageEventArgs) with real data
- e.View = View.GetViewFromPtr(data);
-
- if (_viewOffStageEventHandler != null)
- {
- //here we send all data to user event handlers
- _viewOffStageEventHandler(this, e);
- }
- }
-
- public static View GetViewFromPtr(global::System.IntPtr cPtr) {
- View ret = new View(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public class Property : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Property() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_View_Property(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
- public static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
- public static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
- public static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
- public static readonly int LEFT_FOCUSABLE_ACTOR_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
- public static readonly int RIGHT_FOCUSABLE_ACTOR_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
- public static readonly int UP_FOCUSABLE_ACTOR_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
- public static readonly int DOWN_FOCUSABLE_ACTOR_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
-
- public Property() : this(NDalicPINVOKE.new_View_Property(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
- public static readonly int BACKGROUND_COLOR = NDalicPINVOKE.View_Property_BACKGROUND_COLOR_get();
- public static readonly int BACKGROUND_IMAGE = NDalicPINVOKE.View_Property_BACKGROUND_IMAGE_get();
- public static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
- public static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
-
- }
-
- public class KeyboardFocus : global::System.IDisposable {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal KeyboardFocus(global::System.IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardFocus obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~KeyboardFocus() {
- Dispose();
- }
-
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_View_KeyboardFocus(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
- public KeyboardFocus() : this(NDalicPINVOKE.new_View_KeyboardFocus(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public enum Direction {
- LEFT,
- RIGHT,
- UP,
- DOWN,
- PAGE_UP,
- PAGE_DOWN
- }
- }
-
- public View () : this (NDalicPINVOKE.View_New(), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
- }
- public View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public View Assign(View handle) {
- View ret = new View(NDalicPINVOKE.View_Assign(swigCPtr, View.getCPtr(handle)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- private new static View DownCast(BaseHandle handle) {
- View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public static T DownCast<T>(Actor actor) where T : View
- {
- return (T)( ViewRegistry.GetViewFromActor( actor ) );
- }
-
- private View ConvertIdToView(uint id)
- {
- Actor actor = null;
-
- if (Parent)
- {
- actor = Parent.FindChildById(id);
- }
-
- if (!actor)
- {
- actor = Stage.Instance.GetRootLayer().FindChildById(id);
- }
-
- return View.DownCast<View>(actor);
- }
-
- public void SetKeyInputFocus() {
- NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public bool HasKeyInputFocus() {
- bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void ClearKeyInputFocus() {
- NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public PinchGestureDetector GetPinchGestureDetector() {
- PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public PanGestureDetector GetPanGestureDetector() {
- PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public TapGestureDetector GetTapGestureDetector() {
- TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public LongPressGestureDetector GetLongPressGestureDetector() {
- LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetStyleName(string styleName) {
- NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public string GetStyleName() {
- string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetBackgroundColor(Vector4 color) {
- NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public Vector4 GetBackgroundColor() {
- Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void SetBackgroundImage(Image image) {
- NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void ClearBackground() {
- NDalicPINVOKE.View_ClearBackground(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ControlKeySignal KeyEventSignal() {
- ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public KeyInputFocusSignal KeyInputFocusGainedSignal() {
- KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public KeyInputFocusSignal KeyInputFocusLostSignal() {
- KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true) {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public enum PropertyRange {
- PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
- CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
- CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX+1000
- }
-
- public string StyleName
- {
- get
- {
- string temp;
- GetProperty( View.Property.STYLE_NAME).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.STYLE_NAME, new Dali.Property.Value( value ) );
- }
- }
-
- public Vector4 BackgroundColor
- {
- get
- {
- Vector4 backgroundColor = new Vector4(0.0f,0.0f,0.0f,0.0f);
-
- Dali.Property.Map background = Background;
- int visualType = 0;
- background.Find( Dali.Constants.Visual.Property.Type ).Get( ref visualType );
- if(visualType == (int)Dali.Constants.Visual.Type.Color)
- {
- background.Find( Dali.Constants.ColorVisualProperty.MixColor ).Get( backgroundColor );
- }
-
- return backgroundColor;
- }
- set
- {
- SetProperty( View.Property.BACKGROUND, new Dali.Property.Value( value ) );
- }
- }
-
- public string BackgroundImage
- {
- get
- {
- string backgroundImage = "";
-
- Dali.Property.Map background = Background;
- int visualType = 0;
- background.Find( Dali.Constants.Visual.Property.Type ).Get( ref visualType );
- if(visualType == (int)Dali.Constants.Visual.Type.Image)
- {
- background.Find( Dali.Constants.ImageVisualProperty.URL ).Get( out backgroundImage );
- }
-
- return backgroundImage;
- }
- set
- {
- SetProperty( View.Property.BACKGROUND, new Dali.Property.Value( value ) );
- }
- }
-
- public bool KeyInputFocus
- {
- get
- {
- bool temp = false;
- GetProperty( View.Property.KEY_INPUT_FOCUS).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.KEY_INPUT_FOCUS, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map Background
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( View.Property.BACKGROUND).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.BACKGROUND, new Dali.Property.Value( value ) );
- }
- }
-
- public string State
- {
- get
- {
- string temp;
- GetProperty( View.Property.STATE).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.STATE, new Dali.Property.Value( value ) );
- }
- }
-
- public string SubState
- {
- get
- {
- string temp;
- GetProperty( View.Property.SUB_STATE).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.SUB_STATE, new Dali.Property.Value( value ) );
- }
- }
-
- public Dali.Property.Map Tooltip
- {
- get
- {
- Dali.Property.Map temp = new Dali.Property.Map();
- GetProperty( View.Property.TOOLTIP).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.TOOLTIP, new Dali.Property.Value( value ) );
- }
- }
-
- public string TooltipText
- {
- set
- {
- SetProperty( View.Property.TOOLTIP, new Dali.Property.Value( value ) );
- }
- }
-
- private int LeftFocusableActorId
- {
- get
- {
- int temp = 0;
- GetProperty( View.Property.LEFT_FOCUSABLE_ACTOR_ID).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.LEFT_FOCUSABLE_ACTOR_ID, new Dali.Property.Value( value ) );
- }
- }
-
- private int RightFocusableActorId
- {
- get
- {
- int temp = 0;
- GetProperty( View.Property.RIGHT_FOCUSABLE_ACTOR_ID).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.RIGHT_FOCUSABLE_ACTOR_ID, new Dali.Property.Value( value ) );
- }
- }
-
- private int UpFocusableActorId
- {
- get
- {
- int temp = 0;
- GetProperty( View.Property.UP_FOCUSABLE_ACTOR_ID).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.UP_FOCUSABLE_ACTOR_ID, new Dali.Property.Value( value ) );
- }
- }
-
- private int DownFocusableActorId
- {
- get
- {
- int temp = 0;
- GetProperty( View.Property.DOWN_FOCUSABLE_ACTOR_ID).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( View.Property.DOWN_FOCUSABLE_ACTOR_ID, new Dali.Property.Value( value ) );
- }
- }
-
- public float Flex
- {
- get
- {
- float temp = 0.0f;
- GetProperty( FlexContainer.ChildProperty.FLEX).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( FlexContainer.ChildProperty.FLEX, new Dali.Property.Value( value ) );
- }
- }
-
- public int AlignSelf
- {
- get
- {
- int temp = 0;
- GetProperty( FlexContainer.ChildProperty.ALIGN_SELF).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( FlexContainer.ChildProperty.ALIGN_SELF, new Dali.Property.Value( value ) );
- }
- }
-
- public Vector4 FlexMargin
- {
- get
- {
- Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
- GetProperty( FlexContainer.ChildProperty.FLEX_MARGIN).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( FlexContainer.ChildProperty.FLEX_MARGIN, new Dali.Property.Value( value ) );
- }
- }
-
- public Vector2 CellIndex
- {
- get
- {
- Vector2 temp = new Vector2(0.0f,0.0f);
- GetProperty( TableView.ChildProperty.CELL_INDEX).Get( temp );
- return temp;
- }
- set
- {
- SetProperty( TableView.ChildProperty.CELL_INDEX, new Dali.Property.Value( value ) );
- }
- }
-
- public float RowSpan
- {
- get
- {
- float temp = 0.0f;
- GetProperty( TableView.ChildProperty.ROW_SPAN).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( TableView.ChildProperty.ROW_SPAN, new Dali.Property.Value( value ) );
- }
- }
-
- public float ColumnSpan
- {
- get
- {
- float temp = 0.0f;
- GetProperty( TableView.ChildProperty.COLUMN_SPAN).Get( ref temp );
- return temp;
- }
- set
- {
- SetProperty( TableView.ChildProperty.COLUMN_SPAN, new Dali.Property.Value( value ) );
- }
- }
-
- public string CellHorizontalAlignment
- {
- get
- {
- string temp;
- GetProperty( TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
- }
- }
-
- public string CellVerticalAlignment
- {
- get
- {
- string temp;
- GetProperty( TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get( out temp );
- return temp;
- }
- set
- {
- SetProperty( TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
- }
- }
-
- /**
- * @brief The left focusable view.
- * @note This will return NULL if not set.
- * This will also return NULL if the specified left focusable view is not on stage.
- *
- */
- public View LeftFocusableView
- {
- // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
- get
- {
- if (LeftFocusableActorId >= 0)
- {
- return ConvertIdToView((uint)LeftFocusableActorId);
- }
- return null;
- }
- set
- {
- LeftFocusableActorId = (int)value.GetId();
- }
- }
-
- /**
- * @brief The right focusable view.
- * @note This will return NULL if not set.
- * This will also return NULL if the specified right focusable view is not on stage.
- *
- */
- public View RightFocusableView
- {
- // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
- get
- {
- if (RightFocusableActorId >= 0)
- {
- return ConvertIdToView((uint)RightFocusableActorId);
- }
- return null;
- }
- set
- {
- RightFocusableActorId = (int)value.GetId();
- }
- }
-
- /**
- * @brief The up focusable view.
- * @note This will return NULL if not set.
- * This will also return NULL if the specified up focusable view is not on stage.
- *
- */
- public View UpFocusableView
- {
- // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
- get
- {
- if (UpFocusableActorId >= 0)
- {
- return ConvertIdToView((uint)UpFocusableActorId);
- }
- return null;
- }
- set
- {
- UpFocusableActorId = (int)value.GetId();
- }
- }
-
- /**
- * @brief The down focusable view.
- * @note This will return NULL if not set.
- * This will also return NULL if the specified down focusable view is not on stage.
- *
- */
- public View DownFocusableView
- {
- // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
- get
- {
- if (DownFocusableActorId >= 0)
- {
- return ConvertIdToView((uint)DownFocusableActorId);
- }
- return null;
- }
- set
- {
- DownFocusableActorId = (int)value.GetId();
- }
- }
-}
-
-}
+++ /dev/null
-using System;
-using System.Runtime.InteropServices;
-using System.Collections.Generic;
-
-namespace Dali
-{
- /// <summary>
- /// Add this attribute to any property belonging to a View (control) you want to be scriptable from JSON
- /// </summary>
- /// <remarks>
- /// Example:
- ///
- /// class MyView : public CustomView
- /// {
- /// [ScriptableProperty()]
- /// public int MyProperty
- /// {
- /// get
- /// {
- /// return _myProperty;
- /// }
- /// set
- /// {
- /// _myProperty = value;
- /// }
- /// }
- /// }
- ///
- /// Internally the following occurs for property registration ( this only occurs once per Type, not per Instance):
- ///
- /// - The controls static constructor should call ViewRegistry.Register() (only called once for the lifecycle of the app)
- /// - Within Register() the code will introspect the Controls properties, looking for the ScriptableProperty() attribute
- /// - For every property with the ScriptableProperty() attribute, TypeRegistration.RegisterProperty is called.
- /// - TypeRegistration.RegisterProperty calls in to DALi C++ Code Dali::CSharpTypeRegistry::RegisterProperty()
- /// - DALi C++ now knows the existance of the property and will try calling SetProperty, if it finds the property in a JSON file (loaded using builder).
- ///
- /// The DALi C# example
- ///
- /// class MyView : public CustomView
- /// {
- ///
- /// [ScriptableProperty()]
- /// public double Hours
- /// {
- /// get { return seconds / 3600; }
- /// set { seconds = value * 3600; }
- /// }
- /// }
- ///
- /// Equivalent code in DALi C++:
- /// in MyControl.h
- /// class MyControl : public Control
- /// {
- /// struct Property
- /// {
- /// enum
- /// {
- /// HOURS = Control::CONTROL_PROPERTY_END_INDEX + 1
- /// }
- /// }
- /// }
- ///
- /// in MyControl-impl.cpp
- ///
- /// DALI_TYPE_REGISTRATION_BEGIN( Toolkit::MyControl, Toolkit::Control, Create );
- /// DALI_PROPERTY_REGISTRATION( Toolkit, MyControl, "Hours", INTEGER, DISABLED )
- /// DALI_TYPE_REGISTRATION_END()
- /// </remarks>
- ///
- ///
- public class ScriptableProperty : System.Attribute
- {
- public enum ScriptableType
- {
- Default, // Read Writable, non-animatable property, event thread only
- // Animatable // Animatable property, Currently disabled, UK
- }
- public readonly ScriptableType type;
-
- public ScriptableProperty(ScriptableType type = ScriptableType.Default )
- {
- this.type = type;
- }
- }
-
- /// <summary>
- /// View Registry singleton.
- /// Used for registering controls and any scriptable properties they have ( see ScriptableProperty )
- ///
- /// Internal Design from C# to C++
- ///
- /// - Each custom C# view should have it's static constructor called before any JSON file is loaded.
- /// Static constructors for a class will only run once ( they are run per control type, not per instance).
- /// Example of running a static constructor:
- /// System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(Spin).TypeHandle);
- /// Inside the static constructor the control should register it's type with the ViewRegistry
- /// e.g.
- ///
- /// static Spin()
- /// {
- /// ViewRegistry.Instance.Register(CreateInstance, typeof(Spin) );
- /// }
- ///
- /// The control should also provide a CreateInstance function, which gets passed to the ViewRegistry
- /// // Eventually it will be called if DALi Builderfinds a Spin control in a JSON file
- /// static CustomView CreateInstance()
- /// {
- /// return new Spin();
- /// }
- ///
- ///
- ///
- /// The DALi C++ equivalent of this is
- ///
- /// TypeRegistration mType( typeid(Toolkit::Spin), typeid(Toolkit::Control), CreateInstance );
- ///
- ///
- ///
- /// </summary>
- public sealed class ViewRegistry
- {
- /// <summary>
- /// ViewRegistry is a singleton
- /// </summary>
- private static ViewRegistry instance = null;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate IntPtr CreateControlDelegate( IntPtr cPtrControlName );
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate IntPtr GetPropertyDelegate( IntPtr controlPtr, IntPtr propertyName );
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- delegate void SetPropertyDelegate( IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue );
-
- private CreateControlDelegate _createCallback;
- private SetPropertyDelegate _setPropertyCallback;
- private GetPropertyDelegate _getPropertyCallback;
- private PropertyRangeManager _propertyRangeManager;
-
- /// <summary>
- /// Given a C++ control the dictionary allows us to find which C# control (View) it belongs to.
- /// By keeping the weak reference only, it will allow the object to be garbage collected.
- /// </summary>
- private Dictionary<IntPtr, WeakReference> _controlMap;
-
- ///<summary>
- // Maps the name of a custom view to a create instance function
- /// E.g. given a string "Spin", we can get a function used to create the Spin View.
- ///</summary>
- private Dictionary<String, Func< CustomView > > _constructorMap;
-
- /// <summary>
- /// Lookup table to match C# types to DALi types, used for the automatic property registration
- /// </summary>
- private static readonly Dictionary<string, Dali.Property.Type> _daliPropertyTypeLookup
- = new Dictionary< string, Dali.Property.Type >
- {
- { "float", Property.Type.FLOAT },
- { "int", Property.Type.INTEGER },
- { "Int32", Property.Type.INTEGER },
- { "Boolean", Property.Type.BOOLEAN },
- { "string", Property.Type.STRING },
- { "Vector2", Property.Type.VECTOR2 },
- { "Vector3", Property.Type.VECTOR3 },
- { "Vector4", Property.Type.VECTOR4 },
- { "Size", Property.Type.VECTOR2 },
- { "Position",Property.Type.VECTOR3 },
- { "Color", Property.Type.VECTOR4 },
- // { "Matrix3", Property.Type.MATRIX3 }, commented out until we need to use Matrices from JSON
- // { "Matrix", Property.Type.MATRIX },
- };
-
-
- public ViewRegistry()
- {
- _createCallback = new CreateControlDelegate( CreateControl );
- _getPropertyCallback = new GetPropertyDelegate (GetProperty);
- _setPropertyCallback = new SetPropertyDelegate (SetProperty);
-
- _controlMap = new Dictionary<IntPtr, WeakReference>();
- _constructorMap = new Dictionary<string, Func<CustomView>>();
- _propertyRangeManager = new PropertyRangeManager();
-
- }
-
- private Dali.Property.Type GetDaliPropertyType( string cSharpTypeName )
- {
- Dali.Property.Type daliType;
- if ( _daliPropertyTypeLookup.TryGetValue (cSharpTypeName, out daliType) )
- {
- //Console.WriteLine("mapped "+ cSharpTypeName + " to dAli type " +daliType );
- return daliType;
- }
- else
- {
- // Console.WriteLine("Failed to find a mapping between C# property" + cSharpTypeName +" and DALi type");
- return Property.Type.NONE;
- }
- }
-
- /// <summary>
- /// Called directly from DALi C++ type registry to create a control (View) using no marshalling.
- /// </summary>
- /// <returns>Pointer to the Control (Views) handle </returns>
- /// <param name="cPtrControlName"> C pointer to the Control (View) name</param>
- private static IntPtr CreateControl( IntPtr cPtrControlName )
- {
- string controlName = System.Runtime.InteropServices.Marshal.PtrToStringAnsi (cPtrControlName);
- // Console.WriteLine ("Create controlled called from C++ create a " + controlName);
-
- Func< CustomView > controlConstructor;
-
- // find the control constructor
- if ( Instance._constructorMap.TryGetValue (controlName, out controlConstructor) )
- {
- // Create the control
- CustomView newControl = controlConstructor ();
- return newControl.GetPtrfromActor(); // return pointer to handle
- }
- else
- {
- throw new global::System.InvalidOperationException("C# View not registererd with ViewRegistry"+ controlName );
- return IntPtr.Zero;
- }
- }
-
- /// <summary>
- /// Store the mapping between this instance of control (View) and native part.
- /// </summary>
- /// <param name="view"> The instance of control (View)</param>
- public static void RegisterView( View view )
- {
- // We store a pointer to the RefObject for the control
- RefObject refObj = view.GetObjectPtr();
- IntPtr refCptr = (IntPtr) RefObject.getCPtr(refObj);
-
- //Console.WriteLine ("________Storing ref object cptr in control map Hex: {0:X}", refCptr);
- if ( !Instance._controlMap.ContainsKey(refCptr) )
- {
- Instance._controlMap.Add(refCptr, new WeakReference(view, false));
- }
-
- return;
- }
-
- /// <summary>
- /// Remove the this instance of control (View) and native part from the mapping table.
- /// </summary>
- /// <param name="view"> The instance of control (View)</param>
- public static void UnregisterView( View view )
- {
- RefObject refObj = view.GetObjectPtr();
- IntPtr refCptr = (IntPtr) RefObject.getCPtr(refObj);
-
- if ( Instance._controlMap.ContainsKey(refCptr) )
- {
- Instance._controlMap.Remove(refCptr);
- }
-
- return;
- }
-
- private static IntPtr GetProperty( IntPtr controlPtr, IntPtr propertyName )
- {
- string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi (propertyName);
- return Instance.GetPropertyValue ( controlPtr, name);
- }
-
- private static void SetProperty( IntPtr controlPtr, IntPtr propertyName, IntPtr propertyValue )
- {
- string name = System.Runtime.InteropServices.Marshal.PtrToStringAnsi (propertyName);
- //Console.WriteLine ( SetControlProperty called for:" + name );
- Instance.SetPropertyValue ( controlPtr, name, propertyValue);
-
- }
-
- public static ViewRegistry Instance
- {
- get
- {
- if (instance==null)
- {
- instance = new ViewRegistry();
- }
- return instance;
- }
- }
-
- public static View GetViewFromActor( Actor actor )
- {
- // we store a dictionary of ref-obects (C++ land) to custom views (C# land)
-
- RefObject refObj = actor.GetObjectPtr ();
- IntPtr refObjectPtr = (IntPtr) RefObject.getCPtr(refObj);
-
- WeakReference viewReference;
- if ( Instance._controlMap.TryGetValue ( refObjectPtr, out viewReference) )
- {
- View view = viewReference.Target as View;
- return view;
- }
- else
- {
- return null;
- }
- }
-
-
- /// <summary>
- /// Function which registers a view and all it's scriptable properties with DALi's type registry.
- /// Means the View can be created / configured from a JSON script.
- ///
- /// The function uses introspection to scan a Views C# properties, then selects the ones with
- ///[ScriptableProperty] attribute to be registered.
- /// Example of a Spin view registering itself
- /// static Spin()
- /// {
- /// ViewRegistry registers control type with DALi type registery
- /// also uses introspection to find any properties that need to be registered with type registry
- /// ViewRegistry.Instance.Register(CreateInstance, typeof(Spin) );
- /// }
- ///
- /// </summary>
- public void Register(Func< CustomView > createFunction, System.Type viewType )
- {
- // add the mapping between the view name and it's create function
- _constructorMap.Add (viewType.Name, createFunction);
-
- // Call into DALi C++ to register the control with the type registry
- TypeRegistration.RegisterControl( viewType.Name, _createCallback );
-
- // Cycle through each property in the class
- foreach (System.Reflection.PropertyInfo propertyInfo in viewType.GetProperties())
- {
-
- if ( propertyInfo.CanRead )
- {
-
- System.Attribute[] attrs = System.Attribute.GetCustomAttributes(propertyInfo);
- foreach (System.Attribute attr in attrs)
- {
- // If the Scriptable attribute exists, then register it with the type registry.
- if (attr is ScriptableProperty)
- {
- //Console.WriteLine ("Got a DALi JSON scriptable property = " + propertyInfo.Name +", of type " + propertyInfo.PropertyType.Name);
-
- // first get the attribute type, ( default, or animatable)
- ScriptableProperty scriptableProp = attr as ScriptableProperty;
-
- // we get the start property index, based on the type and it's heirachy, e.g. DateView (70,000)-> Spin (60,000) -> View (50,000)
- int propertyIndex = _propertyRangeManager.GetPropertyIndex( viewType.Name, viewType, scriptableProp.type );
-
- // get the enum for the property type... E.g. registering a string property returns Dali.PropertyType.String
- Dali.Property.Type propertyType = GetDaliPropertyType( propertyInfo.PropertyType.Name );
-
- // Example RegisterProperty("spin","maxValue", 50001, FLOAT, set, get );
- // Native call to register the property
- TypeRegistration.RegisterProperty (viewType.Name, propertyInfo.Name , propertyIndex, propertyType, _setPropertyCallback, _getPropertyCallback);
- }
- }
- // Console.WriteLine ("property name = " + propertyInfo.Name);
- }
- }
- }
-
- /// <summary>
- /// Get a property value from a View
- ///
- /// </summary>
- private IntPtr GetPropertyValue ( IntPtr controlPtr, string propertyName)
- {
- // Get the C# control that maps to the C++ control
- BaseHandle baseHandle = new BaseHandle (controlPtr, false);
-
- RefObject refObj = baseHandle.GetObjectPtr ();
-
- IntPtr refObjectPtr = (IntPtr) RefObject.getCPtr(refObj);
-
- WeakReference viewReference;
- if ( _controlMap.TryGetValue ( refObjectPtr, out viewReference) )
- {
- View view = viewReference.Target as View;
-
- // call the get property function
- System.Object val = view.GetType ().GetProperty (propertyName).GetAccessors () [0].Invoke (view, null);
-
- Property.Value value = Property.Value.CreateFromObject (val);
-
- return (IntPtr)Property.Value.getCPtr (value);
- }
- else
- {
- return IntPtr.Zero;
- }
- }
-
- /// <summary>
- /// Set a property value on a View
- ///
- /// </summary>
- private void SetPropertyValue ( IntPtr controlPtr, string propertyName, IntPtr propertyValuePtr)
- {
- // Get the C# control that maps to the C++ control
-
- //Console.WriteLine ("SetPropertyValue refObjectPtr = {0:X}", controlPtr);
-
- Property.Value propValue = new Property.Value (propertyValuePtr, false);
-
- WeakReference viewReference;
- if ( _controlMap.TryGetValue ( controlPtr, out viewReference) )
- {
- View view = viewReference.Target as View;
- System.Reflection.PropertyInfo propertyInfo = view.GetType().GetProperty(propertyName);
-
- // We know the property name, we know it's type, we just need to convert from a DALi property value to native C# type
- System.Type type = propertyInfo.PropertyType;
- bool ok = false;
-
- if ( type.Equals (typeof(Int32)) )
- {
- int value = 0;
- ok = propValue.Get( ref value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(bool)) )
- {
- bool value = false;
- ok = propValue.Get( ref value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(float)) )
- {
- float value = 0;
- ok = propValue.Get( ref value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(string)) )
- {
- string value = "";
- ok = propValue.Get( out value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(Vector2)) )
- {
- Vector2 value = new Vector2 ();
- ok = propValue.Get( value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(Vector3)) )
- {
- Vector3 value = new Vector3 ();
- ok = propValue.Get( value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(Vector4)) )
- {
- Vector4 value = new Vector4 ();
- ok = propValue.Get( value );
-
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(Position)) )
- {
- Position value = new Position ();
- ok = propValue.Get( value );
- if ( ok )
- {
- propertyInfo.SetValue (view, value);
- }
- }
- else if ( type.Equals (typeof(Size)) )
- {
- Size value = new Size();
- ok = propValue.Get( value );
- if ( ok )
- {
- propertyInfo.SetValue(view, new Size(value.Width, value.Height, value.Depth));
- };
- }
- else if ( type.Equals (typeof(Color)) )
- {
- // Colors are stored as Vector4's in DALi
- Vector4 value = new Vector4();
- ok = propValue.Get( value );
- if ( ok )
- {
- propertyInfo.SetValue (view, (Color)value);
- };
- }
- else
- {
- throw new global::System.InvalidOperationException("SetPropertyValue Unimplemented type for Property Value");
- }
- if ( !ok )
- {
- throw new global::System.InvalidOperationException("SetPropertyValue propValue.Get failed");
- }
- }
- else
- {
- throw new global::System.InvalidOperationException("failed to find the control to write a property to: cptr = " + controlPtr);
- }
-
- }
-
- }
-
-
-}
\ No newline at end of file
+++ /dev/null
-using System;
-
-// include all custom views here which will be
-namespace Dali
-{
- public class ViewRegistryHelper
- {
- static public void Initialize()
- {
- // Register all views with the type registry
- System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (typeof(Dali.Spin).TypeHandle);
- }
- }
-}
-
+++ /dev/null
-/** 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.
-*
-*/
-
-namespace Dali
-{
- public class ViewWrapper : View
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected ViewWrapperImpl viewWrapperImpl;
-
- internal ViewWrapper(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapper_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapper obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~ViewWrapper()
- {
- DisposeQueue.Instance.Add(this);
- }
-
- public override void Dispose()
- {
- if (!Stage.IsInstalled())
- {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock (this)
- {
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_ViewWrapper(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-
-
- public ViewWrapper(string typeName, ViewWrapperImpl implementation) : this(NDalicManualPINVOKE.ViewWrapper_New(typeName, ViewWrapperImpl.getCPtr(implementation)), true)
- {
- viewWrapperImpl = implementation;
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ViewWrapper(ViewWrapper handle) : this(NDalicManualPINVOKE.new_ViewWrapper__SWIG_1(ViewWrapper.getCPtr(handle)), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public ViewWrapper Assign(ViewWrapper handle)
- {
- ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapper_Assign(swigCPtr, ViewWrapper.getCPtr(handle)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public new static ViewWrapper DownCast(BaseHandle handle)
- {
- ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapper_DownCast(BaseHandle.getCPtr(handle)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-}
-
+++ /dev/null
-/*
- * Copyright (c) 2016 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.
- *
- */
-
-namespace Dali
-{
- public sealed class ViewWrapperImpl : ViewImpl
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- public delegate void OnStageConnectionDelegate(int depth);
- public delegate void OnStageDisconnectionDelegate();
- public delegate void OnChildAddDelegate(Actor actor);
- public delegate void OnChildRemoveDelegate(Actor actor);
- public delegate void OnPropertySetDelegate(int index, Property.Value propertyValue);
- public delegate void OnSizeSetDelegate(Vector3 targetSize);
- public delegate void OnSizeAnimationDelegate(Animation animation, Vector3 targetSize);
- public delegate bool OnTouchDelegate(Touch touch);
- public delegate bool OnHoverDelegate(Hover hover);
- public delegate bool OnKeyDelegate(Key key);
- public delegate bool OnWheelDelegate(Wheel wheel);
- public delegate void OnRelayoutDelegate(Vector2 size, RelayoutContainer container);
- public delegate void OnSetResizePolicyDelegate(ResizePolicyType policy, DimensionType dimension);
- public delegate Vector3 GetNaturalSizeDelegate();
- public delegate float CalculateChildSizeDelegate(Actor child, DimensionType dimension);
- public delegate float GetHeightForWidthDelegate(float width);
- public delegate float GetWidthForHeightDelegate(float height);
- public delegate bool RelayoutDependentOnChildrenDimensionDelegate(DimensionType dimension);
- public delegate bool RelayoutDependentOnChildrenDelegate();
- public delegate void OnCalculateRelayoutSizeDelegate(DimensionType dimension);
- public delegate void OnLayoutNegotiatedDelegate(float size, DimensionType dimension);
- public delegate void OnControlChildAddDelegate(Actor child);
- public delegate void OnControlChildRemoveDelegate(Actor child);
- public delegate void OnStyleChangeDelegate(StyleManager styleManager, StyleChangeType change);
- public delegate bool OnAccessibilityActivatedDelegate();
- public delegate bool OnAccessibilityPanDelegate(PanGesture gestures);
- public delegate bool OnAccessibilityTouchDelegate(Touch touch);
- public delegate bool OnAccessibilityValueChangeDelegate(bool isIncrease);
- public delegate bool OnAccessibilityZoomDelegate();
- public delegate void OnKeyInputFocusGainedDelegate();
- public delegate void OnKeyInputFocusLostDelegate();
- public delegate Actor GetNextKeyboardFocusableActorDelegate(Actor currentFocusedActor, View.KeyboardFocus.Direction direction, bool loopEnabled);
- public delegate void OnKeyboardFocusChangeCommittedDelegate(Actor commitedFocusableActor);
- public delegate bool OnKeyboardEnterDelegate();
- public delegate void OnPinchDelegate(PinchGesture pinch);
- public delegate void OnPanDelegate(PanGesture pan);
- public delegate void OnTapDelegate(TapGesture tap);
- public delegate void OnLongPressDelegate(LongPressGesture longPress);
-
- public OnStageConnectionDelegate OnStageConnection;
- public OnStageDisconnectionDelegate OnStageDisconnection;
- public OnChildAddDelegate OnChildAdd;
- public OnChildRemoveDelegate OnChildRemove;
- public OnPropertySetDelegate OnPropertySet;
- public OnSizeSetDelegate OnSizeSet;
- public OnSizeAnimationDelegate OnSizeAnimation;
- public OnTouchDelegate OnTouch;
- public OnHoverDelegate OnHover;
- public OnKeyDelegate OnKey;
- public OnWheelDelegate OnWheel;
- public OnRelayoutDelegate OnRelayout;
- public OnSetResizePolicyDelegate OnSetResizePolicy;
- public GetNaturalSizeDelegate GetNaturalSize;
- public CalculateChildSizeDelegate CalculateChildSize;
- public GetHeightForWidthDelegate GetHeightForWidth;
- public GetWidthForHeightDelegate GetWidthForHeight;
- public RelayoutDependentOnChildrenDimensionDelegate RelayoutDependentOnChildrenDimension;
- public RelayoutDependentOnChildrenDelegate RelayoutDependentOnChildren;
- public OnCalculateRelayoutSizeDelegate OnCalculateRelayoutSize;
- public OnLayoutNegotiatedDelegate OnLayoutNegotiated;
- public OnControlChildAddDelegate OnControlChildAdd;
- public OnControlChildRemoveDelegate OnControlChildRemove;
- public OnStyleChangeDelegate OnStyleChange;
- public OnAccessibilityActivatedDelegate OnAccessibilityActivated;
- public OnAccessibilityPanDelegate OnAccessibilityPan;
- public OnAccessibilityTouchDelegate OnAccessibilityTouch;
- public OnAccessibilityValueChangeDelegate OnAccessibilityValueChange;
- public OnAccessibilityZoomDelegate OnAccessibilityZoom;
- public OnKeyInputFocusGainedDelegate OnKeyInputFocusGained;
- public OnKeyInputFocusLostDelegate OnKeyInputFocusLost;
- public GetNextKeyboardFocusableActorDelegate GetNextKeyboardFocusableActor;
- public OnKeyboardFocusChangeCommittedDelegate OnKeyboardFocusChangeCommitted;
- public OnKeyboardEnterDelegate OnKeyboardEnter;
- public OnPinchDelegate OnPinch;
- public OnPanDelegate OnPan;
- public OnTapDelegate OnTap;
- public OnLongPressDelegate OnLongPress;
-
- internal ViewWrapperImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapperImpl_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapperImpl obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~ViewWrapperImpl()
- {
- DisposeQueue.Instance.Add(this);
- }
-
- public override void Dispose()
- {
- if (!Stage.IsInstalled())
- {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this)
- {
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_ViewWrapperImpl(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-
- public ViewWrapperImpl(ViewWrapperImpl.CustomViewBehaviour behaviourFlags) : this(NDalicManualPINVOKE.new_ViewWrapperImpl((int)behaviourFlags), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- DirectorConnect();
- }
-
- public static ViewWrapper New(string typeName, ViewWrapperImpl viewWrapper)
- {
- ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapperImpl_New(typeName, ViewWrapperImpl.getCPtr(viewWrapper)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void RelayoutRequest()
- {
- NDalicManualPINVOKE.ViewWrapperImpl_RelayoutRequest(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public float GetHeightForWidthBase(float width)
- {
- float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetHeightForWidthBase(swigCPtr, width);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float GetWidthForHeightBase(float height)
- {
- float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetWidthForHeightBase(swigCPtr, height);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public float CalculateChildSizeBase(Actor child, DimensionType dimension)
- {
- float ret = NDalicManualPINVOKE.ViewWrapperImpl_CalculateChildSizeBase(swigCPtr, Actor.getCPtr(child), (int)dimension);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool RelayoutDependentOnChildrenBase(DimensionType dimension)
- {
- bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(swigCPtr, (int)dimension);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public bool RelayoutDependentOnChildrenBase()
- {
- bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void RegisterVisual(int index, VisualBase visual)
- {
- NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_0(swigCPtr, index, VisualBase.getCPtr(visual));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void RegisterVisual(int index, VisualBase visual, bool enabled)
- {
- NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_1(swigCPtr, index, VisualBase.getCPtr(visual), enabled);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void UnregisterVisual(int index)
- {
- NDalicManualPINVOKE.ViewWrapperImpl_UnregisterVisual(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public VisualBase GetVisual(int index)
- {
- VisualBase ret = new VisualBase(NDalicManualPINVOKE.ViewWrapperImpl_GetVisual(swigCPtr, index), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void EnableVisual(int index, bool enable)
- {
- NDalicManualPINVOKE.ViewWrapperImpl_EnableVisual(swigCPtr, index, enable);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public bool IsVisualEnabled(int index)
- {
- bool ret = NDalicManualPINVOKE.ViewWrapperImpl_IsVisualEnabled(swigCPtr, index);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public Animation CreateTransition(TransitionData transitionData)
- {
- Animation ret = new Animation(NDalicManualPINVOKE.ViewWrapperImpl_CreateTransition(swigCPtr, TransitionData.getCPtr(transitionData)), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- public void EmitKeyInputFocusSignal(bool focusGained)
- {
- NDalicManualPINVOKE.ViewWrapperImpl_EmitKeyInputFocusSignal(swigCPtr, focusGained);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- public void ApplyThemeStyle()
- {
- NDalicManualPINVOKE.ViewWrapperImpl_ApplyThemeStyle(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- private void DirectorConnect()
- {
- Delegate0 = new DelegateViewWrapperImpl_0(DirectorOnStageConnection);
- Delegate1 = new DelegateViewWrapperImpl_1(DirectorOnStageDisconnection);
- Delegate2 = new DelegateViewWrapperImpl_2(DirectorOnChildAdd);
- Delegate3 = new DelegateViewWrapperImpl_3(DirectorOnChildRemove);
- Delegate4 = new DelegateViewWrapperImpl_4(DirectorOnPropertySet);
- Delegate5 = new DelegateViewWrapperImpl_5(DirectorOnSizeSet);
- Delegate6 = new DelegateViewWrapperImpl_6(DirectorOnSizeAnimation);
- Delegate7 = new DelegateViewWrapperImpl_7(DirectorOnTouch);
- Delegate8 = new DelegateViewWrapperImpl_8(DirectorOnHover);
- Delegate9 = new DelegateViewWrapperImpl_9(DirectorOnKey);
- Delegate10 = new DelegateViewWrapperImpl_10(DirectorOnWheel);
- Delegate11 = new DelegateViewWrapperImpl_11(DirectorOnRelayout);
- Delegate12 = new DelegateViewWrapperImpl_12(DirectorOnSetResizePolicy);
- Delegate13 = new DelegateViewWrapperImpl_13(DirectorGetNaturalSize);
- Delegate14 = new DelegateViewWrapperImpl_14(DirectorCalculateChildSize);
- Delegate15 = new DelegateViewWrapperImpl_15(DirectorGetHeightForWidth);
- Delegate16 = new DelegateViewWrapperImpl_16(DirectorGetWidthForHeight);
- Delegate17 = new DelegateViewWrapperImpl_17(DirectorRelayoutDependentOnChildren__SWIG_0);
- Delegate18 = new DelegateViewWrapperImpl_18(DirectorRelayoutDependentOnChildren__SWIG_1);
- Delegate19 = new DelegateViewWrapperImpl_19(DirectorOnCalculateRelayoutSize);
- Delegate20 = new DelegateViewWrapperImpl_20(DirectorOnLayoutNegotiated);
- Delegate21 = new DelegateViewWrapperImpl_21(DirectorOnInitialize);
- Delegate22 = new DelegateViewWrapperImpl_22(DirectorOnControlChildAdd);
- Delegate23 = new DelegateViewWrapperImpl_23(DirectorOnControlChildRemove);
- Delegate24 = new DelegateViewWrapperImpl_24(DirectorOnStyleChange);
- Delegate25 = new DelegateViewWrapperImpl_25(DirectorOnAccessibilityActivated);
- Delegate26 = new DelegateViewWrapperImpl_26(DirectorOnAccessibilityPan);
- Delegate27 = new DelegateViewWrapperImpl_27(DirectorOnAccessibilityTouch);
- Delegate28 = new DelegateViewWrapperImpl_28(DirectorOnAccessibilityValueChange);
- Delegate29 = new DelegateViewWrapperImpl_29(DirectorOnAccessibilityZoom);
- Delegate30 = new DelegateViewWrapperImpl_30(DirectorOnKeyInputFocusGained);
- Delegate31 = new DelegateViewWrapperImpl_31(DirectorOnKeyInputFocusLost);
- Delegate32 = new DelegateViewWrapperImpl_32(DirectorGetNextKeyboardFocusableActor);
- Delegate33 = new DelegateViewWrapperImpl_33(DirectorOnKeyboardFocusChangeCommitted);
- Delegate34 = new DelegateViewWrapperImpl_34(DirectorOnKeyboardEnter);
- Delegate35 = new DelegateViewWrapperImpl_35(DirectorOnPinch);
- Delegate36 = new DelegateViewWrapperImpl_36(DirectorOnPan);
- Delegate37 = new DelegateViewWrapperImpl_37(DirectorOnTap);
- Delegate38 = new DelegateViewWrapperImpl_38(DirectorOnLongPress);
- NDalicManualPINVOKE.ViewWrapperImpl_director_connect(swigCPtr, Delegate0, Delegate1, Delegate2, Delegate3, Delegate4, Delegate5, Delegate6, Delegate7, Delegate8, Delegate9, Delegate10, Delegate11, Delegate12, Delegate13, Delegate14, Delegate15, Delegate16, Delegate17, Delegate18, Delegate19, Delegate20, Delegate21, Delegate22, Delegate23, Delegate24, Delegate25, Delegate26, Delegate27, Delegate28, Delegate29, Delegate30, Delegate31, Delegate32, Delegate33, Delegate34, Delegate35, Delegate36, Delegate37, Delegate38, null, null);
- }
-
- private void DirectorOnStageConnection(int depth)
- {
- OnStageConnection(depth);
- }
-
- private void DirectorOnStageDisconnection()
- {
- OnStageDisconnection();
- }
-
- private void DirectorOnChildAdd(global::System.IntPtr child)
- {
- OnChildAdd(new Actor(child, false));
- }
-
- private void DirectorOnChildRemove(global::System.IntPtr child)
- {
- OnChildRemove(new Actor(child, false));
- }
-
- private void DirectorOnPropertySet(int index, global::System.IntPtr propertyValue)
- {
- if (OnPropertySet != null)
- {
- OnPropertySet(index, new Property.Value(propertyValue, true));
- }
- }
-
- private void DirectorOnSizeSet(global::System.IntPtr targetSize)
- {
- OnSizeSet(new Vector3(targetSize, false));
- }
-
- private void DirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize)
- {
- OnSizeAnimation(new Animation(animation, false), new Vector3(targetSize, false));
- }
-
- private bool DirectorOnTouch(global::System.IntPtr arg0)
- {
- return OnTouch(new Touch(arg0, false));
- }
-
- private bool DirectorOnHover(global::System.IntPtr arg0)
- {
- return OnHover(new Hover(arg0, false));
- }
-
- private bool DirectorOnKey(global::System.IntPtr arg0)
- {
- return OnKey(new Key(arg0, false));
- }
-
- private bool DirectorOnWheel(global::System.IntPtr arg0)
- {
- return OnWheel(new Wheel(arg0, false));
- }
-
- private void DirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container)
- {
- OnRelayout(new Vector2(size, false), new RelayoutContainer(container, false));
- }
-
- private void DirectorOnSetResizePolicy(int policy, int dimension)
- {
- OnSetResizePolicy((ResizePolicyType)policy, (DimensionType)dimension);
- }
-
- private global::System.IntPtr DirectorGetNaturalSize()
- {
- return Vector3.getCPtr(GetNaturalSize()).Handle;
- }
-
- private float DirectorCalculateChildSize(global::System.IntPtr child, int dimension)
- {
- return CalculateChildSize(new Actor(child, false), (DimensionType)dimension);
- }
-
- private float DirectorGetHeightForWidth(float width)
- {
- return GetHeightForWidth(width);
- }
-
- private float DirectorGetWidthForHeight(float height)
- {
- return GetWidthForHeight(height);
- }
-
- private bool DirectorRelayoutDependentOnChildren__SWIG_0(int dimension)
- {
- return RelayoutDependentOnChildrenDimension((DimensionType)dimension);
- }
-
- private bool DirectorRelayoutDependentOnChildren__SWIG_1()
- {
- return RelayoutDependentOnChildren();
- }
-
- private void DirectorOnCalculateRelayoutSize(int dimension)
- {
- OnCalculateRelayoutSize((DimensionType)dimension);
- }
-
- private void DirectorOnLayoutNegotiated(float size, int dimension)
- {
- OnLayoutNegotiated(size, (DimensionType)dimension);
- }
-
- private void DirectorOnInitialize()
- {
- }
-
- private void DirectorOnControlChildAdd(global::System.IntPtr child)
- {
- OnControlChildAdd(new Actor(child, false));
- }
-
- private void DirectorOnControlChildRemove(global::System.IntPtr child)
- {
- OnControlChildRemove(new Actor(child, false));
- }
-
- private void DirectorOnStyleChange(global::System.IntPtr styleManager, int change)
- {
- if (OnStyleChange != null)
- {
- OnStyleChange(new StyleManager(styleManager, false), (StyleChangeType)change);
- }
- }
-
- private bool DirectorOnAccessibilityActivated()
- {
- return OnAccessibilityActivated();
- }
-
- private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture)
- {
- return OnAccessibilityPan(new PanGesture(gesture, false));
- }
-
- private bool DirectorOnAccessibilityTouch(global::System.IntPtr touch)
- {
- return OnAccessibilityTouch(new Touch(touch, false));
- }
-
- private bool DirectorOnAccessibilityValueChange(bool isIncrease)
- {
- return OnAccessibilityValueChange(isIncrease);
- }
-
- private bool DirectorOnAccessibilityZoom()
- {
- return OnAccessibilityZoom();
- }
-
- private void DirectorOnKeyInputFocusGained()
- {
- OnKeyInputFocusGained();
- }
-
- private void DirectorOnKeyInputFocusLost()
- {
- OnKeyInputFocusLost();
- }
-
- private global::System.IntPtr DirectorGetNextKeyboardFocusableActor(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled)
- {
- return Actor.getCPtr(GetNextKeyboardFocusableActor(new Actor(currentFocusedActor, false), (View.KeyboardFocus.Direction)direction, loopEnabled)).Handle;
- }
-
- private void DirectorOnKeyboardFocusChangeCommitted(global::System.IntPtr commitedFocusableActor)
- {
- OnKeyboardFocusChangeCommitted(new Actor(commitedFocusableActor, false));
- }
-
- private bool DirectorOnKeyboardEnter()
- {
- return OnKeyboardEnter();
- }
-
- private void DirectorOnPinch(global::System.IntPtr pinch)
- {
- OnPinch(new PinchGesture(pinch, false));
- }
-
- private void DirectorOnPan(global::System.IntPtr pan)
- {
- OnPan(new PanGesture(pan, false));
- }
-
- private void DirectorOnTap(global::System.IntPtr tap)
- {
- OnTap(new TapGesture(tap, false));
- }
-
- private void DirectorOnLongPress(global::System.IntPtr longPress)
- {
- OnLongPress(new LongPressGesture(longPress, false));
- }
-
- public delegate void DelegateViewWrapperImpl_0(int depth);
- public delegate void DelegateViewWrapperImpl_1();
- public delegate void DelegateViewWrapperImpl_2(global::System.IntPtr child);
- public delegate void DelegateViewWrapperImpl_3(global::System.IntPtr child);
- public delegate void DelegateViewWrapperImpl_4(int index, global::System.IntPtr propertyValue);
- public delegate void DelegateViewWrapperImpl_5(global::System.IntPtr targetSize);
- public delegate void DelegateViewWrapperImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize);
- public delegate bool DelegateViewWrapperImpl_7(global::System.IntPtr arg0);
- public delegate bool DelegateViewWrapperImpl_8(global::System.IntPtr arg0);
- public delegate bool DelegateViewWrapperImpl_9(global::System.IntPtr arg0);
- public delegate bool DelegateViewWrapperImpl_10(global::System.IntPtr arg0);
- public delegate void DelegateViewWrapperImpl_11(global::System.IntPtr size, global::System.IntPtr container);
- public delegate void DelegateViewWrapperImpl_12(int policy, int dimension);
- public delegate global::System.IntPtr DelegateViewWrapperImpl_13();
- public delegate float DelegateViewWrapperImpl_14(global::System.IntPtr child, int dimension);
- public delegate float DelegateViewWrapperImpl_15(float width);
- public delegate float DelegateViewWrapperImpl_16(float height);
- public delegate bool DelegateViewWrapperImpl_17(int dimension);
- public delegate bool DelegateViewWrapperImpl_18();
- public delegate void DelegateViewWrapperImpl_19(int dimension);
- public delegate void DelegateViewWrapperImpl_20(float size, int dimension);
- public delegate void DelegateViewWrapperImpl_21();
- public delegate void DelegateViewWrapperImpl_22(global::System.IntPtr child);
- public delegate void DelegateViewWrapperImpl_23(global::System.IntPtr child);
- public delegate void DelegateViewWrapperImpl_24(global::System.IntPtr styleManager, int change);
- public delegate bool DelegateViewWrapperImpl_25();
- public delegate bool DelegateViewWrapperImpl_26(global::System.IntPtr gesture);
- public delegate bool DelegateViewWrapperImpl_27(global::System.IntPtr touch);
- public delegate bool DelegateViewWrapperImpl_28(bool isIncrease);
- public delegate bool DelegateViewWrapperImpl_29();
- public delegate void DelegateViewWrapperImpl_30();
- public delegate void DelegateViewWrapperImpl_31();
- public delegate global::System.IntPtr DelegateViewWrapperImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled);
- public delegate void DelegateViewWrapperImpl_33(global::System.IntPtr commitedFocusableActor);
- public delegate bool DelegateViewWrapperImpl_34();
- public delegate void DelegateViewWrapperImpl_35(global::System.IntPtr pinch);
- public delegate void DelegateViewWrapperImpl_36(global::System.IntPtr pan);
- public delegate void DelegateViewWrapperImpl_37(global::System.IntPtr tap);
- public delegate void DelegateViewWrapperImpl_38(global::System.IntPtr longPress);
- public delegate void DelegateViewWrapperImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback);
- public delegate void DelegateViewWrapperImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback);
-
- private DelegateViewWrapperImpl_0 Delegate0;
- private DelegateViewWrapperImpl_1 Delegate1;
- private DelegateViewWrapperImpl_2 Delegate2;
- private DelegateViewWrapperImpl_3 Delegate3;
- private DelegateViewWrapperImpl_4 Delegate4;
- private DelegateViewWrapperImpl_5 Delegate5;
- private DelegateViewWrapperImpl_6 Delegate6;
- private DelegateViewWrapperImpl_7 Delegate7;
- private DelegateViewWrapperImpl_8 Delegate8;
- private DelegateViewWrapperImpl_9 Delegate9;
- private DelegateViewWrapperImpl_10 Delegate10;
- private DelegateViewWrapperImpl_11 Delegate11;
- private DelegateViewWrapperImpl_12 Delegate12;
- private DelegateViewWrapperImpl_13 Delegate13;
- private DelegateViewWrapperImpl_14 Delegate14;
- private DelegateViewWrapperImpl_15 Delegate15;
- private DelegateViewWrapperImpl_16 Delegate16;
- private DelegateViewWrapperImpl_17 Delegate17;
- private DelegateViewWrapperImpl_18 Delegate18;
- private DelegateViewWrapperImpl_19 Delegate19;
- private DelegateViewWrapperImpl_20 Delegate20;
- private DelegateViewWrapperImpl_21 Delegate21;
- private DelegateViewWrapperImpl_22 Delegate22;
- private DelegateViewWrapperImpl_23 Delegate23;
- private DelegateViewWrapperImpl_24 Delegate24;
- private DelegateViewWrapperImpl_25 Delegate25;
- private DelegateViewWrapperImpl_26 Delegate26;
- private DelegateViewWrapperImpl_27 Delegate27;
- private DelegateViewWrapperImpl_28 Delegate28;
- private DelegateViewWrapperImpl_29 Delegate29;
- private DelegateViewWrapperImpl_30 Delegate30;
- private DelegateViewWrapperImpl_31 Delegate31;
- private DelegateViewWrapperImpl_32 Delegate32;
- private DelegateViewWrapperImpl_33 Delegate33;
- private DelegateViewWrapperImpl_34 Delegate34;
- private DelegateViewWrapperImpl_35 Delegate35;
- private DelegateViewWrapperImpl_36 Delegate36;
- private DelegateViewWrapperImpl_37 Delegate37;
- private DelegateViewWrapperImpl_38 Delegate38;
- private DelegateViewWrapperImpl_39 Delegate39;
- private DelegateViewWrapperImpl_40 Delegate40;
-
- public enum CustomViewBehaviour
- {
- VIEW_BEHAVIOUR_DEFAULT = 0,
- DISABLE_SIZE_NEGOTIATION = 1 << 0,
- REQUIRES_KEYBOARD_NAVIGATION_SUPPORT = 1 << 5,
- DISABLE_STYLE_CHANGE_SIGNALS = 1 << 6,
- LAST_VIEW_BEHAVIOUR_FLAG
- }
-
- public static readonly int VIEW_BEHAVIOUR_FLAG_COUNT = NDalicManualPINVOKE.ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get();
- }
-}
+++ /dev/null
-#!/usr/bin/env ruby
-require 'pathname'
-require 'scanf'
-
-# Script does the following:
-# - greps dali-core for DALI_PROPERTY macro which holds all the information about a property ( type, read only etc)
-# - uses the filename of the macro to detect the class the properties belong to. E.g. actor-impl.cpp = Actor
-# - Scans each property macro and builds a list of DALi classes with an array of properties
-# - Generates the csharp get/set code for each property
-# - Pastes the property get / set code into the DALi csharp files
-
-# Given a DALi C++ property type this table stores the
-# information needed to produce a csharp getter / setter
-$typeTable = [
- ["BOOLEAN", "bool", "ref", "bool temp = false;"],
- ["FLOAT", "float", "ref", "float temp = 0.0f;"],
- ["INTEGER", "int", "ref", "int temp = 0;"],
- ["VECTOR2", "Vector2", "", "Vector2 temp = new Vector2(0.0f,0.0f);"],
- ["VECTOR3", "Vector3", "", "Vector3 temp = new Vector3(0.0f,0.0f,0.0f);"],
- ["VECTOR4", "Vector4", "", "Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);"],
- ["MATRIX3", "Matrix3", "", "Matrix3 temp = new Matrix3();"],
- ["MATRIX", "Matrix", "", "Matrix temp = new Matrix();" ],
- ["RECTANGLE", "Rectangle", "", "Rectangle temp = new Rectangle(0,0,0,0);"],
- ["ROTATION", "Rotation", "", "Rotation temp = new Rotation();"],
- ["STRING", "string", "out", "string temp;"],
- ["ARRAY", "Dali.Property.Array", "", "Dali.Property.Array temp = new Dali.Property.Array();"],
- ["MAP", "Dali.Property.Map", "", "Dali.Property.Map temp = new Dali.Property.Map();"],
- ]
-
-# Some csharp classes are renamed ( e.g. C++ Control is called View in C#)
-$renameMap = [
- ["Control", "View"]
- ]
-
-$daliSwigPath = String.new;
-
-def getCSharpName( cppClassName )
-
- entry = $renameMap.select{ |a| a.first == cppClassName }
- if( entry.empty?)
- return cppClassName
- end
- return entry[0][1]
-end
-
-# use the table above to get information for a specific type
-def getCSharpType( type )
-
- entry = $typeTable.select{ |a| a.first == type }
- if( entry.empty? )
- return nil
- end
- return entry[0]
-end
-
-
-# Property struct stores the information about a property after parsing the C++ DALI_PROPERTY macro
-$propertyStruct = Struct.new("Property", :name, :type, :writable, :animatable,:constrainInput, :enum, :shortenum, :develAPI, :csharpGetter, :csharpSetter, :childProperty,)
-
-# daliClass struct stores a class name and an array of properties
-$daliClassStruct = Struct.new("DaliClass", :name, :properties )
-
-# class array stores all the dali classes ( actor, image etc)
-$daliClassArray = Array.new
-
-# list of files not generated by swig that we have tried to inject properties into
-$filesNotWrapped= Array.new
-
-# stats
-$totalProperties = 0
-$totalDaliClasses = 0
-
-# global paths
-$rootPath = ""
-$daliCorePath = ""
-$daliSwigPath = ""
-
-# Extracts data DALI__PROPERTY( "points", ARRAY,true,false,false,Dali::Path::Property::POINTS )
-def extractPropertyInfo( propertyMacro )
-
- # want to extract the property name, type + read only status
- # split the DALI_PROPERTY macro definition by comma and quotes, and delete any empty segments
- data = propertyMacro.split(/[\s,"]/).reject { |s| s.empty? }
-
- propertyName = data[1]
-
- # e.g. turn viewMatrix into ViewMatrix
- propertyName[0] = propertyName[0].capitalize
-
- # extract the property enum name Dali::Path::Property::POINTS -> POINTS
- shortenum = data[6].split(":").last
-
- develAPI = false;
- # Check if the property uses devel API
- # Currently we ignore devel properties for now
- if data[6].include? "Devel"
- develAPI = true;
- puts("Ignoring DEVEL API property: " + shortenum);
- end
-
-
-
- # store the :name, :type, :writable, :animatable, :constrainInput, :enum
- property = $propertyStruct.new;
-
- property.name = propertyName
- property.type = data[2]
- property.writable = (data[3]=="true")
- property.animatable = (data[4] == "true")
- property.constrainInput = (data[5]=="true")
- property.enum = shortenum
- property.develAPI = develAPI;
- return property;
-end
-
-# Extracts data from Toolkit property definition
-def extractToolkitPropertyInfo( propertyMacro )
-
- # Extract the property name, type
- property = $propertyStruct.new;
-
- #First strip out any comments at the end of the macro, some have text like // deprecated
- commentIndex = propertyMacro.index("//");
-
- if( commentIndex )
- propertyMacro = propertyMacro.slice(0..commentIndex-1)
- end
-
-
- # Split the macro definition by comma and quotes, close bracket and delete any empty segments
- data = propertyMacro.split(/[\s,")]/).reject { |s| s.empty? }
-
- if(data[1] == "PropertyRegistration")
-
- # Properties defined in Control using PropertyRegistration
- # const PropertyRegistration Control::Impl::PROPERTY_1(typeRegistration, "styleName", Toolkit::Control::Property::STYLE_NAME, Property::STRING, &Control::Impl::SetProperty, &Control::Impl::GetProperty);
-
- # Creates an array of strings that looks like this:
- # const 0
- # PropertyRegistration 1
- # Control::Impl::PROPERTY_1 2
- # typeRegistration 3
- # styleName 4
- # Toolkit::Control::Property::STYLE_NAME 5
- # Property::STRING 6
- # &Control::Impl::SetProperty 7
- # &Control::Impl::GetProperty 8
- #
-
- property.name = data[4]
-
- propertyType = data[6].rpartition("::")
- property.type = propertyType[2]
-
- propertyEnum = data[5].rpartition("::")
- property.enum = propertyEnum[2]
-
- else
-
- # Properties defined in macro DALI_PROPERTY_REGISTRATION or DALI_ANIMATABLE_PROPERTY_REGISTRATION or DALI_CHILD_PROPERTY_REGISTRATION
- # or DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT:
- # DALI_PROPERTY_REGISTRATION(Toolkit, TextLabel, "multiLine", BOOLEAN, MULTI_LINE)
- # DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT(Toolkit, ImageView, "pixelArea", Vector4(0.f, 0.f, 1.f, 1.f), PIXEL_AREA)
-
- # Creates an array of strings that looks like this:
- # DALI_PROPERTY_REGISTRATION( 0
- # Toolkit 1
- # PageTurnView 2
- # pageSize 3
- # VECTOR2 4
- # PAGE_SIZE 5
- #
-
- property.name = data[3]
-
- #puts property.name
- if property.name == "image"
- property.name = "imageMap"
- end
-
- if( data[0] == "DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT(" )
- # TODO: Need to work out the property type from the value
- property.type = "VECTOR4"
- else
- property.type = data[4]
- end
-
- # last item should be property enum, e.g. INPUT_POINT_SIZE
- property.enum = data[data.length-1]
-
- end
-
- # e.g. turn styleName into StyleName
- property.name[0] = property.name[0].capitalize
-
- property.writable = true
- property.animatable = false
- property.constrainInput = false
- property.childProperty = false;
-
- # check to see if it's a child property
- if( data[0] == "DALI_CHILD_PROPERTY_REGISTRATION(" )
- #puts(" #{property.name} is child property ")
- property.childProperty = true;
- end
- if( data[0] == "DALI_ANIMATABLE_PROPERTY_REGISTRATION(" )
- #puts(" #{property.name} is animatable")
- property.animatable = true;
- end
-
- return property;
-end
-
-def writePropertiesToCSharpFile( daliClass )
-
- # open the CSharp file autogenerated by SWIG
- swigFiles = $daliSwigPath + "/automatic/csharp/"
-
- # some C++ classes are renamed for C#
- className = getCSharpName( daliClass.name )
-
- fileName =(swigFiles + className ) + ".cs"
-
-
- # it's possible some classes in dali-core aren't being wrapped by swig, so if the swig generated file
- # doesn't exist just return
- if( ! File.exist?(fileName) )
- $filesNotWrapped.push("#{daliClass.name}.cs ")
- return
- end
-
- File.open(fileName, 'r+') do |file|
-
- last_line =0
- file.each { last_line = file.pos unless file.eof? }
-
- # we seek to the end of the file... minus 3 characters which lets us overwrite the 2 closing brackets
- # so we can insert the getter/setter stuff into the file.
- file.seek( last_line-3, IO::SEEK_SET)
-
- for property in daliClass.properties
-
- if( (!property.childProperty) && (!property.develAPI))
- file.write( property.csharpGetter );
- file.write( property.csharpSetter );
- end
-
- end
-
- file.write("\n}\n\n}"); # re-insert the closing brackets we over-wrote
- end
-
- puts("Injected #{daliClass.properties.length} C# Properties from #{daliClass.name} into #{className}.cs".blueBackground)
-
-end
-
-def writeChildPropertiesToCSharpFile( daliClass )
-
- # open the CSharp file autogenerated by SWIG
- swigFiles = $daliSwigPath + "/automatic/csharp/"
-
- # Add all the child properties to Control
- fileName = (swigFiles+"View") + ".cs"
-
- if( ! File.exist?(fileName) )
- return
- end
-
- File.open(fileName, 'r+') do |file|
-
- last_line =0
- file.each { last_line = file.pos unless file.eof? }
-
- # we seek to the end of the file... minus 3 characters which lets us overwrite the 2 closing brackets
- # so we can insert the getter/setter stuff into the file.
- file.seek( last_line-3, IO::SEEK_SET)
-
- $childPropertyCount = 0
-
- for property in daliClass.properties
-
- if (property.childProperty)
- file.write( property.csharpGetter );
- file.write( property.csharpSetter );
- $childPropertyCount += 1
- end
-
- end
-
- file.write("\n}\n\n}"); # re-insert the closing brackets we over-wrote
- end
-
- puts("Injected #{$childPropertyCount} C# Child Properties into #{"View"}.cs".blueBackground)
-
-end
-
-# Write the CSharp data to the generated .cs file
-def writeCSharpData
-
- for daliClass in $daliClassArray
-
- #puts ( daliClass.name )
-
-
- hasChildProperties = false
-
- for property in daliClass.properties
- propertyInfo = getCSharpType( property.type )
-
- if( propertyInfo.length() < 2 )
- # some types aren't supported yet like Rotation
- next
- end
-
- #exception case <<<
- #Tooltip gives swig build error
- if( property.name == "Tooltip" || property.name == "Color")
- next
- end
- #exception case >>>
-
- $totalProperties+=1 # keep track of total
-
- propertyType = propertyInfo[1] # e.g. bool or int
- propertyArg = propertyInfo[2] # e.g. ref or out
- tempDeclaration = propertyInfo[3] # e.g. bool temp;
-
- csharpClassName = getCSharpName(daliClass.name);
-
-
- propertyName = "#{csharpClassName}.Property.#{property.enum}"
-
- if property.childProperty
- propertyName = "#{csharpClassName}.ChildProperty.#{property.enum}"
- hasChildProperties = true
- end
-
- property.csharpGetter =" public #{propertyType} #{property.name}\n"\
- " {\n"\
- " get\n" \
- " {\n"\
- " #{tempDeclaration}\n"\
- " GetProperty( #{propertyName}).Get( #{propertyArg} temp );\n"\
- " return temp;\n"\
- " }\n"
-
- if property.writable
- #text.SetProperty(TextLabel.Property.HORIZONTAL_ALIGNMENT, new Property.Value("CENTER"));
- property.csharpSetter = " set\n" \
- " {\n"\
- " SetProperty( #{propertyName}, new Dali.Property.Value( value ) );\n" \
- " }\n"\
- " }\n"
- else
- property.csharpSetter = "}" # close the opening property declaration
- end
-
- #exception case <<<
- if( property.name == "Behavior" )
- property.csharpGetter =" public Layer.LayerBehavior #{property.name} \n"\
- " { \n"\
- " get \n" \
- " {\n"\
- " return GetBehavior();\n"\
- " }\n"
-
- property.csharpSetter = " set \n" \
- " { \n"\
- " SetBehavior( value );\n" \
- " }\n"\
- " }\n"
- end
- #exception case >>>
- end
- # write normal properties to the class's own csharp file
- writePropertiesToCSharpFile( daliClass )
- # write child properties to View.cs ( on Control has child properties)
- if (hasChildProperties)
- writeChildPropertiesToCSharpFile( daliClass )
- end
- end
-
-end
-
-def getDaliClassItem( className )
-
- # puts( "getDaliClassItem "+ className )
- index = $daliClassArray.index{ |a| a.name == className }
-
- if( index == nil)
- # create a new item along with a array for it's properites
- classItem = $daliClassStruct.new( className, Array.new )
- $daliClassArray.push( classItem )
- $totalDaliClasses+=1 # for stats
- else
- # puts("class found " + className )
- classItem = $daliClassArray[ index ]
- end
-
- return classItem;
-
-end
-
-
-
-def init
-
- pn = Pathname.new(Dir.pwd)
- fullPath = pn.to_s
-
- $rootPath = fullPath.slice(0..( fullPath.index('/dali-toolkit')))
- $daliCorePath = $rootPath + "dali-core/dali" # source code path
- $daliSwigPath = $rootPath + "dali-toolkit/plugins/dali-swig"
- $daliToolkitPath = $rootPath + "dali-toolkit/dali-toolkit" # source code path
-
- puts("--------------------------------------------")
- puts("Injecting DALi properties into SWIG generated C# files ")
- puts("")
-
-
-end
-
-def writeDaliCoreProperties
-
- puts("Scanning for DALI_PROPERTY macro in dali-core");
- puts("Scanning folder: #{$daliCorePath}\n\n");
-
- # Executed a recursive grep over dali-core for the DALI_PROPERTY macro
- result =`grep --include \\*.cpp -r "DALI_PROPERTY( \" #{$daliCorePath}`
-
-
- # We now have a list of lines that look like this:
- # dali/internal/event/animation/path-impl.cpp:DALI__PROPERTY( "points", ARRAY,true,false,false,Dali::Path::Property::POINTS )
-
- lines = result.split(/\n+/);
- for line in lines
-
-
- # Split the line into file name and property macro, splt 2 means just create two strings as we don't want to split
- # property Dali::Path::Property::POINTS string as well
-
- data = line.split(":",2)
- fileName = data[0];
- macro = data[1];
-
- # Get the class name from the filename ( e.g. image-actor-impl.cpp => image-actor)
- className = File.basename(fileName,"-impl.cpp").capitalize
-
- # convert it from image-actor to ImageActor
- className = className.split(/ |\_|\-/).map(&:capitalize).join
-
- # Get the property information ( name, type, read/writeable)
- propertyInfo = extractPropertyInfo( macro );
-
- # get or create a new DALi class item which stores the property information
- classItem = getDaliClassItem( className )
-
- classItem.properties.push( propertyInfo )
-
- end
-
- writeCSharpData()
-end
-
-def writeDaliToolkitProperties
-
-
- puts("\nScanning for PROPERTY_REGISTRATION macros in dali-toolkit");
- puts("Scanning folder: #{$daliToolkitPath}\n\n");
-
- $daliClassArray.clear;
-
- # Executed a recursive grep over dali-toolkit for following macros
- # DALI_PROPERTY_REGISTRATION
- # DALI_ANIMATABLE_PROPERTY_REGISTRATION
- # DALI_CHILD_PROPERTY_REGISTRATION
- result =`grep --include \\*.cpp -w 'Control::Impl::SetProperty\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION_WITH_DEFAULT(\\|DALI_CHILD_PROPERTY_REGISTRATION(\\|DALI_ANIMATABLE_PROPERTY_REGISTRATION(\\|DALI_PROPERTY_REGISTRATION' -r #{$daliToolkitPath}`
-
- if( result == "" )
- puts("Error parsing #{$daliToolkitPath} no properties found")
- return
- end
- # create an array to store each DALi class and it's assoc
- classArray = Array.new
-
- # We now have a list of lines that look like this:
- # text-controls/text-label-impl.cpp:DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "multiLine", BOOLEAN, MULTI_LINE )
- lines = result.split(/\n+/);
- for line in lines
-
-
- # Split the line into file name and property macro, split 2 means just create two strings
- data = line.split(":",2)
- fileName = data[0];
- macro = data[1];
-
- # Get the class name from the filename ( e.g. image-actor-impl.cpp => image-actor)
- className = File.basename(fileName,"-impl.cpp").capitalize
-
- # convert it from image-actor to ImageActor
- className = className.split(/ |\_|\-/).map(&:capitalize).join
-
- #puts(className);
- #puts(fileName);
-
- # Get the property information ( name, type, read/writeable)
- propertyInfo = extractToolkitPropertyInfo( macro );
-
- # get or create a new DALi class item which stores the property information
- classItem = getDaliClassItem( className )
-
- # exclusion of control-data-impl
- if ( className != "ControlData" )
- classItem.properties.push( propertyInfo )
- end
-
- end
-
- writeCSharpData()
-
-end
-
-# helper class to color the background
-class String
-def blueBackground; "\e[44m#{self}\e[0m" end
-end
-
-def writeStats
-
- puts("\nFiles that have not been wrapped file by SWIG ( not included in dali.i file):")
- for i in $filesNotWrapped
- puts(i)
- end
-
- puts("Done. Injected #{$totalProperties} properties into #{$totalDaliClasses} DALi C# classes".blueBackground)
-
-end
-
-init()
-
-writeDaliCoreProperties()
-
-writeDaliToolkitProperties()
-
-writeStats()
-
+++ /dev/null
-/** 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.
-*
-*/
-
-using System;
-using System.Runtime.InteropServices;
-using Dali;
-
-// A spin control (for continously changing values when users can easily predict a set of values)
-
-namespace Dali
-{
- public class Spin : CustomView
- {
- private VisualBase _arrowVisual;
- private TextField _textField;
- private int _arrowVisualPropertyIndex;
- private string _arrowImage;
- private int _currentValue;
- private int _minValue;
- private int _maxValue;
- private int _singleStep;
- private bool _wrappingEnabled;
- private string _fontFamily;
- private string _fontStyle;
- private int _pointSize;
- private Color _textColor;
- private Color _textBackgroundColor;
- private int _maxTextLength;
-
- // Called by DALi Builder if it finds a Spin control in a JSON file
- static CustomView CreateInstance()
- {
- return new Spin();
- }
-
- // static constructor registers the control type (only runs once)
- static Spin()
- {
- // ViewRegistry registers control type with DALi type registery
- // also uses introspection to find any properties that need to be registered with type registry
- ViewRegistry.Instance.Register(CreateInstance, typeof(Spin));
- }
-
- public Spin() : base(typeof(Spin).Name, ViewWrapperImpl.CustomViewBehaviour.REQUIRES_KEYBOARD_NAVIGATION_SUPPORT)
- {
-
- }
-
- public override void OnInitialize()
- {
- // Initialize the propertiesControl
- _arrowImage = "./images/arrow.png";
- _textBackgroundColor = new Color(0.6f, 0.6f, 0.6f, 1.0f);
- _currentValue = 0;
- _minValue = 0;
- _maxValue = 0;
- _singleStep = 1;
- _maxTextLength = 0;
-
- // Create image visual for the arrow keys
- _arrowVisualPropertyIndex = RegisterProperty("ArrowImage", new Dali.Property.Value(_arrowImage), Dali.Property.AccessMode.READ_WRITE);
- _arrowVisual = VisualFactory.Get().CreateVisual(_arrowImage, new Uint16Pair(150, 150));
- RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual);
-
- // Create a text field
- _textField = new TextField();
- _textField.ParentOrigin = NDalic.ParentOriginCenter;
- _textField.AnchorPoint = NDalic.AnchorPointCenter;
- _textField.WidthResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- _textField.HeightResizePolicy = "SIZE_RELATIVE_TO_PARENT";
- _textField.SizeModeFactor = new Vector3(1.0f, 0.45f, 1.0f);
- _textField.PlaceholderText = "----";
- _textField.BackgroundColor = _textBackgroundColor;
- _textField.HorizontalAlignment = "Center";
- _textField.VerticalAlignment = "Center";
- _textField.SetKeyboardFocusable(true);
- _textField.Name = "_textField";
-
- this.Add(_textField);
-
- _textField.KeyInputFocusGained += TextFieldKeyInputFocusGained;
- _textField.KeyInputFocusLost += TextFieldKeyInputFocusLost;
- }
-
- public override Vector3 GetNaturalSize()
- {
- return new Vector3(150.0f, 150.0f, 0.0f);
- }
-
- public void TextFieldKeyInputFocusGained(object source, KeyInputFocusGainedEventArgs e)
- {
- // Make sure when the current spin that takes input focus also takes the keyboard focus
- // For example, when you tap the spin directly
- FocusManager.Instance.SetCurrentFocusActor(_textField);
- }
-
- public void TextFieldKeyInputFocusLost(object source, KeyInputFocusLostEventArgs e)
- {
- int previousValue = _currentValue;
-
- // If the input value is invalid, change it back to the previous valid value
- if (int.TryParse(_textField.Text, out _currentValue))
- {
- if (_currentValue < _minValue || _currentValue > _maxValue)
- {
- _currentValue = previousValue;
- }
- }
- else
- {
- _currentValue = previousValue;
- }
-
- // Otherwise take the new value
- this.Value = _currentValue;
- }
-
- public override Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, View.KeyboardFocus.Direction direction, bool loopEnabled)
- {
- // Respond to Up/Down keys to change the value while keeping the current spin focused
- Actor nextFocusedActor = currentFocusedActor;
- if (direction == View.KeyboardFocus.Direction.UP)
- {
- this.Value += this.Step;
- nextFocusedActor = _textField;
- }
- else if (direction == View.KeyboardFocus.Direction.DOWN)
- {
- this.Value -= this.Step;
- nextFocusedActor = _textField;
- }
- else
- {
- // Return a native empty handle as nothing can be focused in the left or right
- nextFocusedActor = new Actor();
- nextFocusedActor.Reset();
- }
-
- return nextFocusedActor;
- }
-
-
- [ScriptableProperty()]
- public int Value
- {
- get
- {
- return _currentValue;
- }
- set
- {
-
- Console.WriteLine("Value set to " + value);
- _currentValue = value;
-
- // Make sure no invalid value is accepted
- if (_currentValue < _minValue)
- {
- _currentValue = _minValue;
- }
-
- if (_currentValue > _maxValue)
- {
- _currentValue = _maxValue;
- }
-
- _textField.Text = _currentValue.ToString();
- }
- }
- // MinValue property of type int:
- [ScriptableProperty()]
- public int MinValue
- {
- get
- {
- return _minValue;
- }
- set
- {
- _minValue = value;
- }
- }
-
- // MaxValue property of type int:
- [ScriptableProperty()]
- public int MaxValue
- {
- get
- {
- return _maxValue;
- }
- set
- {
- _maxValue = value;
- }
- }
-
- // Step property of type int:
- [ScriptableProperty()]
- public int Step
- {
- get
- {
- return _singleStep;
- }
- set
- {
- _singleStep = value;
- }
- }
-
- // WrappingEnabled property of type bool:
- [ScriptableProperty()]
- public bool WrappingEnabled
- {
- get
- {
- return _wrappingEnabled;
- }
- set
- {
- _wrappingEnabled = value;
- }
- }
-
- // TextPointSize property of type int:
- [ScriptableProperty()]
- public int TextPointSize
- {
- get
- {
- return _pointSize;
- }
- set
- {
- _pointSize = value;
- _textField.PointSize = _pointSize;
- }
- }
-
- // TextColor property of type Color:
- [ScriptableProperty()]
- public Color TextColor
- {
- get
- {
- return _textColor;
- }
- set
- {
- Console.WriteLine("TextColor set to " + value.R + "," + value.G + "," + value.B);
-
- _textColor = value;
- _textField.TextColor = _textColor;
- }
- }
-
- // MaxTextLength property of type int:
- [ScriptableProperty()]
- public int MaxTextLength
- {
- get
- {
- return _maxTextLength;
- }
- set
- {
- _maxTextLength = value;
- _textField.MaxLength = _maxTextLength;
- }
- }
-
- public TextField SpinText
- {
- get
- {
- return _textField;
- }
- set
- {
- _textField = value;
- }
- }
-
- // Indicator property of type string:
- public string IndicatorImage
- {
- get
- {
- return _arrowImage;
- }
- set
- {
- _arrowImage = value;
- _arrowVisual = VisualFactory.Get().CreateVisual(_arrowImage, new Uint16Pair(150, 150));
- RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual);
- }
- }
- }
-}
-