//you can override it to clean-up your own resources.
protected override void Dispose(DisposeTypes type)
{
- if (disposed)
+ if(disposed)
{
return;
}
- if (type == DisposeTypes.Explicit)
+ if(type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
Delegate[] delegateList = _keyEventHandler.GetInvocationList();
// Oring the result of each callback.
- foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
+ foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
{
- result |= del(this, e);
+ result |= del( this, e );
}
}
}
switch (temp)
{
- case 0:\r
- {\r
- return States.Normal;\r
- }
- case 1:\r
- {\r
- return States.Focused;\r
- }
- case 2:\r
- {\r
- return States.Disabled;\r
- }
- default:\r
- {\r
- return States.Normal;\r
- }
+ case 0:
+ {
+ return States.Normal;
+ }
+ case 1:
+ {
+ return States.Focused;
+ }
+ case 2:
+ {
+ return States.Disabled;
+ }
+ default:
+ {
+ return States.Normal;
+ }
}
}
set
string valueToString = "";
switch (value)
{
- case States.Normal:\r
- {\r
- valueToString = "NORMAL";\r
- break;\r
- }
- case States.Focused:\r
- {\r
- valueToString = "FOCUSED";\r
- break;\r
- }
- case States.Disabled:\r
- {\r
- valueToString = "DISABLED";\r
- break;\r
- }
- default:\r
- {\r
- valueToString = "NORMAL";\r
- break;\r
- }
+ case States.Normal:
+ {
+ valueToString = "NORMAL";
+ break;
+ }
+ case States.Focused:
+ {
+ valueToString = "FOCUSED";
+ break;
+ }
+ case States.Disabled:
+ {
+ valueToString = "DISABLED";
+ break;
+ }
+ default:
+ {
+ valueToString = "NORMAL";
+ break;
+ }
}
SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
}
string valueToString = "";
switch (value)
{
- case Tizen.NUI.HorizontalAlignmentType.Left:\r
- {\r
- valueToString = "left";\r
- break;\r
- }
- case Tizen.NUI.HorizontalAlignmentType.Center:\r
- {\r
- valueToString = "center";\r
- break;\r
- }
- case Tizen.NUI.HorizontalAlignmentType.Right:\r
- {\r
- valueToString = "right";\r
- break;\r
- }
- default:\r
- {\r
- valueToString = "left";\r
- break;\r
- }
+ case Tizen.NUI.HorizontalAlignmentType.Left:
+ {
+ valueToString = "left";
+ break;
+ }
+ case Tizen.NUI.HorizontalAlignmentType.Center:
+ {
+ valueToString = "center";
+ break;
+ }
+ case Tizen.NUI.HorizontalAlignmentType.Right:
+ {
+ valueToString = "right";
+ break;
+ }
+ default:
+ {
+ valueToString = "left";
+ break;
+ }
}
SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
string valueToString = "";
switch (value)
{
- case Tizen.NUI.VerticalAlignmentType.Top:\r
- {\r
- valueToString = "top";\r
- break;\r
- }
- case Tizen.NUI.VerticalAlignmentType.Center:\r
- {\r
- valueToString = "center";\r
- break;\r
- }
- case Tizen.NUI.VerticalAlignmentType.Bottom:\r
- {\r
- valueToString = "bottom";\r
- break;\r
- }
- default:\r
- {\r
- valueToString = "top";\r
- break;\r
- }
+ case Tizen.NUI.VerticalAlignmentType.Top:
+ {
+ valueToString = "top";
+ break;
+ }
+ case Tizen.NUI.VerticalAlignmentType.Center:
+ {
+ valueToString = "center";
+ break;
+ }
+ case Tizen.NUI.VerticalAlignmentType.Bottom:
+ {
+ valueToString = "bottom";
+ break;
+ }
+ default:
+ {
+ valueToString = "top";
+ break;
+ }
}
SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
}
return ret;
}
- internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)\r
- {
+ internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
switch (temp)
{
- case "NORMAL":\r
- return DrawModeType.Normal;
- case "OVERLAY_2D":\r
- return DrawModeType.Overlay2D;
- case "STENCIL":\r
- return DrawModeType.Stencil;
- default:\r
- return DrawModeType.Normal;
+ case "NORMAL":
+ return DrawModeType.Normal;
+ case "OVERLAY_2D":
+ return DrawModeType.Overlay2D;
+ case "STENCIL":
+ return DrawModeType.Stencil;
+ default:
+ return DrawModeType.Normal;
}
}
set
}
switch (temp)
{
- case "DISABLED":\r
- return ClippingModeType.Disabled;
- case "CLIP_CHILDREN":\r
- return ClippingModeType.ClipChildren;
- default:\r
- return ClippingModeType.Disabled;
+ case "DISABLED":
+ return ClippingModeType.Disabled;
+ case "CLIP_CHILDREN":
+ return ClippingModeType.ClipChildren;
+ default:
+ return ClippingModeType.Disabled;
}
}
set
/*********************************************************************************/\r
/*** will be removed/deprecated ***/\r
/*********************************************************************************/\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
{
add
}
}\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
{
add
}
}
- }\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
+ }
public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
{
add
}
}
- }\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
+ }
public Position AnchorPoint
{
get
SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
}
}\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
+\r
public Size Size
{
get
SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
}
}
+
+
/*********************************************************************************/\r
/*** will be removed/deprecated ***/\r
/*********************************************************************************/\r
/// </summary>
protected override void Dispose(DisposeTypes type)
{
- if (disposed)
+ if(disposed)
{
return;
}
- if (type == DisposeTypes.Explicit)
+ if(type == DisposeTypes.Explicit)
{
//Called by User
//Release your own managed resources here.
Window ret = new Window(NDalicPINVOKE.Stage_GetCurrent(), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
- }\r
-\r
- internal static bool IsInstalled()\r
- {
+ }
+
+ internal static bool IsInstalled()
+ {
bool ret = NDalicPINVOKE.Stage_IsInstalled();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;\r
- }
+ return ret;
+ }
/*********************************************************************************/\r
/*** will be removed/deprecated ***/\r
/// Gets the count of supported auxiliary hints of the window.
/// </summary>
/// <returns>The number of supported auxiliary hints.</returns>
- public uint GetSupportedAuxiliaryHintCount()\r
- {
+ public uint GetSupportedAuxiliaryHintCount() {
uint ret = NDalicPINVOKE.GetSupportedAuxiliaryHintCount(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="index">The index of the supported auxiliary hint lists.</param>
/// <returns>The auxiliary hint string of the index.</returns>
- public string GetSupportedAuxiliaryHint(uint index)\r
- {
+ public string GetSupportedAuxiliaryHint(uint index) {
string ret = NDalicPINVOKE.GetSupportedAuxiliaryHint(swigCPtr, index);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="hint">The auxiliary hint string.</param>
/// <param name="value">The value string.</param>
/// <returns>The ID of created auxiliary hint, or 0 on failure.</returns>
- public uint AddAuxiliaryHint(string hint, string value)\r
- {
+ public uint AddAuxiliaryHint(string hint, string value) {
uint ret = NDalicPINVOKE.AddAuxiliaryHint(swigCPtr, hint, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="id">The ID of the auxiliary hint.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool RemoveAuxiliaryHint(uint id)\r
- {
+ public bool RemoveAuxiliaryHint(uint id) {
bool ret = NDalicPINVOKE.RemoveAuxiliaryHint(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// <param name="id">The auxiliary hint ID.</param>
/// <param name="value">The value string to be set.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetAuxiliaryHintValue(uint id, string value)\r
- {
+ public bool SetAuxiliaryHintValue(uint id, string value) {
bool ret = NDalicPINVOKE.SetAuxiliaryHintValue(swigCPtr, id, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="id">The auxiliary hint ID.</param>
/// <returns>The string value of the auxiliary hint ID, or an empty string if none exists.</returns>
- public string GetAuxiliaryHintValue(uint id)\r
- {
+ public string GetAuxiliaryHintValue(uint id) {
string ret = NDalicPINVOKE.GetAuxiliaryHintValue(swigCPtr, id);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="hint">The auxiliary hint string.</param>
/// <returns>The ID of auxiliary hint string, or 0 on failure.</returns>
- public uint GetAuxiliaryHintId(string hint)\r
- {
+ public uint GetAuxiliaryHintId(string hint) {
uint ret = NDalicPINVOKE.GetAuxiliaryHintId(swigCPtr, hint);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// Sets a region to accept input events.
/// </summary>
/// <param name="inputRegion">The region to accept input events.</param>
- public void SetInputRegion(Rectangle inputRegion)\r
- {
+ public void SetInputRegion(Rectangle inputRegion) {
NDalicPINVOKE.SetInputRegion(swigCPtr, Rectangle.getCPtr(inputRegion));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// </summary>
/// <param name="level">The notification window level.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetNotificationLevel(NotificationLevel level)\r
- {
+ public bool SetNotificationLevel(NotificationLevel level) {
bool ret = NDalicPINVOKE.SetNotificationLevel(swigCPtr, (int)level);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// Gets a priority level for the specified notification window.
/// </summary>
/// <returns>The notification window level.</returns>
- public NotificationLevel GetNotificationLevel()\r
- {
+ public NotificationLevel GetNotificationLevel() {
NotificationLevel ret = (NotificationLevel)NDalicPINVOKE.GetNotificationLevel(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// Sets a transparent window's visual state to opaque.
/// </summary>
/// <param name="opaque">Whether the window's visual state is opaque.</param>
- public void SetOpaqueState(bool opaque)\r
- {
+ public void SetOpaqueState(bool opaque) {
NDalicPINVOKE.SetOpaqueState(swigCPtr, opaque);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// Returns whether a transparent window's visual state is opaque or not.
/// </summary>
/// <returns>True if the window's visual state is opaque, false otherwise.</returns>
- public bool IsOpaqueState()\r
- {
+ public bool IsOpaqueState() {
bool ret = NDalicPINVOKE.IsOpaqueState(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="screenMode">The screen mode.</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetScreenMode(ScreenMode screenMode)\r
- {
+ public bool SetScreenMode(ScreenMode screenMode) {
bool ret = NDalicPINVOKE.SetScreenMode(swigCPtr, (int)screenMode);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// Gets a screen mode of the window.
/// </summary>
/// <returns>The screen mode.</returns>
- public ScreenMode GetScreenMode()\r
- {
+ public ScreenMode GetScreenMode() {
ScreenMode ret = (ScreenMode)NDalicPINVOKE.GetScreenMode(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// </summary>
/// <param name="brightness">The preferred brightness (0 to 100).</param>
/// <returns>True if no error occurred, false otherwise.</returns>
- public bool SetBrightness(int brightness)\r
- {
+ public bool SetBrightness(int brightness) {
bool ret = NDalicPINVOKE.SetBrightness(swigCPtr, brightness);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
/// Gets preffered brightness of the window.
/// </summary>
/// <returns>The preffered brightness.</returns>
- public int GetBrightness()\r
- {
+ public int GetBrightness() {
int ret = NDalicPINVOKE.GetBrightness(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
{
return GetLayerCount();
}
- }\r
-\r
-\r
- /*********************************************************************************/\r
- /*** will be removed/deprecated ***/\r
- /*********************************************************************************/\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
- public event EventHandler<TouchEventArgs> TouchEvent
- {
- add
- {
- lock (this)
- {
- _stageTouchHandler += value;
- _stageTouchCallbackDelegate = OnStageTouch;
- this.TouchSignal().Connect(_stageTouchCallbackDelegate);
- }
- }
- remove
- {
- lock (this)
- {
- if (_stageTouchHandler != null)
- {
- this.TouchSignal().Disconnect(_stageTouchCallbackDelegate);
- }
- _stageTouchHandler -= value;
- }
- }
- }\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
- public event EventHandler<WheelEventArgs> WheelEvent
- {
- add
- {
- if (_stageWheelHandler == null)
- {
- _stageWheelCallbackDelegate = OnStageWheel;
- WheelEventSignal().Connect(_stageWheelCallbackDelegate);
- }
- _stageWheelHandler += value;
- }
- remove
- {
- _stageWheelHandler -= value;
- if (_stageWheelHandler == null && WheelEventSignal().Empty() == false)
- {
- WheelEventSignal().Disconnect(_stageWheelCallbackDelegate);
- }
- }
- }\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>
- public event EventHandler<KeyEventArgs> KeyEvent
- {
- add
- {
- if (_stageKeyHandler == null)
- {
- _stageKeyCallbackDelegate = OnStageKey;
- KeyEventSignal().Connect(_stageKeyCallbackDelegate);
- }
- _stageKeyHandler += value;
- }
- remove
- {
- _stageKeyHandler -= value;
- if (_stageKeyHandler == null && KeyEventSignal().Empty() == false)
- {
- KeyEventSignal().Disconnect(_stageKeyCallbackDelegate);
- }
- }
- }\r
-\r
- /// <summary>\r
- /// will be deprecated at nui_0.2.50\r
- /// </summary>\r
- /// <param name="layer"></param>\r
- public void AddLayer(Layer layer)\r
- {\r
- NDalicPINVOKE.Stage_Add(stageCPtr, Layer.getCPtr(layer));\r
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
- }\r
-\r
- /*********************************************************************************/\r
- /*** will be removed/deprecated ***/\r
- /*********************************************************************************/\r
-\r
-\r
+ }
}
}