diff options
author | hongqingli <hongqing.li@samsung.com> | 2017-06-30 10:44:09 +0800 |
---|---|---|
committer | hongqingli <hongqing.li@samsung.com> | 2017-06-30 10:44:09 +0800 |
commit | 0a63cb65ea6f17e2bc9379a34b168679dffc75a0 (patch) | |
tree | 61497efe9f08b945863b7c393b33b51648f3eee8 | |
parent | 27db8e6d13e172abe53fda9c807c2e85b90d9b5c (diff) | |
download | elm-sharp-0a63cb65ea6f17e2bc9379a34b168679dffc75a0.tar.gz elm-sharp-0a63cb65ea6f17e2bc9379a34b168679dffc75a0.tar.bz2 elm-sharp-0a63cb65ea6f17e2bc9379a34b168679dffc75a0.zip |
add api comments of Layout/Widget
Change-Id: Ia4f9a205b73a21a9a2abd65b5c646a132497b018
Signed-off-by: hongqingli <hongqing.li@samsung.com>
-rwxr-xr-x[-rw-r--r--] | ElmSharp/ElmSharp/Layout.cs | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | ElmSharp/ElmSharp/Widget.cs | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/Layout.cs b/ElmSharp/ElmSharp/Layout.cs index 217a0a3..3de5e8e 100644..100755 --- a/ElmSharp/ElmSharp/Layout.cs +++ b/ElmSharp/ElmSharp/Layout.cs @@ -251,7 +251,7 @@ namespace ElmSharp /// <summary> /// Sets the layout content. /// </summary> - /// <param name="swallow">The swallow part name in the edje file</param> + /// <param name="part">The swallow part name in the edje file</param> /// <param name="content">The child that will be added in this layout object.</param> /// <returns>TRUE on success, FALSE otherwise</returns> public override bool SetPartContent(string part, EvasObject content) @@ -259,6 +259,13 @@ namespace ElmSharp return SetPartContent(part, content, false); } + /// <summary> + /// Sets the layout content. + /// </summary> + /// <param name="part">The name of particular part</param> + /// <param name="content">The content</param> + /// <param name="preserveOldContent">true, preserve old content will be unset. false, preserve old content will not be unset.</param> + /// <returns>TRUE on success, FALSE otherwise</returns> public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent) { if (preserveOldContent) diff --git a/ElmSharp/ElmSharp/Widget.cs b/ElmSharp/ElmSharp/Widget.cs index d18e047..f1df744 100644..100755 --- a/ElmSharp/ElmSharp/Widget.cs +++ b/ElmSharp/ElmSharp/Widget.cs @@ -87,6 +87,11 @@ namespace ElmSharp _unfocused.On += (s, e) => Unfocused?.Invoke(this, EventArgs.Empty); } + /// <summary> + /// Update the part contents + /// </summary> + /// <param name="content">The content which put to the part</param> + /// <param name="part">The updated part</param> protected void UpdatePartContents(EvasObject content, string part = "__default__") { _partContents[part] = content; |