diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2017-05-11 06:38:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2017-05-11 06:38:04 +0000 |
commit | 8576b6ea18583b3c90eafb165596f11cac546ce4 (patch) | |
tree | dcdc5ea1d92d64f8a623ea8f12db6761623faf7d /ElmSharp/ElmSharp | |
parent | d0473a8e2af7d4359c566a1c4cb1bb1690d46f9d (diff) | |
parent | caf37c84eaa08247514e20fed34bb0906557b487 (diff) | |
download | elm-sharp-8576b6ea18583b3c90eafb165596f11cac546ce4.tar.gz elm-sharp-8576b6ea18583b3c90eafb165596f11cac546ce4.tar.bz2 elm-sharp-8576b6ea18583b3c90eafb165596f11cac546ce4.zip |
Merge "Add IsExpanded property in GenListItem" into tizen
Diffstat (limited to 'ElmSharp/ElmSharp')
-rw-r--r--[-rwxr-xr-x] | ElmSharp/ElmSharp/GenListItem.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/GenListItem.cs b/ElmSharp/ElmSharp/GenListItem.cs index 0b1d677..33ee199 100755..100644 --- a/ElmSharp/ElmSharp/GenListItem.cs +++ b/ElmSharp/ElmSharp/GenListItem.cs @@ -27,14 +27,17 @@ namespace ElmSharp /// Default select mode. /// </summary> Default, + /// <summary> /// Always select mode. /// </summary> Always, + /// <summary> /// No select mode. /// </summary> None, + /// <summary> /// No select mode with no finger size rule. /// </summary> @@ -51,18 +54,22 @@ namespace ElmSharp /// All item's parts. /// </summary> All = 0, + /// <summary> /// The text part type. /// </summary> Text = (1 << 0), + /// <summary> /// The Content part type. /// </summary> Content = (1 << 1), + /// <summary> /// The state of part. /// </summary> State = (1 << 2), + /// <summary> /// No part type. /// </summary> @@ -97,6 +104,21 @@ namespace ElmSharp } /// <summary> + /// Gets or sets whether a given genlist item is expanded. + /// </summary> + public bool IsExpanded + { + get + { + return Interop.Elementary.elm_genlist_item_expanded_get(Handle); + } + set + { + Interop.Elementary.elm_genlist_item_expanded_set(Handle, value); + } + } + + /// <summary> /// Updates the content of an item. /// This updates an item by calling all the <see cref="GenItemClass"/> again to get the content, text, and states. /// Use this when the original item data has changed and the changes are desired to reflect. @@ -182,4 +204,4 @@ namespace ElmSharp Interop.Elementary.elm_genlist_item_item_class_update((IntPtr)Handle, itemClass.UnmanagedPtr); } } -} +}
\ No newline at end of file |