From 73b503174d3772697350b852311468de47aa6f33 Mon Sep 17 00:00:00 2001 From: hongqingli Date: Fri, 30 Jun 2017 10:44:09 +0800 Subject: [PATCH] add api comments of Layout/Widget Change-Id: Ia4f9a205b73a21a9a2abd65b5c646a132497b018 Signed-off-by: hongqingli --- src/ElmSharp/ElmSharp/Layout.cs | 9 ++++++++- src/ElmSharp/ElmSharp/Widget.cs | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/ElmSharp/ElmSharp/Layout.cs mode change 100644 => 100755 src/ElmSharp/ElmSharp/Widget.cs 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; -- 2.7.4