namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// The MoreOption is a widget composed of the toggle(cue button) and more option view, and MoreOption can change a visibility through the toggle.
+ /// Inherits Layout
+ /// </summary>
public class MoreOption : Layout
{
-
+ /// <summary>
+ /// Sets or gets the list of more option item
+ /// </summary>
public IList<MoreOptionItem> Items { get; private set; }
+ /// <summary>
+ /// Selected will be triggered when the user selects an item.
+ /// </summary>
public event EventHandler<MoreOptionItemEventArgs> Selected;
+ /// <summary>
+ /// Clicked will be triggered when the user selects the already selected item again or selects a selector.
+ /// </summary>
public event EventHandler<MoreOptionItemEventArgs> Clicked;
+ /// <summary>
+ /// Opened will be triggered when more option view is shown.
+ /// </summary>
public event EventHandler Opened;
+ /// <summary>
+ /// Closed will be triggered when more option view is hidden.
+ /// </summary>
public event EventHandler Closed;
SmartEvent<PointerEventArgs> _selectedEvent;
SmartEvent _openedEvent;
SmartEvent _closedEvent;
+ /// <summary>
+ /// Creates and initializes a new instance of MoreOption class.
+ /// </summary>
+ /// <param name="parent">The parent is a given container which will be attached by MoreOption as a child. It's <see cref="EvasObject"/> type.</param>
public MoreOption(EvasObject parent) : base(parent)
{
Items = new MoreOptionList(this);
}
+ /// <summary>
+ /// Creates a widget handle.
+ /// </summary>
+ /// <param name="parent">Parent EvasObject</param>
+ /// <returns>Handle IntPtr</returns>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_more_option_add(parent);
}
+ /// <summary>
+ /// Sets or gets the direction of more option.
+ /// </summary>
public MoreOptionDirection Direction
{
get
}
}
+ /// <summary>
+ /// Sets or gets the visibility of more option view.
+ /// </summary>
public bool IsOpened
{
get
}
}
+ /// <summary>
+ /// Enumeration for More Option Direction type.
+ /// </summary>
public enum MoreOptionDirection
{
+ /// <summary>
+ /// Top direction
+ /// </summary>
Top,
+ /// <summary>
+ /// Bottom direction
+ /// </summary>
Bottom,
+ /// <summary>
+ /// Left direction
+ /// </summary>
Left,
+ /// <summary>
+ /// Right direction
+ /// </summary>
Right
}
}