/// 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>
/// 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>
}
/// <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.
Interop.Elementary.elm_genlist_item_item_class_update((IntPtr)Handle, itemClass.UnmanagedPtr);
}
}
-}
+}
\ No newline at end of file
internal enum Elm_Genlist_Item_Scrollto_Type
{
ELM_GENLIST_ITEM_SCROLLTO_NONE = 0,
+
// Scrolls to nowhere
ELM_GENLIST_ITEM_SCROLLTO_IN = (1 << 0),
+
// Scrolls to the nearest viewport
ELM_GENLIST_ITEM_SCROLLTO_TOP = (1 << 1),
+
// Scrolls to the top of the viewport
ELM_GENLIST_ITEM_SCROLLTO_MIDDLE = (1 << 2),
+
// Scrolls to the middle of the viewport
ELM_GENLIST_ITEM_SCROLLTO_BOTTOM = (1 << 3)
+
// Scrolls to the bottom of the viewport
}
[DllImport(Libraries.Elementary)]
[return: MarshalAs(UnmanagedType.U1)]
internal static extern bool elm_genlist_reorder_mode_get(IntPtr obj);
+
+ [DllImport(Libraries.Elementary)]
+ [return: MarshalAs(UnmanagedType.U1)]
+ internal static extern void elm_genlist_item_expanded_set(IntPtr obj, bool isExpanded);
+
+ [DllImport(Libraries.Elementary)]
+ [return: MarshalAs(UnmanagedType.U1)]
+ internal static extern bool elm_genlist_item_expanded_get(IntPtr obj);
}
-}
+}
\ No newline at end of file