Skip to content

Commit

Permalink
[NUI.WindowSystem] TizenShell: Enhance API description
Browse files Browse the repository at this point in the history
Signed-off-by: Junseok Kim <[email protected]>
  • Loading branch information
juns-kim committed Oct 11, 2024
1 parent 70288d4 commit 2f069bb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 11 deletions.
45 changes: 40 additions & 5 deletions src/Tizen.NUI.WindowSystem/src/public/QuickPanelClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ namespace Tizen.NUI.WindowSystem.Shell
/// <summary>
/// Class for the Tizen quickpanel client.
/// </summary>
/// <remarks>
/// TizenShell.QuickPanelClient is a specialized class designed for handling interactions with the Quickpanel service that Tizen system GUI Application.
/// Through this class, we can conveniently retrieve various states of the Quickpanel service and make changes to specific states when necessary.
/// </remarks>
/// <since_tizen> 8 </since_tizen>
public class QuickPanelClient : IDisposable
{
Expand Down Expand Up @@ -123,8 +127,10 @@ public event EventHandler<Window.WindowOrientation> OrientationChanged

/// <summary>
/// Emits the event when the rotation(orientation) of the quickpanel service window is changed.
/// The value of the event argument represents the rotation angle in degrees.
/// </summary>
/// <remarks>
/// The value of the event argument represents the rotation angle in degrees.
/// </remarks>
/// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
/// <since_tizen> 12 </since_tizen>
public event EventHandler<int> RotationChanged
Expand Down Expand Up @@ -230,6 +236,7 @@ public enum ScrollableState
/// <summary>
/// Enumeration for orientation state of quickpanel service window.
/// </summary>
/// <since_tizen> 8 </since_tizen>
private enum OrientationState
{
/// <summary>
Expand All @@ -255,8 +262,12 @@ private enum OrientationState
}

/// <summary>
/// Creates a new Quickpanel Client handle.
/// The constructor of QuickPanelClass class.
/// </summary>
/// <remarks>
/// This constructor creates a new Quickpanel Client handle. with this handle, we can interact with the quickpanel service window.
/// This handle needs the TizenShell handle first.
/// </remarks>
/// <param name="tzShell">The TizenShell instance.</param>
/// <param name="win">The window to provide service of the quickpanel.</param>
/// <param name="type">The type of quickpanel service.</param>
Expand Down Expand Up @@ -295,8 +306,12 @@ public QuickPanelClient(TizenShell tzShell, Window win, Types type)
}

/// <summary>
/// Creates a new Quickpanel Client handle.
/// The constructor of QuickPanelClass class.
/// </summary>
/// <remarks>
/// This constructor creates a new Quickpanel Client handle. with this handle, we can interact with the quickpanel service.
/// This handle needs the TizenShell handle first.
/// </remarks>
/// <param name="tzShell">The TizenShell instance.</param>
/// <param name="win">The window provider for the quickpanel service.</param>
/// <param name="type">The type of quickpanel service.</param>
Expand Down Expand Up @@ -335,7 +350,7 @@ public QuickPanelClient(TizenShell tzShell, IWindowProvider win, Types type)
}

/// <summary>
/// Destructor.
/// The destructor of QuickPanelClass class.
/// </summary>
/// <since_tizen> 8 </since_tizen>
~QuickPanelClient()
Expand All @@ -348,7 +363,7 @@ public QuickPanelClient(TizenShell tzShell, IWindowProvider win, Types type)
}

/// <summary>
/// Dispose.
/// Disposes the resources of the QuickPanelClient class.
/// </summary>
/// <exception cref="MemberAccessException">Thrown when private memeber is a corrupted.</exception>
/// <since_tizen> 8 </since_tizen>
Expand Down Expand Up @@ -460,6 +475,10 @@ private void OnOrientationChanged(int type, IntPtr ev_info, IntPtr data)
/// <summary>
/// Gets the visible state of the quickpanel.
/// </summary>
/// <remarks>
/// Retrieves the visible state of the Quickpanel Service.
/// This visible state indicates whether or not the Quickpanel Service window is displayed at the time of invocation.
/// </remarks>
/// <returns>The visible state of the quickpanel service window.</returns>
/// <exception cref="ArgumentException" > Thrown when failed of invalid argument.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation or no service.</exception>
Expand Down Expand Up @@ -487,6 +506,11 @@ private VisibleState GetVisible()
/// <summary>
/// Gets or sets the window's scrollable state of the quickpanel service window.
/// </summary>
/// <remarks>
/// Retrieves or Changes the scrollable state of the Quickpanel Service window.
/// The scrollableState determines whether the Quickpanel Service window is scrollable or not.
/// And the scrollableState can be affect the visibility of the Quickpanel Service window.
/// </remarks>
/// <returns>The scrollable state of the quickpanel service window.</returns>
/// <exception cref="ArgumentException" > Thrown when failed of invalid argument.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation or no service.</exception>
Expand Down Expand Up @@ -527,6 +551,10 @@ private void SetScrollable(ScrollableState scroll)
/// <summary>
/// Gets the current orientation of the quickpanel service window.
/// </summary>
/// <remarks>
/// Retrieves the orientation of the Quickpanel Service.
/// This orientation value indicates the current angle of the Quickpanel Service window.
/// </remarks>
/// <returns>The orientation of the quickpanel service window.</returns>
/// <exception cref="ArgumentException" > Thrown when failed of invalid argument.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation or no service.</exception>
Expand Down Expand Up @@ -556,6 +584,10 @@ private Window.WindowOrientation GetOrientation()
/// <summary>
/// Shows the quickpanel service window if it is currently scrollable.
/// </summary>
/// <remarks>
/// Change the visible state of the quickpanel service window to shown if it is currently scrollable.
/// If the quickpanel is not scrollable, nothing will happen.
/// </remarks>
/// <exception cref="ArgumentException" > Thrown when failed of invalid argument.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation or no service.</exception>
/// <since_tizen> 8 </since_tizen>
Expand All @@ -570,6 +602,9 @@ public void Show()
/// <summary>
/// Hides the quickpanel service window.
/// </summary>
/// <remarks>
/// Change the visible state of the quickpanel service window to hidden.
/// </remarks>
/// <exception cref="ArgumentException" > Thrown when failed of invalid argument.</exception>
/// <exception cref="InvalidOperationException">Thrown when failed because of an invalid operation or no service.</exception>
/// <since_tizen> 8 </since_tizen>
Expand Down
14 changes: 8 additions & 6 deletions src/Tizen.NUI.WindowSystem/src/public/TizenShell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
namespace Tizen.NUI.WindowSystem.Shell
{
/// <summary>
/// Tizen Window System Shell.
/// This is a basic handle class for others in WsShell.
/// Others class in WsShell using this basic class to use TIzen Window System Shell.
/// Basic handle of Tizen Window System Shell.
/// </summary>
/// <remarks>
/// This class is a basic handle class for other class in Tizen Window System Shell.
/// TizenShell serves as the entry point for interacting with the other subclass of Tizen Window System Shell.
/// </remarks>
/// <since_tizen> 8 </since_tizen>
public class TizenShell : IDisposable
{
Expand Down Expand Up @@ -68,7 +70,7 @@ internal void ErrorCodeThrow(int error)
}

/// <summary>
/// Creates a new Tizen Shell handle.
/// The constructor of TizenShell class.
/// </summary>
/// <exception cref="Tizen.Applications.Exceptions.OutOfMemoryException">Thrown when the memory is not enough to allocate.</exception>
/// <exception cref="ArgumentException">Thrown when failed of invalid argument.</exception>
Expand All @@ -84,7 +86,7 @@ public TizenShell()
}

/// <summary>
/// Destructor.
/// The destructor of TizenShell class.
/// </summary>
/// <since_tizen> 8 </since_tizen>
~TizenShell()
Expand All @@ -97,7 +99,7 @@ public TizenShell()
}

/// <summary>
/// Dispose.
/// Dispose the TizenShell instance explicitly.
/// </summary>
/// <exception cref="MemberAccessException">Thrown when private memeber is a corrupted.</exception>
/// <since_tizen> 8 </since_tizen>
Expand Down

0 comments on commit 2f069bb

Please sign in to comment.