From 3110643f59915f11c4a793a6d2c01357292b4efd Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Thu, 7 Dec 2017 18:26:33 +0900 Subject: [PATCH] [NUI] change some comments of Timer and Window APIs Change-Id: I46c9f3e7c100ec87ce52b1acf846d1c3f8573ce3 Signed-off-by: dongsug.song --- src/Tizen.NUI/src/public/Timer.cs | 9 ++++++--- src/Tizen.NUI/src/public/Window.cs | 11 +++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/Tizen.NUI/src/public/Timer.cs b/src/Tizen.NUI/src/public/Timer.cs index 4f94681..cfae067 100755 --- a/src/Tizen.NUI/src/public/Timer.cs +++ b/src/Tizen.NUI/src/public/Timer.cs @@ -99,7 +99,7 @@ namespace Tizen.NUI } [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate bool TickCallbackDelegate(IntPtr data); + private delegate bool TickCallbackDelegate(); private EventHandlerWithReturnType _timerTickEventHandler; private TickCallbackDelegate _timerTickCallbackDelegate; @@ -114,7 +114,7 @@ namespace Tizen.NUI { if (_timerTickEventHandler == null) { - _timerTickCallbackDelegate = new TickCallbackDelegate(OnTick); + _timerTickCallbackDelegate = (OnTick); TickSignal().Connect(_timerTickCallbackDelegate); } _timerTickEventHandler += value; @@ -129,7 +129,7 @@ namespace Tizen.NUI } } - private bool OnTick(IntPtr data) + private bool OnTick() { TickEventArgs e = new TickEventArgs(); @@ -206,6 +206,9 @@ namespace Tizen.NUI /// /// Gets/Sets the interval of the timer. /// + /// For setter, this sets a new interval on the timer and starts the timer.
+ /// Cancels the previous timer. + ///
/// 4 public uint Interval { diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index da329fa..e21644c 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -366,9 +366,14 @@ namespace Tizen.NUI } /// - /// Sets a transparent window's visual state to opaque. + /// Sets a transparent window's visual state to opaque.
+ /// If a visual state of a transparent window is opaque,
+ /// then the window manager could handle it as an opaque window when calculating visibility. ///
/// Whether the window's visual state is opaque. + /// This will have no effect on an opaque window.
+ /// It doesn't change transparent window to opaque window but lets the window manager know the visual state of the window. + ///
/// 3 public void SetOpaqueState(bool opaque) { @@ -380,6 +385,7 @@ namespace Tizen.NUI /// Returns whether a transparent window's visual state is opaque or not. /// /// True if the window's visual state is opaque, false otherwise. + /// The return value has no meaning on an opaque window. /// 3 public bool IsOpaqueState() { @@ -1485,7 +1491,8 @@ namespace Tizen.NUI /// 5 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public void SetTransparency(bool transparent) { + public void SetTransparency(bool transparent) + { NDalicManualPINVOKE.SetTransparency(swigCPtr, transparent); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } -- 2.7.4