Name: csapi-nui
Summary: dali-NUI
-Version: 0.2.38
+Version: 0.2.39
Release: 1
Group: Development/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
internal Alignment(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Alignment_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Alignment obj) {
{
public const int ver1 = 1;
public const int ver2 = 2;
- public const int ver3 = 38;
+ public const int ver3 = 39;
public const int nuiVer1 = 0;
public const int nuiVer2 = 2;
- public const int nuiVer3 = 38;
+ public const int nuiVer3 = 39;
public const string nuiRelease = "";
}
internal Button(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Button_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Button obj)
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Tizen.NUI.Extension.Test, PublicKey=00240000048000009400000006020000002400005253413100040000010001004d7c7c03a196ecb8e7cc5056750e1f40ee2bbe99f0e53a07f2538f2b0f450bd731b9dca3706503a0378baca74a09cf3af6261b330c031f44817ab6ed64189460765a402279d3e0c1fa7295ae1dccb2e3ff329705fd85b58d66ae7cb7e95ba06e0d847c3e3ba918798f579e5caeb1c6149955e6baf24236eec46227a623e494b1")]
[assembly: InternalsVisibleTo("Tizen.Multimedia, PublicKey=0024000004800000940000000602000000240000525341310004000001000100bd36a93b6d224759632d08a501b9dcb99a533e8ff0c3a1fc7044f5b05e176c005e5a7fc4d1dfa54da4d4cad4868c4518aa1f661380fb90685dc699d5e48dcc697b33c1e38b70845f405612d6827e7337c191ddd0a0aa35fdad654efe4c54881fdaa82ce35dce18ea918953e448c7aa284a47ed6fe3aa9404930b2b973a28cddf")]
-[assembly: InternalsVisibleTo("Tizen.TV.NUI, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed445c2a988d35b99e5766f42eef33d89d1f67225db051f011abcfce47a4788875c39750a2e5695f1ec117f41d96610419811762669f98131db30a6e64c6bb8fde3731f373f6cda4c0087d121f5108559f216dc015807dc46ec5a4d1b63f5deff64c01754a0db0dc849bc300672572cbd2697432ab6c193ebf9fade6bf0f2aad")]
-[assembly: InternalsVisibleTo("Tizen.TV.NUI.Component, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed445c2a988d35b99e5766f42eef33d89d1f67225db051f011abcfce47a4788875c39750a2e5695f1ec117f41d96610419811762669f98131db30a6e64c6bb8fde3731f373f6cda4c0087d121f5108559f216dc015807dc46ec5a4d1b63f5deff64c01754a0db0dc849bc300672572cbd2697432ab6c193ebf9fade6bf0f2aad")]
+//[assembly: InternalsVisibleTo("Tizen.TV.NUI, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed445c2a988d35b99e5766f42eef33d89d1f67225db051f011abcfce47a4788875c39750a2e5695f1ec117f41d96610419811762669f98131db30a6e64c6bb8fde3731f373f6cda4c0087d121f5108559f216dc015807dc46ec5a4d1b63f5deff64c01754a0db0dc849bc300672572cbd2697432ab6c193ebf9fade6bf0f2aad")]
+//[assembly: InternalsVisibleTo("Tizen.TV.NUI.Component, PublicKey=0024000004800000940000000602000000240000525341310004000001000100ed445c2a988d35b99e5766f42eef33d89d1f67225db051f011abcfce47a4788875c39750a2e5695f1ec117f41d96610419811762669f98131db30a6e64c6bb8fde3731f373f6cda4c0087d121f5108559f216dc015807dc46ec5a4d1b63f5deff64c01754a0db0dc849bc300672572cbd2697432ab6c193ebf9fade6bf0f2aad")]
namespace Tizen.NUI
{
internal GaussianBlurView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.GaussianBlurView_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GaussianBlurView obj) {
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_ELLIPSIS_get")]
public static extern int TextLabel_Property_ELLIPSIS_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_TextLabel_Property_AUTO_SCROLL_STOP_MODE_get")]
+ public static extern int TextLabel_Property_AUTO_SCROLL_STOP_MODE_get();
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get")]
+ public static extern int TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
}
}
internal Model3dView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Model3dView_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Model3dView obj) {
static void SetPendingArgumentNullException(string message, string paramName) {
global::System.Exception e = SWIGPendingException.Retrieve();
if (e != null) message = message + " Inner Exception: " + e.Message;
- SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
+ SWIGPendingException.Set(new global::System.ArgumentNullException(message, paramName));
}
static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
global::System.Exception e = SWIGPendingException.Retrieve();
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_IsVisible")]
public static extern bool IsVisible(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetSupportedAuxiliaryHintCount")]
+ public static extern uint GetSupportedAuxiliaryHintCount(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetSupportedAuxiliaryHint")]
+ public static extern string GetSupportedAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_AddAuxiliaryHint")]
+ public static extern uint AddAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_RemoveAuxiliaryHint")]
+ public static extern bool RemoveAuxiliaryHint(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetAuxiliaryHintValue")]
+ public static extern bool SetAuxiliaryHintValue(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, string jarg3);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetAuxiliaryHintValue")]
+ public static extern string GetAuxiliaryHintValue(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetAuxiliaryHintId")]
+ public static extern uint GetAuxiliaryHintId(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetInputRegion")]
+ public static extern void SetInputRegion(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetType")]
+ public static extern void SetType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetType")]
+ public static extern int GetType(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetNotificationLevel")]
+ public static extern bool SetNotificationLevel(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetNotificationLevel")]
+ public static extern int GetNotificationLevel(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetOpaqueState")]
+ public static extern void SetOpaqueState(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_IsOpaqueState")]
+ public static extern bool IsOpaqueState(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetScreenMode")]
+ public static extern bool SetScreenMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetScreenMode")]
+ public static extern int GetScreenMode(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_SetBrightness")]
+ public static extern bool SetBrightness(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_GetBrightness")]
+ public static extern int GetBrightness(global::System.Runtime.InteropServices.HandleRef jarg1);
+
[global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_Application_New__SWIG_0")]
public static extern global::System.IntPtr Application_New__SWIG_0();
internal PageTurnView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PageTurnView_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PageTurnView obj) {
internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
internal ProgressBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ProgressBar_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ProgressBar obj)
internal Scrollable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Scrollable_SWIGUpcast(cPtr), cMemoryOwn) {
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Scrollable obj) {
internal Slider(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Slider_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Slider obj)
internal ViewWrapper(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapper_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapper obj)
{\r
public ApplicationException()\r
{\r
- new global::System.InvalidCastException();\r
+ new global::System.ApplicationException();\r
}\r
\r
public ApplicationException(string message)\r
{\r
- new global::System.InvalidCastException(message);\r
+ new global::System.ApplicationException(message);\r
}\r
\r
public ApplicationException(string message, Exception innerException)\r
{\r
- new global::System.InvalidCastException(message, innerException);\r
+ new global::System.ApplicationException(message, innerException);\r
}\r
}\r
\r
{\r
public SystemException()\r
{\r
- new global::System.InvalidCastException();\r
+ new global::System.SystemException();\r
}\r
\r
public SystemException(string message)\r
{\r
- new global::System.InvalidCastException(message);\r
+ new global::System.SystemException(message);\r
}\r
\r
public SystemException(string message, Exception innerException)\r
{\r
- new global::System.InvalidCastException(message, innerException);\r
+ new global::System.SystemException(message, innerException);\r
}\r
}\r
}\r
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
PropertyType propertyType = target.GetPropertyType(_prop.propertyIndex);
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
if (alphaFunction != null)
Property _prop = new Property(target, _str);
if (_prop.propertyIndex == Property.INVALID_INDEX)
{
- throw new System.Exception("second argument string property is invalid parameter!");
+ throw new System.ArgumentException("second argument string property is invalid parameter!");
}
Tizen.NUI.TimePeriod time = new Tizen.NUI.TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime));
internal ImageView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ImageView_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImageView obj)
internal TextEditor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextEditor_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextEditor obj)
internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
internal TextLabel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextLabel_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextLabel obj)
internal static readonly int OUTLINE = NDalicPINVOKE.TextLabel_Property_OUTLINE_get();
internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextLabel_Property_PIXEL_SIZE_get();
internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextLabel_Property_ELLIPSIS_get();
+ internal static readonly int AUTO_SCROLL_STOP_MODE = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_STOP_MODE_get();
+ internal static readonly int AUTO_SCROLL_LOOP_DELAY = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
}
}
}
+ /// <summary>
+ /// AutoScrollLoopDelay property.<br>
+ /// do something.<br>
+ /// </summary>
+ public float AutoScrollLoopDelay
+ {
+ get
+ {
+ float temp = 0.0f;
+ GetProperty(TextLabel.Property.AUTO_SCROLL_LOOP_DELAY).Get(ref temp);
+ return temp;
+ }
+ set
+ {
+ SetProperty(TextLabel.Property.AUTO_SCROLL_LOOP_DELAY, new Tizen.NUI.PropertyValue(value));
+ }
+ }
+
+ /// <summary>
+ /// AutoScrollStopMode property.<br>
+ /// do something.<br>
+ /// </summary>
+ public AutoScrollStopMode AutoScrollStopMode
+ {
+ get
+ {
+ string temp;
+ if(GetProperty(TextLabel.Property.AUTO_SCROLL_STOP_MODE).Get(out temp) == false)
+ {
+#if DEBUG_ON
+ Tizen.Log.Error("NUI", "AutoScrollStopMode get error!");
+#endif
+ }
+ switch (temp)
+ {
+ case "FINISH_LOOP":
+ return AutoScrollStopMode.FinishLoop;
+ case "IMMEDIATE":
+ return AutoScrollStopMode.Immediate;
+ default:
+ return AutoScrollStopMode.FinishLoop;
+ }
+ }
+ set
+ {
+ SetProperty(TextLabel.Property.AUTO_SCROLL_STOP_MODE, new Tizen.NUI.PropertyValue((int)value));
+ }
+ }
+
}
}
// 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)
/// </summary>
public View() : this(NDalicPINVOKE.View_New(), true)
{
+ PositionUsesAnchorPoint = false;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
bool temp = false;
- if(this) GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
+ GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
return temp;
}
set
{
- if(this) SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
+ SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
}
}
}
}
+ /// <summary>
+ /// Gets the natural size of the view.<br>
+ /// </summary>
+ /// <remarks>
+ /// Readonly.
+ /// </remarks>
+ public Vector3 NaturalSize
+ {
+ get
+ {
+ Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ }
+
/// <summary>
/// Shows the View.
/// </summary>
SetVisible(false);
}
- /// <summary>
- /// Raise view above the next highest level of view(s).
- /// </summary>
- /// <remarks>
- /// Sibling order of views within the parent will be updated automatically.
- /// Initially views added to a parent will have the same sibling order and shown in relation to insertion order.
- /// Raising this view above views with the same sibling order as each other will raise this view above them.
- /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
- /// </remarks>
- public void Raise()
+ internal void Raise()
{
NDalicPINVOKE.Raise(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Lower the view to underneath the level below view(s).
- /// </summary>
- /// <remarks>
- /// Sibling order of views within the parent will be updated automatically.
- /// Lowering this view below views with the same sibling order as each other will lower this view above them.
- /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
- /// </remarks>
- public void Lower()
+ internal void Lower()
{
NDalicPINVOKE.Lower(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending)
return ret;
}
- /// <summary>
- /// Returns the natural size of the view.<br>
- /// Deriving classes stipulate the natural size and by default an view has a ZERO natural size.<br>
- /// </summary>
- /// <returns>The view's natural size</returns>
- public Vector3 GetNaturalSize()
+ internal Vector3 GetNaturalSize()
{
Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending)
}
/// <summary>
- /// Create visual animation (transition) with the input property map
+ /// Create visual animation (transition) with the input parameters.
/// </summary>
- /// <param name="visualMap">property map to define visual animation</param>
+ /// <param name="target"> The visual map to animation.</param>
+ /// <param name="property"> The property of visual to animation.</param>
+ /// <param name="destinationValue"> The destination value of property after animation.</param>
+ /// <param name="startTime"> The start time of visual animation.</param>
+ /// <param name="endTime"> The end time of visual animation.</param>
+ /// <param name="alphaFunction"> The alpha function of visual animation</param>
/// <returns>Animation instance</returns>
- public Animation VisualAnimate(VisualAnimator visualMap)
+ public Animation AnimateVisual(VisualMap target, string property, object destinationValue, int startTime, int endTime, AlphaFunction.BuiltinFunctions alphaFunction)
{
+ string _alphaFunction = "";
+ switch (alphaFunction)
+ {
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear:
+ {
+ _alphaFunction = "LINEAR";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse:
+ {
+ _alphaFunction = "REVERSE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare:
+ {
+ _alphaFunction = "EASE_IN_SQUARE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare:
+ {
+ _alphaFunction = "EASE_OUT_SQUARE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn:
+ {
+ _alphaFunction = "EASE_IN";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut:
+ {
+ _alphaFunction = "EASE_OUT";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut:
+ {
+ _alphaFunction = "EASE_IN_OUT";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine:
+ {
+ _alphaFunction = "EASE_IN_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine:
+ {
+ _alphaFunction = "EASE_OUT_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine:
+ {
+ _alphaFunction = "EASE_IN_OUT_SINE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce:
+ {
+ _alphaFunction = "BOUNCE";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin:
+ {
+ _alphaFunction = "SIN";
+ break;
+ }
+ case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack:
+ {
+ _alphaFunction = "EASE_OUT_BACK";
+ break;
+ }
+ default:
+ {
+ _alphaFunction = "DEFAULT";
+ break;
+ }
+ }
+
foreach (var item in _visualDictionary.ToList())
{
- if (item.Value.Name == visualMap.Target)
+ if (item.Value.Name == target.Name)
{
- TransitionData _transitionData = new TransitionData(visualMap.OutputVisualMap);
+ PropertyMap _animator = new PropertyMap();
+ _animator.Add("alphaFunction", new PropertyValue(_alphaFunction));
+
+ PropertyMap _timePeriod = new PropertyMap();
+ _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
+ _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
+ _animator.Add("timePeriod", new PropertyValue(_timePeriod));
+
+ string _str1 = property.Substring(0, 1);
+ string _str2 = property.Substring(1);
+ string _str = _str1.ToLower() + _str2;
+
+ PropertyValue val = PropertyValue.CreateFromObject(destinationValue);
+
+ PropertyMap _transition = new PropertyMap();
+ _transition.Add("target", new PropertyValue(target.Name));
+ _transition.Add("property", new PropertyValue(_str));
+ _transition.Add("targetValue", val);
+ _transition.Add("animator", new PropertyValue(_animator));
+
+ TransitionData _transitionData = new TransitionData(_transition);
return this.CreateTransition(_transitionData);
}
}
internal FlexContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.FlexContainer_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FlexContainer obj)
return ret;
}
+ /// <summary>
+ /// Retrieves child view by index.
+ /// </summary>
+ /// <pre>The View has been initialized.</pre>
+ /// <param name="index">The index of the child to retrieve</param>
+ /// <returns>The view for the given index or empty handle if children not initialized</returns>
+ public View GetChildAt(uint index)
+ {
+ View ret = new View(NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending)
+ throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
/// <summary>
/// Enumeration for the behavior of the layer.
/// </summary>
}
}
}
+
+ /// <summary>
+ /// Auto scrolling stop behaviour.
+ /// </summary>
+ public enum AutoScrollStopMode
+ {
+ /// <summary>
+ /// Stop animation after current loop finished.
+ /// </summary>
+ FinishLoop,
+ /// <summary>
+ /// Stop animation immediatly and reset position.
+ /// </summary>
+ Immediate
+ }
+
+ /// <summary>
+ /// An enum of screen mode.
+ /// </summary>
+ public enum ScreenModeType {
+ /// <summary>
+ /// The mode which turns the screen off after a timeout.
+ /// </summary>
+ Default,
+ /// <summary>
+ /// The mode which keeps the screen turned on.
+ /// </summary>
+ AlwaysOn
+ }
+
+ /// <summary>
+ /// An enum of notification window's priority level.
+ /// </summary>
+ public enum NotificationLevelType {
+ /// <summary>
+ /// No notification level.<br>
+ /// Default level.<br>
+ /// This value makes the notification window place in the layer of the normal window.
+ /// </summary>
+ None = -1,
+ /// <summary>
+ /// Base nofitication level.
+ /// </summary>
+ Base = 10,
+ /// <summary>
+ /// Medium notification level than base.
+ /// </summary>
+ Medium = 20,
+ /// <summary>
+ /// Higher notification level than medium.
+ /// </summary>
+ High = 30,
+ /// <summary>
+ /// The highest notification level.
+ /// </summary>
+ Top = 40
+ }
+
+ /// <summary>
+ /// An enum of Window types.
+ /// </summary>
+ public enum WindowType {
+ /// <summary>
+ /// A default window type.<br>
+ /// Indicates a normal, top-level window.
+ /// Almost every window will be created with this type.
+ /// </summary>
+ Normal,
+ /// <summary>
+ /// A notification window, like a warning about battery life or a new E-Mail received.
+ /// </summary>
+ Notification,
+ /// <summary>
+ /// A persistent utility window, like a toolbox or palette.
+ /// </summary>
+ Utility,
+ /// <summary>
+ /// Used for simple dialog windows.
+ /// </summary>
+ Dialog
+ }
}
\ No newline at end of file
internal TableView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TableView_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TableView obj)
internal ScrollBar(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollBar_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollBar obj)
internal VideoView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.VideoView_SWIGUpcast(cPtr), cMemoryOwn)
{
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ // By default, we do not want the position to use the anchor point
+ PositionUsesAnchorPoint = false;
}
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(VideoView obj)
}
}
- /// <summary>
- /// A class encapsulating the property map of a visual transition(Animator).
- /// </summary>
- public class VisualAnimator : VisualMap
- {
- public VisualAnimator() : base()
- {
- }
-
- private string _alphaFunction = null;
- private int _startTime = 0;
- private int _endTime = 0;
- private string _target = null;
- private string _propertyIndex = null;
- private object _destinationValue = null;
-
- public AlphaFunction.BuiltinFunctions AlphaFunction
- {
- get
- {
- switch (_alphaFunction)
- {
- case "LINEAR":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear;
- case "REVERSE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse;
- case "EASE_IN_SQUARE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare;
- case "EASE_OUT_SQUARE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare;
- case "EASE_IN":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn;
- case "EASE_OUT":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut;
- case "EASE_IN_OUT":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut;
- case "EASE_IN_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine;
- case "EASE_OUT_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine;
- case "EASE_IN_OUT_SINE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine;
- case "BOUNCE":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce;
- case "SIN":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin;
- case "EASE_OUT_BACK":
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack;
- default:
- return Tizen.NUI.AlphaFunction.BuiltinFunctions.Default;
- }
- }
- set
- {
- switch (value)
- {
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Linear:
- {
- _alphaFunction = "LINEAR";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Reverse:
- {
- _alphaFunction = "REVERSE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSquare:
- {
- _alphaFunction = "EASE_IN_SQUARE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSquare:
- {
- _alphaFunction = "EASE_OUT_SQUARE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseIn:
- {
- _alphaFunction = "EASE_IN";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOut:
- {
- _alphaFunction = "EASE_OUT";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOut:
- {
- _alphaFunction = "EASE_IN_OUT";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInSine:
- {
- _alphaFunction = "EASE_IN_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutSine:
- {
- _alphaFunction = "EASE_OUT_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseInOutSine:
- {
- _alphaFunction = "EASE_IN_OUT_SINE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Bounce:
- {
- _alphaFunction = "BOUNCE";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.Sin:
- {
- _alphaFunction = "SIN";
- break;
- }
- case Tizen.NUI.AlphaFunction.BuiltinFunctions.EaseOutBack:
- {
- _alphaFunction = "EASE_OUT_BACK";
- break;
- }
- default:
- {
- _alphaFunction = "DEFAULT";
- break;
- }
- }
- }
- }
-
- public int StartTime
- {
- get
- {
- return _startTime;
- }
- set
- {
- _startTime = value;
- }
- }
-
- public int EndTime
- {
- get
- {
- return _endTime;
- }
- set
- {
- _endTime = value;
- }
- }
-
- public string Target
- {
- get
- {
- return _target;
- }
- set
- {
- _target = value;
- }
- }
-
- public string PropertyIndex
- {
- get
- {
- return _propertyIndex;
- }
- set
- {
- _propertyIndex = value;
- }
- }
-
- public object DestinationValue
- {
- get
- {
- return _destinationValue;
- }
- set
- {
- _destinationValue = value;
- }
- }
-
- protected override void ComposingPropertyMap()
- {
- PropertyMap _animator = new PropertyMap();
- _animator.Add("alphaFunction", new PropertyValue(_alphaFunction));
-
- PropertyMap _timePeriod = new PropertyMap();
- _timePeriod.Add("duration", new PropertyValue((_endTime - _startTime) / 1000.0f));
- _timePeriod.Add("delay", new PropertyValue(_startTime / 1000.0f));
- _animator.Add("timePeriod", new PropertyValue(_timePeriod));
-
- string _str1 = _propertyIndex.Substring(0, 1);
- string _str2 = _propertyIndex.Substring(1);
- string _str = _str1.ToLower() + _str2;
-
- PropertyValue val = PropertyValue.CreateFromObject(_destinationValue);
-
- PropertyMap _transition = new PropertyMap();
- _transition.Add("target", new PropertyValue(_target));
- _transition.Add("property", new PropertyValue(_str));
- _transition.Add("targetValue", val);
- _transition.Add("animator", new PropertyValue(_animator));
-
- _outputVisualMap = _transition;
- }
- }
}
return temp;
}
+ /// <summary>
+ /// Gets the count of supported auxiliary hints of the window.
+ /// </summary>
+ /// <returns>The number of supported auxiliary hints.</returns>
+ public uint GetSupportedAuxiliaryHintCount() {
+ uint ret = NDalicPINVOKE.GetSupportedAuxiliaryHintCount(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets the supported auxiliary hint string of the window.
+ /// </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) {
+ string ret = NDalicPINVOKE.GetSupportedAuxiliaryHint(swigCPtr, index);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Creates an auxiliary hint of the window.
+ /// </summary>
+ /// <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) {
+ uint ret = NDalicPINVOKE.AddAuxiliaryHint(swigCPtr, hint, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Removes an auxiliary hint of the window.
+ /// </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) {
+ bool ret = NDalicPINVOKE.RemoveAuxiliaryHint(swigCPtr, id);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Changes a value of the auxiliary hint.
+ /// </summary>
+ /// <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) {
+ bool ret = NDalicPINVOKE.SetAuxiliaryHintValue(swigCPtr, id, value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a value of the auxiliary hint.
+ /// </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) {
+ string ret = NDalicPINVOKE.GetAuxiliaryHintValue(swigCPtr, id);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets an ID of the auxiliary hint string.
+ /// </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) {
+ uint ret = NDalicPINVOKE.GetAuxiliaryHintId(swigCPtr, hint);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets a region to accept input events.
+ /// </summary>
+ /// <param name="inputRegion">The region to accept input events.</param>
+ public void SetInputRegion(Rectangle inputRegion) {
+ NDalicPINVOKE.SetInputRegion(swigCPtr, Rectangle.getCPtr(inputRegion));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets/Sets a window type.
+ /// </summary>
+ public WindowType Type
+ {
+ get
+ {
+ WindowType ret = (WindowType)NDalicPINVOKE.GetType(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+ set
+ {
+ NDalicPINVOKE.SetType(swigCPtr, (int)value);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+ }
+
+ /// <summary>
+ /// Sets a priority level for the specified notification window.
+ /// </summary>
+ /// <param name="level">The notification window level.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetNotificationLevel(NotificationLevelType level) {
+ bool ret = NDalicPINVOKE.SetNotificationLevel(swigCPtr, (int)level);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a priority level for the specified notification window.
+ /// </summary>
+ /// <returns>The notification window level.</returns>
+ public NotificationLevelType GetNotificationLevel() {
+ NotificationLevelType ret = (NotificationLevelType)NDalicPINVOKE.GetNotificationLevel(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// 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) {
+ NDalicPINVOKE.SetOpaqueState(swigCPtr, opaque);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// 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() {
+ bool ret = NDalicPINVOKE.IsOpaqueState(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets a window's screen mode.
+ /// </summary>
+ /// <param name="screenMode">The screen mode.</param>
+ /// <returns>True if no error occurred, false otherwise.</returns>
+ public bool SetScreenMode(ScreenModeType screenMode) {
+ bool ret = NDalicPINVOKE.SetScreenMode(swigCPtr, (int)screenMode);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets a screen mode of the window.
+ /// </summary>
+ /// <returns>The screen mode.</returns>
+ public ScreenModeType GetScreenMode() {
+ ScreenModeType ret = (ScreenModeType)NDalicPINVOKE.GetScreenMode(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets preferred brightness of the window.
+ /// </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) {
+ bool ret = NDalicPINVOKE.SetBrightness(swigCPtr, brightness);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets preffered brightness of the window.
+ /// </summary>
+ /// <returns>The preffered brightness.</returns>
+ public int GetBrightness() {
+ int ret = NDalicPINVOKE.GetBrightness(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
public class WindowFocusChangedEventArgs : EventArgs
{
public bool FocusGained
return ret;
}
- internal uint GetLayerCount()
+ /// <summary>
+ /// Queries the number of on-window layers.
+ /// </summary>
+ /// <returns>The number of layers.</returns>
+ /// <remarks>Note that a default layer is always provided (count >= 1).</remarks>
+ public uint GetLayerCount()
{
uint ret = NDalicPINVOKE.Stage_GetLayerCount(stageCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();