summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xElmSharp.Test/TC/GenListTest11.cs115
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs33
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs18
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs7
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionList.cs63
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/PointerEventArgs.cs16
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs41
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs87
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs20
-rwxr-xr-x[-rw-r--r--]ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorList.cs16
-rwxr-xr-xElmSharp/ElmSharp/Calendar.cs2
-rwxr-xr-xElmSharp/ElmSharp/Panes.cs5
-rwxr-xr-x[-rw-r--r--]ElmSharp/Interop/Interop.Elementary.DateTimePicker.cs2
-rwxr-xr-x[-rw-r--r--]ElmSharp/Interop/Interop.Elementary.ProgressBar.cs2
14 files changed, 418 insertions, 9 deletions
diff --git a/ElmSharp.Test/TC/GenListTest11.cs b/ElmSharp.Test/TC/GenListTest11.cs
new file mode 100755
index 0000000..731a9fc
--- /dev/null
+++ b/ElmSharp.Test/TC/GenListTest11.cs
@@ -0,0 +1,115 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+using System;
+using ElmSharp;
+using System.Collections.Generic;
+
+namespace ElmSharp.Test
+{
+ class GenListTest11 : TestCaseBase
+ {
+ public override string TestName => "GenListTest11";
+ public override string TestDescription => "To test InsertSorted operation of GenList";
+
+ public int myCompare(object t1, object t2)
+ {
+ int c1 = Convert.ToInt32((string)t1);
+ int c2 = Convert.ToInt32((string)t2);
+
+ return c1 - c2;
+ }
+
+ public override void Run(Window window)
+ {
+ Conformant conformant = new Conformant(window);
+ conformant.Show();
+ Box box = new Box(window)
+ {
+ AlignmentX = -1,
+ AlignmentY = -1,
+ WeightX = 1,
+ WeightY = 1,
+ };
+ box.Show();
+ conformant.SetContent(box);
+
+ GenList list = new GenList(window)
+ {
+ Homogeneous = true,
+ AlignmentX = -1,
+ AlignmentY = -1,
+ WeightX = 1,
+ WeightY = 1
+ };
+
+ GenItemClass defaultClass = new GenItemClass("default")
+ {
+ GetTextHandler = (obj, part) =>
+ {
+ return string.Format("{0} - {1}", (string)obj, part);
+ }
+ };
+
+ List<GenListItem> items = new List<GenListItem>();
+ int idx = 20;
+ for (int t = 1; t < 10; t++)
+ {
+ items.Add(list.InsertSorted(defaultClass, idx.ToString(), myCompare, GenListItemType.Normal, null));
+ idx--;
+ }
+ list.Show();
+ list.ItemSelected += List_ItemSelected;
+
+ box.PackEnd(list);
+ Button first = new Button(window)
+ {
+ Text = "Check first and last item",
+ AlignmentX = -1,
+ WeightX = 1,
+ };
+
+ Button Add = new Button(window)
+ {
+ Text = "Add",
+ AlignmentX = -1,
+ WeightX = 1,
+ };
+ Add.Clicked += (s, e) =>
+ {
+ items.Add(list.InsertSorted(defaultClass, idx.ToString(), myCompare, GenListItemType.Normal, null));
+ idx--;
+ };
+
+ first.Clicked += (s, e) =>
+ {
+ Console.WriteLine("Last Item's Data : " + list.LastItem.Data);
+ Console.WriteLine("First date of Items " + items[0].Data);
+ Console.WriteLine("Result for comparinson " + (bool)(list.LastItem == list.LastItem));
+ };
+
+ first.Show();
+ Add.Show();
+ box.PackEnd(first);
+ box.PackEnd(Add);
+ }
+
+ private void List_ItemSelected(object sender, GenListItemEventArgs e)
+ {
+ Console.WriteLine("{0} Item was selected", (string)(e.Item.Data));
+ }
+ }
+}
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
index 7f75cc1..002a7a6 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
@@ -5,14 +5,32 @@ using System.Linq;
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;
@@ -20,6 +38,10 @@ namespace ElmSharp.Wearable
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);
@@ -51,6 +73,9 @@ namespace ElmSharp.Wearable
return Interop.Eext.eext_more_option_add(parent);
}
+ /// <summary>
+ /// Sets or gets the direction of more option.
+ /// </summary>
public MoreOptionDirection Direction
{
get
@@ -65,6 +90,9 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Sets or gets the visibility of more option view.
+ /// </summary>
public bool IsOpened
{
get
@@ -79,6 +107,9 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Enumeration for More Option Direction type.
+ /// </summary>
public enum MoreOptionDirection
{
Top,
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
index ad5bf58..85ad356 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
@@ -4,6 +4,9 @@ using System.Text;
namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// The MoreOptionItem is a item of MoreOption widget.
+ /// </summary>
public class MoreOptionItem
{
const string MainTextPartName = "selector,main_text";
@@ -15,6 +18,9 @@ namespace ElmSharp.Wearable
Image _icon;
IntPtr _handle;
+ /// <summary>
+ /// Sets or gets the more option item handle.
+ /// </summary>
public IntPtr Handle
{
get
@@ -34,11 +40,17 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Set the icon to null
+ /// </summary>
public MoreOptionItem()
{
_icon = null;
}
+ /// <summary>
+ /// Sets or gets the main text of a more option object.
+ /// </summary>
public string MainText
{
set
@@ -57,6 +69,9 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Sets or gets the sub text of a more option object.
+ /// </summary>
public string SubText
{
set
@@ -75,6 +90,9 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Sets or gets the icon image
+ /// </summary>
public Image Icon
{
set
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
index 7bc9723..c1781e4 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
@@ -3,8 +3,15 @@ using System;
namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// The MoreOptionItemEventArgs is a event args class for MoreOptionItem.
+ /// Inherits EventArgs
+ /// </summary>
public class MoreOptionItemEventArgs : EventArgs
{
+ /// <summary>
+ /// Sets or gets the more option item
+ /// </summary>
public MoreOptionItem Item { get; set; }
}
}
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionList.cs b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionList.cs
index 577bc8e..95510d0 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionList.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionList.cs
@@ -11,10 +11,21 @@ namespace ElmSharp.Wearable
List<MoreOptionItem> Items { get; set; }
+ /// <summary>
+ /// Sets or gets the count of Items
+ /// </summary>
public int Count => Items.Count;
+ /// <summary>
+ /// Sets or gets whether it is read only
+ /// </summary>
public bool IsReadOnly => false;
+ /// <summary>
+ /// Sets or gets the item with the index
+ /// </summary>
+ /// <param name="index">the position of item in items</param>
+ /// <returns></returns>
public MoreOptionItem this[int index]
{
get
@@ -28,34 +39,60 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Creates and initializes a new instance of MoreOptionList class.
+ /// </summary>
+ /// <param name="owner">the object of more option</param>
public MoreOptionList(MoreOption owner)
{
Owner = owner;
Items = new List<MoreOptionItem>();
}
+ /// <summary>
+ /// Append a new item to a more option.
+ /// </summary>
+ /// <param name="item">The more option item</param>
public void Add(MoreOptionItem item)
{
item.Handle = Interop.Eext.eext_more_option_item_append(Owner);
Items.Add(item);
}
+ /// <summary>
+ /// add a new item to a more option at the first.
+ /// </summary>
+ /// <param name="item">The more option item</param>
public void AddFirst(MoreOptionItem item)
{
item.Handle = Interop.Eext.eext_more_option_item_prepend(Owner);
Items.Insert(0, item);
}
+ /// <summary>
+ /// add a new item to a more option at the last.
+ /// </summary>
+ /// <param name="item">The more option item</param>
public void AddLast(MoreOptionItem item)
{
Add(item);
}
+ /// <summary>
+ /// Get the index of item
+ /// </summary>
+ /// <param name="item">The more option item</param>
+ /// <returns>the index of item</returns>
public int IndexOf(MoreOptionItem item)
{
return Items.IndexOf(item);
}
+ /// <summary>
+ /// Insert a new item into the more option after more option item with the index.
+ /// </summary>
+ /// <param name="index">the index of item which is insert after</param>
+ /// <param name="item">The more option item</param>
public void Insert(int index, MoreOptionItem item)
{
if (Items.Count < index + 1 || index < 0)
@@ -66,6 +103,10 @@ namespace ElmSharp.Wearable
Items.Insert(index, item);
}
+ /// <summary>
+ /// Delete an item which is the given item index
+ /// </summary>
+ /// <param name="index">the item index which will be deleted</param>
public void RemoveAt(int index)
{
if (Items.Count < index + 1 || index < 0)
@@ -77,6 +118,9 @@ namespace ElmSharp.Wearable
Items.RemoveAt(index);
}
+ /// <summary>
+ /// Remove all items from a given more option list object.
+ /// </summary>
public void Clear()
{
Interop.Eext.eext_more_option_items_clear(Owner);
@@ -87,16 +131,31 @@ namespace ElmSharp.Wearable
Items.Clear();
}
+ /// <summary>
+ /// Check the item whether is contained
+ /// </summary>
+ /// <param name="item">The more option item</param>
+ /// <returns>If contain return true, otherwise false</returns>
public bool Contains(MoreOptionItem item)
{
return Items.Contains(item);
}
+ /// <summary>
+ /// Copy Items
+ /// </summary>
+ /// <param name="array">the target array</param>
+ /// <param name="arrayIndex">which index the item will copy to</param>
public void CopyTo(MoreOptionItem[] array, int arrayIndex)
{
Items.CopyTo(array, arrayIndex);
}
+ /// <summary>
+ /// Remove a item
+ /// </summary>
+ /// <param name="item">the item will be removed</param>
+ /// <returns>if remove success return true, otherwise false</returns>
public bool Remove(MoreOptionItem item)
{
if (Items.Contains(item))
@@ -108,6 +167,10 @@ namespace ElmSharp.Wearable
return false;
}
+ /// <summary>
+ /// Return an enumerator that iterates through IEnumerator<MoreOptionItem>
+ /// </summary>
+ /// <returns></returns>
public IEnumerator<MoreOptionItem> GetEnumerator()
{
return Items.GetEnumerator();
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/PointerEventArgs.cs b/ElmSharp.Wearable/ElmSharp.Wearable/PointerEventArgs.cs
index d746824..e0bf3c7 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/PointerEventArgs.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/PointerEventArgs.cs
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections.Generic;
using System.Text;
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
index eb0181c..48a2c80 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections.Generic;
using System.Linq;
@@ -5,6 +21,11 @@ using System.Text;
namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// The Rotary Selector is a widget to display a selector and multiple items surrounding the selector.
+ /// And an item can be selected by rotary event or user item click.
+ /// Inherits <see cref="Layout"/>.
+ /// </summary>
public class RotarySelector : Layout
{
const string IconPartName = "selector,icon";
@@ -14,15 +35,29 @@ namespace ElmSharp.Wearable
const string ItemSelectedEventName = "item,selected";
const string ItemClickedEventName = "item,clicked";
+ /// <summary>
+ /// Selected will be triggered when selected an item.
+ /// </summary>
public event EventHandler<RotarySelectorItemEventArgs> Selected;
+
+ /// <summary>
+ /// Clicked will be triggered when selecting again the alredy selected item or selecting a selector.
+ /// </summary>
public event EventHandler<RotarySelectorItemEventArgs> Clicked;
SmartEvent<PointerEventArgs> _selectedEvent;
SmartEvent<PointerEventArgs> _clickedEvent;
Image _normalBgImage;
+ /// <summary>
+ /// Gets the rotary selector item list of a rotary selector object.
+ /// </summary>
public IList<RotarySelectorItem> Items { get; private set; }
+ /// <summary>
+ /// Creates and initializes a new instance of the Rotary Selector class.
+ /// </summary>
+ /// <param name="parent">The parent of new Rotary Selector instance</param>
public RotarySelector(EvasObject parent) : base(parent)
{
Items = new RotarySelectorList(this);
@@ -42,6 +77,9 @@ namespace ElmSharp.Wearable
};
}
+ /// <summary>
+ /// Sets or gets the selected item of a rotary selector object.
+ /// </summary>
public RotarySelectorItem SelectedItem
{
get
@@ -77,6 +115,9 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Sets or gets the background image of a rotary selector object.
+ /// </summary>
public Image BackgroundImage { set => setPart(ref _normalBgImage, BgPartName, State.Normal, value); get => _normalBgImage; }
protected override IntPtr CreateHandle(EvasObject parent)
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
index d6abba8..38e46cb 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
@@ -1,9 +1,28 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections.Generic;
using System.Text;
namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// A instance to the Rotary Selector Item added. And an item can be selected by rotary event or user item click.
+ /// </summary>
public class RotarySelectorItem
{
const string MainTextPartName = "selector,main_text";
@@ -37,6 +56,9 @@ namespace ElmSharp.Wearable
IntPtr _handle;
+ /// <summary>
+ /// Sets or gets the handle of a rotary selector item object.
+ /// </summary>
public IntPtr Handle
{
set
@@ -128,28 +150,89 @@ namespace ElmSharp.Wearable
}
}
+ /// <summary>
+ /// Sets or gets the main text of a rotary selector item object.
+ /// </summary>
public string MainText { set => setPart(ref _mainText, MainTextPartName, value); get => _mainText; }
+
+ /// <summary>
+ /// Sets or gets the sub text of a rotary selector item object.
+ /// </summary>
public string SubText { set => setPart(ref _subText, SubTextPartName, value); get => _subText; }
+ /// <summary>
+ /// Sets or gets the sub text color of a rotary selector item object.
+ /// </summary>
public Color MainTextColor { set => setPart(ref _mainTextColor, MainTextPartName, ItemState.Normal, value); get => _mainTextColor; }
- public Color SubextColor { set => setPart(ref _subTextColor, SubTextPartName, ItemState.Normal, value); get => _subTextColor; }
+ /// <summary>
+ /// Sets or gets the sub text color of a rotary selector item object.
+ /// </summary>
+ public Color SubTextColor { set => setPart(ref _subTextColor, SubTextPartName, ItemState.Normal, value); get => _subTextColor; }
+
+ /// <summary>
+ /// Sets or gets the normal icon image of a rotary selector item object.
+ /// </summary>
public Image NormalIconImage { set => setPart(ref _normalIconImage, IconPartName, ItemState.Normal, value); get => _normalIconImage; }
+
+ /// <summary>
+ /// Sets or gets the press icon image of a rotary selector item object.
+ /// </summary>
public Image PressedIconImage { set => setPart(ref _pressedIconImage, IconPartName, ItemState.Pressed, value); get => _pressedIconImage; }
+
+ /// <summary>
+ /// Sets or gets the disable icon image of a rotary selector item object.
+ /// </summary>
public Image DisabledIconImage { set => setPart(ref _disabledIconImage, IconPartName, ItemState.Disabled, value); get => _disabledIconImage; }
- public Image SelectedIconImage { set => setPart(ref _selectedIconImage, IconPartName, ItemState.Selected, value); get => _selectedIconImage; }
+ /// <summary>
+ /// Sets or gets the selected icon image of a rotary selector item object.
+ /// </summary>
+ public Image SelectedIconImage { set => setPart(ref _selectedIconImage, IconPartName, ItemState.Selected, value); get => _selectedIconImage; }
+ /// <summary>
+ /// Sets or gets the normal background image of a rotary selector item object.
+ /// </summary>
public Image NormalBackgroundImage { set => setPart(ref _normalBgImage, BgPartName, ItemState.Normal, value); get => _normalBgImage; }
+
+ /// <summary>
+ /// Sets or gets the pressed background image of a rotary selector item object.
+ /// </summary>
public Image PressedBackgroundImage { set => setPart(ref _pressedBgImage, BgPartName, ItemState.Pressed, value); get => _pressedBgImage; }
+
+ /// <summary>
+ /// Sets or gets the disabled background image of a rotary selector item object.
+ /// </summary>
public Image DisabledBackgroundImage { set => setPart(ref _disabledBgImage, BgPartName, ItemState.Disabled, value); get => _disabledBgImage; }
+
+ /// <summary>
+ /// Sets or gets the selected background image of a rotary selector item object.
+ /// </summary>
public Image SelectedBackgroundImage { set => setPart(ref _selectedBgImage, BgPartName, ItemState.Selected, value); get => _selectedBgImage; }
+ /// <summary>
+ /// Sets or gets the normal background color of a rotary selector item object.
+ /// </summary>
public Color NormalBackgroundColor { set => setPart(ref _normalBgColor, BgPartName, ItemState.Normal, value); get => _normalBgColor; }
+
+ /// <summary>
+ /// Sets or gets the pressed background color of a rotary selector item object.
+ /// </summary>
public Color PressedBackgroundColor { set => setPart(ref _pressedBgColor, BgPartName, ItemState.Pressed, value); get => _pressedBgColor; }
+
+ /// <summary>
+ /// Sets or gets the disabled background color of a rotary selector item object.
+ /// </summary>
public Color DisabledBackgroundColor { set => setPart(ref _disabledBgColor, BgPartName, ItemState.Disabled, value); get => _disabledBgColor; }
+
+ /// <summary>
+ /// Sets or gets the selected background color of a rotary selector item object.
+ /// </summary>
public Color SelectedBackgroundColor { set => setPart(ref _selectedBgColor, BgPartName, ItemState.Selected, value); get => _selectedBgColor; }
+ /// <summary>
+ /// Sets or gets the selector icon image of a rotary selector item object.
+ /// </summary>
public Image SelectorIconImage { set => setPart(ref _selectorIconImage, SelectorIconPartName, ItemState.Normal, value); get => _selectorIconImage; }
internal enum ItemState
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
index 401be2f..b6494d1 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
@@ -1,9 +1,29 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections.Generic;
using System.Text;
namespace ElmSharp.Wearable
{
+ /// <summary>
+ /// <see cref="RotarySelector.Selected"> and <see cref="RotarySelector.Clicked"> events of RotarySelector contain RotarySelectorItemEventArgs as a parameter.
+ /// Inherits <see cref="EventArgs"/>.
+ /// </summary>
public class RotarySelectorItemEventArgs : EventArgs
{
public RotarySelectorItem Item { get; set; }
diff --git a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorList.cs b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorList.cs
index 2f73984..39866b8 100644..100755
--- a/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorList.cs
+++ b/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorList.cs
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using System;
using System.Collections;
using System.Collections.Generic;
diff --git a/ElmSharp/ElmSharp/Calendar.cs b/ElmSharp/ElmSharp/Calendar.cs
index ef87281..01a6c76 100755
--- a/ElmSharp/ElmSharp/Calendar.cs
+++ b/ElmSharp/ElmSharp/Calendar.cs
@@ -387,8 +387,6 @@ namespace ElmSharp
/// <summary>
/// Gets or sets date format the string that will be used to display month and year.
- /// By default it uses strftime with "%B %Y" format string.
- /// It should allocate the memory that will be used by the string, that will be freed by the widget after usage.A pointer to the string and a pointer to the time struct will be provided.
/// </summary>
public DateFormatDelegate DateFormat
{
diff --git a/ElmSharp/ElmSharp/Panes.cs b/ElmSharp/ElmSharp/Panes.cs
index d99b5b6..4871d68 100755
--- a/ElmSharp/ElmSharp/Panes.cs
+++ b/ElmSharp/ElmSharp/Panes.cs
@@ -94,8 +94,9 @@ namespace ElmSharp
/// Sets or gets the orientation of a given Panes widget.
/// </summary>
/// <remarks>
- /// Uses this function to change how your panes are to be disposed: vertically or horizontally.
- /// By default it's displayed horizontally.
+ /// Use this function to change how your panes is to be disposed: vertically or horizontally.
+ /// Horizontal panes have "top" and "bottom" contents, vertical panes have "left" and "right" contents.
+ /// By default panes is in a vertical mode.
/// </remarks>
public bool IsHorizontal
{
diff --git a/ElmSharp/Interop/Interop.Elementary.DateTimePicker.cs b/ElmSharp/Interop/Interop.Elementary.DateTimePicker.cs
index e65b9ef..a8bf333 100644..100755
--- a/ElmSharp/Interop/Interop.Elementary.DateTimePicker.cs
+++ b/ElmSharp/Interop/Interop.Elementary.DateTimePicker.cs
@@ -33,7 +33,7 @@ internal static partial class Interop
[DllImport(Libraries.Elementary)]
internal static extern bool elm_datetime_format_set(IntPtr obj, string format);
- [DllImport(Libraries.Elementary)]
+ [DllImport(Libraries.Elementary, EntryPoint = "elm_datetime_format_get")]
internal static extern IntPtr _elm_datetime_format_get(IntPtr obj);
internal static string elm_datetime_format_get(IntPtr obj)
diff --git a/ElmSharp/Interop/Interop.Elementary.ProgressBar.cs b/ElmSharp/Interop/Interop.Elementary.ProgressBar.cs
index 259b53f..4e35680 100644..100755
--- a/ElmSharp/Interop/Interop.Elementary.ProgressBar.cs
+++ b/ElmSharp/Interop/Interop.Elementary.ProgressBar.cs
@@ -66,7 +66,7 @@ internal static partial class Interop
[DllImport(Libraries.Elementary)]
internal static extern void elm_progressbar_unit_format_set(IntPtr obj, string format);
- [DllImport(Libraries.Elementary)]
+ [DllImport(Libraries.Elementary, EntryPoint = "elm_progressbar_unit_format_get")]
internal static extern IntPtr _elm_progressbar_unit_format_get(IntPtr obj);
internal static string elm_progressbar_unit_format_get(IntPtr obj)