public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ImageView.ResourceUrl), typeof(string), typeof(ImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
{
var imageView = (ImageView)bindable;
- if (newValue != null)
- {
- string url = (string)newValue;
- imageView._url = url;
- imageView.UpdateImage();
- }
+ string url = (string)newValue;
+ url = (url == null ? "" : url);
+
+ imageView.UpdateImage(ImageVisualProperty.URL, new PropertyValue(url));
},
defaultValueCreator: (bindable) =>
{
var imageView = (ImageView)bindable;
- if(imageView._imageType == ImageType.Normal)
- {
- Tizen.NUI.Object.GetProperty(imageView.swigCPtr, ImageView.Property.IMAGE).Get(out imageView._url);
- }
- return imageView._url;
+ string ret = "";
+ PropertyMap imageMap = (PropertyMap)imageView.GetValue(ImageProperty);
+ imageMap.Find(ImageVisualProperty.URL)?.Get(out ret);
+ return ret;
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
if (imageView._border == null)
{
- imageView._image = map;
- imageView.UpdateImage();
+ Tizen.NUI.Object.SetProperty(imageView.swigCPtr, ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(map));
}
}
},
public static readonly BindableProperty BorderProperty = BindableProperty.Create("Border", typeof(Rectangle), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) =>
{
var imageView = (ImageView)bindable;
+ imageView._border = (Rectangle)newValue;
if (newValue != null)
{
- imageView._border = (Rectangle)newValue;
- imageView.UpdateImage();
+ imageView.UpdateImage(ImageVisualProperty.Border, new PropertyValue(imageView._border));
+ }
+ else
+ {
+ imageView.UpdateImage(ImageVisualProperty.Border, new PropertyValue(new Rectangle(0,0,0,0)));
}
},
defaultValueCreator: (bindable) =>
var imageView = (ImageView)bindable;
if (newValue != null)
{
- imageView._borderOnly = (bool)newValue;
- imageView.UpdateImage();
+ imageView.UpdateImage(ImageVisualProperty.BorderOnly, new PropertyValue((bool)newValue));
}
},
defaultValueCreator: (bindable) =>
{
var imageView = (ImageView)bindable;
- return imageView._borderOnly ?? false;
+ bool ret = false;
+ PropertyMap imageMap = (PropertyMap)imageView.GetValue(ImageProperty);
+ imageMap.Find(ImageVisualProperty.BorderOnly)?.Get(out ret);
+ return ret;
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
var imageView = (ImageView)bindable;
if (newValue != null)
{
- imageView._synchronousLoading = (bool)newValue;
- imageView.UpdateImage();
+ imageView.UpdateImage(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)newValue));
}
},
defaultValueCreator: (bindable) =>
{
var imageView = (ImageView)bindable;
- return imageView._synchronousLoading ?? false;
+ bool ret = false;
+ PropertyMap imageMap = (PropertyMap)imageView.GetValue(ImageProperty);
+ imageMap.Find(ImageVisualProperty.SynchronousLoading)?.Get(out ret);
+ return ret;
});
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
var imageView = (ImageView)bindable;
if (newValue != null)
{
- imageView._orientationCorrection = (bool)newValue;
- imageView.UpdateImage();
+ imageView.UpdateImage(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)newValue));
}
},
defaultValueCreator: (bindable) =>
{
var imageView = (ImageView)bindable;
- return imageView._orientationCorrection ?? false;
+
+ bool ret = false;
+ PropertyMap imageMap = (PropertyMap)imageView.GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.OrientationCorrection)?.Get(out ret);
+
+ return ret;
});
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
private _resourceLoadedCallbackType _resourceLoadedCallback;
private Rectangle _border;
- private PropertyMap _nPatchMap;
- private bool? _synchronousLoading;
- private bool? _borderOnly;
- private string _url;
- private bool? _orientationCorrection;
- private PropertyMap _image;
- private ImageType _imageType;
/// <summary>
/// Creates an initialized ImageView.
/// <since_tizen> 3 </since_tizen>
public ImageView(string url) : this(Interop.ImageView.ImageView_New__SWIG_2(url), true)
{
- _url = url;
+ UpdateImage(ImageVisualProperty.URL, new PropertyValue(url));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal ImageView(string url, Uint16Pair size) : this(Interop.ImageView.ImageView_New__SWIG_3(url, Uint16Pair.getCPtr(size)), true)
{
- _url = url;
+ UpdateImage(ImageVisualProperty.URL, new PropertyValue(url));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
set
{
- _url = (value == null ? "" : value);
- SetValue(ResourceUrlProperty, _url);
- NotifyPropertyChanged();
-
- PropertyMap temp = new PropertyMap();
- temp.Insert(ImageVisualProperty.URL, new PropertyValue(value));
-
- PropertyMap imageMap = Image;
- imageMap.Merge(temp);
-
- SetValue(ImageProperty, imageMap);
-
+ SetValue(ResourceUrlProperty, value);
+ NotifyPropertyChanged();
}
}
{
if (_border == null)
{
- if (_url != null) { value.Add("url", new PropertyValue(_url)); }
SetProperty(ImageView.Property.IMAGE, new Tizen.NUI.PropertyValue(value));
NotifyPropertyChanged();
}
/// <since_tizen> 3 </since_tizen>
public void SetImage(string url)
{
- _url = url;
- Interop.ImageView.ImageView_SetImage__SWIG_1(swigCPtr, url);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ UpdateImage(ImageVisualProperty.URL, new PropertyValue(url));
}
/// <summary>
get
{
string ret = "";
- Image.Find(ImageVisualProperty.AlphaMaskURL)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.AlphaMaskURL)?.Get(out ret);
return ret;
}
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.AlphaMaskURL, new PropertyValue(value));
- PropertyMap imageMap = Image;
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+
imageMap.Merge(temp);
-
- SetValue(ImageProperty, imageMap);
- NotifyPropertyChanged();
+
+ SetValue(ImageProperty, imageMap);
+ NotifyPropertyChanged();
}
}
get
{
bool ret = false;
- Image.Find(ImageVisualProperty.CropToMask)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.CropToMask)?.Get(out ret);
return ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.CropToMask, new PropertyValue(value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
SetValue(ImageProperty, imageMap);
get
{
int ret = (int)FittingModeType.ShrinkToFit;
- Image.Find(ImageVisualProperty.FittingMode)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.FittingMode)?.Get(out ret);
return (FittingModeType)ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.FittingMode, new PropertyValue((int)value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
-
+
SetValue(ImageProperty, imageMap);
NotifyPropertyChanged();
}
get
{
int ret = -1;
- Image.Find(ImageVisualProperty.DesiredWidth)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.DesiredWidth)?.Get(out ret);
return ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.DesiredWidth, new PropertyValue(value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
-
+
SetValue(ImageProperty, imageMap);
NotifyPropertyChanged();
}
get
{
int ret = -1;
- Image.Find(ImageVisualProperty.DesiredHeight)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.DesiredHeight)?.Get(out ret);
return ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.DesiredHeight, new PropertyValue(value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
-
+
SetValue(ImageProperty, imageMap);
NotifyPropertyChanged();
}
get
{
int ret = (int)WrapModeType.Default;
- Image.Find(ImageVisualProperty.WrapModeU)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.WrapModeU)?.Get(out ret);
return (WrapModeType)ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.WrapModeU, new PropertyValue((int)value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
-
+
SetValue(ImageProperty, imageMap);
NotifyPropertyChanged();
}
get
{
int ret = (int)WrapModeType.Default;
- Image.Find(ImageVisualProperty.WrapModeV)?.Get(out ret);
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap?.Find(ImageVisualProperty.WrapModeV)?.Get(out ret);
return (WrapModeType)ret;
}
{
PropertyMap temp = new PropertyMap();
temp.Insert(ImageVisualProperty.WrapModeV, new PropertyValue((int)value));
-
- PropertyMap imageMap = Image;
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
imageMap.Merge(temp);
-
+
SetValue(ImageProperty, imageMap);
NotifyPropertyChanged();
}
}
+
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImageView obj)
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
internal void SetImage(string url, Uint16Pair size)
{
- _url = url;
Interop.ImageView.ImageView_SetImage__SWIG_2(swigCPtr, url, Uint16Pair.getCPtr(size));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ UpdateImage(ImageVisualProperty.URL, new PropertyValue(url));
}
internal ViewResourceReadySignal ResourceReadySignal(View view)
//You should release all of your own disposable objects here.
_border?.Dispose();
_border = null;
- _nPatchMap?.Dispose();
- _nPatchMap = null;
- _image?.Dispose();
- _image = null;
}
//Release your own unmanaged resources here.
}
}
- private void UpdateImage()
+ private void UpdateImage(int key, PropertyValue value)
{
- if (_url != null && _url != "")
+ PropertyMap temp = new PropertyMap();
+ temp.Insert(key, value);
+
+ if (_border != null)
{
- if (_border != null)
- { // for nine-patch image
- _nPatchMap = new PropertyMap();
- _nPatchMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
- _nPatchMap.Add(NpatchImageVisualProperty.URL, new PropertyValue(_url));
- _nPatchMap.Add(NpatchImageVisualProperty.Border, new PropertyValue(_border));
- if (_borderOnly != null) { _nPatchMap.Add(NpatchImageVisualProperty.BorderOnly, new PropertyValue((bool)_borderOnly)); }
- if (_synchronousLoading != null) { _nPatchMap.Add(NpatchImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
- if (_orientationCorrection != null) { _nPatchMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
- SetProperty(ImageView.Property.IMAGE, new PropertyValue(_nPatchMap));
- _imageType = ImageType.Npatch;
- }
- else if (_synchronousLoading != null || _orientationCorrection != null)
- { // for normal image, with synchronous loading property
- PropertyMap imageMap = new PropertyMap();
- imageMap.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
- imageMap.Add(ImageVisualProperty.URL, new PropertyValue(_url));
- if (_synchronousLoading != null) { imageMap.Add(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading)); }
- if (_orientationCorrection != null) { imageMap.Add(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection)); }
- SetProperty(ImageView.Property.IMAGE, new PropertyValue(imageMap));
-
- _imageType = ImageType.Specific;
- }
- else
- { // just for normal image
- SetProperty(ImageView.Property.IMAGE, new PropertyValue(_url));
- _imageType = ImageType.Normal;
- }
+ temp.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch));
}
else
{
- //Image property is set and used
- PropertyMap map = new PropertyMap();
- map.Insert(ImageVisualProperty.URL, new PropertyValue(""));
- if (_synchronousLoading != null)
- {
- map.Insert(ImageVisualProperty.SynchronousLoading, new PropertyValue((bool)_synchronousLoading));
- }
- if (_orientationCorrection != null)
- {
- map.Insert(ImageVisualProperty.OrientationCorrection, new PropertyValue((bool)_orientationCorrection));
- }
- if (_image != null)
- {
- map.Merge(_image);
- }
- SetProperty(ImageView.Property.IMAGE, new PropertyValue(map));
- _imageType = ImageType.Normal;
+ temp.Insert(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
+ temp.Insert(ImageVisualProperty.BorderOnly, new PropertyValue((false)));
}
+
+
+ PropertyMap imageMap = (PropertyMap)GetValue(ImageProperty);
+ imageMap.Merge(temp);
+
+ SetValue(ImageProperty, imageMap);
+ NotifyPropertyChanged();
+
+ temp.Dispose();
+ temp = null;
}
private void OnResourceLoaded(IntPtr view)
}
}
- internal Window(Rectangle windowPosition, string name, bool isTransparent) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTransparent), true)
+ /// <summary>
+ /// Creates a new Window.<br />
+ /// This creates an extra window in addition to the default main window<br />
+ /// </summary>
+ /// <param name="windowPosition">The position and size of the Window.</param>
+ /// <param name="name">The Window title.</param>
+ /// <param name="isTransparent">Whether Window is transparent.</param>
+ /// <returns>A new Window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Window(Rectangle windowPosition, string name, bool isTransparent) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTransparent), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Window(Rectangle windowPosition, string name) : this(Interop.Window.Window_New__SWIG_1(Rectangle.getCPtr(windowPosition), name), true)
+ /// <summary>
+ /// Creates a new Window.<br />
+ /// This creates an extra window in addition to the default main window<br />
+ /// </summary>
+ /// <param name="windowPosition">The position and size of the Window.</param>
+ /// <param name="name">The Window title.</param>
+ /// <returns>A new Window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Window(Rectangle windowPosition, string name) : this(Interop.Window.Window_New__SWIG_1(Rectangle.getCPtr(windowPosition), name), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Window(Rectangle windowPosition, string name, string className, bool isTransparent) : this(Interop.Window.Window_New__SWIG_2(Rectangle.getCPtr(windowPosition), name, className, isTransparent), true)
+ /// <summary>
+ /// Creates a new Window.<br />
+ /// This creates an extra window in addition to the default main window<br />
+ /// </summary>
+ /// <param name="windowPosition">The position and size of the Window.</param>
+ /// <param name="name">The Window title.</param>
+ /// <param name="className">The Window class name.</param>
+ /// <param name="isTransparent">Whether Window is transparent.</param>
+ /// <returns>A new Window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Window(Rectangle windowPosition, string name, string className, bool isTransparent) : this(Interop.Window.Window_New__SWIG_2(Rectangle.getCPtr(windowPosition), name, className, isTransparent), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Window(Rectangle windowPosition, string name, string className) : this(Interop.Window.Window_New__SWIG_3(Rectangle.getCPtr(windowPosition), name, className), true)
+ /// <summary>
+ /// Creates a new Window.<br />
+ /// This creates an extra window in addition to the default main window<br />
+ /// </summary>
+ /// <param name="windowPosition">The position and size of the Window.</param>
+ /// <param name="name">The Window title.</param>
+ /// <param name="className">The Window class name.</param>
+ /// <returns>A new Window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Window(Rectangle windowPosition, string name, string className) : this(Interop.Window.Window_New__SWIG_3(Rectangle.getCPtr(windowPosition), name, className), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <since_tizen> 3 </since_tizen>
public void AddLayer(Layer layer)
{
- Interop.Stage.Stage_Add(stageCPtr, Layer.getCPtr(layer));
+ Interop.Window.Add(swigCPtr, Layer.getCPtr(layer));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
LayersChildren?.Add(layer);
+ layer.SetWindow(this);
}
/// <summary>
/// <since_tizen> 3 </since_tizen>
public void RemoveLayer(Layer layer)
{
- Interop.Stage.Stage_Remove(stageCPtr, Layer.getCPtr(layer));
+ Interop.Window.Remove(swigCPtr, Layer.getCPtr(layer));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
LayersChildren?.Remove(layer);
+ layer.SetWindow(null);
}
/// <summary>
internal void Add(Layer layer)
{
- Interop.Stage.Stage_Add(stageCPtr, Layer.getCPtr(layer));
+ Interop.Window.Add(swigCPtr, Layer.getCPtr(layer));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
LayersChildren?.Add(layer);
+ layer.SetWindow(this);
}
internal void Remove(Layer layer)
{
- Interop.Stage.Stage_Remove(stageCPtr, Layer.getCPtr(layer));
+ Interop.Window.Remove(swigCPtr, Layer.getCPtr(layer));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
LayersChildren?.Remove(layer);
+ layer.SetWindow(null);
}
internal Vector2 GetSize()
{
- Vector2 ret = new Vector2(Interop.Stage.Stage_GetSize(stageCPtr), true);
+ Vector2 ret = new Vector2(Interop.Window.GetSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
// Core has been initialized, not when Stage is ready.
if (_rootLayer == null && Window.IsInstalled())
{
- _rootLayer = new Layer(Interop.Stage.Stage_GetRootLayer(stageCPtr), true);
+ _rootLayer = new Layer(Interop.Window.GetRootLayer(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
LayersChildren?.Add(_rootLayer);
+ _rootLayer.SetWindow(this);
}
return _rootLayer;
}
internal void SetBackgroundColor(Vector4 color)
{
- Interop.Stage.Stage_SetBackgroundColor(stageCPtr, Vector4.getCPtr(color));
+ Interop.Window.SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
internal Vector4 GetBackgroundColor()
{
- Vector4 ret = new Vector4(Interop.Stage.Stage_GetBackgroundColor(stageCPtr), true);
+ Vector4 ret = new Vector4(Interop.Window.GetBackgroundColor(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal KeyEventSignal KeyEventSignal()
{
- KeyEventSignal ret = new KeyEventSignal(Interop.StageSignal.Stage_KeyEventSignal(stageCPtr), false);
+ KeyEventSignal ret = new KeyEventSignal(Interop.Window.KeyEventSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal TouchSignal TouchSignal()
{
- TouchSignal ret = new TouchSignal(Interop.StageSignal.Stage_TouchSignal(stageCPtr), false);
+ TouchSignal ret = new TouchSignal(Interop.Window.TouchSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
+ /// <summary>
+ /// Dispose for Window
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void Dispose(DisposeTypes type)
+ {
+ if (disposed)
+ {
+ return;
+ }
+
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ this.DisconnectNativeSignals();
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ {
+ if (swigCMemOwn)
+ {
+ swigCMemOwn = false;
+ Interop.Window.delete_Window(swigCPtr);
+ }
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ }
+
+ base.Dispose(type);
+ }
+
internal System.IntPtr GetNativeWindowHandler()
{
System.IntPtr ret = Interop.Window.GetNativeWindowHandler(HandleRef.ToIntPtr(this.swigCPtr));