From: hongqingli Date: Fri, 30 Jun 2017 02:44:09 +0000 (+0800) Subject: add api comments of Layout/Widget X-Git-Tag: submit/trunk/20170823.075128~110^2~34^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73b503174d3772697350b852311468de47aa6f33;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git add api comments of Layout/Widget Change-Id: Ia4f9a205b73a21a9a2abd65b5c646a132497b018 Signed-off-by: hongqingli --- diff --git a/src/ElmSharp/ElmSharp/Layout.cs b/src/ElmSharp/ElmSharp/Layout.cs old mode 100644 new mode 100755 index 217a0a3..3de5e8e --- a/src/ElmSharp/ElmSharp/Layout.cs +++ b/src/ElmSharp/ElmSharp/Layout.cs @@ -251,7 +251,7 @@ namespace ElmSharp /// /// Sets the layout content. /// - /// The swallow part name in the edje file + /// The swallow part name in the edje file /// The child that will be added in this layout object. /// TRUE on success, FALSE otherwise public override bool SetPartContent(string part, EvasObject content) @@ -259,6 +259,13 @@ namespace ElmSharp return SetPartContent(part, content, false); } + /// + /// Sets the layout content. + /// + /// The name of particular part + /// The content + /// true, preserve old content will be unset. false, preserve old content will not be unset. + /// TRUE on success, FALSE otherwise public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent) { if (preserveOldContent) diff --git a/src/ElmSharp/ElmSharp/Widget.cs b/src/ElmSharp/ElmSharp/Widget.cs old mode 100644 new mode 100755 index d18e047..f1df744 --- a/src/ElmSharp/ElmSharp/Widget.cs +++ b/src/ElmSharp/ElmSharp/Widget.cs @@ -87,6 +87,11 @@ namespace ElmSharp _unfocused.On += (s, e) => Unfocused?.Invoke(this, EventArgs.Empty); } + /// + /// Update the part contents + /// + /// The content which put to the part + /// The updated part protected void UpdatePartContents(EvasObject content, string part = "__default__") { _partContents[part] = content;