2 using System.Collections.Generic;
5 namespace ElmSharp.Wearable
8 /// The MoreOptionItem is a item of MoreOption widget.
10 public class MoreOptionItem
12 const string MainTextPartName = "selector,main_text";
13 const string SubTextPartName = "selector,sub_text";
14 const string IconPartName = "item,icon";
22 /// Sets or gets the more option item handle.
32 if (_handle == value) return;
34 if (_mainText != null)
35 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
37 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
39 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);
44 /// Creates and initializes a new instance of MoreOptionItem class.
46 public MoreOptionItem()
52 /// Sets or gets the main text of a more option object.
54 public string MainText
58 if (_mainText == value) return;
60 if (Handle != IntPtr.Zero)
62 Interop.Eext.eext_more_option_item_part_text_set(Handle, MainTextPartName, _mainText);
73 /// Sets or gets the sub text of a more option object.
79 if (_subText == value) return;
81 if (Handle != IntPtr.Zero)
83 Interop.Eext.eext_more_option_item_part_text_set(Handle, SubTextPartName, _subText);
94 /// Sets or gets the icon image
100 if (_icon == value) return;
102 if (Handle != IntPtr.Zero)
104 Interop.Eext.eext_more_option_item_part_content_set(Handle, IconPartName, _icon);