From cc07997c2c942822c5d8c72db49b238a201a8946 Mon Sep 17 00:00:00 2001
From: Piotr Szydelko
Date: Tue, 31 Oct 2017 09:01:15 +0100
Subject: [PATCH] [ElmSharp] Mark ElmSharp API as API Level: preview
Signed-off-by: Piotr Szydelko
Change-Id: I49763cd7ac1d22e227085d762a92928eff93e2d0
---
.../ElmSharp.Wearable/CircleDatetimeSelector.cs | 11 ++++
.../ElmSharp.Wearable/CircleGenList.cs | 15 +++++
.../ElmSharp.Wearable/CircleProgressBar.cs | 23 +++++++
.../ElmSharp.Wearable/CircleScroller.cs | 22 +++++++
.../ElmSharp.Wearable/CircleSlider.cs | 26 ++++++++
.../ElmSharp.Wearable/CircleSpinner.cs | 12 ++++
.../ElmSharp.Wearable/CircleSurface.cs | 7 ++
.../ElmSharp.Wearable/ICircleWidget.cs | 4 ++
.../ElmSharp.Wearable/MoreOption.cs | 11 ++++
.../ElmSharp.Wearable/MoreOptionItem.cs | 6 ++
.../ElmSharp.Wearable/MoreOptionItemEventArgs.cs | 2 +
.../ElmSharp.Wearable/RotaryEventManager.cs | 13 ++++
.../ElmSharp.Wearable/RotarySelector.cs | 8 +++
.../ElmSharp.Wearable/RotarySelectorItem.cs | 19 ++++++
.../RotarySelectorItemEventArgs.cs | 2 +
src/ElmSharp/ElmSharp/AccessRole.cs | 1 +
src/ElmSharp/ElmSharp/AccessibleObject.cs | 6 ++
src/ElmSharp/ElmSharp/AccessibleRelation.cs | 57 ++++++++++++++++
src/ElmSharp/ElmSharp/AccessibleUtil.cs | 3 +
src/ElmSharp/ElmSharp/Background.cs | 8 +++
src/ElmSharp/ElmSharp/Box.cs | 18 +++++
src/ElmSharp/ElmSharp/Button.cs | 12 ++++
src/ElmSharp/ElmSharp/Calendar.cs | 28 ++++++++
src/ElmSharp/ElmSharp/Check.cs | 5 ++
.../ElmSharp/CheckStateChangedEventArgs.cs | 4 ++
src/ElmSharp/ElmSharp/Color.cs | 37 +++++++++++
src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs | 4 ++
src/ElmSharp/ElmSharp/ColorSelector.cs | 11 ++++
src/ElmSharp/ElmSharp/ColorSelectorItem.cs | 2 +
src/ElmSharp/ElmSharp/Conformant.cs | 3 +
src/ElmSharp/ElmSharp/Container.cs | 8 +++
src/ElmSharp/ElmSharp/ContextPopup.cs | 16 +++++
src/ElmSharp/ElmSharp/ContextPopupItem.cs | 4 ++
src/ElmSharp/ElmSharp/DateChangedEventArgs.cs | 4 ++
src/ElmSharp/ElmSharp/DateTimeSelector.cs | 14 ++++
.../ElmSharp/DisplayedMonthChangedEventArgs.cs | 4 ++
src/ElmSharp/ElmSharp/EcoreAnimator.cs | 4 ++
src/ElmSharp/ElmSharp/EcoreEvent.cs | 20 ++++++
src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs | 4 ++
src/ElmSharp/ElmSharp/EcoreMainloop.cs | 9 +++
.../ElmSharp/EcoreSynchronizationContext.cs | 5 ++
src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs | 10 +++
src/ElmSharp/ElmSharp/EdjeObject.cs | 17 +++++
src/ElmSharp/ElmSharp/EffectBase.cs | 2 +
src/ElmSharp/ElmSharp/Elementary.cs | 31 +++++++++
src/ElmSharp/ElmSharp/ElmScrollConfig.cs | 2 +
src/ElmSharp/ElmSharp/Entry.cs | 77 ++++++++++++++++++++++
src/ElmSharp/ElmSharp/EvasCanvas.cs | 9 +++
src/ElmSharp/ElmSharp/EvasImage.cs | 19 ++++++
src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs | 8 +++
src/ElmSharp/ElmSharp/EvasMap.cs | 11 ++++
src/ElmSharp/ElmSharp/EvasObject.cs | 73 ++++++++++++++++++++
src/ElmSharp/ElmSharp/EvasObjectEvent.cs | 19 ++++++
src/ElmSharp/ElmSharp/FlipSelector.cs | 15 +++++
src/ElmSharp/ElmSharp/FlipSelectorItem.cs | 4 ++
src/ElmSharp/ElmSharp/FloatingButton.cs | 10 +++
src/ElmSharp/ElmSharp/GenGrid.cs | 40 +++++++++++
src/ElmSharp/ElmSharp/GenGridItem.cs | 13 ++++
src/ElmSharp/ElmSharp/GenItem.cs | 17 +++++
src/ElmSharp/ElmSharp/GenItemClass.cs | 25 +++++++
src/ElmSharp/ElmSharp/GenList.cs | 55 ++++++++++++++++
src/ElmSharp/ElmSharp/GenListItem.cs | 22 +++++++
src/ElmSharp/ElmSharp/GestureLayer.cs | 70 ++++++++++++++++++++
src/ElmSharp/ElmSharp/Hoversel.cs | 17 +++++
src/ElmSharp/ElmSharp/HoverselItem.cs | 3 +
src/ElmSharp/ElmSharp/IAccessibleObject.cs | 13 ++++
src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs | 37 +++++++++++
src/ElmSharp/ElmSharp/Icon.cs | 7 ++
src/ElmSharp/ElmSharp/Image.cs | 37 +++++++++++
src/ElmSharp/ElmSharp/Index.cs | 18 +++++
src/ElmSharp/ElmSharp/IndexItem.cs | 5 ++
src/ElmSharp/ElmSharp/ItemObject.cs | 20 ++++++
src/ElmSharp/ElmSharp/ItemObjectExtension.cs | 3 +
src/ElmSharp/ElmSharp/Label.cs | 13 ++++
src/ElmSharp/ElmSharp/Layout.cs | 29 ++++++++
src/ElmSharp/ElmSharp/List.cs | 19 ++++++
src/ElmSharp/ElmSharp/ListItem.cs | 4 ++
src/ElmSharp/ElmSharp/MultiButtonEntry.cs | 29 ++++++++
src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs | 6 ++
src/ElmSharp/ElmSharp/NamedHint.cs | 3 +
src/ElmSharp/ElmSharp/NaviItem.cs | 7 ++
src/ElmSharp/ElmSharp/Naviframe.cs | 20 ++++++
src/ElmSharp/ElmSharp/Panel.cs | 10 +++
src/ElmSharp/ElmSharp/Panes.cs | 12 ++++
src/ElmSharp/ElmSharp/Point.cs | 9 +++
src/ElmSharp/ElmSharp/Point3D.cs | 10 +++
src/ElmSharp/ElmSharp/Polygon.cs | 6 ++
src/ElmSharp/ElmSharp/Popup.cs | 18 +++++
src/ElmSharp/ElmSharp/PopupItem.cs | 3 +
src/ElmSharp/ElmSharp/ProgressBar.cs | 16 +++++
src/ElmSharp/ElmSharp/Radio.cs | 7 ++
src/ElmSharp/ElmSharp/ReadingInfoType.cs | 1 +
src/ElmSharp/ElmSharp/Rect.cs | 18 +++++
src/ElmSharp/ElmSharp/Rectangle.cs | 3 +
src/ElmSharp/ElmSharp/Scroller.cs | 46 +++++++++++++
src/ElmSharp/ElmSharp/Size.cs | 10 +++
src/ElmSharp/ElmSharp/Slider.cs | 19 ++++++
src/ElmSharp/ElmSharp/SmartEvent.cs | 16 +++++
src/ElmSharp/ElmSharp/Spinner.cs | 20 ++++++
src/ElmSharp/ElmSharp/Table.cs | 11 ++++
src/ElmSharp/ElmSharp/Toolbar.cs | 29 ++++++++
src/ElmSharp/ElmSharp/ToolbarItem.cs | 9 +++
src/ElmSharp/ElmSharp/Transit.cs | 21 ++++++
src/ElmSharp/ElmSharp/TransitEffect.cs | 37 +++++++++++
src/ElmSharp/ElmSharp/Utility.cs | 12 ++++
src/ElmSharp/ElmSharp/Widget.cs | 33 ++++++++++
src/ElmSharp/ElmSharp/Window.cs | 61 +++++++++++++++++
src/ElmSharp/ElmSharp/WrapType.cs | 1 +
108 files changed, 1749 insertions(+)
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs
index 475c7c1..0f5c017 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs
@@ -24,6 +24,7 @@ namespace ElmSharp.Wearable
/// The Circle DateTime Selector is a widget to display and handle datetime value by rotary event
/// Inherits
///
+ /// preview
public class CircleDateTimeSelector : DateTimeSelector, IRotaryActionWidget
{
IntPtr _circleHandle;
@@ -34,6 +35,7 @@ namespace ElmSharp.Wearable
///
/// The parent of new Circle DateTime instance
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleDateTimeSelector(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -45,6 +47,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle DateTimeSelector class.
///
/// The parent of new Circle CircleDateTimeSelector instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleDateTimeSelector(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -55,16 +58,19 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => _circleHandle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -76,6 +82,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -91,6 +98,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the color of the marker
///
+ /// preview
public Color MarkerColor
{
get
@@ -108,6 +116,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line width of the marker
///
+ /// preview
public int MarkerLineWidth
{
get
@@ -123,6 +132,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the radius at which the center of the marker lies
///
+ /// preview
public double MarkerRadius
{
get
@@ -140,6 +150,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs
index 813c4c6..fd4d13a 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs
@@ -24,6 +24,7 @@ namespace ElmSharp.Wearable
/// The Circle GenList Selector is a widget to display and handle genlist items by rotary event
/// Inherits
///
+ /// preview
public class CircleGenList : GenList, IRotaryActionWidget
{
IntPtr _circleHandle;
@@ -34,6 +35,7 @@ namespace ElmSharp.Wearable
///
/// The parent of new Circle GenList instance
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleGenList(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -45,6 +47,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle GenList class.
///
/// The parent of new Circle CircleGenList instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleGenList(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -55,16 +58,19 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => _circleHandle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -76,6 +82,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -91,6 +98,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the color of the scroll background
///
+ /// preview
public Color VerticalScrollBackgroundColor
{
get
@@ -108,6 +116,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line width of the scroll background
///
+ /// preview
public int VerticalScrollBackgroundLineWidth
{
get
@@ -123,6 +132,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the redius of the scroll background
///
+ /// preview
public double VerticalScrollBackgroundRadius
{
get
@@ -138,6 +148,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the color of the scroll bar
///
+ /// preview
public Color VerticalScrollBarColor
{
get
@@ -155,6 +166,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line width of the scroll bar
///
+ /// preview
public int VerticalScrollBarLineWidth
{
get
@@ -170,6 +182,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the redius of the scroll bar
///
+ /// preview
public double VerticalScrollBarRadius
{
get
@@ -189,6 +202,7 @@ namespace ElmSharp.Wearable
/// ScrollBarVisiblePolicy.Auto means the vertical scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
@@ -210,6 +224,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs
index 843b8aa..ff97d0e 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs
@@ -24,6 +24,7 @@ namespace ElmSharp.Wearable
///
/// The Circle ProgressBar is a widget for visually representing the progress status of a given job/task with the circular design.
///
+ /// preview
public class CircleProgressBar : Widget, ICircleWidget
{
CircleSurface _surface;
@@ -33,6 +34,7 @@ namespace ElmSharp.Wearable
///
/// The parent of new Circle Progressbar instance
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleProgressBar(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -44,6 +46,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle Progressbar class.
///
/// The parent of new Circle Progressbar instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleProgressBar(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -53,16 +56,19 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => Handle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -74,6 +80,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -89,6 +96,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the value of ProgressBar.
///
+ /// preview
public double Value
{
get
@@ -104,6 +112,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the maximum value of ProgressBar.
///
+ /// preview
public double Maximum
{
get
@@ -123,6 +132,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the minimum value of ProgressBar.
///
+ /// preview
public double Minimum
{
get
@@ -142,6 +152,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle value of ProgressBar.
///
+ /// preview
public double BarAngle
{
get
@@ -157,6 +168,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle value of Background ProgressBar.
///
+ /// preview
public double BackgroundAngle
{
get
@@ -172,6 +184,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle offset value of ProgressBar.
///
+ /// preview
public double BarAngleOffset
{
get
@@ -187,6 +200,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle offset value of Background ProgressBar.
///
+ /// preview
public double BackgroundAngleOffset
{
get
@@ -202,6 +216,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the maximum angle value of ProgressBar.
///
+ /// preview
public double BarAngleMaximum
{
get
@@ -221,6 +236,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the minimum angle value of ProgressBar.
///
+ /// preview
public double BarAngleMinimum
{
get
@@ -240,6 +256,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of ProgressBar.
///
+ /// preview
public Color BarColor
{
get
@@ -260,6 +277,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of Background ProgressBar.
///
+ /// preview
public override Color BackgroundColor
{
get
@@ -280,6 +298,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of ProgressBar.
///
+ /// preview
public int BarLineWidth
{
get
@@ -295,6 +314,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of Background ProgressBar.
///
+ /// preview
public int BackgroundLineWidth
{
get
@@ -310,6 +330,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of ProgressBar.
///
+ /// preview
public double BarRadius
{
get
@@ -325,6 +346,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of Background ProgressBar.
///
+ /// preview
public double BackgroundRadius
{
get
@@ -342,6 +364,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_circle_object_progressbar_add(parent, CircleSurface.Handle);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs
index 7ce56f8..278d05f 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Wearable
///
/// Circle scroller provides scrollbar with circular movement and is scrolled by rotary event.
///
+ /// preview
public class CircleScroller : Scroller, IRotaryActionWidget
{
IntPtr _circleHandle;
@@ -33,6 +34,7 @@ namespace ElmSharp.Wearable
///
/// The to which the new CircleScroller will be attached as a child.
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleScroller(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -44,6 +46,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle Scroller class.
///
/// The parent of new Circle CircleScroller instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleScroller(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -54,16 +57,19 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => _circleHandle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -75,6 +81,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -94,6 +101,7 @@ namespace ElmSharp.Wearable
/// ScrollBarVisiblePolicy.Auto means the horizontal scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public override ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
@@ -116,6 +124,7 @@ namespace ElmSharp.Wearable
/// ScrollBarVisiblePolicy.Auto means the vertical scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public override ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
@@ -134,6 +143,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the vertical scroll bar.
///
+ /// preview
public Color VerticalScrollBarColor
{
get
@@ -154,6 +164,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the horizontal scroll bar.
///
+ /// preview
public Color HorizontalScrollBarColor
{
get
@@ -174,6 +185,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the vertical scroll background.
///
+ /// preview
public Color VerticalScrollBackgroundColor
{
get
@@ -194,6 +206,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the horizontal scroll background.
///
+ /// preview
public Color HorizontalScrollBackgroundColor
{
get
@@ -214,6 +227,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of the vertical scroll bar.
///
+ /// preview
public int VerticalScrollBarLineWidth
{
get
@@ -229,6 +243,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of the horizontal scroll bar.
///
+ /// preview
public int HorizontalScrollBarLineWidth
{
get
@@ -244,6 +259,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of the vertical scroll background.
///
+ /// preview
public int VerticalScrollBackgroundLineWidth
{
get
@@ -259,6 +275,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets line width of the horizontal scroll background.
///
+ /// preview
public int HorizontalScrollBackgroundLineWidth
{
get
@@ -274,6 +291,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of the vertical scroll bar.
///
+ /// preview
public double VerticalScrollBarRadius
{
get
@@ -289,6 +307,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of the horizontal scroll bar.
///
+ /// preview
public double HorizontalScrollBarRadius
{
get
@@ -304,6 +323,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of the vertical scroll background.
///
+ /// preview
public double VerticalScrollBackgroundRadius
{
get
@@ -319,6 +339,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets radius of the horizontal scroll background.
///
+ /// preview
public double HorizontalScrollBackgroundRadius
{
get
@@ -336,6 +357,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = base.CreateHandle(parent);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs
index 61959e0..f2e20d2 100755
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Wearable
///
/// Circle slider is circular designed widget to select a value in a range by rotary event.
///
+ /// preview
public class CircleSlider : Widget, IRotaryActionWidget
{
SmartEvent _changedEvent;
@@ -33,6 +34,7 @@ namespace ElmSharp.Wearable
///
/// The EvasObject to which the new CircleSlider will be attached as a child.
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleSlider(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -44,6 +46,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle Slider class.
///
/// The parent of new Circle CircleSlider instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleSlider(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -54,16 +57,19 @@ namespace ElmSharp.Wearable
///
/// Changed will be triggered when the circle slider value changes.
///
+ /// preview
public event EventHandler ValueChanged;
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => RealHandle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
@@ -73,6 +79,7 @@ namespace ElmSharp.Wearable
/// This value is used when circle slider value is changed by an drag or rotary event
/// The value of the slider is increased/decreased by the step value.
///
+ /// preview
public double Step
{
get
@@ -88,6 +95,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -99,6 +107,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -114,6 +123,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the circle slider bar.
///
+ /// preview
public Color BarColor
{
get
@@ -134,6 +144,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets color of the circle slider background.
///
+ /// preview
public override Color BackgroundColor
{
get
@@ -154,6 +165,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line with of the circle slider bar.
///
+ /// preview
public int BarLineWidth
{
get
@@ -169,6 +181,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line with of the circle slider background.
///
+ /// preview
public int BackgroundLineWidth
{
get
@@ -184,6 +197,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle in degree of the circle slider bar.
///
+ /// preview
public double BarAngle
{
get
@@ -199,6 +213,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the angle in degree of the circle slider background.
///
+ /// preview
public double BackgroundAngle
{
get
@@ -215,6 +230,7 @@ namespace ElmSharp.Wearable
/// Sets or gets the angle offset for the slider bar.
/// offset value means start position of the slider bar.
///
+ /// preview
public double BarAngleOffset
{
get
@@ -231,6 +247,7 @@ namespace ElmSharp.Wearable
/// Sets or gets the angle offset for the circle slider background.
/// offset value means start position of the slider background.
///
+ /// preview
public double BackgroundAngleOffset
{
get
@@ -246,6 +263,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the minimum angle of the circle slider bar.
///
+ /// preview
public double BarAngleMinimum
{
get
@@ -265,6 +283,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the maximum angle of the circle slider bar.
///
+ /// preview
public double BarAngleMaximum
{
get
@@ -289,6 +308,7 @@ namespace ElmSharp.Wearable
/// If the actual value is less than min, it is updated to min.
/// Actual value can be obtained with Value.By default, min is equal to 0.0.
///
+ /// preview
public double Minimum
{
get
@@ -314,6 +334,7 @@ namespace ElmSharp.Wearable
/// Actual value can be obtained with Value.By default, min is equal to 0.0, and max is equal to 1.0.
/// Maximum must be greater than minimum, otherwise the behavior is undefined.
///
+ /// preview
public double Maximum
{
get
@@ -336,6 +357,7 @@ namespace ElmSharp.Wearable
///
/// The value must to be between Minimum and Maximum values.
///
+ /// preview
public double Value
{
get
@@ -351,6 +373,7 @@ namespace ElmSharp.Wearable
///
/// Gets or sets the radius value for the circle slider bar.
///
+ /// preview
public double BarRadius
{
get
@@ -366,6 +389,7 @@ namespace ElmSharp.Wearable
///
/// Gets or sets the radius value for the circle slider background.
///
+ /// preview
public double BackgroundRadius
{
get
@@ -381,6 +405,7 @@ namespace ElmSharp.Wearable
///
/// The callback of Realized Event
///
+ /// preview
protected override void OnRealized()
{
base.OnRealized();
@@ -393,6 +418,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_circle_object_slider_add(parent, CircleSurface.Handle);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs
index 0c62a7c..c0ca700 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs
@@ -25,6 +25,7 @@ namespace ElmSharp.Wearable
/// The Circle Spinner is a widget to display and handle spinner value by rotary event
/// Inherits .
///
+ /// preview
public class CircleSpinner : Spinner, IRotaryActionWidget
{
IntPtr _circleHandle;
@@ -36,6 +37,7 @@ namespace ElmSharp.Wearable
///
/// The parent of new Circle Spinner instance
/// The surface for drawing circle features for this widget.
+ /// preview
public CircleSpinner(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
@@ -47,6 +49,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the Circle Spinner class.
///
/// The parent of new Circle CircleSpinner instance
+ /// preview
[Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircleSpinner(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
@@ -57,16 +60,19 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for Circle Widget.
///
+ /// preview
public virtual IntPtr CircleHandle => _circleHandle;
///
/// Gets the handle for Circle Surface used in this widget
///
+ /// preview
public virtual CircleSurface CircleSurface => _surface;
///
/// Sets or gets the circle spinner angle per each spinner value.
///
+ /// preview
public double AngleRatio
{
get
@@ -83,6 +89,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets disabled state of this widget.
///
+ /// preview
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
@@ -94,6 +101,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the state of the widget, which might be enabled or disabled.
///
+ /// preview
public override bool IsEnabled
{
get
@@ -109,6 +117,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the line width of the marker
///
+ /// preview
public int MarkerLineWidth
{
get
@@ -124,6 +133,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the color of the marker
///
+ /// preview
public Color MarkerColor
{
get
@@ -141,6 +151,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the radius at which the center of the marker lies
///
+ /// preview
public double MarkerRadius
{
get
@@ -158,6 +169,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = base.CreateHandle(parent);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs
index c8e574a..c36cef9 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs
@@ -7,6 +7,7 @@ namespace ElmSharp.Wearable
///
/// The CircleSurface presents a surface for drawing circular feature of circle widgets
///
+ /// preview
public class CircleSurface
{
IntPtr _handle;
@@ -15,6 +16,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the CircleSurface class with surface on the Conformant widget.
///
/// Conformant widget to create a surface.
+ /// preview
public CircleSurface(Conformant conformant)
{
_handle = Interop.Eext.eext_circle_surface_conformant_add(conformant);
@@ -24,6 +26,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the CircleSurface class with surface on the Layout widget.
///
/// Layout widget to create a surface.
+ /// preview
public CircleSurface(Layout layout)
{
_handle = Interop.Eext.eext_circle_surface_layout_add(layout);
@@ -33,6 +36,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of the CircleSurface class with surface on the Naviframe widget.
///
/// Naviframe widget to create a surface.
+ /// preview
public CircleSurface(Naviframe naviframe)
{
_handle = Interop.Eext.eext_circle_surface_naviframe_add(naviframe);
@@ -41,6 +45,7 @@ namespace ElmSharp.Wearable
///
/// Creates and initializes a new instance of the CircleSurface class with no surface
///
+ /// preview
public CircleSurface()
{
_handle = IntPtr.Zero;
@@ -49,11 +54,13 @@ namespace ElmSharp.Wearable
///
/// Gets the handle for CircleSurface
///
+ /// preview
public IntPtr Handle => _handle;
///
/// Delete the given CirclrSurface
///
+ /// preview
public void Delete()
{
if (Handle != IntPtr.Zero)
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs
index 17cdf42..2f0a89c 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs
@@ -7,22 +7,26 @@ namespace ElmSharp.Wearable
///
/// The ICircleWidget is the interface for a widget to display and handle with circle surface
///
+ /// preview
public interface ICircleWidget
{
///
/// Gets the handle for Circle Widget.
///
+ /// preview
IntPtr CircleHandle { get; }
///
/// Gets the CircleSurface used in this widget
///
+ /// preview
CircleSurface CircleSurface { get; }
}
///
/// The IRotaryActionWidget is the interface for a widget has action by rotary event
///
+ /// preview
public interface IRotaryActionWidget : ICircleWidget
{
}
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
index e27b780..af8163d 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs
@@ -24,28 +24,34 @@ namespace ElmSharp.Wearable
/// 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
///
+ /// preview
public class MoreOption : Layout
{
///
/// Sets or gets the list of more option item
///
+ /// preview
public IList Items { get; private set; }
///
/// Selected will be triggered when the user selects an item.
///
+ /// preview
public event EventHandler Selected;
///
/// Clicked will be triggered when the user selects the already selected item again or selects a selector.
///
+ /// preview
public event EventHandler Clicked;
///
/// Opened will be triggered when more option view is shown.
///
+ /// preview
public event EventHandler Opened;
///
/// Closed will be triggered when more option view is hidden.
///
+ /// preview
public event EventHandler Closed;
SmartEvent _selectedEvent;
@@ -57,6 +63,7 @@ namespace ElmSharp.Wearable
/// Creates and initializes a new instance of MoreOption class.
///
/// The parent is a given container which will be attached by MoreOption as a child. It's type.
+ /// preview
public MoreOption(EvasObject parent) : base(parent)
{
Items = new MoreOptionList(this);
@@ -88,6 +95,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_more_option_add(parent);
@@ -96,6 +104,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the direction of more option.
///
+ /// preview
public MoreOptionDirection Direction
{
get
@@ -113,6 +122,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the visibility of more option view.
///
+ /// preview
public bool IsOpened
{
get
@@ -130,6 +140,7 @@ namespace ElmSharp.Wearable
///
/// Enumeration for More Option Direction type.
///
+ /// preview
public enum MoreOptionDirection
{
///
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
index d6b4933..c6d68dd 100755
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Wearable
///
/// The MoreOptionItem is a item of MoreOption widget.
///
+ /// preview
public class MoreOptionItem
{
const string MainTextPartName = "selector,main_text";
@@ -37,6 +38,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the more option item handle.
///
+ /// preview
public IntPtr Handle
{
get
@@ -59,6 +61,7 @@ namespace ElmSharp.Wearable
///
/// Creates and initializes a new instance of MoreOptionItem class.
///
+ /// preview
public MoreOptionItem()
{
_icon = null;
@@ -67,6 +70,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the main text of a more option object.
///
+ /// preview
public string MainText
{
set
@@ -88,6 +92,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the sub text of a more option object.
///
+ /// preview
public string SubText
{
set
@@ -109,6 +114,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the icon image
///
+ /// preview
public Image Icon
{
set
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
index baee453..7bc7857 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs
@@ -22,11 +22,13 @@ namespace ElmSharp.Wearable
/// The MoreOptionItemEventArgs is a event args class for MoreOptionItem.
/// Inherits EventArgs
///
+ /// preview
public class MoreOptionItemEventArgs : EventArgs
{
///
/// Sets or gets the more option item
///
+ /// preview
public MoreOptionItem Item { get; set; }
}
}
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs
index f413ae4..7fc06ab 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs
@@ -24,6 +24,7 @@ namespace ElmSharp.Wearable
///
/// RotaryEventManager serve functions for global Rotary event like Galaxy Gear.
///
+ /// preview
public static class RotaryEventManager
{
static Dictionary s_rotaryEventHandlers = new Dictionary();
@@ -31,6 +32,7 @@ namespace ElmSharp.Wearable
///
/// Rotated will triggered when rotatable device like Galaxy Gear Bezel is rotated.
///
+ /// preview
public static event RotaryEventHandler Rotated
{
add
@@ -67,6 +69,7 @@ namespace ElmSharp.Wearable
///
/// RotaryEventManager serve extension functions for Rotary event to EvasObject on device like Galaxy Gear.
///
+ /// preview
public static class RotaryEventExtensions
{
static Dictionary s_rotaryObjectEventHandlers = new Dictionary();
@@ -77,6 +80,7 @@ namespace ElmSharp.Wearable
///
/// Target EvasObject
/// Event handler for Rotary event
+ /// preview
public static void AddRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
{
EnableRotaryEventHandler(obj);
@@ -96,6 +100,7 @@ namespace ElmSharp.Wearable
///
/// Target EvasObject
/// Event handler for Rotary event
+ /// preview
public static void RemoveRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
{
if (s_rotaryObjectEventHandlers.ContainsKey(obj))
@@ -113,6 +118,7 @@ namespace ElmSharp.Wearable
/// Activate this circle widget can take Rotary event.
///
/// Target circle widget
+ /// preview
public static void Activate(this IRotaryActionWidget widget)
{
Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, true);
@@ -122,6 +128,7 @@ namespace ElmSharp.Wearable
/// Deactivate this circle widget is blocked from Rotary event.
///
/// Target circle widget
+ /// preview
public static void Deactivate(this IRotaryActionWidget widget)
{
Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, false);
@@ -131,6 +138,7 @@ namespace ElmSharp.Wearable
/// Activate this object can take Rotary event.
///
/// Target object
+ /// preview
public static void Activate(this EvasObject obj)
{
Interop.Eext.eext_rotary_object_event_activated_set(obj, true);
@@ -140,6 +148,7 @@ namespace ElmSharp.Wearable
/// Deactivate this object is blocked from Rotary event.
///
/// Target object
+ /// preview
public static void Deactivate(this EvasObject obj)
{
Interop.Eext.eext_rotary_object_event_activated_set(obj, false);
@@ -188,21 +197,25 @@ namespace ElmSharp.Wearable
/// Handler for Rotary event
///
/// Rotary event information
+ /// preview
public delegate void RotaryEventHandler(RotaryEventArgs args);
///
/// RotaryEventArgs serve information for triggered rotary event.
///
+ /// preview
public class RotaryEventArgs : EventArgs
{
///
/// IsClockwise is true when Rotary device rotated clockwise direction or false on counter clockwise.
///
+ /// preview
public bool IsClockwise { get; set; }
///
/// Timestamp of rotary event
///
+ /// preview
public uint Timestamp { get; set; }
}
}
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
index 5f56be9..0e99f2f 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs
@@ -26,6 +26,7 @@ namespace ElmSharp.Wearable
/// And an item can be selected by rotary event or user item click.
/// Inherits .
///
+ /// preview
public class RotarySelector : Layout
{
const string IconPartName = "selector,icon";
@@ -38,11 +39,13 @@ namespace ElmSharp.Wearable
///
/// Selected will be triggered when selected an item.
///
+ /// preview
public event EventHandler Selected;
///
/// Clicked will be triggered when selecting again the alredy selected item or selecting a selector.
///
+ /// preview
public event EventHandler Clicked;
SmartEvent _selectedEvent;
@@ -52,12 +55,14 @@ namespace ElmSharp.Wearable
///
/// Gets the rotary selector item list of a rotary selector object.
///
+ /// preview
public IList Items { get; private set; }
///
/// Creates and initializes a new instance of the Rotary Selector class.
///
/// The parent of new Rotary Selector instance
+ /// preview
public RotarySelector(EvasObject parent) : base(parent)
{
Items = new RotarySelectorList(this);
@@ -80,6 +85,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the selected item of a rotary selector object.
///
+ /// preview
public RotarySelectorItem SelectedItem
{
get
@@ -118,6 +124,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the background image of a rotary selector object.
///
+ /// preview
public Image BackgroundImage { set => setPart(ref _normalBgImage, BgPartName, State.Normal, value); get => _normalBgImage; }
///
@@ -125,6 +132,7 @@ namespace ElmSharp.Wearable
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr ptr = Interop.Eext.eext_rotary_selector_add(parent);
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
index 38e46cb..6d792f8 100644
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Wearable
///
/// A instance to the Rotary Selector Item added. And an item can be selected by rotary event or user item click.
///
+ /// preview
public class RotarySelectorItem
{
const string MainTextPartName = "selector,main_text";
@@ -59,6 +60,7 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the handle of a rotary selector item object.
///
+ /// preview
public IntPtr Handle
{
set
@@ -153,86 +155,103 @@ namespace ElmSharp.Wearable
///
/// Sets or gets the main text of a rotary selector item object.
///
+ /// preview
public string MainText { set => setPart(ref _mainText, MainTextPartName, value); get => _mainText; }
///
/// Sets or gets the sub text of a rotary selector item object.
///
+ /// preview
public string SubText { set => setPart(ref _subText, SubTextPartName, value); get => _subText; }
///
/// Sets or gets the sub text color of a rotary selector item object.
///
+ /// preview
public Color MainTextColor { set => setPart(ref _mainTextColor, MainTextPartName, ItemState.Normal, value); get => _mainTextColor; }
///
/// Sets or gets the sub text color of a rotary selector item object.
///
+ /// preview
public Color SubTextColor { set => setPart(ref _subTextColor, SubTextPartName, ItemState.Normal, value); get => _subTextColor; }
///
/// Sets or gets the normal icon image of a rotary selector item object.
///
+ /// preview
public Image NormalIconImage { set => setPart(ref _normalIconImage, IconPartName, ItemState.Normal, value); get => _normalIconImage; }
///
/// Sets or gets the press icon image of a rotary selector item object.
///
+ /// preview
public Image PressedIconImage { set => setPart(ref _pressedIconImage, IconPartName, ItemState.Pressed, value); get => _pressedIconImage; }
///
/// Sets or gets the disable icon image of a rotary selector item object.
///
+ /// preview
public Image DisabledIconImage { set => setPart(ref _disabledIconImage, IconPartName, ItemState.Disabled, value); get => _disabledIconImage; }
///
/// Sets or gets the selected icon image of a rotary selector item object.
///
+ /// preview
public Image SelectedIconImage { set => setPart(ref _selectedIconImage, IconPartName, ItemState.Selected, value); get => _selectedIconImage; }
///
/// Sets or gets the normal background image of a rotary selector item object.
///
+ /// preview
public Image NormalBackgroundImage { set => setPart(ref _normalBgImage, BgPartName, ItemState.Normal, value); get => _normalBgImage; }
///
/// Sets or gets the pressed background image of a rotary selector item object.
///
+ /// preview
public Image PressedBackgroundImage { set => setPart(ref _pressedBgImage, BgPartName, ItemState.Pressed, value); get => _pressedBgImage; }
///
/// Sets or gets the disabled background image of a rotary selector item object.
///
+ /// preview
public Image DisabledBackgroundImage { set => setPart(ref _disabledBgImage, BgPartName, ItemState.Disabled, value); get => _disabledBgImage; }
///
/// Sets or gets the selected background image of a rotary selector item object.
///
+ /// preview
public Image SelectedBackgroundImage { set => setPart(ref _selectedBgImage, BgPartName, ItemState.Selected, value); get => _selectedBgImage; }
///
/// Sets or gets the normal background color of a rotary selector item object.
///
+ /// preview
public Color NormalBackgroundColor { set => setPart(ref _normalBgColor, BgPartName, ItemState.Normal, value); get => _normalBgColor; }
///
/// Sets or gets the pressed background color of a rotary selector item object.
///
+ /// preview
public Color PressedBackgroundColor { set => setPart(ref _pressedBgColor, BgPartName, ItemState.Pressed, value); get => _pressedBgColor; }
///
/// Sets or gets the disabled background color of a rotary selector item object.
///
+ /// preview
public Color DisabledBackgroundColor { set => setPart(ref _disabledBgColor, BgPartName, ItemState.Disabled, value); get => _disabledBgColor; }
///
/// Sets or gets the selected background color of a rotary selector item object.
///
+ /// preview
public Color SelectedBackgroundColor { set => setPart(ref _selectedBgColor, BgPartName, ItemState.Selected, value); get => _selectedBgColor; }
///
/// Sets or gets the selector icon image of a rotary selector item object.
///
+ /// preview
public Image SelectorIconImage { set => setPart(ref _selectorIconImage, SelectorIconPartName, ItemState.Normal, value); get => _selectorIconImage; }
internal enum ItemState
diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
index 22630d9..011dc20 100755
--- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
+++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs
@@ -24,11 +24,13 @@ namespace ElmSharp.Wearable
/// and events of RotarySelector contain RotarySelectorItemEventArgs as a parameter.
/// Inherits .
///
+ /// preview
public class RotarySelectorItemEventArgs : EventArgs
{
///
/// Sets or gets the rotary selector item.
///
+ /// preview
public RotarySelectorItem Item { get; set; }
}
}
diff --git a/src/ElmSharp/ElmSharp/AccessRole.cs b/src/ElmSharp/ElmSharp/AccessRole.cs
index b49b2a2..0d7311d 100755
--- a/src/ElmSharp/ElmSharp/AccessRole.cs
+++ b/src/ElmSharp/ElmSharp/AccessRole.cs
@@ -20,6 +20,7 @@ namespace ElmSharp.Accessible
///
/// Enumeration for AccessRole.
///
+ /// preview
public enum AccessRole
{
///
diff --git a/src/ElmSharp/ElmSharp/AccessibleObject.cs b/src/ElmSharp/ElmSharp/AccessibleObject.cs
index 08eedcb..18ea109 100755
--- a/src/ElmSharp/ElmSharp/AccessibleObject.cs
+++ b/src/ElmSharp/ElmSharp/AccessibleObject.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Accessible
///
/// The sender obj.
/// Return information for Name or Description.
+ /// preview
public delegate string AccessibleInfoProvider (AccessibleObject obj);
///
@@ -30,6 +31,7 @@ namespace ElmSharp.Accessible
/// It provides available definitions for the screen reader, such as , , , etc.
/// There's many the relationship between two accessible objects, like , , , , etc.
///
+ /// preview
public abstract class AccessibleObject : EvasObject, IAccessibleObject
{
@@ -196,6 +198,7 @@ namespace ElmSharp.Accessible
/// Creates and initializes a new instance of the AccessibleObject class with parent EvasObject class parameter.
///
/// Parent EvasObject class
+ /// preview
public AccessibleObject(EvasObject parent) : base(parent)
{
}
@@ -203,6 +206,7 @@ namespace ElmSharp.Accessible
///
/// Creates and initializes a new instance of the AccessibleObject class.
///
+ /// preview
public AccessibleObject() : base()
{
}
@@ -232,6 +236,7 @@ namespace ElmSharp.Accessible
///
/// Highlights accessible widget.
///
+ /// preview
public void Highlight()
{
Interop.Elementary.elm_atspi_component_highlight_grab(RealHandle);
@@ -240,6 +245,7 @@ namespace ElmSharp.Accessible
///
/// Clears highlight of accessible widget.
///
+ /// preview
public void Unhighlight()
{
Interop.Elementary.elm_atspi_component_highlight_clear(RealHandle);
diff --git a/src/ElmSharp/ElmSharp/AccessibleRelation.cs b/src/ElmSharp/ElmSharp/AccessibleRelation.cs
index 0c88422..488cf80 100755
--- a/src/ElmSharp/ElmSharp/AccessibleRelation.cs
+++ b/src/ElmSharp/ElmSharp/AccessibleRelation.cs
@@ -20,33 +20,39 @@ namespace ElmSharp.Accessible
///
/// IAccessibleRelation is a interface which defines the relationship between two accessible objects.
///
+ /// preview
public interface IAccessibleRelation
{
///
/// Gets or sets the target object.
///
+ /// preview
AccessibleObject Target { get; set; }
///
/// Gets the type.
///
+ /// preview
int Type { get; }
}
///
/// To define label info for accessible object.
///
+ /// preview
public class LabelledBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is LabelledBy.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the LabelledBy type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABELLED_BY; }
@@ -56,16 +62,19 @@ namespace ElmSharp.Accessible
///
/// To define label info for accessible object.
///
+ /// preview
public class LabelFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is LabelFor.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the LabelFor type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABEL_FOR; }
@@ -75,16 +84,19 @@ namespace ElmSharp.Accessible
///
/// To define control relationship for accessible object.
///
+ /// preview
public class ControllerFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is ControllerFor.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the ControllerFor type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLER_FOR; }
@@ -94,16 +106,19 @@ namespace ElmSharp.Accessible
///
/// To define control relationship for accessible object.
///
+ /// preview
public class ControlledBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is ControlledBy.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the ControlledBy type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLED_BY; }
@@ -113,16 +128,19 @@ namespace ElmSharp.Accessible
///
/// To define member relationship for accessible object.
///
+ /// preview
public class MemberOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is MemberOf.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the MemberOf type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_MEMBER_OF; }
@@ -132,16 +150,19 @@ namespace ElmSharp.Accessible
///
/// To define tooltip for accessible object.
///
+ /// preview
public class TooltipFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is TooltipFor.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the TooltipFor type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_TOOLTIP_FOR; }
@@ -151,16 +172,19 @@ namespace ElmSharp.Accessible
///
/// To define child for accessible object.
///
+ /// preview
public class ChildOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ChildOf.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the ChildOf type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_CHILD_OF; }
@@ -170,16 +194,19 @@ namespace ElmSharp.Accessible
///
/// To define parent for accessible object.
///
+ /// preview
public class ParentOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ParentOf.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the ParentOf type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_PARENT_OF; }
@@ -189,16 +216,19 @@ namespace ElmSharp.Accessible
///
/// To define extend for accessible object.
///
+ /// preview
public class Extended : IAccessibleRelation
{
///
/// Gets or sets the target object which is Extended.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the Extended type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EXTENDED; }
@@ -208,16 +238,19 @@ namespace ElmSharp.Accessible
///
/// To define the custom reading order.
///
+ /// preview
public class FlowsTo : IAccessibleRelation
{
///
/// Gets or sets the target object which is FlowsTo.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the FlowsTo type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_TO; }
@@ -227,16 +260,19 @@ namespace ElmSharp.Accessible
///
/// To define the custom reading order.
///
+ /// preview
public class FlowsFrom : IAccessibleRelation
{
///
/// Gets or sets the target object which is FlowsFrom.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the FlowsFrom type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_FROM; }
@@ -246,16 +282,19 @@ namespace ElmSharp.Accessible
///
/// To define subwindow for accessible object.
///
+ /// preview
public class SubwindowOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is SubwindowOf.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the SubwindowOf type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_SUBWINDOW_OF; }
@@ -265,16 +304,19 @@ namespace ElmSharp.Accessible
///
/// To define embed for accessible object.
///
+ /// preview
public class Embeds : IAccessibleRelation
{
///
/// Gets or sets the target object which is Embeds.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the Embeds type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDS; }
@@ -284,16 +326,19 @@ namespace ElmSharp.Accessible
///
/// To define embed for accessible object.
///
+ /// preview
public class EmbeddedBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is EmbeddedBy.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the EmbeddedBy type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDDED_BY; }
@@ -303,16 +348,19 @@ namespace ElmSharp.Accessible
///
/// To define popup for accessible object.
///
+ /// preview
public class PopupFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is PopupFor.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the PopupFor type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_POPUP_FOR; }
@@ -322,16 +370,19 @@ namespace ElmSharp.Accessible
///
/// To define parent window for accessible object.
///
+ /// preview
public class ParentWindowOf : IAccessibleRelation
{
///
/// Gets or sets the target object which is ParentWindowOf.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the ParentWindowOf type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_PARENT_WINDOW_OF; }
@@ -341,16 +392,19 @@ namespace ElmSharp.Accessible
///
/// To define description for accessible object.
///
+ /// preview
public class DescriptionFor : IAccessibleRelation
{
///
/// Gets or sets the target object which is DescriptionFor.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the DescriptionFor type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIPTION_FOR; }
@@ -360,16 +414,19 @@ namespace ElmSharp.Accessible
///
/// To define description for accessible object.
///
+ /// preview
public class DescribedBy : IAccessibleRelation
{
///
/// Gets or sets the target object which is DescribedBy.
///
+ /// preview
public AccessibleObject Target { get; set; }
///
/// Gets the DescribedBy type.
///
+ /// preview
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIBED_BY; }
diff --git a/src/ElmSharp/ElmSharp/AccessibleUtil.cs b/src/ElmSharp/ElmSharp/AccessibleUtil.cs
index 720fca4..0be2e91 100755
--- a/src/ElmSharp/ElmSharp/AccessibleUtil.cs
+++ b/src/ElmSharp/ElmSharp/AccessibleUtil.cs
@@ -23,6 +23,7 @@ namespace ElmSharp.Accessible
///
/// Enumeration for ReadingStatus.
///
+ /// preview
public enum ReadingStatus
{
///
@@ -46,6 +47,7 @@ namespace ElmSharp.Accessible
///
/// AccessibleUtil provides a method to set the reading information.
///
+ /// preview
public static class AccessibleUtil
{
@@ -79,6 +81,7 @@ namespace ElmSharp.Accessible
/// The reading text.
/// If true, reading can be discarded by subsequent reading requests, if false the reading must finish before next reading request can be started.
/// Return a task with reading status.
+ /// preview
public static Task Say(string text, bool discardable)
{
var tcs = new TaskCompletionSource();
diff --git a/src/ElmSharp/ElmSharp/Background.cs b/src/ElmSharp/ElmSharp/Background.cs
index 29362af..9f2e955 100755
--- a/src/ElmSharp/ElmSharp/Background.cs
+++ b/src/ElmSharp/ElmSharp/Background.cs
@@ -22,12 +22,14 @@ namespace ElmSharp
/// The Background is a widget that use for setting (solid) background decorations to a window (unless it has transparency enabled)
/// or to any container object.
///
+ /// preview
public class Background : Layout
{
///
/// Creates and initializes a new instance of the Background class.
///
/// The EvasObject to which the new Background will be attached as a child.
+ /// preview
public Background(EvasObject parent) : base(parent)
{
Style = "transparent";
@@ -36,6 +38,7 @@ namespace ElmSharp
///
/// Sets or gets color to Background.
///
+ /// preview
public override Color Color
{
get
@@ -66,6 +69,7 @@ namespace ElmSharp
///
/// Sets or gets image to Background.
///
+ /// preview
public string File
{
get
@@ -86,6 +90,7 @@ namespace ElmSharp
/// This will only work if the File was previously set with an image file on obj.
/// The image can be display tiled, scaled, centered or stretched. scaled by default.
///
+ /// preview
public BackgroundOptions BackgroundOption
{
get
@@ -106,6 +111,7 @@ namespace ElmSharp
///
/// The new width of the image pixmap representation.
/// The new height of the image pixmap representation.
+ /// preview
public void SetFileLoadSize(int w, int h)
{
if (File != null)
@@ -123,6 +129,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
@@ -138,6 +145,7 @@ namespace ElmSharp
///
/// Enumeration for the background type.
///
+ /// preview
public enum BackgroundOptions
{
///
diff --git a/src/ElmSharp/ElmSharp/Box.cs b/src/ElmSharp/ElmSharp/Box.cs
index ea928c9..19a5a9b 100755
--- a/src/ElmSharp/ElmSharp/Box.cs
+++ b/src/ElmSharp/ElmSharp/Box.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// The Box is a container used to arranges UI components in a linear order.
///
+ /// preview
public class Box : Container
{
private Interop.Elementary.BoxLayoutCallback _layoutCallback;
@@ -29,6 +30,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the Box class.
///
/// The EvasObject to which the new Box will be attached as a child.
+ /// preview
public Box(EvasObject parent) : base(parent)
{
}
@@ -36,6 +38,7 @@ namespace ElmSharp
///
/// Sets or gets IsHorizontal value which describe pack direction, vertical is default.
///
+ /// preview
public bool IsHorizontal
{
get
@@ -51,6 +54,7 @@ namespace ElmSharp
///
/// Sets or gets whether the box to arrange its children homogeneously.
///
+ /// preview
public bool IsHomogeneous
{
get
@@ -73,6 +77,7 @@ namespace ElmSharp
/// depending if the Box is vertical or horizontal, respectively.
///
/// The oject be packed
+ /// preview
public void PackEnd(EvasObject content)
{
Interop.Elementary.elm_box_pack_end(RealHandle, content);
@@ -89,6 +94,7 @@ namespace ElmSharp
/// depending if the Box is vertical or horizontal, respectively.
///
/// The object to be packed.
+ /// preview
public void PackStart(EvasObject content)
{
Interop.Elementary.elm_box_pack_start(RealHandle, content);
@@ -105,6 +111,7 @@ namespace ElmSharp
///
/// The object will be added in Box
/// The object has been added in Box
+ /// preview
public void PackAfter(EvasObject content, EvasObject after)
{
Interop.Elementary.elm_box_pack_after(RealHandle, content, after);
@@ -121,6 +128,7 @@ namespace ElmSharp
///
/// The object will be added in Box
/// The object has been added in Box
+ /// preview
public void PackBefore(EvasObject content, EvasObject before)
{
Interop.Elementary.elm_box_pack_before(RealHandle, content, before);
@@ -131,6 +139,7 @@ namespace ElmSharp
/// Remove the "content" oject from Box without deleting it.
///
/// The object to unpack
+ /// preview
public void UnPack(EvasObject content)
{
Interop.Elementary.elm_box_unpack(RealHandle, content);
@@ -140,6 +149,7 @@ namespace ElmSharp
///
/// Removes all objects from Box container.
///
+ /// preview
public void UnPackAll()
{
Interop.Elementary.elm_box_unpack_all(RealHandle);
@@ -151,6 +161,7 @@ namespace ElmSharp
/// the function cb will be called to determine what the layout of the children will be.
///
/// The callback function used for layout
+ /// preview
public void SetLayoutCallback(Action action)
{
_layoutCallback = (obj, priv, data) =>
@@ -165,6 +176,7 @@ namespace ElmSharp
///
/// The name of part class, it could be 'bg', 'elm.swllow.content'.
/// The color value.
+ /// preview
public override void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255,
@@ -178,6 +190,7 @@ namespace ElmSharp
///
/// The name of part class, it could be 'bg', 'elm.swllow.content'.
///
+ /// preview
public override Color GetPartColor(string part)
{
int r, g, b, a;
@@ -190,6 +203,7 @@ namespace ElmSharp
/// If any children was added or removed, box will not calculate the values immediately rather leaving it to the next main loop iteration.
/// While this is great as it would save lots of recalculation, whenever you need to get the position of a just added item you must force recalculate before doing so.
///
+ /// preview
public void Recalculate()
{
Interop.Elementary.elm_box_recalculate(RealHandle);
@@ -199,6 +213,7 @@ namespace ElmSharp
/// Clear the box of all children.
/// Remove all the elements contained by the box, deleting the respective objects.
///
+ /// preview
public void Clear()
{
Interop.Elementary.elm_box_clear(RealHandle);
@@ -210,6 +225,7 @@ namespace ElmSharp
///
/// Horizontal alignment
/// Vertical alignment
+ /// preview
public void SetBoxAlignment(double horizontal, double vertical)
{
Interop.Elementary.elm_box_align_set(RealHandle, horizontal, vertical);
@@ -220,6 +236,7 @@ namespace ElmSharp
///
/// Horizontal padding
/// vertical padding
+ /// preview
public void SetPadding(int horizontal, int vertical)
{
Interop.Elementary.elm_box_padding_set(RealHandle, horizontal, vertical);
@@ -230,6 +247,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/Button.cs b/src/ElmSharp/ElmSharp/Button.cs
index 6fe2ae5..9f6c80b 100755
--- a/src/ElmSharp/ElmSharp/Button.cs
+++ b/src/ElmSharp/ElmSharp/Button.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// The Button is a widget works as a clickable input element to trigger events.
///
+ /// preview
public class Button : Layout
{
private SmartEvent _clicked;
@@ -34,6 +35,7 @@ namespace ElmSharp
///
/// The EvasObject to which the new Button will be attached as a child.
///
+ /// preview
public Button(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, this.RealHandle, "clicked");
@@ -65,21 +67,25 @@ namespace ElmSharp
///
/// Clicked will be triggered when Button is clicked.
///
+ /// preview
public event EventHandler Clicked;
///
/// Repeated will be triggered when Button is pressed without releasing it.
///
+ /// preview
public event EventHandler Repeated;
///
/// Pressed will be triggered when the Button is pressed.
///
+ /// preview
public event EventHandler Pressed;
///
/// Released will be triggered when the Button is released after being pressed.
///
+ /// preview
public event EventHandler Released;
///
@@ -92,6 +98,7 @@ namespace ElmSharp
/// The time it takes until it starts triggering Repeated is given by AutoRepeatInitialTime,
/// and the time between each new emission is given by AutoRepeatGapTimeout.
///
+ /// preview
public bool AutoRepeat
{
get
@@ -107,6 +114,7 @@ namespace ElmSharp
///
/// Sets or gets the initial timeout before the Repeat event is generated.
///
+ /// preview
public double AutoRepeatInitialTime
{
get
@@ -122,6 +130,7 @@ namespace ElmSharp
///
/// Sets or gets the interval between each generated Repeat event.
///
+ /// preview
public double AutoRepeatGapTimeout
{
get
@@ -138,6 +147,7 @@ namespace ElmSharp
/// Delete the object color class.
///
/// The color class to be deleted.
+ /// preview
[Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")]
public void DeleteColorClass(string part)
{
@@ -147,6 +157,7 @@ namespace ElmSharp
///
/// Sets or gets the BackgroundColor of a given Button in normal and pressed status.
///
+ /// preview
public override Color BackgroundColor
{
set
@@ -172,6 +183,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_button_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/Calendar.cs b/src/ElmSharp/ElmSharp/Calendar.cs
index 7a20c70..5f3f18b 100755
--- a/src/ElmSharp/ElmSharp/Calendar.cs
+++ b/src/ElmSharp/ElmSharp/Calendar.cs
@@ -24,6 +24,7 @@ namespace ElmSharp
///
/// Enumeration for event periodicity, used to define if a mark should be repeated beyond event's day. It's set when a mark is added.
///
+ /// preview
public enum CalendarMarkRepeatType
{
///
@@ -60,6 +61,7 @@ namespace ElmSharp
///
/// Enumeration for the mode, which determine how user could select a day.
///
+ /// preview
public enum CalendarSelectMode
{
///
@@ -86,6 +88,7 @@ namespace ElmSharp
///
/// Enumeration used to define which fields of a tm struct will be taken into account
///
+ /// preview
[Flags]
public enum CalendarSelectable
{
@@ -110,6 +113,7 @@ namespace ElmSharp
///
/// The CalendarMark is a Item for marking a Calendar's type,date and repeat type.
///
+ /// preview
public class CalendarMark
{
internal IntPtr Handle;
@@ -117,16 +121,19 @@ namespace ElmSharp
///
/// A string used to define the type of mark.
///
+ /// preview
public string Type;
///
/// A time struct to represent the date of inclusion of the mark.
///
+ /// preview
public DateTime Date;
///
/// Repeat the event following this periodicity.
///
+ /// preview
public CalendarMarkRepeatType Repeat;
///
@@ -135,6 +142,7 @@ namespace ElmSharp
/// Type of mark
/// Date of inclusion of the mark
/// Repeat type
+ /// preview
public CalendarMark(string type, DateTime date, CalendarMarkRepeatType repeat)
{
Handle = IntPtr.Zero;
@@ -147,6 +155,7 @@ namespace ElmSharp
///
/// The Calendar is a widget that helps applications to flexibly display a calender with day of the week, date, year and month.
///
+ /// preview
public class Calendar : Layout
{
SmartEvent _changed;
@@ -163,6 +172,7 @@ namespace ElmSharp
///
/// The EvasObject to which the new Calendar will be attached as a child.
///
+ /// preview
public Calendar(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
@@ -187,11 +197,13 @@ namespace ElmSharp
///
/// DateChanged will be triggered when the date in the calendar is changed.
///
+ /// preview
public event EventHandler DateChanged;
///
/// DisplayedMonthChanged will be triggered when the current month displayed in the calendar is changed.
///
+ /// preview
public event EventHandler DisplayedMonthChanged;
///
@@ -199,11 +211,13 @@ namespace ElmSharp
///
/// DateTime
///
+ /// preview
public delegate string DateFormatDelegate(DateTime time);
///
/// Sets or gets the minimum for year.
///
+ /// preview
public int MinimumYear
{
get
@@ -229,6 +243,7 @@ namespace ElmSharp
///
/// Sets or gets the maximum for the year.
///
+ /// preview
public int MaximumYear
{
get
@@ -250,6 +265,7 @@ namespace ElmSharp
///
/// Sets or gets the first day of week, who are used on Calendar.
///
+ /// preview
public DateTime DisplayedTime
{
get
@@ -275,6 +291,7 @@ namespace ElmSharp
///
/// Sets or gets the first day of week, who are used on Calendar.
///
+ /// preview
public DayOfWeek FirstDayOfWeek
{
get
@@ -295,6 +312,7 @@ namespace ElmSharp
/// weekDayNames = new List() { "S", "M", "T", "W", "T", "F", "S" };]]>
/// Calendar.WeekDayNames = weekDayNames;
///
+ /// preview
public IReadOnlyList WeekDayNames
{
get
@@ -319,6 +337,7 @@ namespace ElmSharp
///
/// Selected date changes when the user goes to next/previous month or select a day pressing over it on calendar.
///
+ /// preview
public DateTime SelectedDate
{
get
@@ -343,6 +362,7 @@ namespace ElmSharp
/// Sets or gets the interval on time updates for an user mouse button
/// hold on calendar widgets' month/year selection.
///
+ /// preview
public double Interval
{
get
@@ -358,6 +378,7 @@ namespace ElmSharp
///
/// Gets or sets the select day mode used.
///
+ /// preview
public CalendarSelectMode SelectMode
{
get
@@ -373,6 +394,7 @@ namespace ElmSharp
///
/// Gets or sets fields of a datetime will be taken into account, when SelectedDate set is invoked.
///
+ /// preview
public CalendarSelectable Selectable
{
get
@@ -388,6 +410,7 @@ namespace ElmSharp
///
/// Gets or sets date format the string that will be used to display month and year.
///
+ /// preview
public DateFormatDelegate DateFormat
{
get
@@ -415,6 +438,7 @@ namespace ElmSharp
/// A time struct to represent the date of inclusion of the mark. For marks that repeats it will just be displayed after the inclusion date in the calendar.
/// Repeat the event following this periodicity. Can be a unique mark (that don't repeat), daily, weekly, monthly or annually.
/// Item for a calendar mark.
+ /// preview
public CalendarMark AddMark(string type, DateTime date, CalendarMarkRepeatType repeat)
{
CalendarMark mark = new CalendarMark(type, date, repeat);
@@ -429,6 +453,7 @@ namespace ElmSharp
/// Delete mark from the calendar.
///
/// Item for a calendar mark
+ /// preview
public void DeleteMark(CalendarMark mark)
{
Interop.Elementary.elm_calendar_mark_del(mark.Handle);
@@ -437,6 +462,7 @@ namespace ElmSharp
///
/// Draw calendar marks.
///
+ /// preview
public void DrawMarks()
{
Interop.Elementary.elm_calendar_marks_draw(RealHandle);
@@ -445,6 +471,7 @@ namespace ElmSharp
///
/// Remove all calendar's marks.
///
+ /// preview
public void ClearMarks()
{
Interop.Elementary.elm_calendar_marks_clear(RealHandle);
@@ -455,6 +482,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/Check.cs b/src/ElmSharp/ElmSharp/Check.cs
index 6636bb1..b864cbe 100755
--- a/src/ElmSharp/ElmSharp/Check.cs
+++ b/src/ElmSharp/ElmSharp/Check.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// The check is a widget allows for toggling a value between true and false.
///
+ /// preview
public class Check : Layout
{
private SmartEvent _changed;
@@ -32,6 +33,7 @@ namespace ElmSharp
///
/// The EvasObject to which the new Check will be attached as a child.
///
+ /// preview
public Check(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
@@ -44,6 +46,7 @@ namespace ElmSharp
///
/// StateChanged will be triggered when the IsChecked in the Check is changed.
///
+ /// preview
public event EventHandler StateChanged;
///
@@ -52,6 +55,7 @@ namespace ElmSharp
///
/// When object is checked, the value will set to true, Conversely will set to false.
///
+ /// preview
public bool IsChecked
{
get
@@ -70,6 +74,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs b/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs
index 461798f..fc8bb4b 100755
--- a/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs
@@ -23,16 +23,19 @@ namespace ElmSharp
/// The CheckStateChangedEventArgs is EventArgs to record Check's state.
/// Include old state and new state.
///
+ /// preview
public class CheckStateChangedEventArgs : EventArgs
{
///
/// Gets the OldState property.The return type is bool.
///
+ /// preview
public bool OldState { get; private set; }
///
/// Gets the NewState property.The return type is bool.
///
+ /// preview
public bool NewState { get; private set; }
///
@@ -40,6 +43,7 @@ namespace ElmSharp
///
/// Old state of Check which to use this CheckStateChangedEventArgs.
/// New state of Check which to use this CheckStateChangedEventArgs.
+ /// preview
public CheckStateChangedEventArgs(bool oldState, bool newState)
{
this.OldState = oldState;
diff --git a/src/ElmSharp/ElmSharp/Color.cs b/src/ElmSharp/ElmSharp/Color.cs
index 49c48f2..1295a38 100644
--- a/src/ElmSharp/ElmSharp/Color.cs
+++ b/src/ElmSharp/ElmSharp/Color.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// The Color is a struct to record Check's state.
///
+ /// preview
public struct Color
{
readonly int _a;
@@ -43,6 +44,7 @@ namespace ElmSharp
///
/// In default Color instance,Mode type is Default,RGBA all set as -1.
///
+ /// preview
public static Color Default
{
get { return new Color(-1, -1, -1, -1, Mode.Default); }
@@ -52,6 +54,7 @@ namespace ElmSharp
/// Gets whether the Color instance's mode is default or not.
/// Return type is bool.
///
+ /// preview
public bool IsDefault
{
get { return _mode == Mode.Default; }
@@ -61,6 +64,7 @@ namespace ElmSharp
/// Gets A value of RGBA.
/// A means the Alpha in color.
///
+ /// preview
public int A
{
get { return _a; }
@@ -70,6 +74,7 @@ namespace ElmSharp
/// Gets R value of RGBA.
/// R means the Red in color.
///
+ /// preview
public int R
{
get { return _r; }
@@ -79,6 +84,7 @@ namespace ElmSharp
/// Gets G value of RGBA.
/// G means the Green in color.
///
+ /// preview
public int G
{
get { return _g; }
@@ -88,6 +94,7 @@ namespace ElmSharp
/// Gets B value of RGBA.
/// B means the Blue in color.
///
+ /// preview
public int B
{
get { return _b; }
@@ -100,6 +107,7 @@ namespace ElmSharp
/// Red of RGB
/// Green of RGB
/// Blue of RGB
+ /// preview
public Color(int r, int g, int b) : this(r, g, b, 255)
{
}
@@ -112,6 +120,7 @@ namespace ElmSharp
/// Green of RGBA
/// Blue of RGBA
/// Alpha of RGBA
+ /// preview
public Color(int r, int g, int b, int a) : this(r, g, b, a, Mode.Rgb)
{
}
@@ -136,6 +145,7 @@ namespace ElmSharp
/// Returns the hash code for this instance.
///
/// A 32-bit signed integer hash code.
+ /// preview
public override int GetHashCode()
{
int hashcode = _r.GetHashCode();
@@ -153,6 +163,7 @@ namespace ElmSharp
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
///
+ /// preview
public override bool Equals(object obj)
{
if (obj is Color)
@@ -170,6 +181,7 @@ namespace ElmSharp
/// The result whether two instance is same or not.
/// Return type is bool.If they are same, return true.
///
+ /// preview
public static bool operator ==(Color a, Color b)
{
if (ReferenceEquals(a, b))
@@ -189,6 +201,7 @@ namespace ElmSharp
/// The result whether two instance is different or not.
/// Return type is bool.If they are different, return true.
///
+ /// preview
public static bool operator !=(Color a, Color b)
{
return !(a == b);
@@ -205,6 +218,7 @@ namespace ElmSharp
/// Returns the fully qualified type name of this instance.
///
/// The fully qualified type name.
+ /// preview
public override string ToString()
{
return string.Format(CultureInfo.InvariantCulture, "[Color: R={0}, G={1}, B={2}, A={3}]", R, G, B, A);
@@ -215,6 +229,7 @@ namespace ElmSharp
///
/// Hexadecimal string.
/// New instance of Color struct.
+ /// preview
public static Color FromHex(string hex)
{
hex = hex.Replace("#", "");
@@ -238,6 +253,7 @@ namespace ElmSharp
///
/// Unsigned integer indicates RGBA.
/// New instance of Color struct.
+ /// preview
public static Color FromUint(uint argb)
{
return FromRgba((byte)((argb & 0x00ff0000) >> 0x10), (byte)((argb & 0x0000ff00) >> 0x8), (byte)(argb & 0x000000ff), (byte)((argb & 0xff000000) >> 0x18));
@@ -251,6 +267,7 @@ namespace ElmSharp
/// Blue in RGBA.
/// Alpha in RGBA.
/// New instance of Color struct.
+ /// preview
public static Color FromRgba(int r, int g, int b, int a)
{
return new Color(r, g, b, a);
@@ -263,6 +280,7 @@ namespace ElmSharp
/// Green in RGB.
/// Blue in RGB.
/// New instance of Color struct.
+ /// preview
public static Color FromRgb(int r, int g, int b)
{
return FromRgba(r, g, b, 255);
@@ -277,78 +295,97 @@ namespace ElmSharp
///
/// The Tansparent is a predefined Color, it's rgba value is (0, 0, 0, 0).
///
+ /// preview
public static readonly Color Transparent = FromRgba(0, 0, 0, 0);
///
/// The Aqua is a predefined Color instance, it's rgb value is (0, 255, 255).
///
+ /// preview
public static readonly Color Aqua = FromRgb(0, 255, 255);
///
/// The Black is a predefined Color instance, it's rgb value is (0, 0, 0).
///
+ /// preview
public static readonly Color Black = FromRgb(0, 0, 0);
///
/// The Blue is a predefined Color instance, it's rgb value is (0, 0, 255).
///
+ /// preview
public static readonly Color Blue = FromRgb(0, 0, 255);
///
/// The Fuchsia is a predefined Color instance, it's rgb value is (255, 0, 255).
///
+ /// preview
public static readonly Color Fuchsia = FromRgb(255, 0, 255);
///
/// The Gray is a predefined Color instance, it's rgb value is (128, 128, 128).
///
+ /// preview
public static readonly Color Gray = FromRgb(128, 128, 128);
///
/// The Green is a predefined Color instance, it's rgb value is (0, 128, 0).
///
+ /// preview
public static readonly Color Green = FromRgb(0, 128, 0);
///
/// The Lime is a predefined Color instance, it's rgb value is (0, 255, 0).
///
+ /// preview
public static readonly Color Lime = FromRgb(0, 255, 0);
///
/// The Maroon is a predefined Color instance, it's rgb value is (128, 0, 0).
///
+ /// preview
public static readonly Color Maroon = FromRgb(128, 0, 0);
///
/// The Navy is a predefined Color instance, it's rgb value is (0, 0, 128).
///
+ /// preview
public static readonly Color Navy = FromRgb(0, 0, 128);
///
/// The Olive is a predefined Color instance, it's rgb value is (128, 128, 0).
///
+ /// preview
public static readonly Color Olive = FromRgb(128, 128, 0);
///
/// The Orange is a predefined Color instance, it's rgb value is (255, 165, 0).
///
+ /// preview
public static readonly Color Orange = FromRgb(255, 165, 0);
///
/// The Purple is a predefined Color instance, it's rgb value is (128, 0, 128).
///
+ /// preview
public static readonly Color Purple = FromRgb(128, 0, 128);
///
/// The Pink is a predefined Color instance, it's rgb value is (255, 102, 255).
///
+ /// preview
public static readonly Color Pink = FromRgb(255, 102, 255);
///
/// The Red is a predefined Color instance, it's rgb value is (255, 0, 0).
///
+ /// preview
public static readonly Color Red = FromRgb(255, 0, 0);
///
/// The Silver is a predefined Color instance, it's rgb value is (192, 192, 192).
///
+ /// preview
public static readonly Color Silver = FromRgb(192, 192, 192);
///
/// The Teal is a predefined Color instance, it's rgb value is (0, 128, 128).
///
+ /// preview
public static readonly Color Teal = FromRgb(0, 128, 128);
///
/// The White is a predefined Color instance, it's rgb value is (255, 255, 255).
///
+ /// preview
public static readonly Color White = FromRgb(255, 255, 255);
///
/// The Yellow is a predefined Color instance, it's rgb value is (255, 255, 0).
///
+ /// preview
public static readonly Color Yellow = FromRgb(255, 255, 0);
#endregion
}
diff --git a/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs b/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs
index b1090de..5311a1a 100755
--- a/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs
@@ -23,16 +23,19 @@ namespace ElmSharp
/// Event ColorChanged of ColorSelector contain ColorChangedEventArgs as a parameter.
/// Refer to type.
///
+ /// preview
public class ColorChangedEventArgs : EventArgs
{
///
/// Gets old color in color changed event.
///
+ /// preview
public Color OldColor { get; private set; }
///
/// Gets new color in color changed event.
///
+ /// preview
public Color NewColor { get; private set; }
///
@@ -40,6 +43,7 @@ namespace ElmSharp
///
/// old color
/// new color
+ /// preview
public ColorChangedEventArgs(Color oldColor, Color newColor)
{
this.OldColor = oldColor;
diff --git a/src/ElmSharp/ElmSharp/ColorSelector.cs b/src/ElmSharp/ElmSharp/ColorSelector.cs
index c499a90..1ea8f5d 100755
--- a/src/ElmSharp/ElmSharp/ColorSelector.cs
+++ b/src/ElmSharp/ElmSharp/ColorSelector.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// Enumeration for mode of ColorSelector
///
+ /// preview
public enum ColorSelectorMode
{
///
@@ -68,6 +69,7 @@ namespace ElmSharp
/// The colors can be picked by user from the color set by clicking on individual
/// color item on the palette or by selecting it from selector.
///
+ /// preview
public class ColorSelector : Layout
{
private readonly SmartEvent _changed;
@@ -77,6 +79,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the ColorSelector class.
///
///
+ /// preview
public ColorSelector(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, "changed", (data, obj, info) =>
@@ -88,6 +91,7 @@ namespace ElmSharp
///
/// ColorChanged will be triggered when the SelectedColor changed.
///
+ /// preview
public event EventHandler ColorChanged
{
add { _changed.On += value; }
@@ -97,6 +101,7 @@ namespace ElmSharp
///
/// Gets or sets color of colorselector.
///
+ /// preview
public Color SelectedColor
{
get
@@ -116,6 +121,7 @@ namespace ElmSharp
///
/// Gets Alpha of a default Color Class(Value is -1).
///
+ /// preview
public override int Opacity
{
get
@@ -132,6 +138,7 @@ namespace ElmSharp
///
/// Gets or sets Colorselector's mode.
///
+ /// preview
public ColorSelectorMode Mode
{
get
@@ -150,6 +157,7 @@ namespace ElmSharp
///
/// Get or set current palette's name.
///
+ /// preview
public string PaletteName
{
get
@@ -167,6 +175,7 @@ namespace ElmSharp
///
/// Color item to add
/// A new color palette Item.
+ /// preview
public ColorSelectorItem AddPaletteColor(Color color)
{
ColorSelectorItem item = new ColorSelectorItem();
@@ -177,6 +186,7 @@ namespace ElmSharp
///
/// Clear the palette items.
///
+ /// preview
public void ClearPalette()
{
Interop.Elementary.elm_colorselector_palette_clear(Handle);
@@ -187,6 +197,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_colorselector_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/ColorSelectorItem.cs b/src/ElmSharp/ElmSharp/ColorSelectorItem.cs
index 10205e2..075c92f 100755
--- a/src/ElmSharp/ElmSharp/ColorSelectorItem.cs
+++ b/src/ElmSharp/ElmSharp/ColorSelectorItem.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// A instance to the ColorSelector item added.
///
+ /// preview
public class ColorSelectorItem : ItemObject
{
internal ColorSelectorItem() : base(IntPtr.Zero)
@@ -30,6 +31,7 @@ namespace ElmSharp
///
/// Gets or sets the Palette item's color
///
+ /// preview
public Color Color
{
get
diff --git a/src/ElmSharp/ElmSharp/Conformant.cs b/src/ElmSharp/ElmSharp/Conformant.cs
index e27838b..c40cc87 100755
--- a/src/ElmSharp/ElmSharp/Conformant.cs
+++ b/src/ElmSharp/ElmSharp/Conformant.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
/// to account for space taken up by the indicator,
/// virtual keypad & softkey windows when running the illume2 module of E17.
///
+ /// preview
public class Conformant : Widget
{
///
@@ -30,6 +31,7 @@ namespace ElmSharp
///
/// The parent is a given container which will be attached by Conformant
/// as a child.It's type.
+ /// preview
public Conformant(Window parent) : base(parent)
{
Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0);
@@ -42,6 +44,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_conformant_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/Container.cs b/src/ElmSharp/ElmSharp/Container.cs
index b7e0e33..20aee3a 100755
--- a/src/ElmSharp/ElmSharp/Container.cs
+++ b/src/ElmSharp/ElmSharp/Container.cs
@@ -25,6 +25,7 @@ namespace ElmSharp
/// Other class inherits it to Elementary is about displaying
/// its widgets in a nice layout.
///
+ /// preview
public abstract class Container : Widget
{
HashSet _children = new HashSet();
@@ -34,6 +35,7 @@ namespace ElmSharp
///
/// The parent is a given object which will be attached by Container
/// as a child.It's type.
+ /// preview
public Container(EvasObject parent) : base(parent)
{
}
@@ -41,6 +43,7 @@ namespace ElmSharp
///
/// Creates and initializes a new instance of Container class.
///
+ /// preview
protected Container() : base()
{
}
@@ -48,6 +51,7 @@ namespace ElmSharp
///
/// Sets the background color of a given Container.
///
+ /// preview
public override Color BackgroundColor
{
set
@@ -67,12 +71,14 @@ namespace ElmSharp
///
/// Gets the collection of child EvasObject of the Container.
///
+ /// preview
protected IEnumerable Children => _children;
///
/// Add an EvasObject object as a child of Container.
///
/// The EvasObject object to be added
+ /// preview
protected void AddChild(EvasObject obj)
{
_children.Add(obj);
@@ -83,6 +89,7 @@ namespace ElmSharp
/// Remove an EvasObject object as a child of Container.
///
/// The EvasObject object to be removed
+ /// preview
protected void RemoveChild(EvasObject obj)
{
_children.Remove(obj);
@@ -91,6 +98,7 @@ namespace ElmSharp
///
/// Clear all children of the Container.
///
+ /// preview
protected void ClearChildren()
{
_children.Clear();
diff --git a/src/ElmSharp/ElmSharp/ContextPopup.cs b/src/ElmSharp/ElmSharp/ContextPopup.cs
index b947694..06e9dce 100755
--- a/src/ElmSharp/ElmSharp/ContextPopup.cs
+++ b/src/ElmSharp/ElmSharp/ContextPopup.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// Enumeration of ContextPopup direction type.
///
+ /// preview
public enum ContextPopupDirection
{
///
@@ -50,6 +51,7 @@ namespace ElmSharp
/// It inherits .
/// The ContextPopup is a widget that when it shown, pops up a list of items.
///
+ /// preview
public class ContextPopup : Layout
{
HashSet _children = new HashSet();
@@ -61,6 +63,7 @@ namespace ElmSharp
///
/// The parent is a given container which will be attached by ContextPopup
/// as a child.It's type.
+ /// preview
public ContextPopup(EvasObject parent) : base(parent)
{
_dismissed = new SmartEvent(this, this.RealHandle, "dismissed");
@@ -81,6 +84,7 @@ namespace ElmSharp
///
/// Outside of ContextPopup was clicked or it's parent area is changed or the language is changed. and then ContextPopup is dismissed.
///
+ /// preview
public event EventHandler Dismissed;
///
@@ -89,6 +93,7 @@ namespace ElmSharp
///
/// Once the ContextPopup showed up, the direction would be determined.
///
+ /// preview
public ContextPopupDirection Direction
{
get
@@ -101,6 +106,7 @@ namespace ElmSharp
/// Gets or sets the value of current ContextPopup object's orientation.
/// True for horizontal mode, False for vertical mode (or errors)
///
+ /// preview
public bool IsHorizontal
{
get
@@ -120,6 +126,7 @@ namespace ElmSharp
///
/// Default value of AutoHide is False.
///
+ /// preview
public bool AutoHide
{
get
@@ -135,6 +142,7 @@ namespace ElmSharp
///
/// Clears all items in the given ContextPopup object.
///
+ /// preview
public void Clear()
{
Interop.Elementary.elm_ctxpopup_clear(Handle);
@@ -147,6 +155,7 @@ namespace ElmSharp
/// 2nd priority of direction
/// 3th priority of direction
/// 4th priority of direction
+ /// preview
public void SetDirectionPriorty(ContextPopupDirection first, ContextPopupDirection second, ContextPopupDirection third, ContextPopupDirection fourth)
{
Interop.Elementary.elm_ctxpopup_direction_priority_set(RealHandle, (int)first, (int)second, (int)third, (int)fourth);
@@ -159,6 +168,7 @@ namespace ElmSharp
/// 2nd priority of direction to be returned
/// 2nd priority of direction to be returned
/// 4th priority of direction to be returned
+ /// preview
public void GetDirectionPriority(out ContextPopupDirection first, out ContextPopupDirection second, out ContextPopupDirection third, out ContextPopupDirection fourth)
{
int firstOut, secondOut, thirdOut, fourthOut;
@@ -176,6 +186,7 @@ namespace ElmSharp
///
/// A ContextPopupItem added or NULL, on errors
///
+ /// preview
public ContextPopupItem Append(string label)
{
return Append(label, null);
@@ -187,6 +198,7 @@ namespace ElmSharp
/// The Label of the new item
/// Icon to be set on new item
/// A ContextPopupItem added or NULL, on errors
+ /// preview
public ContextPopupItem Append(string label, EvasObject icon)
{
ContextPopupItem item = new ContextPopupItem(label, icon);
@@ -198,6 +210,7 @@ namespace ElmSharp
///
/// Dismiss a ContextPopup object. The ContextPopup will be hidden and the "clicked" signal will be emitted.
///
+ /// preview
public void Dismiss()
{
Interop.Elementary.elm_ctxpopup_dismiss(RealHandle);
@@ -210,6 +223,7 @@ namespace ElmSharp
///
/// Get false if you cannot put it in the direction. Gets true if it's possible.
///
+ /// preview
public bool IsAvailableDirection(ContextPopupDirection direction)
{
return Interop.Elementary.elm_ctxpopup_direction_available_get(RealHandle, (int)direction);
@@ -218,6 +232,7 @@ namespace ElmSharp
///
/// Gets Alpha of a default Color Class.
///
+ /// preview
public override int Opacity
{
get
@@ -236,6 +251,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_ctxpopup_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/ContextPopupItem.cs b/src/ElmSharp/ElmSharp/ContextPopupItem.cs
index 35c908b..7767892 100755
--- a/src/ElmSharp/ElmSharp/ContextPopupItem.cs
+++ b/src/ElmSharp/ElmSharp/ContextPopupItem.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
/// It inherits .
/// A instance to the ContextPopup item added.
///
+ /// preview
public class ContextPopupItem : ItemObject
{
internal ContextPopupItem(string text, EvasObject icon) : base(IntPtr.Zero)
@@ -33,16 +34,19 @@ namespace ElmSharp
///
/// Gets the Text property of the given ContextPopupItem.
///
+ /// preview
public string Text { get; internal set; }
///
/// Gets the Icon(type is ) property of the given ContextPopupItem.
///
+ /// preview
public EvasObject Icon { get; internal set; }
///
/// Selected will be triggered when the ContextPopupItem is Selected.
///
+ /// preview
public event EventHandler Selected;
internal void SendSelected()
diff --git a/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs b/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs
index 25d622c..939bd43 100755
--- a/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs
@@ -23,16 +23,19 @@ namespace ElmSharp
/// The DateChanged event in Calendar and DateTimeChanged event in DateTimeSelector.
/// contain DateChangedEventArgs as a parameter.
///
+ /// preview
public class DateChangedEventArgs : EventArgs
{
///
/// Gets the OldDate property of the given DateChangedEventArgs.
///
+ /// preview
public DateTime OldDate { get; private set; }
///
/// Gets the NewDate property of the given DateChangedEventArgs.
///
+ /// preview
public DateTime NewDate { get; private set; }
///
@@ -44,6 +47,7 @@ namespace ElmSharp
///
/// New date when DateChanged event or DateTimeChanged event triggered
///
+ /// preview
public DateChangedEventArgs(DateTime oldDate, DateTime newDate)
{
this.OldDate = oldDate;
diff --git a/src/ElmSharp/ElmSharp/DateTimeSelector.cs b/src/ElmSharp/ElmSharp/DateTimeSelector.cs
index c159804..9559037 100755
--- a/src/ElmSharp/ElmSharp/DateTimeSelector.cs
+++ b/src/ElmSharp/ElmSharp/DateTimeSelector.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// Enumeration of datetime field types for DateTimeSelector.
///
+ /// preview
public enum DateTimeFieldType
{
///
@@ -55,6 +56,7 @@ namespace ElmSharp
/// This widget displays date and time as per the system's locale settings
/// (Date includes Day, Month & Year along with the defined separators and Time includes Hour, Minute & AM/PM fields. Separator for AM/PM field is ignored.
///
+ /// preview
public class DateTimeSelector : Layout
{
SmartEvent _changed;
@@ -65,6 +67,7 @@ namespace ElmSharp
///
/// The parent is a given container which will be attached by DateTimeSelector
///as a child.It's type.
+ /// preview
public DateTimeSelector(EvasObject parent) : base(parent)
{
}
@@ -72,6 +75,7 @@ namespace ElmSharp
///
/// Creates and initializes a new instance of DateTimeSelector class.
///
+ /// preview
protected DateTimeSelector() : base()
{
}
@@ -79,6 +83,7 @@ namespace ElmSharp
///
/// ItemSelected is raised when Datetime field value changed.
///
+ /// preview
public event EventHandler DateTimeChanged;
///
@@ -87,6 +92,7 @@ namespace ElmSharp
///
/// format is a combination of allowed LIBC date format specifiers like: "%b %d, %Y %I : %M %p".
///
+ /// preview
public string Format
{
get
@@ -102,6 +108,7 @@ namespace ElmSharp
///
/// Gets or sets the upper boundary of DateTime field.
///
+ /// preview
public DateTime MaximumDateTime
{
get
@@ -120,6 +127,7 @@ namespace ElmSharp
///
/// Gets or sets the lower boundary of DateTime field.
///
+ /// preview
public DateTime MinimumDateTime
{
get
@@ -138,6 +146,7 @@ namespace ElmSharp
///
/// Gets or sets the current value of DateTime field.
///
+ /// preview
public DateTime DateTime
{
get
@@ -162,6 +171,7 @@ namespace ElmSharp
/// The field is visible or not.
/// Type is bool.If visible, return true.
///
+ /// preview
public bool IsFieldVisible(DateTimeFieldType type)
{
return Interop.Elementary.elm_datetime_field_visible_get(RealHandle, (int)type);
@@ -173,6 +183,7 @@ namespace ElmSharp
/// Enumeration
/// minimum limit
/// maximum limit
+ /// preview
public void SetFieldLimit(DateTimeFieldType type, int minimum, int maximum)
{
Interop.Elementary.elm_datetime_field_limit_set(RealHandle, (int)type, minimum, maximum);
@@ -183,6 +194,7 @@ namespace ElmSharp
///
/// Enumeration
/// When set as true, the field type visible.
+ /// preview
public void SetFieldVisible(DateTimeFieldType type, bool visible)
{
Interop.Elementary.elm_datetime_field_visible_set(RealHandle, (int)type, visible);
@@ -191,6 +203,7 @@ namespace ElmSharp
///
/// The callback of Realized Event
///
+ /// preview
protected override void OnRealized()
{
base.OnRealized();
@@ -208,6 +221,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs b/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs
index 8407f6d..0a2be88 100755
--- a/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs
@@ -23,16 +23,19 @@ namespace ElmSharp
/// The DisplayedMonthChangedEvent in Calendar contain
/// DisplayedMonthChangedEventArgs as a parameter.
///
+ /// preview
public class DisplayedMonthChangedEventArgs : EventArgs
{
///
/// Gets the OldMonth property of the given DisplayedMonthChangedEventArgs.
///
+ /// preview
public int OldMonth { get; private set; }
///
/// Gets the NewMonth property of the given DisplayedMonthChangedEventArgs.
///
+ /// preview
public int NewMonth { get; private set; }
///
@@ -44,6 +47,7 @@ namespace ElmSharp
///
/// new month of date when DisplayedMonthChangedEvent triggered.
///
+ /// preview
public DisplayedMonthChangedEventArgs(int oldMonth, int newMonth)
{
this.OldMonth = oldMonth;
diff --git a/src/ElmSharp/ElmSharp/EcoreAnimator.cs b/src/ElmSharp/ElmSharp/EcoreAnimator.cs
index 64a548d..06c9a1c 100755
--- a/src/ElmSharp/ElmSharp/EcoreAnimator.cs
+++ b/src/ElmSharp/ElmSharp/EcoreAnimator.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// EcoreAnimator is a helper class, it provides functions to manager animations.
///
+ /// preview
public static class EcoreAnimator
{
static readonly Dictionary> _taskMap = new Dictionary>();
@@ -39,6 +40,7 @@ namespace ElmSharp
/// Gets current system time as a floating point value in seconds.
///
/// Current system time
+ /// preview
public static double GetCurrentTime()
{
return Interop.Ecore.ecore_time_get();
@@ -49,6 +51,7 @@ namespace ElmSharp
///
/// The function to call when it ticks off
/// A handle to the new animator
+ /// preview
public static IntPtr AddAnimator(Func handler)
{
int id = RegistHandler(handler);
@@ -59,6 +62,7 @@ namespace ElmSharp
/// Removes the specified animator from the animator list.
///
/// The specified animator handle
+ /// preview
public static void RemoveAnimator(IntPtr anim)
{
int taskId = (int)Interop.Ecore.ecore_animator_del(anim);
diff --git a/src/ElmSharp/ElmSharp/EcoreEvent.cs b/src/ElmSharp/ElmSharp/EcoreEvent.cs
index 577ec71..16e7b0e 100755
--- a/src/ElmSharp/ElmSharp/EcoreEvent.cs
+++ b/src/ElmSharp/ElmSharp/EcoreEvent.cs
@@ -25,43 +25,53 @@ namespace ElmSharp
/// The EcoreEventType is type of EcoreEvent.
/// It includes some predefined instance.
///
+ /// preview
public class EcoreEventType
{
///
/// Key down Ecore event type.
///
+ /// preview
public static readonly EcoreEventType KeyDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_DOWN");
///
/// Key Up Ecore event type.
///
+ /// preview
public static readonly EcoreEventType KeyUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_UP");
///
/// Mouse Button Down Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseButtonDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_DOWN");
///
/// Mouse Button Up Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseButtonUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_UP");
///
/// Mouse Button Cancel Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseButtonCancel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_CANCEL");
///
/// Mouse Move Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseMove = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_MOVE");
///
/// Mouse Wheel Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseWheel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_WHEEL");
///
/// Mouse In Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseIn = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_IN");
///
/// Mouse Out Ecore event type.
///
+ /// preview
public static readonly EcoreEventType MouseOut = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_OUT");
private string _lib;
@@ -79,6 +89,7 @@ namespace ElmSharp
/// Gets the value associated with the specified type.
///
/// The value of type.
+ /// preview
public int GetValue()
{
if (_typeValue < 0)
@@ -102,6 +113,7 @@ namespace ElmSharp
/// The EcoreEvent is a class to help to create events are being notified of events.
///
/// Kinds of EventArgs
+ /// preview
public class EcoreEvent : IDisposable where TEventArgs : EventArgs
{
///
@@ -111,6 +123,7 @@ namespace ElmSharp
/// EcoreEventType
/// IntPtr
///
+ /// preview
public delegate TEventArgs EventInfoParser(IntPtr data, EcoreEventType type, IntPtr info);
private bool _disposed = false;
@@ -122,6 +135,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the EcoreEvent class.
///
/// EcoreEventType
+ /// preview
public EcoreEvent(EcoreEventType type) : this(type, null)
{
}
@@ -131,6 +145,7 @@ namespace ElmSharp
///
/// EcoreEventType
/// EventInfoParser
+ /// preview
public EcoreEvent(EcoreEventType type, EventInfoParser parser)
{
_eventType = type;
@@ -155,6 +170,7 @@ namespace ElmSharp
///
/// On Event Handler of EcoreEvent.
///
+ /// preview
public event EventHandler On
{
add
@@ -186,6 +202,7 @@ namespace ElmSharp
/// true if managed resources should be disposed
/// otherwise, false.
///
+ /// preview
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
@@ -206,6 +223,7 @@ namespace ElmSharp
///
/// Destroy current object
///
+ /// preview
public void Dispose()
{
Dispose(true);
@@ -216,12 +234,14 @@ namespace ElmSharp
///
/// Event class for EcoreEvent
///
+ /// preview
public class EcoreEvent : EcoreEvent
{
///
/// Creates and initializes a new instance of the EcoreEvent class.
///
/// EcoreEventType
+ /// preview
public EcoreEvent(EcoreEventType type) : base(type)
{
}
diff --git a/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs b/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs
index d057716..64ee150 100755
--- a/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs
@@ -23,15 +23,18 @@ namespace ElmSharp
/// It inherits System.EventArgs.
/// The EcoreKeyEventArgs is a EventArgs to record Ecore event's key name and key code.
///
+ /// preview
public class EcoreKeyEventArgs : EventArgs
{
///
/// Gets the KeyName property.The return type is string.
///
+ /// preview
public string KeyName { get; private set; }
///
/// Gets the KeyCode property.The return type is int.
///
+ /// preview
public int KeyCode { get; private set; }
///
@@ -41,6 +44,7 @@ namespace ElmSharp
/// type
/// information
/// new instance of the EcoreKeyEventArgs class
+ /// preview
public static EcoreKeyEventArgs Create(IntPtr data, EcoreEventType type, IntPtr info)
{
var evt = Marshal.PtrToStructure(info);
diff --git a/src/ElmSharp/ElmSharp/EcoreMainloop.cs b/src/ElmSharp/ElmSharp/EcoreMainloop.cs
index 505e2c0..b15658f 100755
--- a/src/ElmSharp/ElmSharp/EcoreMainloop.cs
+++ b/src/ElmSharp/ElmSharp/EcoreMainloop.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// EcoreMainloop is a helper class, it provide functions relative Ecore's main loop.
///
+ /// preview
public static class EcoreMainloop
{
static readonly Dictionary> _taskMap = new Dictionary>();
@@ -41,11 +42,13 @@ namespace ElmSharp
/// Checks if you are calling this function from the main thread.
///
/// True is the calling function is the same thread, false otherwise.
+ /// preview
public static bool IsMainThread => Interop.Eina.eina_main_loop_is();
///
/// Runs the application main loop.
///
+ /// preview
public static void Begin()
{
Interop.Ecore.ecore_main_loop_begin();
@@ -54,6 +57,7 @@ namespace ElmSharp
///
/// Quits the main loop once all the events currently on the queue have been processed.
///
+ /// preview
public static void Quit()
{
Interop.Ecore.ecore_main_loop_quit();
@@ -63,6 +67,7 @@ namespace ElmSharp
/// Adds an idler handler.
///
/// The action to call when idling
+ /// preview
public static void Post(Action task)
{
int id = RegistHandler(() => { task(); return false; });
@@ -73,6 +78,7 @@ namespace ElmSharp
/// Calls callback asynchronously in the main loop.
///
/// The action wanted to be called
+ /// preview
public static void PostAndWakeUp(Action task)
{
int id = RegistHandler(() => { task(); return false; });
@@ -83,6 +89,7 @@ namespace ElmSharp
/// Calls callback synchronously in the main loop.
///
/// The action wanted to be called
+ /// preview
public static void Send(Action task)
{
int id = RegistHandler(() => { task(); return false; });
@@ -95,6 +102,7 @@ namespace ElmSharp
/// The interval in seconds.
/// The given function.
/// A timer object handler on success, NULL on failure.
+ /// preview
public static IntPtr AddTimer(double interval, Func handler)
{
int id = RegistHandler(handler);
@@ -105,6 +113,7 @@ namespace ElmSharp
/// Removes the specified timer from the timer list.
///
/// The specified timer handler
+ /// preview
public static void RemoveTimer(IntPtr id)
{
int taskId = (int)Interop.Ecore.ecore_timer_del(id);
diff --git a/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs b/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs
index 0fa013b..eae11c1 100755
--- a/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs
+++ b/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs
@@ -22,11 +22,13 @@ namespace ElmSharp
///
/// Provides a synchronization context for the efl application.
///
+ /// preview
public class EcoreSynchronizationContext : SynchronizationContext
{
///
/// Initializes a new instance of the EcoreSynchronizationContext class.
///
+ /// preview
public EcoreSynchronizationContext()
{
}
@@ -40,6 +42,7 @@ namespace ElmSharp
/// SetSynchronizationContext(new EcoreSynchronizationContext());
///
///
+ /// preview
public static void Initialize()
{
SetSynchronizationContext(new EcoreSynchronizationContext());
@@ -51,6 +54,7 @@ namespace ElmSharp
/// The SendOrPostCallback delegate to call.
/// The object passed to the delegate.
/// The Post method starts an asynchronous request to post a message.
+ /// preview
public override void Post(SendOrPostCallback d, object state)
{
EcoreMainloop.PostAndWakeUp(() =>
@@ -66,6 +70,7 @@ namespace ElmSharp
/// The object passed to the delegate.
///
/// The Send method starts a synchronous request to send a message.
+ /// preview
public override void Send(SendOrPostCallback d, object state)
{
EcoreMainloop.Send(() =>
diff --git a/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs b/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs
index b5a86f8..5343230 100644
--- a/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs
+++ b/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// EcoreTimelineAnimator is a helper class, it provides functions to manager animations.
///
+ /// preview
public class EcoreTimelineAnimator
{
double _runtime;
@@ -32,6 +33,7 @@ namespace ElmSharp
///
/// It occurs when the animator is complete.
///
+ /// preview
public event EventHandler Finished;
///
@@ -39,6 +41,7 @@ namespace ElmSharp
///
/// The time to run in seconds
/// Functions called at each time line
+ /// preview
public EcoreTimelineAnimator(double runtime, Action timelineCallback)
{
_runtime = runtime;
@@ -50,16 +53,19 @@ namespace ElmSharp
///
/// Gets whether the animation is running.
///
+ /// preview
public bool IsRunning { get; private set; }
///
/// Gets the current position of the animation.
///
+ /// preview
public double Position => _position;
///
/// Starts an animator that runs for a limited time.for a limited time.
///
+ /// preview
public void Start()
{
IsRunning = true;
@@ -69,6 +75,7 @@ namespace ElmSharp
///
/// Stops an animator that running.
///
+ /// preview
public void Stop()
{
IsRunning = false;
@@ -78,6 +85,7 @@ namespace ElmSharp
///
/// Suspends the specified animator.
///
+ /// preview
public void Freeze()
{
Interop.Ecore.ecore_animator_freeze(_animator);
@@ -86,6 +94,7 @@ namespace ElmSharp
///
/// Restores execution of the specified animator.
///
+ /// preview
public void Thaw()
{
Interop.Ecore.ecore_animator_thaw(_animator);
@@ -94,6 +103,7 @@ namespace ElmSharp
///
/// Callback that is called when ticks off
///
+ /// preview
protected void OnTimeline()
{
_timelineCallback();
diff --git a/src/ElmSharp/ElmSharp/EdjeObject.cs b/src/ElmSharp/ElmSharp/EdjeObject.cs
index b01bc9f..9e04e87 100644
--- a/src/ElmSharp/ElmSharp/EdjeObject.cs
+++ b/src/ElmSharp/ElmSharp/EdjeObject.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
///
/// The EdjeObject is a class that evas object exist in
///
+ /// preview
public class EdjeObject
{
IntPtr _edjeHandle;
@@ -40,6 +41,7 @@ namespace ElmSharp
/// This call is useful, for example, when one could expect a given GUI element, depending on the theme applied to obj.
/// The part's name to check for existence in obj's group
/// TRUE, if the edje part exists in obj's group, otherwise FALSE
+ /// preview
public EdjeTextPartObject this[string part]
{
get
@@ -57,6 +59,7 @@ namespace ElmSharp
///
/// The signal's "emission" string
/// The signal's "source" string
+ /// preview
public void EmitSignal(string emission, string source)
{
Interop.Elementary.edje_object_signal_emit(_edjeHandle, emission, source);
@@ -68,6 +71,7 @@ namespace ElmSharp
///
/// Deleting the color class defined in the theme file.
/// The color class to be deleted
+ /// preview
public void DeleteColorClass(string part)
{
Interop.Elementary.edje_object_color_class_del(_edjeHandle, part);
@@ -90,6 +94,7 @@ namespace ElmSharp
/// The shadow Blue value.
/// The shadow Alpha value.
/// True if succeed, otherwise False
+ /// preview
public bool SetColorClass(string colorClass, int red, int green, int blue, int alpha, int outlineRed, int outlineGreen, int outlineBlue, int outlineAlpha,
int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha)
{
@@ -114,6 +119,7 @@ namespace ElmSharp
/// The shadow Blue value.
/// The shadow Alpha value.
/// True if succeed, otherwise False
+ /// preview
public bool GetColorClass(string colorClass, out int red, out int green, out int blue, out int alpha, out int outlineRed, out int outlineGreen, out int outlineBlue, out int outlineAlpha,
out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha)
{
@@ -128,6 +134,7 @@ namespace ElmSharp
/// Font name.
/// Font size.
/// True if succeed, otherwise False
+ /// preview
public bool SetTextClass(string textClass, string font, int fontSize)
{
return Interop.Elementary.edje_object_text_class_set(_edjeHandle, textClass, font, fontSize);
@@ -140,6 +147,7 @@ namespace ElmSharp
/// Font name.
/// Font size.
/// True if succeed, otherwise False
+ /// preview
public bool GetTextClass(string textClass, out string font, out int fontSize)
{
return Interop.Elementary.edje_object_text_class_get(_edjeHandle, textClass, out font, out fontSize);
@@ -151,6 +159,7 @@ namespace ElmSharp
/// The signal's "emission" string
/// The signal's "source" string
/// The action to be executed when the signal is emitted
+ /// preview
public void AddSignalAction(string emission, string source, Action action)
{
if (emission != null && source != null && action != null)
@@ -175,6 +184,7 @@ namespace ElmSharp
/// The signal's "emission" string
/// The signal's "source" string
/// The action to be executed when the signal is emitted
+ /// preview
public void DeleteSignalAction(string emission, string source, Action action)
{
if (emission != null && source != null && action != null)
@@ -237,6 +247,7 @@ namespace ElmSharp
///
/// An EdjeTextPartObject is a class dealing with parts of type text.
///
+ /// preview
public class EdjeTextPartObject
{
string _part;
@@ -251,11 +262,13 @@ namespace ElmSharp
///
/// Gets the name of the EdjeTextPartObject
///
+ /// preview
public string Name { get { return _part; } }
///
/// Gets or sets the text for an object part.
///
+ /// preview
public string Text
{
get
@@ -271,6 +284,7 @@ namespace ElmSharp
///
/// Sets or gets the style of the object part.
///
+ /// preview
public string TextStyle
{
get
@@ -293,6 +307,7 @@ namespace ElmSharp
///
/// Gets the geometry of a given edje part, in a given edje object's group definition, relative to the object's area.
///
+ /// preview
public Rect Geometry
{
get
@@ -306,6 +321,7 @@ namespace ElmSharp
///
/// Gets the native width and height.
///
+ /// preview
public Size TextBlockNativeSize
{
get
@@ -321,6 +337,7 @@ namespace ElmSharp
///
/// Gets the formatted width and height.
///
+ /// preview
public Size TextBlockFormattedSize
{
get
diff --git a/src/ElmSharp/ElmSharp/EffectBase.cs b/src/ElmSharp/ElmSharp/EffectBase.cs
index 19eddb0..362e60d 100755
--- a/src/ElmSharp/ElmSharp/EffectBase.cs
+++ b/src/ElmSharp/ElmSharp/EffectBase.cs
@@ -21,11 +21,13 @@ namespace ElmSharp
///
/// EffectBase class for the TransitEffect
///
+ /// preview
public abstract class EffectBase
{
///
/// EffectEneded event will be triggered when be effect ended.
///
+ /// preview
public event EventHandler EffectEnded;
internal abstract IntPtr CreateEffect(IntPtr transit);
diff --git a/src/ElmSharp/ElmSharp/Elementary.cs b/src/ElmSharp/ElmSharp/Elementary.cs
index dc32fdf..ef66745 100755
--- a/src/ElmSharp/ElmSharp/Elementary.cs
+++ b/src/ElmSharp/ElmSharp/Elementary.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
///
/// Focus Autoscroll Mode
///
+ /// preview
public enum FocusAutoScrollMode
{
///
@@ -44,6 +45,7 @@ namespace ElmSharp
///
/// The Elementary is a General Elementary,a VERY SIMPLE toolkit.
///
+ /// preview
public static class Elementary
{
private static readonly string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
@@ -51,6 +53,7 @@ namespace ElmSharp
///
/// Gets or sets the configured finger size.
///
+ /// preview
public static int FingerSize
{
get
@@ -66,6 +69,7 @@ namespace ElmSharp
///
/// Gets or sets the enable status of the focus highlight animation
///
+ /// preview
public static bool IsFocusHighlightAnimation
{
get
@@ -82,6 +86,7 @@ namespace ElmSharp
/// Gets or sets the system mirrored mode.
/// This determines the default mirrored mode of widgets.
///
+ /// preview
public static bool IsMirrored
{
get
@@ -97,6 +102,7 @@ namespace ElmSharp
///
/// Gets or sets the enable status of the focus highlight.
///
+ /// preview
public static bool CanFocusHighlight
{
get
@@ -112,6 +118,7 @@ namespace ElmSharp
///
/// Gets or sets the base scale of the application.
///
+ /// preview
public static double AppBaseScale
{
get
@@ -127,6 +134,7 @@ namespace ElmSharp
///
/// Gets or sets the global scaling factor.
///
+ /// preview
public static double Scale
{
get
@@ -142,6 +150,7 @@ namespace ElmSharp
///
/// Gets or sets the amount of inertia a scroller imposes during region bring animations.
///
+ /// preview
public static double BringInScrollFriction
{
get
@@ -157,6 +166,7 @@ namespace ElmSharp
///
/// Gets of sets focus auto scroll mode.
///
+ /// preview
public static FocusAutoScrollMode FocusAutoScrollMode
{
get
@@ -172,6 +182,7 @@ namespace ElmSharp
///
/// Initializes Elementary.
///
+ /// preview
public static void Initialize()
{
Interop.Elementary.elm_init(0, null);
@@ -180,6 +191,7 @@ namespace ElmSharp
///
/// Shuts down Elementary.
///
+ /// preview
public static void Shutdown()
{
Interop.Elementary.elm_shutdown();
@@ -188,6 +200,7 @@ namespace ElmSharp
///
/// Runs Elementary's main loop.
///
+ /// preview
public static void Run()
{
Interop.Elementary.elm_run();
@@ -196,6 +209,7 @@ namespace ElmSharp
///
/// Prepends a theme overlay to the list of overlays
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static void ThemeOverlay()
{
@@ -209,6 +223,7 @@ namespace ElmSharp
/// Prepends a theme overlay to the list of overlays
///
/// The Edje file path to be used.
+ /// preview
public static void AddThemeOverlay(string filePath)
{
Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, filePath);
@@ -218,6 +233,7 @@ namespace ElmSharp
/// Delete a theme overlay from the list of overlays
///
/// The name of the theme overlay.
+ /// preview
public static void DeleteThemeOverlay(string filePath)
{
Interop.Elementary.elm_theme_overlay_del(IntPtr.Zero, filePath);
@@ -226,6 +242,7 @@ namespace ElmSharp
///
/// Free a theme
///
+ /// preview
public static void FreeTheme()
{
Interop.Elementary.elm_theme_free(IntPtr.Zero);
@@ -236,6 +253,7 @@ namespace ElmSharp
///
/// Theme search string
/// This sets the search string for the theme in path-notation from first theme to search, to last, delimited by the : character. Example:"shiny:/path/to/file.edj:default"
+ /// preview
public static void SetTheme(string theme)
{
Interop.Elementary.elm_theme_set(IntPtr.Zero, theme);
@@ -244,6 +262,7 @@ namespace ElmSharp
///
/// Flush the current theme.
///
+ /// preview
public static void FlushTheme()
{
Interop.Elementary.elm_theme_flush(IntPtr.Zero);
@@ -252,6 +271,7 @@ namespace ElmSharp
///
/// This flushes all themes (default and specific ones).
///
+ /// preview
public static void FlushAllThemes()
{
Interop.Elementary.elm_theme_full_flush();
@@ -261,6 +281,7 @@ namespace ElmSharp
/// Deletes a theme extension from the list of extensions.
///
/// The name of the theme extension.
+ /// preview
public static void DeleteThemeExtention(string item)
{
Interop.Elementary.elm_theme_extension_del(IntPtr.Zero, item);
@@ -269,6 +290,7 @@ namespace ElmSharp
///
/// Gets the amount of inertia a scroller imposes during region bring animations.
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetSystemScrollFriction()
{
@@ -278,6 +300,7 @@ namespace ElmSharp
///
/// Sets the amount of inertia a scroller imposes during region bring animations.
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetSystemScrollFriction(double timeSet)
@@ -288,6 +311,7 @@ namespace ElmSharp
///
/// Get Elementary's profile in use
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static string GetProfile()
{
@@ -297,6 +321,7 @@ namespace ElmSharp
///
/// Set the global scaling factor
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetScale(double scale)
{
@@ -306,6 +331,7 @@ namespace ElmSharp
///
/// Get the global scaling factor
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetScale()
{
@@ -316,6 +342,7 @@ namespace ElmSharp
/// Flush all caches.
/// Frees all data that was in cache and is not currently being used to reduce memory usage. This frees Edje's, Evas' and Eet's cache.
///
+ /// preview
public static void FlushAllCashe()
{
Interop.Elementary.elm_cache_all_flush();
@@ -325,6 +352,7 @@ namespace ElmSharp
/// Changes the language of the current application.
///
/// The language to set, must be the full name of the locale.
+ /// preview
public static void SetLanguage(string language)
{
Interop.Elementary.elm_language_set(language);
@@ -336,6 +364,7 @@ namespace ElmSharp
/// The policy identifier
/// The policy value, which depends on the identifier
///
+ /// preview
public static bool SetPolicy(uint policy, int value)
{
return Interop.Elementary.elm_policy_set(policy, value);
@@ -344,6 +373,7 @@ namespace ElmSharp
///
/// Reload Elementary's configuration, bounded to current selected profile.
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static void ReloadConfig()
{
@@ -353,6 +383,7 @@ namespace ElmSharp
///
/// Flushes all config settings and then applies those settings to all applications using elementary on the current display.
///
+ /// preview
public static void FlushAllConfig()
{
Interop.Elementary.elm_config_all_flush();
diff --git a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs
index c3079e2..f54c103 100755
--- a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs
+++ b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs
@@ -22,11 +22,13 @@ namespace ElmSharp
///
/// The ElmScrollConfig is a scrollable views's config
///
+ /// preview
public static class ElmScrollConfig
{
///
/// Gets or sets the amount of inertia a scroller imposes during region bring animations.
///
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public static double BringInScrollFriction
{
diff --git a/src/ElmSharp/ElmSharp/Entry.cs b/src/ElmSharp/ElmSharp/Entry.cs
index 92f57b5..d5f8c06 100755
--- a/src/ElmSharp/ElmSharp/Entry.cs
+++ b/src/ElmSharp/ElmSharp/Entry.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
///
/// Enumeration for describing InputPanel layout type.
///
+ /// preview
public enum InputPanelLayout
{
///
@@ -99,6 +100,7 @@ namespace ElmSharp
///
/// Enumeration that defines the "Return" key types on the input panel (virtual keyboard).
///
+ /// preview
public enum InputPanelReturnKeyType
{
///
@@ -150,6 +152,7 @@ namespace ElmSharp
///
/// Enumeration that defines the autocapitalization types.
///
+ /// preview
public enum AutoCapital
{
///
@@ -176,6 +179,7 @@ namespace ElmSharp
///
/// Enumeration that defines the entry's copy and paste policy.
///
+ /// preview
public enum CopyAndPasteMode
{
///
@@ -197,6 +201,7 @@ namespace ElmSharp
///
/// Enumeration that defines the text format types.
///
+ /// preview
public enum TextFormat
{
///
@@ -213,6 +218,7 @@ namespace ElmSharp
///
/// Enumeration that defines the types of Input Hints.
///
+ /// preview
public enum InputHints
{
///
@@ -234,6 +240,7 @@ namespace ElmSharp
///
/// Enumeration that defines the input panel (virtual keyboard) language modes.
///
+ /// preview
public enum InputPanelLanguage
{
///
@@ -250,6 +257,7 @@ namespace ElmSharp
///
/// The entry is a convenience widget that shows a box in which the user can enter text.
///
+ /// preview
public class Entry : Layout
{
SmartEvent _clicked;
@@ -264,6 +272,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the Entry class.
///
/// The EvasObject to which the new Entry will be attached as a child.
+ /// preview
public Entry(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, this.RealHandle, "clicked");
@@ -282,26 +291,31 @@ namespace ElmSharp
///
/// Activated will be triggered when the entry in Activated stated.
///
+ /// preview
public event EventHandler Activated;
///
/// Clicked will be triggered when the entry is clicked.
///
+ /// preview
public event EventHandler Clicked;
///
/// ChangedByUser will be triggered when the entry changed by user.
///
+ /// preview
public event EventHandler ChangedByUser;
///
/// CursorChanged will be triggered when the Cursor in the entry is changed.
///
+ /// preview
public event EventHandler CursorChanged;
///
/// Sets or gets the entry to the single line mode.
///
+ /// preview
public bool IsSingleLine
{
get
@@ -317,6 +331,7 @@ namespace ElmSharp
///
/// Sets or gets the entry to the password mode.
///
+ /// preview
public bool IsPassword
{
get
@@ -332,6 +347,7 @@ namespace ElmSharp
///
/// Sets or gets whether the entry is editable.
///
+ /// preview
public bool IsEditable
{
get
@@ -347,6 +363,7 @@ namespace ElmSharp
///
/// Sets or gets whether the entry is empty.
///
+ /// preview
public bool IsEmpty
{
get
@@ -358,6 +375,7 @@ namespace ElmSharp
///
/// Sets or gets text currently shown in the object entry.
///
+ /// preview
public override string Text
{
get
@@ -374,6 +392,7 @@ namespace ElmSharp
/// Sets or gets the style on the top of the user style stack.
///
/// If there is styles in the user style stack, the properties in the top style of user style stack will replace the properties in current theme. The input style is specified in format tag='property=value' (i.e. DEFAULT='font=Sans font_size=60'hilight=' + font_weight=Bold').
+ /// preview
public string TextStyle
{
get
@@ -389,6 +408,7 @@ namespace ElmSharp
///
/// Sets or gets the current position of the cursor in the entry.
///
+ /// preview
public int CursorPosition
{
get
@@ -404,6 +424,7 @@ namespace ElmSharp
///
/// Sets or gets the scrollable state of the entry.
///
+ /// preview
public bool Scrollable
{
get
@@ -426,6 +447,7 @@ namespace ElmSharp
///
/// Sets or Gets the autocapitalization type on the immodule.
///
+ /// preview
public AutoCapital AutoCapital
{
get
@@ -441,6 +463,7 @@ namespace ElmSharp
///
/// Sets or Gets the entry object's 'autosave' status.
///
+ /// preview
public bool IsAutoSave
{
get
@@ -456,6 +479,7 @@ namespace ElmSharp
///
/// Sets or Gets entry text paste/drop mode.
///
+ /// preview
public CopyAndPasteMode CopyAndPasteMode
{
get
@@ -471,6 +495,7 @@ namespace ElmSharp
///
/// Gets the geometry of the cursor.
///
+ /// preview
public Rect CursorGeometry
{
get
@@ -484,6 +509,7 @@ namespace ElmSharp
///
/// Gets whether a format node exists at the current cursor position.
///
+ /// preview
public bool IsCursorFormat
{
get
@@ -495,6 +521,7 @@ namespace ElmSharp
///
/// Gets if the current cursor position holds a visible format node.
///
+ /// preview
public bool IsCursorVisibelFormat
{
get
@@ -506,6 +533,7 @@ namespace ElmSharp
///
/// Sets or Gets the value of input hint.
///
+ /// preview
public InputHints InputHint
{
get
@@ -521,6 +549,7 @@ namespace ElmSharp
///
/// Sets or gets the language mode of the input panel.
///
+ /// preview
public InputPanelLanguage InputPanelLanguage
{
get
@@ -536,6 +565,7 @@ namespace ElmSharp
///
/// Sets or gets the input panel layout variation of the entry.
///
+ /// preview
public int InputPanelVariation
{
get
@@ -551,6 +581,7 @@ namespace ElmSharp
///
/// Sets or gets the line wrap type to use on multi-line entries.
///
+ /// preview
public WrapType LineWrapType
{
get
@@ -566,6 +597,7 @@ namespace ElmSharp
///
/// Sets or gets whether the entry should allow to use the text prediction.
///
+ /// preview
public bool PredictionAllowed
{
get
@@ -581,6 +613,7 @@ namespace ElmSharp
///
/// Sets or gets whether the return key on the input panel should be disabled or not.
///
+ /// preview
public bool InputPanelReturnKeyDisabled
{
get
@@ -598,6 +631,7 @@ namespace ElmSharp
/// It doesn't request to show the input panel even though it has focus.
/// If true, the input panel will be shown in case of only Mouse up event. (Focus event will be ignored.)
///
+ /// preview
public bool InputPanelShowByOnDemand
{
get
@@ -615,6 +649,7 @@ namespace ElmSharp
///
/// The path to the file to load and save
/// The file format
+ /// preview
public void SetFile(string file, TextFormat textFormat)
{
Interop.Elementary.elm_entry_file_set(RealHandle, file, (Interop.Elementary.TextFormat)textFormat);
@@ -625,6 +660,7 @@ namespace ElmSharp
///
/// The string (in markup) to be converted
/// The converted string (in UTF-8)
+ /// preview
public static string ConvertMarkupToUtf8(string markup)
{
return Interop.Elementary.elm_entry_markup_to_utf8(markup);
@@ -634,6 +670,7 @@ namespace ElmSharp
/// Moves the cursor by one position to the right within the entry.
///
///
+ /// preview
public bool MoveCursorNext()
{
return Interop.Elementary.elm_entry_cursor_next(RealHandle);
@@ -643,6 +680,7 @@ namespace ElmSharp
/// Moves the cursor one place to the left within the entry.
///
/// TRUE on success, otherwise FALSE on failure
+ /// preview
public bool MoveCursorPrev()
{
return Interop.Elementary.elm_entry_cursor_prev(RealHandle);
@@ -652,6 +690,7 @@ namespace ElmSharp
/// Moves the cursor one line up within the entry.
///
/// TRUE on success, otherwise FALSE on failure
+ /// preview
public bool MoveCursorUp()
{
return Interop.Elementary.elm_entry_cursor_up(RealHandle);
@@ -661,6 +700,7 @@ namespace ElmSharp
/// Moves the cursor one line down within the entry.
///
/// TRUE on success, otherwise FALSE on failure
+ /// preview
public bool MoveCursorDown()
{
return Interop.Elementary.elm_entry_cursor_down(RealHandle);
@@ -669,6 +709,7 @@ namespace ElmSharp
///
/// Moves the cursor to the beginning of the entry.
///
+ /// preview
public void MoveCursorBegin()
{
Interop.Elementary.elm_entry_cursor_begin_set(RealHandle);
@@ -677,6 +718,7 @@ namespace ElmSharp
///
/// Moves the cursor to the end of the entry.
///
+ /// preview
public void MoveCursorEnd()
{
Interop.Elementary.elm_entry_cursor_end_set(RealHandle);
@@ -685,6 +727,7 @@ namespace ElmSharp
///
/// Moves the cursor to the beginning of the current line.
///
+ /// preview
public void MoveCursorLineBegin()
{
Interop.Elementary.elm_entry_cursor_line_begin_set(RealHandle);
@@ -693,6 +736,7 @@ namespace ElmSharp
///
/// Moves the cursor to the end of the current line.
///
+ /// preview
public void MoveCursorLineEnd()
{
Interop.Elementary.elm_entry_cursor_line_end_set(RealHandle);
@@ -702,6 +746,7 @@ namespace ElmSharp
/// Sets the input panel layout of the entry.
///
/// The layout type
+ /// preview
public void SetInputPanelLayout(InputPanelLayout layout)
{
Interop.Elementary.elm_entry_input_panel_layout_set(RealHandle, (Interop.Elementary.InputPanelLayout)layout);
@@ -711,6 +756,7 @@ namespace ElmSharp
/// Sets the attribute to show the input panel automatically.
///
/// If true the input panel appears when the entry is clicked or has focus, otherwise false
+ /// preview
public void SetInputPanelEnabled(bool enabled)
{
Interop.Elementary.elm_entry_input_panel_enabled_set(RealHandle, enabled);
@@ -720,6 +766,7 @@ namespace ElmSharp
/// Sets the "return" key type. This type is used to set the string or icon on the "return" key of the input panel.
///
/// The type of "return" key on the input panel
+ /// preview
public void SetInputPanelReturnKeyType(InputPanelReturnKeyType keyType)
{
Interop.Elementary.elm_entry_input_panel_return_key_type_set(RealHandle, (Interop.Elementary.ReturnKeyType)keyType);
@@ -732,6 +779,7 @@ namespace ElmSharp
/// Note that the input panel is shown or hidden automatically according to the focus state of the entry widget.
/// This API can be used in case of manually controlling by using SetInputPanelEnabled(false).
///
+ /// preview
public void HideInputPanel()
{
Interop.Elementary.elm_entry_input_panel_hide(RealHandle);
@@ -740,6 +788,7 @@ namespace ElmSharp
///
/// Selects all the text within the entry.
///
+ /// preview
public void SelectAll()
{
Interop.Elementary.elm_entry_select_all(RealHandle);
@@ -748,6 +797,7 @@ namespace ElmSharp
///
/// Drops any existing text selection within the entry.
///
+ /// preview
public void SelectNone()
{
Interop.Elementary.elm_entry_select_none(RealHandle);
@@ -756,6 +806,7 @@ namespace ElmSharp
///
/// Forces calculation of the entry size and text layouting.
///
+ /// preview
public void ForceCalculation()
{
Interop.Elementary.elm_entry_calc_force(RealHandle);
@@ -765,6 +816,7 @@ namespace ElmSharp
/// Gets the string by the cursor at its current position.
///
///
+ /// preview
public string GetCursorContent()
{
return Interop.Elementary.elm_entry_cursor_content_get(RealHandle);
@@ -773,6 +825,7 @@ namespace ElmSharp
///
/// Begins a selection within the entry as though the user were holding down the mouse button to make a selection.
///
+ /// preview
public void BeginCursorSelection()
{
Interop.Elementary.elm_entry_cursor_selection_begin(RealHandle);
@@ -782,6 +835,7 @@ namespace ElmSharp
/// Appends the text of the entry.
///
/// The text to be displayed
+ /// preview
public void AppendText(string text)
{
Interop.Elementary.elm_entry_entry_append(RealHandle, text);
@@ -794,6 +848,7 @@ namespace ElmSharp
/// ScrollBarVisiblePolicy.Auto means the horizontal scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public virtual ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
@@ -816,6 +871,7 @@ namespace ElmSharp
/// ScrollBarVisiblePolicy.Auto means the vertical scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public virtual ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
@@ -838,6 +894,7 @@ namespace ElmSharp
/// This is enabled by default for both axis.
/// This API will set if it is enabled for the given axis with the boolean parameters for each axis.
///
+ /// preview
public bool VerticalBounce
{
get
@@ -860,6 +917,7 @@ namespace ElmSharp
/// This is enabled by default for both axis.
/// This API will set if it is enabled for the given axis with the boolean parameters for each axis.
///
+ /// preview
public bool HorizontalBounce
{
get
@@ -879,6 +937,7 @@ namespace ElmSharp
/// Inserts the given text into the entry at the current cursor position.
///
///
+ /// preview
public void InsertTextToCursor(string text)
{
Interop.Elementary.elm_entry_entry_insert(RealHandle, text);
@@ -887,6 +946,7 @@ namespace ElmSharp
///
/// Ends a selection within the entry as though the user had just released the mouse button while making a selection.
///
+ /// preview
public void EndCursorSelection()
{
Interop.Elementary.elm_entry_cursor_selection_end(RealHandle);
@@ -895,6 +955,7 @@ namespace ElmSharp
///
/// Writes any changes made to the file that is set by File.
///
+ /// preview
public void SaveFile()
{
Interop.Elementary.elm_entry_file_save(RealHandle);
@@ -907,6 +968,7 @@ namespace ElmSharp
/// Note that input panel is shown or hidden automatically according to the focus state of entry widget.
/// This API can be used in the case of manually controlling by using SetInputPanelEnabled(false).
///
+ /// preview
public void ShowInputPanel()
{
Interop.Elementary.elm_entry_input_panel_show(RealHandle);
@@ -916,6 +978,7 @@ namespace ElmSharp
/// This appends a custom item provider to the list for that entry.
///
/// This function is used to provide items.
+ /// preview
public void AppendItemProvider(Func func)
{
if (func != null)
@@ -938,6 +1001,7 @@ namespace ElmSharp
/// This prepends a custom item provider to the list for that entry.
///
/// This function is used to provide items.
+ /// preview
public void PrependItemProvider(Func func)
{
if (!_itemsProvider.ContainsKey(func))
@@ -957,6 +1021,7 @@ namespace ElmSharp
/// This removes a custom item provider to the list for that entry.
///
/// This function is used to provide items.
+ /// preview
public void RemoveItemProvider(Func func)
{
if (_itemsProvider.ContainsKey(func))
@@ -973,6 +1038,7 @@ namespace ElmSharp
/// Append a markup filter function for text inserted in the entry.
///
/// This function type is used by entry filters to modify text.
+ /// preview
public void AppendMarkUpFilter(Func filter)
{
if (!_textFilters.ContainsKey(filter))
@@ -998,6 +1064,7 @@ namespace ElmSharp
/// Prepend a markup filter function for text inserted in the entry.
///
/// This function type is used by entry filters to modify text.
+ /// preview
public void PrependMarkUpFilter(Func filter)
{
if (!_textFilters.ContainsKey(filter))
@@ -1023,6 +1090,7 @@ namespace ElmSharp
/// Remove a markup filter
///
/// This function type is used by entry filters to modify text.
+ /// preview
public void RemoveMarkUpFilter(Func filter)
{
if (_textFilters.ContainsKey(filter))
@@ -1038,6 +1106,7 @@ namespace ElmSharp
///
/// This executes a "copy" action on the selected text in the entry.
///
+ /// preview
public void CopySelection()
{
Interop.Elementary.elm_entry_selection_copy(RealHandle);
@@ -1046,6 +1115,7 @@ namespace ElmSharp
///
/// This executes a "cut" action on the selected text in the entry.
///
+ /// preview
public void CutSelection()
{
Interop.Elementary.elm_entry_selection_cut(RealHandle);
@@ -1054,6 +1124,7 @@ namespace ElmSharp
///
/// This executes a "paste" action in the entry.
///
+ /// preview
public void PasteSelection()
{
Interop.Elementary.elm_entry_selection_paste(RealHandle);
@@ -1063,6 +1134,7 @@ namespace ElmSharp
/// This disabled the entry's selection.
///
/// If true, the selection are disabled.
+ /// preview
public void DisableSelection(bool disable)
{
Interop.Elementary.elm_entry_selection_handler_disabled_set(RealHandle, disable);
@@ -1072,6 +1144,7 @@ namespace ElmSharp
/// Get any selected text within the entry.
///
/// Selection's value
+ /// preview
public string GetSelection()
{
return Interop.Elementary.elm_entry_selection_get(RealHandle);
@@ -1082,6 +1155,7 @@ namespace ElmSharp
///
/// The starting position.
/// The end position.
+ /// preview
public void SetSelectionRegion(int start, int end)
{
Interop.Elementary.elm_entry_select_region_set(RealHandle, start, end);
@@ -1091,6 +1165,7 @@ namespace ElmSharp
/// Sets the visibility of the left-side widget of the entry
///
/// true if the object should be displayed, false if not.
+ /// preview
public void SetIconVisible(bool isDisplay)
{
Interop.Elementary.elm_entry_icon_visible_set(RealHandle, isDisplay);
@@ -1100,6 +1175,7 @@ namespace ElmSharp
/// Set whether the return key on the input panel is disabled automatically when entry has no text.
///
/// If enabled is true, the return key is automatically disabled when the entry has no text.
+ /// preview
public void SetInputPanelReturnKeyAutoEnable(bool enable)
{
Interop.Elementary.elm_entry_input_panel_return_key_autoenabled_set(RealHandle, enable);
@@ -1110,6 +1186,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_entry_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/EvasCanvas.cs b/src/ElmSharp/ElmSharp/EvasCanvas.cs
index 869a3b1..c536ec0 100755
--- a/src/ElmSharp/ElmSharp/EvasCanvas.cs
+++ b/src/ElmSharp/ElmSharp/EvasCanvas.cs
@@ -29,6 +29,7 @@ namespace ElmSharp
/// Most users will be using Evas by means of the Ecore_Evas wrapper, which deals with all the above mentioned issues automatically for them.Thus, you'll be looking at this section only if you're building low level stuff.
/// The groups within present you functions that deal with the canvas directly, too, and not yet with its objects.They are the functions you need to use at a minimum to get a working canvas.
///
+ /// preview
public class EvasCanvas
{
IntPtr _handle = IntPtr.Zero;
@@ -43,6 +44,7 @@ namespace ElmSharp
/// Gets the current known default pointer coordinates.
/// This function returns the current known canvas unit coordinates of the mouse pointer.
///
+ /// preview
public Point Pointer
{
get
@@ -57,6 +59,7 @@ namespace ElmSharp
/// Gets or sets the image cache.
/// This function returns the image cache size of canvas in bytes.
///
+ /// preview
public int ImageCacheSize
{
get
@@ -72,6 +75,7 @@ namespace ElmSharp
///
/// Flush the image cache of the canvas.
///
+ /// preview
public void FlushImageCache()
{
Interop.Evas.evas_image_cache_flush(_handle);
@@ -84,6 +88,7 @@ namespace ElmSharp
/// The rectangle's top left corner's vertical coordinate.
/// The rectangle's width.
/// The rectangle's height.
+ /// preview
public void AddDamageRectangle(int x, int y, int width, int height)
{
Interop.Evas.evas_damage_rectangle_add(_handle, x, y, width, height);
@@ -96,6 +101,7 @@ namespace ElmSharp
/// The rectangle's top left corner's vertical coordinate.
/// The rectangle's width.
/// The rectangle's height.
+ /// preview
public void AddObscuredRectangle(int x, int y, int width, int height)
{
Interop.Evas.evas_obscured_rectangle_add(_handle, x, y, width, height);
@@ -104,6 +110,7 @@ namespace ElmSharp
///
/// Remove all "obscured regions" from an Evas canvas.
///
+ /// preview
public void ClearObscuredRectangle()
{
Interop.Evas.evas_obscured_clear(_handle);
@@ -114,6 +121,7 @@ namespace ElmSharp
///
/// The type of event that triggers
/// The action to be called when the event is triggered
+ /// preview
public void AddEventAction(EvasObjectCallbackType type, Action action)
{
if (action != null)
@@ -134,6 +142,7 @@ namespace ElmSharp
///
/// The type of event that triggers
/// The action to be called when the event is triggered
+ /// preview
public void DeleteEventAction(EvasObjectCallbackType type, Action action)
{
if (action != null)
diff --git a/src/ElmSharp/ElmSharp/EvasImage.cs b/src/ElmSharp/ElmSharp/EvasImage.cs
index 870cbfb..6e823ed 100755
--- a/src/ElmSharp/ElmSharp/EvasImage.cs
+++ b/src/ElmSharp/ElmSharp/EvasImage.cs
@@ -25,6 +25,7 @@ namespace ElmSharp
///
/// This group provides functions for image objects.
///
+ /// preview
public class EvasImage : EvasObject
{
EvasObject _source = null;
@@ -34,6 +35,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of EvasImage class.
///
/// The parent is a given container which will be attached by EvasImage as a child. It's type.
+ /// preview
public EvasImage(EvasObject parent) : base(parent)
{
}
@@ -47,6 +49,7 @@ namespace ElmSharp
///
/// Sets or gets the source file from where an image object must fetch the real image data
///
+ /// preview
public string File
{
get
@@ -64,6 +67,7 @@ namespace ElmSharp
///
/// Sets or gets the source object to be visible.
///
+ /// preview
public bool IsSourceVisible
{
get
@@ -79,6 +83,7 @@ namespace ElmSharp
///
/// Sets or gets whether an object is clipped by source object's clipper.
///
+ /// preview
public bool IsSourceClipped
{
get
@@ -99,6 +104,7 @@ namespace ElmSharp
/// This function sets if the center part of the scaled image is to be drawn or left completely blank, or forced to be solid.
/// Very useful for frames and decorations.
///
+ /// preview
public ImageBorderFillMode BorderCenterFillMode
{
get
@@ -114,6 +120,7 @@ namespace ElmSharp
///
/// Sets or gets whether the image object's fill property should track the object's size.
///
+ /// preview
public bool IsFilled
{
get
@@ -129,6 +136,7 @@ namespace ElmSharp
///
/// Sets or gets the scaling factor (multiplier) for the borders of an image object.
///
+ /// preview
public double BorderScale
{
get
@@ -144,6 +152,7 @@ namespace ElmSharp
///
/// Sets or gets the size of the given image object.
///
+ /// preview
public Size Size
{
get
@@ -161,6 +170,7 @@ namespace ElmSharp
///
/// Gets the row stride of the given image object.
///
+ /// preview
public int Stride
{
get
@@ -172,6 +182,7 @@ namespace ElmSharp
///
/// Sets or gets whether alpha channel data is being used on the given image object.
///
+ /// preview
public bool IsOpaque
{
get
@@ -187,6 +198,7 @@ namespace ElmSharp
///
/// Sets or gets whether to use high-quality image scaling algorithm on the given image object.
///
+ /// preview
public bool IsSmoothScaled
{
get
@@ -203,6 +215,7 @@ namespace ElmSharp
/// Sets how to fill an image object's drawing rectangle given the (real) image bound to it.
///
///
+ /// preview
public void SetFill(Rect geometry)
{
Interop.Evas.evas_object_image_fill_set(RealHandle, geometry.X, geometry.Y, geometry.Width, geometry.Height);
@@ -213,6 +226,7 @@ namespace ElmSharp
///
/// The image file path
/// The image key in file (if its an Eet one), otherwise set null
+ /// preview
public void SetFile(string file, string key)
{
Interop.Evas.evas_object_image_file_set(RealHandle, file, key);
@@ -222,6 +236,7 @@ namespace ElmSharp
/// Sets the data for an image from memory to be loaded.
///
/// memory stream
+ /// preview
public void SetStream(Stream stream)
{
if (stream == null)
@@ -245,6 +260,7 @@ namespace ElmSharp
///
/// The proxy (image) object
/// true if the source object is set successfully, ortherwise false on error
+ /// preview
public bool SetSource(EvasObject source)
{
bool result = false;
@@ -259,6 +275,7 @@ namespace ElmSharp
/// Set the native surface of a given image of the canvas
///
/// The surface.
+ /// preview
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetNativeSurface(IntPtr surface)
{
@@ -272,6 +289,7 @@ namespace ElmSharp
/// The border's right width
/// The border's top width
/// The border's bottom width
+ /// preview
public void SetBorder(int left, int right, int top, int bottom)
{
Interop.Evas.evas_object_image_border_set(RealHandle, left, right, top, bottom);
@@ -282,6 +300,7 @@ namespace ElmSharp
///
/// The parent is a given container which will be attached by Image as a child. It's type.
/// The new object, otherwise null if it cannot be created
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return _handle != IntPtr.Zero ? _handle : Interop.Evas.evas_object_image_add(Interop.Evas.evas_object_evas_get(parent.Handle));
diff --git a/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs b/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs
index 953953a..af12a72 100755
--- a/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs
+++ b/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// The EvasKeyEventArgs is an EvasKey EventArgs
///
+ /// preview
public class EvasKeyEventArgs : EventArgs
{
IntPtr _nativeEventInfo;
@@ -29,26 +30,31 @@ namespace ElmSharp
///
/// BackButton name in Platform
///
+ /// preview
public const string PlatformBackButtonName = "XF86Back";
///
/// MenuButton name in Platform
///
+ /// preview
public const string PlatformMenuButtonName = "XF86Menu";
///
/// HomeButton name in Platform
///
+ /// preview
public const string PlatformHomeButtonName = "XF86Home";
///
/// Gets the name of Key
///
+ /// preview
public string KeyName { get; private set; }
///
/// Sets or gets the flags.
///
+ /// preview
public EvasEventFlag Flags
{
get
@@ -77,6 +83,7 @@ namespace ElmSharp
/// object
/// information
/// EvasKey eventArgs
+ /// preview
static public EvasKeyEventArgs Create(IntPtr data, IntPtr obj, IntPtr info)
{
return new EvasKeyEventArgs(info);
@@ -145,6 +152,7 @@ namespace ElmSharp
///
/// Flags for Events
///
+ /// preview
[Flags]
public enum EvasEventFlag
{
diff --git a/src/ElmSharp/ElmSharp/EvasMap.cs b/src/ElmSharp/ElmSharp/EvasMap.cs
index 03f5ea3..4d55a2d 100755
--- a/src/ElmSharp/ElmSharp/EvasMap.cs
+++ b/src/ElmSharp/ElmSharp/EvasMap.cs
@@ -21,6 +21,7 @@ namespace ElmSharp
///
/// The EvasMap is an opaque handle to map points.
///
+ /// preview
public class EvasMap
{
IntPtr _evasMap;
@@ -30,6 +31,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the EvasMap class.
///
/// The number of points in the map
+ /// preview
public EvasMap(int count)
{
_evasMap = Interop.Evas.evas_map_new(count);
@@ -64,6 +66,7 @@ namespace ElmSharp
///
/// Gets or sets the flag of the object move synchronization for map rendering.
///
+ /// preview
public bool IsMoveSync
{
get
@@ -80,6 +83,7 @@ namespace ElmSharp
/// Populates source and destination map points to exactly match the object.
///
/// The object to use unmapped geometry to populate map coordinates
+ /// preview
public void PopulatePoints(EvasObject obj)
{
Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, 0);
@@ -92,6 +96,7 @@ namespace ElmSharp
///
/// The point Z coordinate hint (pre-perspective transform)This value is used for all four points.
///
+ /// preview
public void PopulatePoints(EvasObject obj, int z)
{
Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, z);
@@ -102,6 +107,7 @@ namespace ElmSharp
///
/// The geometry value contains X coordinate,Y coordinate,the width and height to use to calculate second and third points
/// The Z coordinate hint (pre-perspective transform) This value is used for all four points.
+ /// preview
public void PopulatePoints(Rect geometry, int z)
{
Interop.Evas.evas_map_util_points_populate_from_geometry(_evasMap, geometry.X, geometry.Y, geometry.Width, geometry.Height, z);
@@ -113,6 +119,7 @@ namespace ElmSharp
/// The abount of degrees from 0.0 to 360.0 to rotate
/// rotation's center horizontal position.
/// rotation's center vertical position.
+ /// preview
public void Rotate(double degrees, int cx, int cy)
{
Interop.Evas.evas_map_util_rotate(_evasMap, degrees, cx, cy);
@@ -127,6 +134,7 @@ namespace ElmSharp
/// The rotation's center horizontal position
/// The rotation's center vertical position
/// The rotation's center depth position
+ /// preview
public void Rotate3D(double dx, double dy, double dz, int cx, int cy, int cz)
{
Interop.Evas.evas_map_util_3d_rotate(_evasMap, dx, dy, dz, cx, cy, cz);
@@ -137,6 +145,7 @@ namespace ElmSharp
///
/// The index of point to change ,this must be smaller than map size.
/// 3D Point coordinate
+ /// preview
public void SetPointCoordinate(int idx, Point3D point)
{
Interop.Evas.evas_map_point_coord_set(_evasMap, idx, point.X, point.Y, point.Z);
@@ -147,6 +156,7 @@ namespace ElmSharp
///
/// The index of point to change ,this must be smaller than map size.
/// The coordinates of the given point in the map.
+ /// preview
public Point3D GetPointCoordinate(int idx)
{
Point3D point;
@@ -161,6 +171,7 @@ namespace ElmSharp
/// The vertical zoom to use
/// The zooming center horizontal position
/// The zooming center vertical position
+ /// preview
public void Zoom(double x, double y, int cx, int cy)
{
Interop.Evas.evas_map_util_zoom(_evasMap, x, y, cx, cy);
diff --git a/src/ElmSharp/ElmSharp/EvasObject.cs b/src/ElmSharp/ElmSharp/EvasObject.cs
index 974386f..4f6eb48 100755
--- a/src/ElmSharp/ElmSharp/EvasObject.cs
+++ b/src/ElmSharp/ElmSharp/EvasObject.cs
@@ -23,6 +23,7 @@ namespace ElmSharp
///
/// Enumeration for tooltip orientation.
///
+ /// preview
public enum TooltipOrientation
{
///
@@ -79,6 +80,7 @@ namespace ElmSharp
///
/// Enumeration for aspect control.
///
+ /// preview
public enum AspectControl
{
///
@@ -110,6 +112,7 @@ namespace ElmSharp
///
/// The EcasObject is a base class for other widget class
///
+ /// preview
public abstract class EvasObject
{
private IntPtr _realHandle = IntPtr.Zero;
@@ -125,16 +128,19 @@ namespace ElmSharp
///
/// Sets or gets the handle for EvasObject.
///
+ /// preview
public IntPtr Handle { get; protected set; }
///
/// Gets the parent object for EvasObject.
///
+ /// preview
public EvasObject Parent { get; private set; }
///
/// Sets or gets the real handle for EvasObject.
///
+ /// preview
public IntPtr RealHandle
{
get
@@ -165,6 +171,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the EvasObject class with parent EvasObject class parameter.
///
/// Parent EvasObject class
+ /// preview
protected EvasObject(EvasObject parent) : this()
{
Debug.Assert(parent == null || parent.IsRealized);
@@ -174,6 +181,7 @@ namespace ElmSharp
///
/// Creates and initializes a new instance of the EvasObject class.
///
+ /// preview
protected EvasObject()
{
_backButtonHandler = new Interop.Eext.EextEventCallback((d, o, i) => { _backButtonPressed?.Invoke(this, EventArgs.Empty); });
@@ -198,21 +206,25 @@ namespace ElmSharp
///
/// Deleted will be triggered when widght is deleted
///
+ /// preview
public event EventHandler Deleted;
///
/// KeyUp will be triggered when key is loose
///
+ /// preview
public event EventHandler KeyUp;
///
/// KeyDown will be triggered when key is preesd down
///
+ /// preview
public event EventHandler KeyDown;
///
/// BackButtonPressed will be triggered when Back button is pressed
///
+ /// preview
public event EventHandler BackButtonPressed
{
add
@@ -236,6 +248,7 @@ namespace ElmSharp
///
/// MoreButtonPressed will be triggered when More button is pressed
///
+ /// preview
public event EventHandler MoreButtonPressed
{
add
@@ -259,6 +272,7 @@ namespace ElmSharp
///
/// Moved will be triggered when widght is moved
///
+ /// preview
public event EventHandler Moved
{
add { _moved.On += value; }
@@ -268,6 +282,7 @@ namespace ElmSharp
///
/// Current widget's size Resized Event Handler
///
+ /// preview
public event EventHandler Resized
{
add { _resized.On += value; }
@@ -277,6 +292,7 @@ namespace ElmSharp
///
/// Current widget RenderPost Event Handler
///
+ /// preview
public event EventHandler RenderPost
{
add
@@ -303,16 +319,19 @@ namespace ElmSharp
/// Called back when a widget's tooltip is activated and needs content.
///
///
+ /// preview
public delegate EvasObject GetTooltipContentDelegate();
///
/// Get widget's status of Realized or not.
///
+ /// preview
public bool IsRealized { get { return Handle != IntPtr.Zero; } }
///
/// Gets EvasCanvas
///
+ /// preview
public EvasCanvas EvasCanvas
{
get
@@ -326,6 +345,7 @@ namespace ElmSharp
///
/// Gets the current class's Name.
///
+ /// preview
public string ClassName
{
get
@@ -337,6 +357,7 @@ namespace ElmSharp
///
/// Sets or gets the horizontal pointer hints for an object's weight.
///
+ /// preview
public double WeightX
{
get
@@ -352,6 +373,7 @@ namespace ElmSharp
///
/// Sets or gets the vertical pointer hints for an object's weight.
///
+ /// preview
public double WeightY
{
get
@@ -367,6 +389,7 @@ namespace ElmSharp
///
/// Sets or gets the horizontal alignment hint of an object's alignment.
///
+ /// preview
public virtual double AlignmentX
{
get
@@ -382,6 +405,7 @@ namespace ElmSharp
///
/// Sets or gets the vertical alignment hint of an object's alignment.
///
+ /// preview
public virtual double AlignmentY
{
get
@@ -397,6 +421,7 @@ namespace ElmSharp
///
/// Sets or gets the Width hints for an object's minimum size.
///
+ /// preview
public int MinimumWidth
{
get
@@ -415,6 +440,7 @@ namespace ElmSharp
///
/// Sets or gets the Height hints for an object's minimum size.
///
+ /// preview
public int MinimumHeight
{
get
@@ -433,6 +459,7 @@ namespace ElmSharp
///
/// Gets the visible state of the given Evas object.
///
+ /// preview
public bool IsVisible
{
get
@@ -444,6 +471,7 @@ namespace ElmSharp
///
/// Sets or gets the position and (rectangular) size of the given Evas object.
///
+ /// preview
public Rect Geometry
{
get
@@ -462,6 +490,7 @@ namespace ElmSharp
///
/// Sets or gets the general or main color of the given Evas object.
///
+ /// preview
public virtual Color Color
{
get
@@ -479,6 +508,7 @@ namespace ElmSharp
///
/// Sets or gets the map enabled state.
///
+ /// preview
public bool IsMapEnabled
{
get
@@ -494,6 +524,7 @@ namespace ElmSharp
///
/// Sets or gets current object transformation map.
///
+ /// preview
public EvasMap EvasMap
{
get
@@ -510,6 +541,7 @@ namespace ElmSharp
///
/// Sets or gets whether an object is to repeat events.
///
+ /// preview
public bool RepeatEvents
{
get
@@ -531,6 +563,7 @@ namespace ElmSharp
///
/// Sets or gets whether events on a smart object's member should get propagated up to its parent.
///
+ /// preview
public bool PropagateEvents
{
get
@@ -552,6 +585,7 @@ namespace ElmSharp
///
/// Sets or gets whether an object is set to pass (ignore) events.
///
+ /// preview
public bool PassEvents
{
get
@@ -573,6 +607,7 @@ namespace ElmSharp
///
/// Sets or Gets style for this object tooltip.
///
+ /// preview
public string TooltipStyle
{
get
@@ -588,6 +623,7 @@ namespace ElmSharp
///
/// Sets or gets the orientation of Tooltip.
///
+ /// preview
public TooltipOrientation TooltipOrientation
{
get
@@ -603,6 +639,7 @@ namespace ElmSharp
///
/// Sets or gets size restriction state of an object's tooltip.
///
+ /// preview
public bool TooltipWindowMode
{
get
@@ -618,6 +655,7 @@ namespace ElmSharp
///
/// Sets the content to be shown in the tooltip object.
///
+ /// preview
public GetTooltipContentDelegate TooltipContentDelegate
{
get
@@ -642,6 +680,7 @@ namespace ElmSharp
/// Gets the movement freeze by 1
/// This gets the movement freeze count by one.
///
+ /// preview
public int TooltipMoveFreezeCount
{
get
@@ -653,6 +692,7 @@ namespace ElmSharp
///
/// Sets or gets whether an Evas object is to freeze (discard) events.
///
+ /// preview
public bool AllEventsFrozen
{
get
@@ -674,6 +714,7 @@ namespace ElmSharp
///
/// Sets or gets the layer of its canvas that the given object will be part of.
///
+ /// preview
public virtual int Layer
{
get
@@ -690,6 +731,7 @@ namespace ElmSharp
/// Clips one object to another.
///
/// The object to clip object by
+ /// preview
public void SetClip(EvasObject clip)
{
Interop.Evas.evas_object_clip_set(Handle, clip);
@@ -700,6 +742,7 @@ namespace ElmSharp
///
/// The horizontal alignment hint as double value ranging from 0.0 to 1.0,The default alignment hint value is 0.5
/// The vertical alignment hint as double value ranging from 0.0 to 1.0,The default alignment hint value is 0.5
+ /// preview
public void SetAlignment(double x, double y)
{
Interop.Evas.evas_object_size_hint_align_set(Handle, x, y);
@@ -710,6 +753,7 @@ namespace ElmSharp
///
/// The non-negative double value to use as horizontal weight hint
/// The non-negative double value to use as vertical weight hint
+ /// preview
public void SetWeight(double x, double y)
{
Interop.Evas.evas_object_size_hint_weight_set(Handle, x, y);
@@ -719,6 +763,7 @@ namespace ElmSharp
/// Sets the text for an object's tooltip.
///
/// The text value to display inside the tooltip
+ /// preview
public void SetTooltipText(string text)
{
Interop.Elementary.elm_object_tooltip_text_set(RealHandle, text);
@@ -727,6 +772,7 @@ namespace ElmSharp
///
/// Unsets an object's tooltip.
///
+ /// preview
public void UnsetTooltip()
{
Interop.Elementary.elm_object_tooltip_unset(RealHandle);
@@ -736,6 +782,7 @@ namespace ElmSharp
/// This increments the tooltip movement freeze count by one.
/// If the count is more than 0, the tooltip position will be fixed.
///
+ /// preview
public void PushTooltipMoveFreeze()
{
Interop.Elementary.elm_object_tooltip_move_freeze_push(RealHandle);
@@ -744,6 +791,7 @@ namespace ElmSharp
///
/// This decrements the tooltip freeze count by one.
///
+ /// preview
public void PopTooltipMoveFreeze()
{
Interop.Elementary.elm_object_tooltip_move_freeze_pop(RealHandle);
@@ -752,6 +800,7 @@ namespace ElmSharp
///
/// Force hide tooltip of object.
///
+ /// preview
public void HideTooltip()
{
Interop.Elementary.elm_object_tooltip_hide(RealHandle);
@@ -760,6 +809,7 @@ namespace ElmSharp
///
/// Force show tooltip of object.
///
+ /// preview
public void ShowTooltip()
{
Interop.Elementary.elm_object_tooltip_show(RealHandle);
@@ -768,6 +818,7 @@ namespace ElmSharp
///
/// Makes the current object visible.
///
+ /// preview
public void Show()
{
Interop.Evas.evas_object_show(Handle);
@@ -776,6 +827,7 @@ namespace ElmSharp
///
/// Makes the current object invisible.
///
+ /// preview
public void Hide()
{
Interop.Evas.evas_object_hide(Handle);
@@ -786,6 +838,7 @@ namespace ElmSharp
///
/// The new width
/// The new height
+ /// preview
public void Resize(int w, int h)
{
Interop.Evas.evas_object_resize(Handle, w, h);
@@ -796,6 +849,7 @@ namespace ElmSharp
///
/// The X position to move the object to.
/// The Y position to move the object to.
+ /// preview
public void Move(int x, int y)
{
Interop.Evas.evas_object_move(Handle, x, y);
@@ -804,6 +858,7 @@ namespace ElmSharp
///
/// Lowers obj to the bottom of its layer.
///
+ /// preview
public void Lower()
{
Interop.Evas.evas_object_lower(Handle);
@@ -813,6 +868,7 @@ namespace ElmSharp
/// Define IntPtr operator
///
/// Parent object
+ /// preview
public static implicit operator IntPtr(EvasObject obj)
{
if (obj == null)
@@ -826,6 +882,7 @@ namespace ElmSharp
/// The key to request events for
/// Set TRUE to request that the obj is the only object receiving the keyname events,otherwise set FALSE
/// If the call succeeded is true,otherwise is false
+ /// preview
public bool KeyGrab(string keyname, bool exclusive)
{
return Interop.Evas.evas_object_key_grab(Handle, keyname, 0, 0, exclusive);
@@ -835,6 +892,7 @@ namespace ElmSharp
/// Removes the grab on keyname key events.
///
/// The key the grab is set for
+ /// preview
public void KeyUngrab(string keyname)
{
Interop.Evas.evas_object_key_ungrab(Handle, keyname, 0, 0);
@@ -843,6 +901,7 @@ namespace ElmSharp
///
/// Mark smart object as changed.
///
+ /// preview
public void MarkChanged()
{
Interop.Evas.evas_object_smart_changed(RealHandle);
@@ -852,6 +911,7 @@ namespace ElmSharp
/// Call the calculate smart function immediately.
/// This will force immediate calculations needed for renderization of this object.
///
+ /// preview
public void Calculate()
{
Interop.Evas.evas_object_smart_calculate(RealHandle);
@@ -863,6 +923,7 @@ namespace ElmSharp
/// The policy or type of aspect ratio to apply to object
/// The integer to use as aspect width ratio term
/// The integer to use as aspect height ratio term
+ /// preview
public void SetSizeHintAspect(AspectControl aspect, int w, int h)
{
Interop.Evas.evas_object_size_hint_aspect_set(Handle, (int)aspect, w, h);
@@ -874,6 +935,7 @@ namespace ElmSharp
/// The policy or type of aspect ratio to apply to object
/// The integer to use as aspect width ratio term
/// The integer to use as aspect height ratio term
+ /// preview
public void GetSizeHintAspect(out AspectControl aspect, out int w, out int h)
{
int aspectRatio;
@@ -885,6 +947,7 @@ namespace ElmSharp
/// Stack immediately below anchor.
///
/// The object below which to stack.
+ /// preview
public void StackBelow(EvasObject anchor)
{
Interop.Evas.evas_object_stack_below(Handle, anchor);
@@ -894,6 +957,7 @@ namespace ElmSharp
/// Stack immediately above anchor.
///
/// The object above which to stack.
+ /// preview
public void StackAbove(EvasObject anchor)
{
Interop.Evas.evas_object_stack_above(Handle, anchor);
@@ -902,6 +966,7 @@ namespace ElmSharp
///
/// Raise to the top of its layer.
///
+ /// preview
public void RaiseTop()
{
Interop.Evas.evas_object_raise(Handle);
@@ -916,6 +981,7 @@ namespace ElmSharp
/// w coord of the line.
/// h coord of the line.
///
+ /// preview
public bool GetTextBlockGeometryByLineNumber(int lineNumber, out int x, out int y, out int w, out int h)
{
return Interop.Evas.evas_object_textblock_line_number_geometry_get(RealHandle, lineNumber, out x, out y, out w, out h);
@@ -939,6 +1005,7 @@ namespace ElmSharp
///
/// The callback of Invalidate Event
///
+ /// preview
protected virtual void OnInvalidate()
{
}
@@ -946,6 +1013,7 @@ namespace ElmSharp
///
/// The callback of Instantiated Event
///
+ /// preview
protected virtual void OnInstantiated()
{
}
@@ -953,6 +1021,7 @@ namespace ElmSharp
///
/// The callback of Realized Event
///
+ /// preview
protected virtual void OnRealized()
{
}
@@ -960,6 +1029,7 @@ namespace ElmSharp
///
/// The callback of Unrealize Event
///
+ /// preview
protected virtual void OnUnrealize()
{
}
@@ -969,12 +1039,14 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected abstract IntPtr CreateHandle(EvasObject parent);
///
/// For this object bind Parent object.Init handle and all kinds of EvasObjectEvent.
///
/// Parent object
+ /// preview
public void Realize(EvasObject parent)
{
if (!IsRealized)
@@ -1001,6 +1073,7 @@ namespace ElmSharp
///
/// Removes current object relationship with others.
///
+ /// preview
public void Unrealize()
{
if (IsRealized)
diff --git a/src/ElmSharp/ElmSharp/EvasObjectEvent.cs b/src/ElmSharp/ElmSharp/EvasObjectEvent.cs
index eb08d77..2c1cb74 100755
--- a/src/ElmSharp/ElmSharp/EvasObjectEvent.cs
+++ b/src/ElmSharp/ElmSharp/EvasObjectEvent.cs
@@ -25,17 +25,20 @@ namespace ElmSharp
/// IInvalidatable is a interface which can be overrided by its children class.
/// Inherits IDisposable
///
+ /// preview
public interface IInvalidatable : IDisposable
{
///
/// Make current instance invalidate
///
+ /// preview
void MakeInvalidate();
}
///
/// Enumeration for EvasObjectCallbackType
///
+ /// preview
public enum EvasObjectCallbackType
{
///
@@ -223,6 +226,7 @@ namespace ElmSharp
/// Event class for EvasObject
///
/// Kinds of EventArgs
+ /// preview
public class EvasObjectEvent : IInvalidatable where TEventArgs : EventArgs
{
///
@@ -232,6 +236,7 @@ namespace ElmSharp
/// obj
/// info
/// delegate handle
+ /// preview
public delegate TEventArgs SmartEventInfoParser(IntPtr data, IntPtr obj, IntPtr info);
private bool _disposed = false;
@@ -247,6 +252,7 @@ namespace ElmSharp
/// EvasObject class belong to
/// EvasObjectCallbackType
/// SmartEventInfoParser
+ /// preview
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type, SmartEventInfoParser parser) : this(sender, sender.Handle, type, parser)
{
}
@@ -258,6 +264,7 @@ namespace ElmSharp
/// EvasObject handle
/// EvasObjectCallbackType
/// SmartEventInfoParser
+ /// preview
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type, SmartEventInfoParser parser)
{
@@ -273,6 +280,7 @@ namespace ElmSharp
///
/// EvasObject class belong with
/// SmartEventInfoParser
+ /// preview
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, type, null)
{
}
@@ -294,6 +302,7 @@ namespace ElmSharp
///
/// On Event Handler of EvasObjectEvent
///
+ /// preview
public event EventHandler On
{
add
@@ -335,6 +344,7 @@ namespace ElmSharp
/// true if managed resources should be disposed
/// otherwise, false.
///
+ /// preview
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
@@ -358,6 +368,7 @@ namespace ElmSharp
///
/// Destroy current object
///
+ /// preview
public void Dispose()
{
Dispose(true);
@@ -367,6 +378,7 @@ namespace ElmSharp
///
/// Make current instance invalidate
///
+ /// preview
public void MakeInvalidate()
{
_sender = null;
@@ -377,6 +389,7 @@ namespace ElmSharp
///
/// Event class for EvasObject
///
+ /// preview
public class EvasObjectEvent : IInvalidatable
{
private EvasObjectEvent _evasObjectEvent;
@@ -390,6 +403,7 @@ namespace ElmSharp
///
/// EvasObject class belong to
/// EvasObjectCallbackType
+ /// preview
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, sender.Handle, type)
{
}
@@ -400,6 +414,7 @@ namespace ElmSharp
/// EvasObject class belong to
/// EvasObject handle
/// EvasObjectCallbackType
+ /// preview
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type)
{
@@ -417,6 +432,7 @@ namespace ElmSharp
///
/// On Event Handler of EvasObjectEvent
///
+ /// preview
public event EventHandler On
{
add
@@ -450,6 +466,7 @@ namespace ElmSharp
/// true if managed resources should be disposed
/// otherwise, false.
///
+ /// preview
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
@@ -465,6 +482,7 @@ namespace ElmSharp
///
/// Destroy current object
///
+ /// preview
public void Dispose()
{
Dispose(true);
@@ -474,6 +492,7 @@ namespace ElmSharp
///
/// Make current instance invalidate
///
+ /// preview
public void MakeInvalidate()
{
_evasObjectEvent.MakeInvalidate();
diff --git a/src/ElmSharp/ElmSharp/FlipSelector.cs b/src/ElmSharp/ElmSharp/FlipSelector.cs
index 58db381..4e98e73 100755
--- a/src/ElmSharp/ElmSharp/FlipSelector.cs
+++ b/src/ElmSharp/ElmSharp/FlipSelector.cs
@@ -22,6 +22,7 @@ namespace ElmSharp
///
/// A flip selector is a widget to show a set of text items,one at a time.with the same sheet switching style as the clock widget, when one changes the current displaying sheet.
///
+ /// preview
public class FlipSelector : Layout
{
SmartEvent _selected;
@@ -32,6 +33,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the FlipSelector.
///
/// Parent EvasObject
+ /// preview
public FlipSelector(EvasObject parent) : base(parent)
{
_selected = new SmartEvent(this, Handle, "selected");
@@ -46,19 +48,23 @@ namespace ElmSharp
///
/// Selected will be triggered when be Selected
///
+ /// preview
public event EventHandler Selected;
///
/// Overflowed will be triggered when Overflowed
///
+ /// preview
public event EventHandler Overflowed;
///
/// Underflowed will be triggered when be Underflowed
///
+ /// preview
public event EventHandler Underflowed;
///
/// Sets or gets the interval on time updates for an user mouse button hold on a flip selector widget.
///
+ /// preview
public double Interval
{
get
@@ -75,6 +81,7 @@ namespace ElmSharp
///
/// Gets the currently selected item in a flip selector widget.
///
+ /// preview
public FlipSelectorItem SelectedItem
{
get
@@ -87,6 +94,7 @@ namespace ElmSharp
///
/// Gets the first item in the given flip selector widget's list of items.
///
+ /// preview
public FlipSelectorItem FirstItem
{
get
@@ -99,6 +107,7 @@ namespace ElmSharp
///
/// Gets the last item in the given flip selector widget's list of items.
///
+ /// preview
public FlipSelectorItem LastItem
{
get
@@ -118,6 +127,7 @@ namespace ElmSharp
///
/// The widget's list of labels to show will be appended with the given value. If the user wishes so, a callback function pointer can be passed, which will get called when this same item is selected.
///
+ /// preview
public FlipSelectorItem Append(string text)
{
FlipSelectorItem item = new FlipSelectorItem(text);
@@ -133,6 +143,7 @@ namespace ElmSharp
///
/// The widget's list of labels to show will be prepended with the given value. If the user wishes so, a callback function pointer can be passed, which will get called when this same item is selected.
///
+ /// preview
public FlipSelectorItem Prepend(string text)
{
FlipSelectorItem item = new FlipSelectorItem(text);
@@ -144,6 +155,7 @@ namespace ElmSharp
/// To remove the given item.
///
/// FlipSelector's item
+ /// preview
public void Remove(FlipSelectorItem item)
{
if (item as FlipSelectorItem != null)
@@ -156,6 +168,7 @@ namespace ElmSharp
///
/// The selection will be animated. Also, if it reaches the beginning of its list of member items, it will continue with the last one backwards.
///
+ /// preview
public void Next()
{
Interop.Elementary.elm_flipselector_flip_next(Handle);
@@ -164,6 +177,7 @@ namespace ElmSharp
///
/// Programmatically select the previous item of a flip selector widget.
///
+ /// preview
public void Prev()
{
Interop.Elementary.elm_flipselector_flip_prev(Handle);
@@ -174,6 +188,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_flipselector_add(parent.Handle);
diff --git a/src/ElmSharp/ElmSharp/FlipSelectorItem.cs b/src/ElmSharp/ElmSharp/FlipSelectorItem.cs
index 3210e3b..a9bf57f 100755
--- a/src/ElmSharp/ElmSharp/FlipSelectorItem.cs
+++ b/src/ElmSharp/ElmSharp/FlipSelectorItem.cs
@@ -21,22 +21,26 @@ namespace ElmSharp
///
/// Iterm class of FlipSelector
///
+ /// preview
public class FlipSelectorItem : ItemObject
{
///
/// Sets or gets the Text of FlipSelectorItem
///
+ /// preview
public string Text { get; private set; }
///
/// Selected will be triggered when Selected
///
+ /// preview
public event EventHandler Selected;
///
/// Creates and initializes a new instance of the FlipSelectorItem.
///
/// FlipSelectorItem's text
+ /// preview
public FlipSelectorItem(string text) : base(IntPtr.Zero)
{
Text = text;
diff --git a/src/ElmSharp/ElmSharp/FloatingButton.cs b/src/ElmSharp/ElmSharp/FloatingButton.cs
index 2c0251c..64ae3b3 100755
--- a/src/ElmSharp/ElmSharp/FloatingButton.cs
+++ b/src/ElmSharp/ElmSharp/FloatingButton.cs
@@ -21,12 +21,14 @@ namespace ElmSharp
///
/// The FloatingButton is a widget that to add floating area for buttons.
///
+ /// preview
public class FloatingButton : Layout
{
///
/// Creates and initializes a new instance of the FloatingButton class.
///
/// Created on this parent container..
+ /// preview
public FloatingButton(EvasObject parent) : base(parent)
{
}
@@ -34,6 +36,7 @@ namespace ElmSharp
///
/// Sets or gets floatingbutton mode.
///
+ /// preview
public FloatingButtonMode Mode
{
get
@@ -49,6 +52,7 @@ namespace ElmSharp
///
/// Gets floatingbutton Position.
///
+ /// preview
public FloatingButtonPosition Position
{
get
@@ -60,6 +64,7 @@ namespace ElmSharp
///
/// Sets or gets movability for a given floatingbutton widget.
///
+ /// preview
public bool MovementBlock
{
get
@@ -75,6 +80,7 @@ namespace ElmSharp
///
/// Get Opacity's value of the given FloatingButton.
///
+ /// preview
public override int Opacity
{
get
@@ -93,6 +99,7 @@ namespace ElmSharp
///
/// Button position
/// Animat flag
+ /// preview
public void SetPosition(FloatingButtonPosition position, bool animated)
{
if (animated)
@@ -110,6 +117,7 @@ namespace ElmSharp
///
/// Parent EvasObject
/// Handle IntPtr
+ /// preview
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_floatingbutton_add(parent.Handle);
@@ -119,6 +127,7 @@ namespace ElmSharp
///
/// Enumeration for FloatingButtonMode
///
+ /// preview
public enum FloatingButtonMode
{
///
@@ -135,6 +144,7 @@ namespace ElmSharp
///
/// Enumeration for FloatingButtonPosition
///
+ /// preview
public enum FloatingButtonPosition
{
///
diff --git a/src/ElmSharp/ElmSharp/GenGrid.cs b/src/ElmSharp/ElmSharp/GenGrid.cs
index 146112b..e9ec144 100755
--- a/src/ElmSharp/ElmSharp/GenGrid.cs
+++ b/src/ElmSharp/ElmSharp/GenGrid.cs
@@ -24,11 +24,13 @@ namespace ElmSharp
/// It contains Item which is type.
/// All events of GenGrid contain GenGridItemEventArgs as a parameter.
///
+ /// preview
public class GenGridItemEventArgs : EventArgs
{
///
/// Gets or sets GenGrid item.The return type is .
///
+ /// preview
public GenGridItem Item { get; set; }
internal static GenGridItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
@@ -44,6 +46,7 @@ namespace ElmSharp
/// It has two direction in which a given GenGrid widget expands while placing its items, horizontal and vertical.
/// The GenGrid items are represented through definition field details.
///
+ /// preview
public class GenGrid : Layout
{
HashSet _children = new HashSet();
@@ -63,6 +66,7 @@ namespace ElmSharp
/// Creates and initializes a new instance of the GenGrid class.
///
/// The parent is a given container which will be attached by GenGrid as a child. It's type.
+ /// preview
public GenGrid(EvasObject parent) : base(parent)
{
InitializeSmartEvent();
@@ -71,51 +75,61 @@ namespace ElmSharp
///
/// ItemSelected is raised when a new gengrid item is selected.
///
+ /// preview
public event EventHandler ItemSelected;
///
/// ItemUnselected is raised when the gengrid item is Unselected.
///
+ /// preview
public event EventHandler ItemUnselected;
///
/// ItemPressed is raised when a new gengrid item is pressed.
///
+ /// preview
public event EventHandler ItemPressed;
///
/// ItemReleased is raised when a new gengrid item is released.
///
+ /// preview
public event EventHandler ItemReleased;
///
/// ItemActivated is raised when a new gengrid item is double clicked or pressed (enter|return|spacebar).
///
+ /// preview
public event EventHandler ItemActivated;
///
/// ItemDoubleClicked is raised when a new gengrid item is double clicked.
///
+ /// preview
public event EventHandler ItemDoubleClicked;
///
/// ItemRealized is raised when a gengrid item is implementing through .
///
+ /// preview
public event EventHandler ItemRealized;
///
/// ItemUnrealized is raised when the gengrid item is deleted.
///
+ /// preview
public event EventHandler ItemUnrealized;
///
/// ItemLongPressed is raised when a gengrid item is pressed for a certain amount of time. By default it's 1 second.
///
+ /// preview
public event EventHandler ItemLongPressed;
///
/// Changed is raised when an item is added, removed, resized or moved and when the gengrid is resized or gets "horizontal" property changes.
///
+ /// preview
public event EventHandler Changed;
///
@@ -123,6 +137,7 @@ namespace ElmSharp
/// Accepted values are in the 0.0 to 1.0 range, with the special value -1.0 used to specify "justify" or "fill" by some users.
/// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the left along x-axis.
///
+ /// preview
public double ItemAlignmentX
{
get
@@ -143,6 +158,7 @@ namespace ElmSharp
/// Accepted values are in the 0.0 to 1.0 range, with the special value -1.0 used to specify "justify" or "fill" by some users.
/// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the top along y-axis.
///
+ /// preview
public double ItemAlignmentY
{
get
@@ -162,6 +178,7 @@ namespace ElmSharp
/// Gets or sets the manner in which the items grid is filled within a given gengrid widget.
/// It is filled if true, otherwise false.
///
+ /// preview
public bool FillItems
{
get
@@ -183,6 +200,7 @@ namespace ElmSharp
/// A click on an already selected item unselects it. If interacting via the keyboard, multi-selection is enabled while holding the "Shift" key.
/// By default, multi-selection is disabled.
///
+ /// preview
public bool MultipleSelection
{
get
@@ -203,6 +221,7 @@ namespace ElmSharp
/// The default width and height just have one finger wide.
/// Use this property to force a custom width for your items, making them as big as you wish.
///
+ /// preview
public int ItemWidth
{
get
@@ -226,6 +245,7 @@ namespace ElmSharp
/// The default width and height just have one finger wide.
/// Use this property to force a custom height for your items, making them as big as you wish.
///
+ /// preview
public int ItemHeight
{
get
@@ -244,6 +264,7 @@ namespace ElmSharp
///
/// Gets or sets the gengrid select mode by .
///
+ /// preview
public GenItemSelectionMode SelectionMode
{
get
@@ -263,6 +284,7 @@ namespace ElmSharp
/// If true, items are placed in columns from top to bottom and when the space for a column is filled, another one is started on the right, thus expanding the grid horizontally.
/// If false, items are placed in rows from left to right, and when the space for a row is filled, another one is started below, thus expanding the grid vertically.
///
+ /// preview
public bool IsHorizontal
{
get
@@ -278,6 +300,7 @@ namespace ElmSharp
///
/// Gets or sets whether the gengrid items should be highlighted when an item is selected.
///
+ /// preview
public bool IsHighlight
{
get
@@ -297,6 +320,7 @@ namespace ElmSharp
/// ScrollBarVisiblePolicy.Auto means the horizontal scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
@@ -319,6 +343,7 @@ namespace ElmSharp
/// ScrollBarVisiblePolicy.Auto means the vertical scrollbar is made visible if it is needed, and otherwise kept hidden.
/// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off.
///
+ /// preview
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
@@ -337,6 +362,7 @@ namespace ElmSharp
///
/// Gets the first item in a given gengrid widget.
///
+ /// preview
public GenGridItem FirstItem
{
get
@@ -349,6 +375,7 @@ namespace ElmSharp
///
/// Gets the last item in a given gengrid widget.
///
+ /// preview
public GenGridItem LastItem
{
get
@@ -361,6 +388,7 @@ namespace ElmSharp
///
/// Gets the items count in a given gengrid widget.
///
+ /// preview
public uint ItemCount
{
get
@@ -372,6 +400,7 @@ namespace ElmSharp
///
/// Gets the selected item in a given gengrid widget.
///
+ /// preview
public GenGridItem SelectedItem
{
get
@@ -384,6 +413,7 @@ namespace ElmSharp
///
/// Gets or sets whether a given gengrid widget is or not able have items reordered.
///
+ /// preview
public bool ReorderMode
{
get
@@ -404,6 +434,7 @@ namespace ElmSharp
/// Return a gengrid item that contains data and itemClass.
///
///
+ /// preview
public GenGridItem Append(GenItemClass itemClass, object data)
{
GenGridItem item = new GenGridItem(data, itemClass);
@@ -421,6 +452,7 @@ namespace ElmSharp
/// Return a gengrid item that contains data and itemClass.
///
///
+ /// preview
public GenGridItem Prepend(GenItemClass itemClass, object data)
{
GenGridItem item = new GenGridItem(data, itemClass);
@@ -439,6 +471,7 @@ namespace ElmSharp
/// Return a gengrid item that contains data and itemClass./>
///
///
+ /// preview
public GenGridItem InsertBefore(GenItemClass itemClass, object data, GenGridItem before)
{
GenGridItem item = new GenGridItem(data, itemClass);
@@ -457,6 +490,7 @@ namespace ElmSharp
/// Return a gengrid item that contains data and itemClass.
///
///
+ /// preview
public GenGridItem InsertAfter(GenItemClass itemClass, object data, GenGridItem after)
{
GenGridItem item = new GenGridItem(data, itemClass);
@@ -473,6 +507,7 @@ namespace ElmSharp
/// The item data.
/// User defined comparison function that defines the sort order based on gengrid item and its data.
/// Return a gengrid item that contains data and itemClass.
+ /// preview
public GenGridItem InsertSorted(GenItemClass itemClass, object data, Comparison