2 using System.Collections.Generic;
5 using System.Threading.Tasks;
9 public class ToolbarItem : ItemObject
13 internal ToolbarItem(string text, string icon) : base(IntPtr.Zero)
28 Interop.Elementary.elm_toolbar_item_icon_set(Handle, value);
40 SetPartText(null, value);
47 return !Interop.Elementary.elm_object_disabled_get(Handle);
51 Interop.Elementary.elm_object_disabled_set(Handle, !value);
54 public bool IsSeparator
58 return Interop.Elementary.elm_toolbar_item_separator_get(Handle);
62 Interop.Elementary.elm_toolbar_item_separator_set(Handle, value);
65 public bool IsSelected
69 return Interop.Elementary.elm_toolbar_item_selected_get(Handle);
73 Interop.Elementary.elm_toolbar_item_selected_set(Handle, value);
77 public event EventHandler Selected;
78 public event EventHandler LongPressed;
79 public event EventHandler Clicked;
81 internal void SendSelected()
83 Selected?.Invoke(this, EventArgs.Empty);
85 internal void SendLongPressed()
87 LongPressed?.Invoke(this, EventArgs.Empty);
89 internal void SendClicked()
91 Clicked?.Invoke(this, EventArgs.Empty);