From: arosis78 <35049857+arosis78@users.noreply.github.com>
Date: Fri, 6 Apr 2018 05:42:14 +0000 (+0900)
Subject: [ElmSharp] Added remark for Popup and Layout (#209)
X-Git-Tag: submit/tizen/20180406.151115~1^2~3
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16b1ed4adbaec9db2ac306d17aacfb4489057da2;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
[ElmSharp] Added remark for Popup and Layout (#209)
---
diff --git a/src/ElmSharp/ElmSharp/Layout.cs b/src/ElmSharp/ElmSharp/Layout.cs
index bc8d6b7d3..4d38b6d1b 100755
--- a/src/ElmSharp/ElmSharp/Layout.cs
+++ b/src/ElmSharp/ElmSharp/Layout.cs
@@ -179,6 +179,9 @@ namespace ElmSharp
/// Once the object is appended, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// The object to append.
/// Success is true.
@@ -194,6 +197,9 @@ namespace ElmSharp
/// Once the object is prepended, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// The object to prepend.
/// Success is true.
@@ -208,6 +214,9 @@ namespace ElmSharp
/// Removes a child from the given part box.
/// The object will be removed from the box part and its lifetime will not be handled by the layout anymore.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// The object to remove.
/// Success if true
@@ -215,13 +224,16 @@ namespace ElmSharp
public bool BoxRemove(string part, EvasObject child)
{
RemoveChild(child);
- return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != null;
+ return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != IntPtr.Zero;
}
///
/// Removes all the children from the given part box.
/// The objects will be removed from the box part and their lifetime will not be handled by the layout anymore.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// If true, then all the objects will be deleted as well, otherwise they will just be removed and will be dangling on the canvas.
/// Success if true.
@@ -237,6 +249,9 @@ namespace ElmSharp
/// Once the object is inserted, it will become a child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// The child object to insert into the box.
/// The numeric position >=0 to insert the child.
@@ -253,6 +268,9 @@ namespace ElmSharp
/// Once the object is inserted, it will become child of the layout.
/// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically.
///
+ ///
+ /// This will only work if the layout edc have box part.
+ ///
/// The part.
/// The child object to insert into the box.
/// Another reference object to insert before the box.
@@ -392,4 +410,4 @@ namespace ElmSharp
return Interop.Elementary.elm_layout_add(parent.Handle);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/ElmSharp/ElmSharp/Popup.cs b/src/ElmSharp/ElmSharp/Popup.cs
index 53725266f..0defeed6b 100755
--- a/src/ElmSharp/ElmSharp/Popup.cs
+++ b/src/ElmSharp/ElmSharp/Popup.cs
@@ -151,6 +151,9 @@ namespace ElmSharp
///
/// Sets or gets the wrapping type of content text packed in the content area of Popup widget.
///
+ ///
+ /// Popup need to wrap the content text, so not allowing WrapType.None.
+ ///
/// preview
public WrapType ContentTextWrapType
{
@@ -311,4 +314,4 @@ namespace ElmSharp
_children.Remove((PopupItem)sender);
}
}
-}
\ No newline at end of file
+}