*
*/
+%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);
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();
%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
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
+ TEXT,
+ N_PATCH,
+ SVG,
+ ANIMATED_IMAGE
%}
%typemap(cscode) Dali::Actor::Property %{
// 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& );
#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" {
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
Mesh = Dali.VisualType.MESH,
Primitive = Dali.VisualType.PRIMITIVE,
WireFrame = Dali.VisualType.WIREFRAME,
- Text = Dali.VisualType.TEXT
+ 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 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
[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();
}
}