/// The Circle DateTime Selector is a widget to display and handle datetime value by rotary event
/// Inherits <see cref="DateTimeSelector"/>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleDateTimeSelector : DateTimeSelector, IRotaryActionWidget
{
IntPtr _circleHandle;
/// </summary>
/// <param name="parent">The parent of new Circle DateTime instance</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleDateTimeSelector(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle DateTimeSelector class.
/// </summary>
/// <param name="parent">The parent of new Circle CircleDateTimeSelector instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => _circleHandle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// <summary>
/// Sets or gets the color of the marker
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color MarkerColor
{
get
/// <summary>
/// Sets or gets the line width of the marker
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MarkerLineWidth
{
get
/// <summary>
/// Sets or gets the radius at which the center of the marker lies
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double MarkerRadius
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);
/// The Circle GenList Selector is a widget to display and handle genlist items by rotary event
/// Inherits <see cref="GenList"/>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleGenList : GenList, IRotaryActionWidget
{
IntPtr _circleHandle;
/// </summary>
/// <param name="parent">The parent of new Circle GenList instance</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleGenList(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle GenList class.
/// </summary>
/// <param name="parent">The parent of new Circle CircleGenList instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => _circleHandle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// <summary>
/// Sets or gets the color of the scroll background
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color VerticalScrollBackgroundColor
{
get
/// <summary>
/// Sets or gets the line width of the scroll background
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalScrollBackgroundLineWidth
{
get
/// <summary>
/// Sets or gets the redius of the scroll background
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalScrollBackgroundRadius
{
get
/// <summary>
/// Sets or gets the color of the scroll bar
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color VerticalScrollBarColor
{
get
/// <summary>
/// Sets or gets the line width of the scroll bar
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalScrollBarLineWidth
{
get
/// <summary>
/// Sets or gets the redius of the scroll bar
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalScrollBarRadius
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
var handle = base.CreateHandle(parent);
/// <summary>
/// The Circle ProgressBar is a widget for visually representing the progress status of a given job/task with the circular design.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleProgressBar : Widget, ICircleWidget
{
CircleSurface _surface;
/// </summary>
/// <param name="parent">The parent of new Circle Progressbar instance</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleProgressBar(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle Progressbar class.
/// </summary>
/// <param name="parent">The parent of new Circle Progressbar instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => Handle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// <summary>
/// Sets or gets the value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Value
{
get
/// <summary>
/// Sets or gets the maximum value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Maximum
{
get
/// <summary>
/// Sets or gets the minimum value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Minimum
{
get
/// <summary>
/// Sets or gets the angle value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngle
{
get
/// <summary>
/// Sets or gets the angle value of Background ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundAngle
{
get
/// <summary>
/// Sets or gets the angle offset value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleOffset
{
get
/// <summary>
/// Sets or gets the angle offset value of Background ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundAngleOffset
{
get
/// <summary>
/// Sets or gets the maximum angle value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleMaximum
{
get
/// <summary>
/// Sets or gets the minimum angle value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleMinimum
{
get
/// <summary>
/// Sets or gets color of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color BarColor
{
get
/// <summary>
/// Sets or gets color of Background ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
get
/// <summary>
/// Sets or gets line width of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int BarLineWidth
{
get
/// <summary>
/// Sets or gets line width of Background ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int BackgroundLineWidth
{
get
/// <summary>
/// Sets or gets radius of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarRadius
{
get
/// <summary>
/// Sets or gets radius of Background ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundRadius
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_circle_object_progressbar_add(parent, CircleSurface.Handle);
/// <summary>
/// Circle scroller provides scrollbar with circular movement and is scrolled by rotary event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleScroller : Scroller, IRotaryActionWidget
{
IntPtr _circleHandle;
/// </summary>
/// <param name="parent">The <see cref="EvasObject"/> to which the new CircleScroller will be attached as a child.</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleScroller(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle Scroller class.
/// </summary>
/// <param name="parent">The parent of new Circle CircleScroller instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => _circleHandle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public override ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public override ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
/// <summary>
/// Sets or gets color of the vertical scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color VerticalScrollBarColor
{
get
/// <summary>
/// Sets or gets color of the horizontal scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color HorizontalScrollBarColor
{
get
/// <summary>
/// Sets or gets color of the vertical scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color VerticalScrollBackgroundColor
{
get
/// <summary>
/// Sets or gets color of the horizontal scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color HorizontalScrollBackgroundColor
{
get
/// <summary>
/// Sets or gets line width of the vertical scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalScrollBarLineWidth
{
get
/// <summary>
/// Sets or gets line width of the horizontal scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int HorizontalScrollBarLineWidth
{
get
/// <summary>
/// Sets or gets line width of the vertical scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalScrollBackgroundLineWidth
{
get
/// <summary>
/// Sets or gets line width of the horizontal scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int HorizontalScrollBackgroundLineWidth
{
get
/// <summary>
/// Sets or gets radius of the vertical scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalScrollBarRadius
{
get
/// <summary>
/// Sets or gets radius of the horizontal scroll bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double HorizontalScrollBarRadius
{
get
/// <summary>
/// Sets or gets radius of the vertical scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalScrollBackgroundRadius
{
get
/// <summary>
/// Sets or gets radius of the horizontal scroll background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double HorizontalScrollBackgroundRadius
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = base.CreateHandle(parent);
/// <summary>
/// Circle slider is circular designed widget to select a value in a range by rotary event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleSlider : Widget, IRotaryActionWidget
{
SmartEvent _changedEvent;
/// </summary>
/// <param name="parent">The EvasObject to which the new CircleSlider will be attached as a child.</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleSlider(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle Slider class.
/// </summary>
/// <param name="parent">The parent of new Circle CircleSlider instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Changed will be triggered when the circle slider value changes.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ValueChanged;
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => RealHandle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Step
{
get
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// <summary>
/// Sets or gets color of the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color BarColor
{
get
/// <summary>
/// Sets or gets color of the circle slider background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
get
/// <summary>
/// Sets or gets the line with of the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int BarLineWidth
{
get
/// <summary>
/// Sets or gets the line with of the circle slider background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int BackgroundLineWidth
{
get
/// <summary>
/// Sets or gets the angle in degree of the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngle
{
get
/// <summary>
/// Sets or gets the angle in degree of the circle slider background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundAngle
{
get
/// Sets or gets the angle offset for the slider bar.
/// offset value means start position of the slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleOffset
{
get
/// Sets or gets the angle offset for the circle slider background.
/// offset value means start position of the slider background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundAngleOffset
{
get
/// <summary>
/// Sets or gets the minimum angle of the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleMinimum
{
get
/// <summary>
/// Sets or gets the maximum angle of the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarAngleMaximum
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Minimum
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Maximum
{
get
/// <remarks>
/// The value must to be between Minimum and Maximum values.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Value
{
get
/// <summary>
/// Gets or sets the radius value for the circle slider bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BarRadius
{
get
/// <summary>
/// Gets or sets the radius value for the circle slider background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BackgroundRadius
{
get
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_circle_object_slider_add(parent, CircleSurface.Handle);
/// The Circle Spinner is a widget to display and handle spinner value by rotary event
/// Inherits <see cref="Spinner"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleSpinner : Spinner, IRotaryActionWidget
{
IntPtr _circleHandle;
/// </summary>
/// <param name="parent">The parent of new Circle Spinner instance</param>
/// <param name="surface">The surface for drawing circle features for this widget.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleSpinner(EvasObject parent, CircleSurface surface) : base()
{
Debug.Assert(parent == null || surface == null || parent.IsRealized);
/// Creates and initializes a new instance of the Circle Spinner class.
/// </summary>
/// <param name="parent">The parent of new Circle CircleSpinner instance</param>
+ /// <since_tizen> preview </since_tizen>
[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))
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual IntPtr CircleHandle => _circleHandle;
/// <summary>
/// Gets the handle for Circle Surface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
/// Sets or gets the circle spinner angle per each spinner value.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double AngleRatio
{
get
/// <summary>
/// Sets or gets disabled state of this widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Use IsEnabled")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Disabled
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsEnabled
{
get
/// <summary>
/// Sets or gets the line width of the marker
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MarkerLineWidth
{
get
/// <summary>
/// Sets or gets the color of the marker
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color MarkerColor
{
get
/// <summary>
/// Sets or gets the radius at which the center of the marker lies
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double MarkerRadius
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = base.CreateHandle(parent);
/// <summary>
/// The CircleSurface presents a surface for drawing circular feature of circle widgets
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CircleSurface
{
IntPtr _handle;
/// Creates and initializes a new instance of the CircleSurface class with surface on the Conformant widget.
/// </summary>
/// <param name="conformant">Conformant widget to create a surface.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleSurface(Conformant conformant)
{
_handle = Interop.Eext.eext_circle_surface_conformant_add(conformant);
/// Creates and initializes a new instance of the CircleSurface class with surface on the Layout widget.
/// </summary>
/// <param name="layout">Layout widget to create a surface.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleSurface(Layout layout)
{
_handle = Interop.Eext.eext_circle_surface_layout_add(layout);
/// Creates and initializes a new instance of the CircleSurface class with surface on the Naviframe widget.
/// </summary>
/// <param name="naviframe">Naviframe widget to create a surface.</param>
+ /// <since_tizen> preview </since_tizen>
public CircleSurface(Naviframe naviframe)
{
_handle = Interop.Eext.eext_circle_surface_naviframe_add(naviframe);
/// <summary>
/// Creates and initializes a new instance of the CircleSurface class with no surface
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public CircleSurface()
{
_handle = IntPtr.Zero;
/// <summary>
/// Gets the handle for CircleSurface
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr Handle => _handle;
/// <summary>
/// Delete the given CirclrSurface
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Delete()
{
if (Handle != IntPtr.Zero)
/// <summary>
/// The ICircleWidget is the interface for a widget to display and handle with circle surface
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface ICircleWidget
{
/// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
IntPtr CircleHandle { get; }
/// <summary>
/// Gets the CircleSurface used in this widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
CircleSurface CircleSurface { get; }
}
/// <summary>
/// The IRotaryActionWidget is the interface for a widget has action by rotary event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface IRotaryActionWidget : ICircleWidget
{
}
/// The MoreOption is a widget composed of the toggle(cue button) and more option view, and MoreOption can change a visibility through the toggle.
/// Inherits Layout
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MoreOption : Layout
{
/// <summary>
/// Sets or gets the list of more option item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IList<MoreOptionItem> Items { get; private set; }
/// <summary>
/// Selected will be triggered when the user selects an item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MoreOptionItemEventArgs> Selected;
/// <summary>
/// Clicked will be triggered when the user selects the already selected item again or selects a selector.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MoreOptionItemEventArgs> Clicked;
/// <summary>
/// Opened will be triggered when more option view is shown.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Opened;
/// <summary>
/// Closed will be triggered when more option view is hidden.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Closed;
SmartEvent<PointerEventArgs> _selectedEvent;
/// Creates and initializes a new instance of MoreOption class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by MoreOption as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public MoreOption(EvasObject parent) : base(parent)
{
Items = new MoreOptionList(this);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_more_option_add(parent);
/// <summary>
/// Sets or gets the direction of more option.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MoreOptionDirection Direction
{
get
/// <summary>
/// Sets or gets the visibility of more option view.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsOpened
{
get
/// <summary>
/// Enumeration for More Option Direction type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum MoreOptionDirection
{
/// <summary>
/// <summary>
/// The MoreOptionItem is a item of MoreOption widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MoreOptionItem
{
const string MainTextPartName = "selector,main_text";
/// <summary>
/// Sets or gets the more option item handle.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr Handle
{
get
/// <summary>
/// Creates and initializes a new instance of MoreOptionItem class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MoreOptionItem()
{
_icon = null;
/// <summary>
/// Sets or gets the main text of a more option object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string MainText
{
set
/// <summary>
/// Sets or gets the sub text of a more option object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string SubText
{
set
/// <summary>
/// Sets or gets the icon image
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image Icon
{
set
/// The MoreOptionItemEventArgs is a event args class for MoreOptionItem.
/// Inherits EventArgs
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MoreOptionItemEventArgs : EventArgs
{
/// <summary>
/// Sets or gets the more option item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MoreOptionItem Item { get; set; }
}
}
/// <summary>
/// RotaryEventManager serve functions for global Rotary event like Galaxy Gear.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class RotaryEventManager
{
static Dictionary<RotaryEventHandler, Interop.Eext.Eext_Rotary_Handler_Cb> s_rotaryEventHandlers = new Dictionary<RotaryEventHandler, Interop.Eext.Eext_Rotary_Handler_Cb>();
/// <summary>
/// Rotated will triggered when rotatable device like Galaxy Gear Bezel is rotated.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static event RotaryEventHandler Rotated
{
add
/// <summary>
/// RotaryEventManager serve extension functions for Rotary event to EvasObject on device like Galaxy Gear.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class RotaryEventExtensions
{
static Dictionary<EvasObject, RotaryEventHandler> s_rotaryObjectEventHandlers = new Dictionary<EvasObject, RotaryEventHandler>();
/// </summary>
/// <param name="obj">Target EvasObject</param>
/// <param name="handler">Event handler for Rotary event</param>
+ /// <since_tizen> preview </since_tizen>
public static void AddRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
{
EnableRotaryEventHandler(obj);
/// </summary>
/// <param name="obj">Target EvasObject</param>
/// <param name="handler">Event handler for Rotary event</param>
+ /// <since_tizen> preview </since_tizen>
public static void RemoveRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler)
{
if (s_rotaryObjectEventHandlers.ContainsKey(obj))
/// Activate this circle widget can take Rotary event.
/// </summary>
/// <param name="widget">Target circle widget</param>
+ /// <since_tizen> preview </since_tizen>
public static void Activate(this IRotaryActionWidget widget)
{
Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, true);
/// Deactivate this circle widget is blocked from Rotary event.
/// </summary>
/// <param name="widget">Target circle widget</param>
+ /// <since_tizen> preview </since_tizen>
public static void Deactivate(this IRotaryActionWidget widget)
{
Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, false);
/// Activate this object can take Rotary event.
/// </summary>
/// <param name="obj">Target object</param>
+ /// <since_tizen> preview </since_tizen>
public static void Activate(this EvasObject obj)
{
Interop.Eext.eext_rotary_object_event_activated_set(obj, true);
/// Deactivate this object is blocked from Rotary event.
/// </summary>
/// <param name="obj">Target object</param>
+ /// <since_tizen> preview </since_tizen>
public static void Deactivate(this EvasObject obj)
{
Interop.Eext.eext_rotary_object_event_activated_set(obj, false);
/// Handler for Rotary event
/// </summary>
/// <param name="args">Rotary event information</param>
+ /// <since_tizen> preview </since_tizen>
public delegate void RotaryEventHandler(RotaryEventArgs args);
/// <summary>
/// RotaryEventArgs serve information for triggered rotary event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class RotaryEventArgs : EventArgs
{
/// <summary>
/// IsClockwise is true when Rotary device rotated clockwise direction or false on counter clockwise.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsClockwise { get; set; }
/// <summary>
/// Timestamp of rotary event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public uint Timestamp { get; set; }
}
}
/// And an item can be selected by rotary event or user item click.
/// Inherits <see cref="Layout"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class RotarySelector : Layout
{
const string IconPartName = "selector,icon";
/// <summary>
/// Selected will be triggered when selected an item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<RotarySelectorItemEventArgs> Selected;
/// <summary>
/// Clicked will be triggered when selecting again the alredy selected item or selecting a selector.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<RotarySelectorItemEventArgs> Clicked;
SmartEvent<PointerEventArgs> _selectedEvent;
/// <summary>
/// Gets the rotary selector item list of a rotary selector object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IList<RotarySelectorItem> Items { get; private set; }
/// <summary>
/// Creates and initializes a new instance of the Rotary Selector class.
/// </summary>
/// <param name="parent">The parent of new Rotary Selector instance</param>
+ /// <since_tizen> preview </since_tizen>
public RotarySelector(EvasObject parent) : base(parent)
{
Items = new RotarySelectorList(this);
/// <summary>
/// Sets or gets the selected item of a rotary selector object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public RotarySelectorItem SelectedItem
{
get
/// <summary>
/// Sets or gets the background image of a rotary selector object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image BackgroundImage { set => setPart(ref _normalBgImage, BgPartName, State.Normal, value); get => _normalBgImage; }
/// <summary>
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr ptr = Interop.Eext.eext_rotary_selector_add(parent);
/// <summary>
/// A instance to the Rotary Selector Item added. And an item can be selected by rotary event or user item click.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class RotarySelectorItem
{
const string MainTextPartName = "selector,main_text";
/// <summary>
/// Sets or gets the handle of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr Handle
{
set
/// <summary>
/// Sets or gets the main text of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string MainText { set => setPart(ref _mainText, MainTextPartName, value); get => _mainText; }
/// <summary>
/// Sets or gets the sub text of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string SubText { set => setPart(ref _subText, SubTextPartName, value); get => _subText; }
/// <summary>
/// Sets or gets the sub text color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color MainTextColor { set => setPart(ref _mainTextColor, MainTextPartName, ItemState.Normal, value); get => _mainTextColor; }
/// <summary>
/// Sets or gets the sub text color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color SubTextColor { set => setPart(ref _subTextColor, SubTextPartName, ItemState.Normal, value); get => _subTextColor; }
/// <summary>
/// Sets or gets the normal icon image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image NormalIconImage { set => setPart(ref _normalIconImage, IconPartName, ItemState.Normal, value); get => _normalIconImage; }
/// <summary>
/// Sets or gets the press icon image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image PressedIconImage { set => setPart(ref _pressedIconImage, IconPartName, ItemState.Pressed, value); get => _pressedIconImage; }
/// <summary>
/// Sets or gets the disable icon image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image DisabledIconImage { set => setPart(ref _disabledIconImage, IconPartName, ItemState.Disabled, value); get => _disabledIconImage; }
/// <summary>
/// Sets or gets the selected icon image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image SelectedIconImage { set => setPart(ref _selectedIconImage, IconPartName, ItemState.Selected, value); get => _selectedIconImage; }
/// <summary>
/// Sets or gets the normal background image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image NormalBackgroundImage { set => setPart(ref _normalBgImage, BgPartName, ItemState.Normal, value); get => _normalBgImage; }
/// <summary>
/// Sets or gets the pressed background image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image PressedBackgroundImage { set => setPart(ref _pressedBgImage, BgPartName, ItemState.Pressed, value); get => _pressedBgImage; }
/// <summary>
/// Sets or gets the disabled background image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image DisabledBackgroundImage { set => setPart(ref _disabledBgImage, BgPartName, ItemState.Disabled, value); get => _disabledBgImage; }
/// <summary>
/// Sets or gets the selected background image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image SelectedBackgroundImage { set => setPart(ref _selectedBgImage, BgPartName, ItemState.Selected, value); get => _selectedBgImage; }
/// <summary>
/// Sets or gets the normal background color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color NormalBackgroundColor { set => setPart(ref _normalBgColor, BgPartName, ItemState.Normal, value); get => _normalBgColor; }
/// <summary>
/// Sets or gets the pressed background color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color PressedBackgroundColor { set => setPart(ref _pressedBgColor, BgPartName, ItemState.Pressed, value); get => _pressedBgColor; }
/// <summary>
/// Sets or gets the disabled background color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color DisabledBackgroundColor { set => setPart(ref _disabledBgColor, BgPartName, ItemState.Disabled, value); get => _disabledBgColor; }
/// <summary>
/// Sets or gets the selected background color of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color SelectedBackgroundColor { set => setPart(ref _selectedBgColor, BgPartName, ItemState.Selected, value); get => _selectedBgColor; }
/// <summary>
/// Sets or gets the selector icon image of a rotary selector item object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Image SelectorIconImage { set => setPart(ref _selectorIconImage, SelectorIconPartName, ItemState.Normal, value); get => _selectorIconImage; }
internal enum ItemState
/// <see cref="RotarySelector.Selected"/> and <see cref="RotarySelector.Clicked"/> events of RotarySelector contain RotarySelectorItemEventArgs as a parameter.
/// Inherits <see cref="EventArgs"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class RotarySelectorItemEventArgs : EventArgs
{
/// <summary>
/// Sets or gets the rotary selector item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public RotarySelectorItem Item { get; set; }
}
}
/// <summary>
/// Enumeration for AccessRole.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum AccessRole
{
/// <summary>
/// </summary>
/// <param name="obj">The sender obj.</param>
/// <returns>Return information for Name or Description.</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate string AccessibleInfoProvider (AccessibleObject obj);
/// <summary>
/// It provides available definitions for the screen reader, such as <see cref="IAccessibleObject.Name"/>, <see cref="IAccessibleObject.Description"/>, <see cref="IAccessibleObject.ReadingInfoType"/>, etc.
/// There's many the relationship between two accessible objects, like <see cref="ChildOf"/>, <see cref="ParentOf"/>, <see cref="FlowsTo"/>, <see cref="FlowsFrom"/>, etc.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class AccessibleObject : EvasObject, IAccessibleObject
{
/// Creates and initializes a new instance of the AccessibleObject class with parent EvasObject class parameter.
/// </summary>
/// <param name="parent">Parent EvasObject class </param>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of the AccessibleObject class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject() : base()
{
}
/// <summary>
/// Highlights accessible widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Highlight()
{
Interop.Elementary.elm_atspi_component_highlight_grab(RealHandle);
/// <summary>
/// Clears highlight of accessible widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Unhighlight()
{
Interop.Elementary.elm_atspi_component_highlight_clear(RealHandle);
/// <summary>
/// IAccessibleRelation is a interface which defines the relationship between two accessible objects.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
AccessibleObject Target { get; set; }
/// <summary>
/// Gets the type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
int Type { get; }
}
/// <summary>
/// To define label info for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class LabelledBy : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is LabelledBy.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the LabelledBy type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABELLED_BY; }
/// <summary>
/// To define label info for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class LabelFor : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is LabelFor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the LabelFor type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABEL_FOR; }
/// <summary>
/// To define control relationship for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ControllerFor : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is ControllerFor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the ControllerFor type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLER_FOR; }
/// <summary>
/// To define control relationship for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ControlledBy : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is ControlledBy.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the ControlledBy type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLED_BY; }
/// <summary>
/// To define member relationship for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MemberOf : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is MemberOf.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the MemberOf type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_MEMBER_OF; }
/// <summary>
/// To define tooltip for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class TooltipFor : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is TooltipFor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the TooltipFor type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_TOOLTIP_FOR; }
/// <summary>
/// To define child for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ChildOf : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is ChildOf.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the ChildOf type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_CHILD_OF; }
/// <summary>
/// To define parent for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ParentOf : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is ParentOf.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the ParentOf type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_PARENT_OF; }
/// <summary>
/// To define extend for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Extended : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is Extended.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the Extended type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EXTENDED; }
/// <summary>
/// To define the custom reading order.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FlowsTo : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is FlowsTo.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the FlowsTo type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_TO; }
/// <summary>
/// To define the custom reading order.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FlowsFrom : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is FlowsFrom.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the FlowsFrom type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_FROM; }
/// <summary>
/// To define subwindow for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class SubwindowOf : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is SubwindowOf.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the SubwindowOf type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_SUBWINDOW_OF; }
/// <summary>
/// To define embed for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Embeds : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is Embeds.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the Embeds type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDS; }
/// <summary>
/// To define embed for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EmbeddedBy : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is EmbeddedBy.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the EmbeddedBy type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDDED_BY; }
/// <summary>
/// To define popup for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class PopupFor : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is PopupFor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the PopupFor type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_POPUP_FOR; }
/// <summary>
/// To define parent window for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ParentWindowOf : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is ParentWindowOf.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the ParentWindowOf type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_PARENT_WINDOW_OF; }
/// <summary>
/// To define description for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DescriptionFor : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is DescriptionFor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the DescriptionFor type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIPTION_FOR; }
/// <summary>
/// To define description for accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DescribedBy : IAccessibleRelation
{
/// <summary>
/// Gets or sets the target object which is DescribedBy.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AccessibleObject Target { get; set; }
/// <summary>
/// Gets the DescribedBy type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Type
{
get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIBED_BY; }
/// <summary>
/// Enumeration for ReadingStatus.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ReadingStatus
{
/// <summary>
/// <summary>
/// AccessibleUtil provides a method to set the reading information.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class AccessibleUtil
{
/// <param name="text">The reading text.</param>
/// <param name="discardable">If true, reading can be discarded by subsequent reading requests, if false the reading must finish before next reading request can be started.</param>
/// <returns>Return a task with reading status.</returns>
+ /// <since_tizen> preview </since_tizen>
public static Task<ReadingStatus> Say(string text, bool discardable)
{
var tcs = new TaskCompletionSource<ReadingStatus>();
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Background : Layout
{
/// <summary>
/// Creates and initializes a new instance of the Background class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Background will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Background(EvasObject parent) : base(parent)
{
Style = "transparent";
/// <summary>
/// Sets or gets color to Background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color Color
{
get
/// <summary>
/// Sets or gets image to Background.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string File
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public BackgroundOptions BackgroundOption
{
get
/// </summary>
/// <param name="w">The new width of the image pixmap representation.</param>
/// <param name="h">The new height of the image pixmap representation.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFileLoadSize(int w, int h)
{
if (File != null)
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// Enumeration for the background type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum BackgroundOptions
{
/// <summary>
/// <summary>
/// The Box is a container used to arranges UI components in a linear order.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Box : Container
{
private Interop.Elementary.BoxLayoutCallback _layoutCallback;
/// Creates and initializes a new instance of the Box class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Box will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Box(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Sets or gets IsHorizontal value which describe pack direction, vertical is default.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <summary>
/// Sets or gets whether the box to arrange its children homogeneously.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHomogeneous
{
get
/// depending if the Box is vertical or horizontal, respectively.
/// </remarks>
/// <param name="content">The oject be packed</param>
+ /// <since_tizen> preview </since_tizen>
public void PackEnd(EvasObject content)
{
Interop.Elementary.elm_box_pack_end(RealHandle, content);
/// depending if the Box is vertical or horizontal, respectively.
/// </remarks>
/// <param name="content">The object to be packed.</param>
+ /// <since_tizen> preview </since_tizen>
public void PackStart(EvasObject content)
{
Interop.Elementary.elm_box_pack_start(RealHandle, content);
/// </remarks>
/// <param name="content">The object will be added in Box</param>
/// <param name="after">The object has been added in Box</param>
+ /// <since_tizen> preview </since_tizen>
public void PackAfter(EvasObject content, EvasObject after)
{
Interop.Elementary.elm_box_pack_after(RealHandle, content, after);
/// </remarks>
/// <param name="content">The object will be added in Box</param>
/// <param name="before">The object has been added in Box</param>
+ /// <since_tizen> preview </since_tizen>
public void PackBefore(EvasObject content, EvasObject before)
{
Interop.Elementary.elm_box_pack_before(RealHandle, content, before);
/// Remove the "content" oject from Box without deleting it.
/// </summary>
/// <param name="content">The object to unpack</param>
+ /// <since_tizen> preview </since_tizen>
public void UnPack(EvasObject content)
{
Interop.Elementary.elm_box_unpack(RealHandle, content);
/// <summary>
/// Removes all objects from Box container.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void UnPackAll()
{
Interop.Elementary.elm_box_unpack_all(RealHandle);
/// the function cb will be called to determine what the layout of the children will be.
/// </summary>
/// <param name="action">The callback function used for layout </param>
+ /// <since_tizen> preview </since_tizen>
public void SetLayoutCallback(Action action)
{
_layoutCallback = (obj, priv, data) =>
/// </summary>
/// <param name="part">The name of part class, it could be 'bg', 'elm.swllow.content'.</param>
/// <param name="color">The color value.</param>
+ /// <since_tizen> preview </since_tizen>
public override void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255,
/// </summary>
/// <param name="part">The name of part class, it could be 'bg', 'elm.swllow.content'.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public override Color GetPartColor(string part)
{
int r, g, b, a;
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Recalculate()
{
Interop.Elementary.elm_box_recalculate(RealHandle);
/// Clear the box of all children.
/// Remove all the elements contained by the box, deleting the respective objects.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_box_clear(RealHandle);
/// </summary>
/// <param name="horizontal">Horizontal alignment</param>
/// <param name="vertical">Vertical alignment</param>
+ /// <since_tizen> preview </since_tizen>
public void SetBoxAlignment(double horizontal, double vertical)
{
Interop.Elementary.elm_box_align_set(RealHandle, horizontal, vertical);
/// </summary>
/// <param name="horizontal">Horizontal padding</param>
/// <param name="vertical">vertical padding</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPadding(int horizontal, int vertical)
{
Interop.Elementary.elm_box_padding_set(RealHandle, horizontal, vertical);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The Button is a widget works as a clickable input element to trigger events.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Button : Layout
{
private SmartEvent _clicked;
/// <param name="parent">
/// The EvasObject to which the new Button will be attached as a child.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public Button(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, this.RealHandle, "clicked");
/// <summary>
/// Clicked will be triggered when Button is clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
/// <summary>
/// Repeated will be triggered when Button is pressed without releasing it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Repeated;
/// <summary>
/// Pressed will be triggered when the Button is pressed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Pressed;
/// <summary>
/// Released will be triggered when the Button is released after being pressed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Released;
/// <summary>
/// The time it takes until it starts triggering Repeated is given by AutoRepeatInitialTime,
/// and the time between each new emission is given by AutoRepeatGapTimeout.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool AutoRepeat
{
get
/// <summary>
/// Sets or gets the initial timeout before the Repeat event is generated.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double AutoRepeatInitialTime
{
get
/// <summary>
/// Sets or gets the interval between each generated Repeat event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double AutoRepeatGapTimeout
{
get
/// Delete the object color class.
/// </summary>
/// <param name="part">The color class to be deleted.</param>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")]
public void DeleteColorClass(string part)
{
/// <summary>
/// Sets or gets the BackgroundColor of a given Button in normal and pressed status.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
set
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_button_add(parent.Handle);
/// <summary>
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum CalendarMarkRepeatType
{
/// <summary>
/// <summary>
/// Enumeration for the mode, which determine how user could select a day.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum CalendarSelectMode
{
/// <summary>
/// <summary>
/// Enumeration used to define which fields of a tm struct will be taken into account
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum CalendarSelectable
{
/// <summary>
/// The CalendarMark is a Item for marking a Calendar's type,date and repeat type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CalendarMark
{
internal IntPtr Handle;
/// <summary>
/// A string used to define the type of mark.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Type;
/// <summary>
/// A time struct to represent the date of inclusion of the mark.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime Date;
/// <summary>
/// Repeat the event following this periodicity.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public CalendarMarkRepeatType Repeat;
/// <summary>
/// <param name="type">Type of mark</param>
/// <param name="date">Date of inclusion of the mark</param>
/// <param name="repeat">Repeat type</param>
+ /// <since_tizen> preview </since_tizen>
public CalendarMark(string type, DateTime date, CalendarMarkRepeatType repeat)
{
Handle = IntPtr.Zero;
/// <summary>
/// The Calendar is a widget that helps applications to flexibly display a calender with day of the week, date, year and month.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Calendar : Layout
{
SmartEvent _changed;
/// <param name="parent">
/// The EvasObject to which the new Calendar will be attached as a child.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public Calendar(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
/// <summary>
/// DateChanged will be triggered when the date in the calendar is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<DateChangedEventArgs> DateChanged;
/// <summary>
/// DisplayedMonthChanged will be triggered when the current month displayed in the calendar is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<DisplayedMonthChangedEventArgs> DisplayedMonthChanged;
/// <summary>
/// </summary>
/// <param name="time">DateTime</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public delegate string DateFormatDelegate(DateTime time);
/// <summary>
/// Sets or gets the minimum for year.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MinimumYear
{
get
/// <summary>
/// Sets or gets the maximum for the year.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MaximumYear
{
get
/// <summary>
/// Sets or gets the first day of week, who are used on Calendar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime DisplayedTime
{
get
/// <summary>
/// Sets or gets the first day of week, who are used on Calendar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DayOfWeek FirstDayOfWeek
{
get
/// <![CDATA[List<string> weekDayNames = new List<string>() { "S", "M", "T", "W", "T", "F", "S" };]]>
/// Calendar.WeekDayNames = weekDayNames;
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public IReadOnlyList<string> WeekDayNames
{
get
/// <remarks>
/// Selected date changes when the user goes to next/previous month or select a day pressing over it on calendar.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public DateTime SelectedDate
{
get
/// Sets or gets the interval on time updates for an user mouse button
/// hold on calendar widgets' month/year selection.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Interval
{
get
/// <summary>
/// Gets or sets the select day mode used.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public CalendarSelectMode SelectMode
{
get
/// <summary>
/// Gets or sets fields of a datetime will be taken into account, when SelectedDate set is invoked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public CalendarSelectable Selectable
{
get
/// <summary>
/// Gets or sets date format the string that will be used to display month and year.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateFormatDelegate DateFormat
{
get
/// <param name="date">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.</param>
/// <param name="repeat">Repeat the event following this periodicity. Can be a unique mark (that don't repeat), daily, weekly, monthly or annually.</param>
/// <returns>Item for a calendar mark.</returns>
+ /// <since_tizen> preview </since_tizen>
public CalendarMark AddMark(string type, DateTime date, CalendarMarkRepeatType repeat)
{
CalendarMark mark = new CalendarMark(type, date, repeat);
/// Delete mark from the calendar.
/// </summary>
/// <param name="mark">Item for a calendar mark</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteMark(CalendarMark mark)
{
Interop.Elementary.elm_calendar_mark_del(mark.Handle);
/// <summary>
/// Draw calendar marks.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void DrawMarks()
{
Interop.Elementary.elm_calendar_marks_draw(RealHandle);
/// <summary>
/// Remove all calendar's marks.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ClearMarks()
{
Interop.Elementary.elm_calendar_marks_clear(RealHandle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The check is a widget allows for toggling a value between true and false.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Check : Layout
{
private SmartEvent _changed;
/// <param name="parent">
/// The EvasObject to which the new Check will be attached as a child.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public Check(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
/// <summary>
/// StateChanged will be triggered when the IsChecked in the Check is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<CheckStateChangedEventArgs> StateChanged;
/// <summary>
/// <remarks>
/// When object is checked, the value will set to true, Conversely will set to false.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsChecked
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// The CheckStateChangedEventArgs is EventArgs to record Check's state.
/// Include old state and new state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CheckStateChangedEventArgs : EventArgs
{
/// <summary>
/// Gets the OldState property.The return type is bool.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool OldState { get; private set; }
/// <summary>
/// Gets the NewState property.The return type is bool.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool NewState { get; private set; }
/// <summary>
/// </summary>
/// <param name="oldState">Old state of Check which to use this CheckStateChangedEventArgs.</param>
/// <param name="newState">New state of Check which to use this CheckStateChangedEventArgs.</param>
+ /// <since_tizen> preview </since_tizen>
public CheckStateChangedEventArgs(bool oldState, bool newState)
{
this.OldState = oldState;
/// <summary>
/// The Color is a struct to record Check's state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public struct Color
{
readonly int _a;
/// <remarks>
/// In default Color instance,Mode type is Default,RGBA all set as -1.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public static Color Default
{
get { return new Color(-1, -1, -1, -1, Mode.Default); }
/// Gets whether the Color instance's mode is default or not.
/// Return type is bool.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsDefault
{
get { return _mode == Mode.Default; }
/// Gets A value of RGBA.
/// A means the Alpha in color.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int A
{
get { return _a; }
/// Gets R value of RGBA.
/// R means the Red in color.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int R
{
get { return _r; }
/// Gets G value of RGBA.
/// G means the Green in color.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int G
{
get { return _g; }
/// Gets B value of RGBA.
/// B means the Blue in color.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int B
{
get { return _b; }
/// <param name="r">Red of RGB</param>
/// <param name="g">Green of RGB</param>
/// <param name="b">Blue of RGB</param>
+ /// <since_tizen> preview </since_tizen>
public Color(int r, int g, int b) : this(r, g, b, 255)
{
}
/// <param name="g">Green of RGBA</param>
/// <param name="b">Blue of RGBA</param>
/// <param name="a">Alpha of RGBA</param>
+ /// <since_tizen> preview </since_tizen>
public Color(int r, int g, int b, int a) : this(r, g, b, a, Mode.Rgb)
{
}
/// Returns the hash code for this instance.
/// </summary>
/// <returns>A 32-bit signed integer hash code.</returns>
+ /// <since_tizen> preview </since_tizen>
public override int GetHashCode()
{
int hashcode = _r.GetHashCode();
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public override bool Equals(object obj)
{
if (obj is Color)
/// <returns>The result whether two instance is same or not.
/// Return type is bool.If they are same, return true.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator ==(Color a, Color b)
{
if (ReferenceEquals(a, b))
/// <returns>The result whether two instance is different or not.
/// Return type is bool.If they are different, return true.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator !=(Color a, Color b)
{
return !(a == b);
/// Returns the fully qualified type name of this instance.
/// </summary>
/// <returns>The fully qualified type name.</returns>
+ /// <since_tizen> preview </since_tizen>
public override string ToString()
{
return string.Format(CultureInfo.InvariantCulture, "[Color: R={0}, G={1}, B={2}, A={3}]", R, G, B, A);
/// </summary>
/// <param name="hex">Hexadecimal string.</param>
/// <returns>New instance of Color struct.</returns>
+ /// <since_tizen> preview </since_tizen>
public static Color FromHex(string hex)
{
hex = hex.Replace("#", "");
/// </summary>
/// <param name="argb">Unsigned integer indicates RGBA.</param>
/// <returns>New instance of Color struct.</returns>
+ /// <since_tizen> preview </since_tizen>
public static Color FromUint(uint argb)
{
return FromRgba((byte)((argb & 0x00ff0000) >> 0x10), (byte)((argb & 0x0000ff00) >> 0x8), (byte)(argb & 0x000000ff), (byte)((argb & 0xff000000) >> 0x18));
/// <param name="b">Blue in RGBA.</param>
/// <param name="a">Alpha in RGBA.</param>
/// <returns>New instance of Color struct.</returns>
+ /// <since_tizen> preview </since_tizen>
public static Color FromRgba(int r, int g, int b, int a)
{
return new Color(r, g, b, a);
/// <param name="g">Green in RGB.</param>
/// <param name="b">Blue in RGB.</param>
/// <returns>New instance of Color struct.</returns>
+ /// <since_tizen> preview </since_tizen>
public static Color FromRgb(int r, int g, int b)
{
return FromRgba(r, g, b, 255);
/// <summary>
/// The Tansparent is a predefined Color, it's rgba value is (0, 0, 0, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Transparent = FromRgba(0, 0, 0, 0);
/// <summary>
/// The Aqua is a predefined Color instance, it's rgb value is (0, 255, 255).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Aqua = FromRgb(0, 255, 255);
/// <summary>
/// The Black is a predefined Color instance, it's rgb value is (0, 0, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Black = FromRgb(0, 0, 0);
/// <summary>
/// The Blue is a predefined Color instance, it's rgb value is (0, 0, 255).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Blue = FromRgb(0, 0, 255);
/// <summary>
/// The Fuchsia is a predefined Color instance, it's rgb value is (255, 0, 255).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Fuchsia = FromRgb(255, 0, 255);
/// <summary>
/// The Gray is a predefined Color instance, it's rgb value is (128, 128, 128).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Gray = FromRgb(128, 128, 128);
/// <summary>
/// The Green is a predefined Color instance, it's rgb value is (0, 128, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Green = FromRgb(0, 128, 0);
/// <summary>
/// The Lime is a predefined Color instance, it's rgb value is (0, 255, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Lime = FromRgb(0, 255, 0);
/// <summary>
/// The Maroon is a predefined Color instance, it's rgb value is (128, 0, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Maroon = FromRgb(128, 0, 0);
/// <summary>
/// The Navy is a predefined Color instance, it's rgb value is (0, 0, 128).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Navy = FromRgb(0, 0, 128);
/// <summary>
/// The Olive is a predefined Color instance, it's rgb value is (128, 128, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Olive = FromRgb(128, 128, 0);
/// <summary>
/// The Orange is a predefined Color instance, it's rgb value is (255, 165, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Orange = FromRgb(255, 165, 0);
/// <summary>
/// The Purple is a predefined Color instance, it's rgb value is (128, 0, 128).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Purple = FromRgb(128, 0, 128);
/// <summary>
/// The Pink is a predefined Color instance, it's rgb value is (255, 102, 255).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Pink = FromRgb(255, 102, 255);
/// <summary>
/// The Red is a predefined Color instance, it's rgb value is (255, 0, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Red = FromRgb(255, 0, 0);
/// <summary>
/// The Silver is a predefined Color instance, it's rgb value is (192, 192, 192).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Silver = FromRgb(192, 192, 192);
/// <summary>
/// The Teal is a predefined Color instance, it's rgb value is (0, 128, 128).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Teal = FromRgb(0, 128, 128);
/// <summary>
/// The White is a predefined Color instance, it's rgb value is (255, 255, 255).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color White = FromRgb(255, 255, 255);
/// <summary>
/// The Yellow is a predefined Color instance, it's rgb value is (255, 255, 0).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly Color Yellow = FromRgb(255, 255, 0);
#endregion
}
/// Event ColorChanged of ColorSelector contain ColorChangedEventArgs as a parameter.
/// Refer to <see cref="ColorSelector"/>type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ColorChangedEventArgs : EventArgs
{
/// <summary>
/// Gets old color in color changed event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color OldColor { get; private set; }
/// <summary>
/// Gets new color in color changed event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color NewColor { get; private set; }
/// <summary>
/// </summary>
/// <param name="oldColor">old color</param>
/// <param name="newColor">new color</param>
+ /// <since_tizen> preview </since_tizen>
public ColorChangedEventArgs(Color oldColor, Color newColor)
{
this.OldColor = oldColor;
/// <summary>
/// Enumeration for mode of ColorSelector
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ColorSelectorMode
{
/// <summary>
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public class ColorSelector : Layout
{
private readonly SmartEvent<ColorChangedEventArgs> _changed;
/// Creates and initializes a new instance of the ColorSelector class.
/// </summary>
/// <param name="parent"></param>
+ /// <since_tizen> preview </since_tizen>
public ColorSelector(EvasObject parent) : base(parent)
{
_changed = new SmartEvent<ColorChangedEventArgs>(this, "changed", (data, obj, info) =>
/// <summary>
/// ColorChanged will be triggered when the SelectedColor changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ColorChangedEventArgs> ColorChanged
{
add { _changed.On += value; }
/// <summary>
/// Gets or sets color of colorselector.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color SelectedColor
{
get
/// <summary>
/// Gets Alpha of a default Color Class(Value is -1).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Opacity
{
get
/// <summary>
/// Gets or sets Colorselector's mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ColorSelectorMode Mode
{
get
/// <summary>
/// Get or set current palette's name.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string PaletteName
{
get
/// </summary>
/// <param name="color">Color item to add</param>
/// <returns>A new color palette Item.</returns>
+ /// <since_tizen> preview </since_tizen>
public ColorSelectorItem AddPaletteColor(Color color)
{
ColorSelectorItem item = new ColorSelectorItem();
/// <summary>
/// Clear the palette items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ClearPalette()
{
Interop.Elementary.elm_colorselector_palette_clear(Handle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_colorselector_add(parent.Handle);
/// <summary>
/// A instance to the ColorSelector item added.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ColorSelectorItem : ItemObject
{
internal ColorSelectorItem() : base(IntPtr.Zero)
/// <summary>
/// Gets or sets the Palette item's color
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color Color
{
get
/// to account for space taken up by the indicator,
/// virtual keypad & softkey windows when running the illume2 module of E17.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Conformant : Widget
{
/// <summary>
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Conformant
/// as a child.It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Conformant(Window parent) : base(parent)
{
Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_conformant_add(parent.Handle);
/// Other class inherits it to Elementary is about displaying
/// its widgets in a nice layout.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class Container : Widget
{
HashSet<EvasObject> _children = new HashSet<EvasObject>();
/// </summary>
/// <param name="parent">The parent is a given object which will be attached by Container
/// as a child.It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Container(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of Container class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Container() : base()
{
}
/// <summary>
/// Sets the background color of a given Container.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
set
/// <summary>
/// Gets the collection of child EvasObject of the Container.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected IEnumerable<EvasObject> Children => _children;
/// <summary>
/// Add an EvasObject object as a child of Container.
/// </summary>
/// <param name="obj">The EvasObject object to be added</param>
+ /// <since_tizen> preview </since_tizen>
protected void AddChild(EvasObject obj)
{
_children.Add(obj);
/// Remove an EvasObject object as a child of Container.
/// </summary>
/// <param name="obj">The EvasObject object to be removed</param>
+ /// <since_tizen> preview </since_tizen>
protected void RemoveChild(EvasObject obj)
{
_children.Remove(obj);
/// <summary>
/// Clear all children of the Container.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected void ClearChildren()
{
_children.Clear();
/// <summary>
/// Enumeration of ContextPopup direction type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ContextPopupDirection
{
/// <summary>
/// It inherits <see cref="Layout"/>.
/// The ContextPopup is a widget that when it shown, pops up a list of items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ContextPopup : Layout
{
HashSet<ContextPopupItem> _children = new HashSet<ContextPopupItem>();
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by ContextPopup
/// as a child.It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public ContextPopup(EvasObject parent) : base(parent)
{
_dismissed = new SmartEvent(this, this.RealHandle, "dismissed");
/// <remarks>
/// Outside of ContextPopup was clicked or it's parent area is changed or the language is changed. and then ContextPopup is dismissed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Dismissed;
/// <summary>
/// <remarks>
/// Once the ContextPopup showed up, the direction would be determined.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ContextPopupDirection Direction
{
get
/// Gets or sets the value of current ContextPopup object's orientation.
/// True for horizontal mode, False for vertical mode (or errors)
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <remarks>
/// Default value of AutoHide is False.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool AutoHide
{
get
/// <summary>
/// Clears all items in the given ContextPopup object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_ctxpopup_clear(Handle);
/// <param name="second">2nd priority of direction </param>
/// <param name="third">3th priority of direction </param>
/// <param name="fourth">4th priority of direction</param>
+ /// <since_tizen> preview </since_tizen>
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);
/// <param name="second">2nd priority of direction to be returned</param>
/// <param name="third">2nd priority of direction to be returned </param>
/// <param name="fourth">4th priority of direction to be returned</param>
+ /// <since_tizen> preview </since_tizen>
public void GetDirectionPriority(out ContextPopupDirection first, out ContextPopupDirection second, out ContextPopupDirection third, out ContextPopupDirection fourth)
{
int firstOut, secondOut, thirdOut, fourthOut;
/// <returns>
/// A ContextPopupItem added or NULL, on errors
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public ContextPopupItem Append(string label)
{
return Append(label, null);
/// <param name="label">The Label of the new item</param>
/// <param name="icon">Icon to be set on new item</param>
/// <returns>A ContextPopupItem added or NULL, on errors</returns>
+ /// <since_tizen> preview </since_tizen>
public ContextPopupItem Append(string label, EvasObject icon)
{
ContextPopupItem item = new ContextPopupItem(label, icon);
/// <summary>
/// Dismiss a ContextPopup object. The ContextPopup will be hidden and the "clicked" signal will be emitted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dismiss()
{
Interop.Elementary.elm_ctxpopup_dismiss(RealHandle);
/// <returns>
/// Get false if you cannot put it in the direction. Gets true if it's possible.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool IsAvailableDirection(ContextPopupDirection direction)
{
return Interop.Elementary.elm_ctxpopup_direction_available_get(RealHandle, (int)direction);
/// <summary>
/// Gets Alpha of a default Color Class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Opacity
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_ctxpopup_add(parent.Handle);
/// It inherits <see cref="ItemObject"/>.
/// A instance to the ContextPopup item added.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ContextPopupItem : ItemObject
{
internal ContextPopupItem(string text, EvasObject icon) : base(IntPtr.Zero)
/// <summary>
/// Gets the Text property of the given ContextPopupItem.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text { get; internal set; }
/// <summary>
/// Gets the Icon(type is <see cref="EvasObject"/>) property of the given ContextPopupItem.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject Icon { get; internal set; }
/// <summary>
/// Selected will be triggered when the ContextPopupItem is Selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Selected;
internal void SendSelected()
/// The DateChanged event in Calendar and DateTimeChanged event in DateTimeSelector.
/// contain DateChangedEventArgs as a parameter.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DateChangedEventArgs : EventArgs
{
/// <summary>
/// Gets the OldDate property of the given DateChangedEventArgs.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime OldDate { get; private set; }
/// <summary>
/// Gets the NewDate property of the given DateChangedEventArgs.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime NewDate { get; private set; }
/// <summary>
/// <param name="newDate">
/// New date when DateChanged event or DateTimeChanged event triggered
/// </param>
+ /// <since_tizen> preview </since_tizen>
public DateChangedEventArgs(DateTime oldDate, DateTime newDate)
{
this.OldDate = oldDate;
/// <summary>
/// Enumeration of datetime field types for DateTimeSelector.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum DateTimeFieldType
{
/// <summary>
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DateTimeSelector : Layout
{
SmartEvent _changed;
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by DateTimeSelector
///as a child.It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public DateTimeSelector(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of DateTimeSelector class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected DateTimeSelector() : base()
{
}
/// <summary>
/// ItemSelected is raised when Datetime field value changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<DateChangedEventArgs> DateTimeChanged;
/// <summary>
/// <remarks>
/// format is a combination of allowed LIBC date format specifiers like: "%b %d, %Y %I : %M %p".
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public string Format
{
get
/// <summary>
/// Gets or sets the upper boundary of DateTime field.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime MaximumDateTime
{
get
/// <summary>
/// Gets or sets the lower boundary of DateTime field.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime MinimumDateTime
{
get
/// <summary>
/// Gets or sets the current value of DateTime field.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DateTime DateTime
{
get
/// The field is visible or not.
/// Type is bool.If visible, return true.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool IsFieldVisible(DateTimeFieldType type)
{
return Interop.Elementary.elm_datetime_field_visible_get(RealHandle, (int)type);
/// <param name="type">Enumeration <see cref="DateTimeFieldType"/></param>
/// <param name="minimum">minimum limit</param>
/// <param name="maximum">maximum limit</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFieldLimit(DateTimeFieldType type, int minimum, int maximum)
{
Interop.Elementary.elm_datetime_field_limit_set(RealHandle, (int)type, minimum, maximum);
/// </summary>
/// <param name="type">Enumeration <see cref="DateTimeFieldType"/></param>
/// <param name="visible">When set as true, the field type visible.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFieldVisible(DateTimeFieldType type, bool visible)
{
Interop.Elementary.elm_datetime_field_visible_set(RealHandle, (int)type, visible);
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// The DisplayedMonthChangedEvent in Calendar contain
/// DisplayedMonthChangedEventArgs as a parameter.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DisplayedMonthChangedEventArgs : EventArgs
{
/// <summary>
/// Gets the OldMonth property of the given DisplayedMonthChangedEventArgs.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int OldMonth { get; private set; }
/// <summary>
/// Gets the NewMonth property of the given DisplayedMonthChangedEventArgs.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int NewMonth { get; private set; }
/// <summary>
/// <param name="newMonth">
/// new month of date when DisplayedMonthChangedEvent triggered.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public DisplayedMonthChangedEventArgs(int oldMonth, int newMonth)
{
this.OldMonth = oldMonth;
/// <summary>
/// EcoreAnimator is a helper class, it provides functions to manager animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class EcoreAnimator
{
static readonly Dictionary<int, Func<bool>> _taskMap = new Dictionary<int, Func<bool>>();
/// Gets current system time as a floating point value in seconds.
/// </summary>
/// <returns>Current system time</returns>
+ /// <since_tizen> preview </since_tizen>
public static double GetCurrentTime()
{
return Interop.Ecore.ecore_time_get();
/// </summary>
/// <param name="handler">The function to call when it ticks off</param>
/// <returns>A handle to the new animator</returns>
+ /// <since_tizen> preview </since_tizen>
public static IntPtr AddAnimator(Func<bool> handler)
{
int id = RegistHandler(handler);
/// Removes the specified animator from the animator list.
/// </summary>
/// <param name="anim">The specified animator handle</param>
+ /// <since_tizen> preview </since_tizen>
public static void RemoveAnimator(IntPtr anim)
{
int taskId = (int)Interop.Ecore.ecore_animator_del(anim);
/// The EcoreEventType is type of EcoreEvent.
/// It includes some predefined instance.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EcoreEventType
{
/// <summary>
/// Key down Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType KeyDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_DOWN");
/// <summary>
/// Key Up Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType KeyUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_UP");
/// <summary>
/// Mouse Button Down Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseButtonDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_DOWN");
/// <summary>
/// Mouse Button Up Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseButtonUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_UP");
/// <summary>
/// Mouse Button Cancel Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseButtonCancel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_CANCEL");
/// <summary>
/// Mouse Move Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseMove = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_MOVE");
/// <summary>
/// Mouse Wheel Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseWheel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_WHEEL");
/// <summary>
/// Mouse In Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseIn = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_IN");
/// <summary>
/// Mouse Out Ecore event type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static readonly EcoreEventType MouseOut = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_OUT");
private string _lib;
/// Gets the value associated with the specified type.
/// </summary>
/// <returns>The value of type.</returns>
+ /// <since_tizen> preview </since_tizen>
public int GetValue()
{
if (_typeValue < 0)
/// The EcoreEvent is a class to help to create events are being notified of events.
/// </summary>
/// <typeparam name="TEventArgs">Kinds of EventArgs</typeparam>
+ /// <since_tizen> preview </since_tizen>
public class EcoreEvent<TEventArgs> : IDisposable where TEventArgs : EventArgs
{
/// <summary>
/// <param name="type">EcoreEventType</param>
/// <param name="info">IntPtr</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public delegate TEventArgs EventInfoParser(IntPtr data, EcoreEventType type, IntPtr info);
private bool _disposed = false;
/// Creates and initializes a new instance of the EcoreEvent class.
/// </summary>
/// <param name="type">EcoreEventType</param>
+ /// <since_tizen> preview </since_tizen>
public EcoreEvent(EcoreEventType type) : this(type, null)
{
}
/// </summary>
/// <param name="type">EcoreEventType</param>
/// <param name="parser">EventInfoParser</param>
+ /// <since_tizen> preview </since_tizen>
public EcoreEvent(EcoreEventType type, EventInfoParser parser)
{
_eventType = type;
/// <summary>
/// On Event Handler of EcoreEvent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<TEventArgs> On
{
add
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Event class for EcoreEvent
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EcoreEvent : EcoreEvent<EventArgs>
{
/// <summary>
/// Creates and initializes a new instance of the EcoreEvent class.
/// </summary>
/// <param name="type">EcoreEventType</param>
+ /// <since_tizen> preview </since_tizen>
public EcoreEvent(EcoreEventType type) : base(type)
{
}
/// It inherits System.EventArgs.
/// The EcoreKeyEventArgs is a EventArgs to record Ecore event's key name and key code.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EcoreKeyEventArgs : EventArgs
{
/// <summary>
/// Gets the KeyName property.The return type is string.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string KeyName { get; private set; }
/// <summary>
/// Gets the KeyCode property.The return type is int.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int KeyCode { get; private set; }
/// <summary>
/// <param name="type">type</param>
/// <param name="info">information </param>
/// <returns>new instance of the EcoreKeyEventArgs class</returns>
+ /// <since_tizen> preview </since_tizen>
public static EcoreKeyEventArgs Create(IntPtr data, EcoreEventType type, IntPtr info)
{
var evt = Marshal.PtrToStructure<EcoreEventKey>(info);
/// <summary>
/// EcoreMainloop is a helper class, it provide functions relative Ecore's main loop.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class EcoreMainloop
{
static readonly Dictionary<int, Func<bool>> _taskMap = new Dictionary<int, Func<bool>>();
/// Checks if you are calling this function from the main thread.
/// </summary>
/// <remarks>True is the calling function is the same thread, false otherwise.</remarks>
+ /// <since_tizen> preview </since_tizen>
public static bool IsMainThread => Interop.Eina.eina_main_loop_is();
/// <summary>
/// Runs the application main loop.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void Begin()
{
Interop.Ecore.ecore_main_loop_begin();
/// <summary>
/// Quits the main loop once all the events currently on the queue have been processed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void Quit()
{
Interop.Ecore.ecore_main_loop_quit();
/// Adds an idler handler.
/// </summary>
/// <param name="task">The action to call when idling</param>
+ /// <since_tizen> preview </since_tizen>
public static void Post(Action task)
{
int id = RegistHandler(() => { task(); return false; });
/// Calls callback asynchronously in the main loop.
/// </summary>
/// <param name="task">The action wanted to be called</param>
+ /// <since_tizen> preview </since_tizen>
public static void PostAndWakeUp(Action task)
{
int id = RegistHandler(() => { task(); return false; });
/// Calls callback synchronously in the main loop.
/// </summary>
/// <param name="task">The action wanted to be called</param>
+ /// <since_tizen> preview </since_tizen>
public static void Send(Action task)
{
int id = RegistHandler(() => { task(); return false; });
/// <param name="interval">The interval in seconds.</param>
/// <param name="handler">The given function.</param>
/// <returns>A timer object handler on success, NULL on failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public static IntPtr AddTimer(double interval, Func<bool> handler)
{
int id = RegistHandler(handler);
/// Removes the specified timer from the timer list.
/// </summary>
/// <param name="id">The specified timer handler</param>
+ /// <since_tizen> preview </since_tizen>
public static void RemoveTimer(IntPtr id)
{
int taskId = (int)Interop.Ecore.ecore_timer_del(id);
/// <summary>
/// Provides a synchronization context for the efl application.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EcoreSynchronizationContext : SynchronizationContext
{
/// <summary>
/// Initializes a new instance of the EcoreSynchronizationContext class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EcoreSynchronizationContext()
{
}
/// SetSynchronizationContext(new EcoreSynchronizationContext());
/// </code>
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public static void Initialize()
{
SetSynchronizationContext(new EcoreSynchronizationContext());
/// <param name="d"><see cref="System.Threading.SendOrPostCallback"/>The SendOrPostCallback delegate to call.</param>
/// <param name="state"><see cref="System.Object"/>The object passed to the delegate.</param>
/// <remarks>The Post method starts an asynchronous request to post a message.</remarks>
+ /// <since_tizen> preview </since_tizen>
public override void Post(SendOrPostCallback d, object state)
{
EcoreMainloop.PostAndWakeUp(() =>
/// <param name="state"><see cref="System.Object"/>The object passed to the delegate.</param>
/// <remarks>
/// The Send method starts a synchronous request to send a message.</remarks>
+ /// <since_tizen> preview </since_tizen>
public override void Send(SendOrPostCallback d, object state)
{
EcoreMainloop.Send(() =>
/// <summary>
/// EcoreTimelineAnimator is a helper class, it provides functions to manager animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EcoreTimelineAnimator
{
double _runtime;
/// <summary>
/// It occurs when the animator is complete.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Finished;
/// <summary>
/// </summary>
/// <param name="runtime">The time to run in seconds</param>
/// <param name="timelineCallback">Functions called at each time line</param>
+ /// <since_tizen> preview </since_tizen>
public EcoreTimelineAnimator(double runtime, Action timelineCallback)
{
_runtime = runtime;
/// <summary>
/// Gets whether the animation is running.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsRunning { get; private set; }
/// <summary>
/// Gets the current position of the animation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Position => _position;
/// <summary>
/// Starts an animator that runs for a limited time.for a limited time.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Start()
{
IsRunning = true;
/// <summary>
/// Stops an animator that running.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Stop()
{
IsRunning = false;
/// <summary>
/// Suspends the specified animator.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Freeze()
{
Interop.Ecore.ecore_animator_freeze(_animator);
/// <summary>
/// Restores execution of the specified animator.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Thaw()
{
Interop.Ecore.ecore_animator_thaw(_animator);
/// <summary>
/// Callback that is called when ticks off
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected void OnTimeline()
{
_timelineCallback();
/// <summary>
/// The EdjeObject is a class that evas object exist in
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EdjeObject
{
IntPtr _edjeHandle;
/// <remarks>This call is useful, for example, when one could expect a given GUI element, depending on the theme applied to obj.</remarks>
/// <param name="part">The part's name to check for existence in obj's group</param>
/// <returns>TRUE, if the edje part exists in obj's group, otherwise FALSE</returns>
+ /// <since_tizen> preview </since_tizen>
public EdjeTextPartObject this[string part]
{
get
/// </summary>
/// <param name="emission">The signal's "emission" string</param>
/// <param name="source">The signal's "source" string</param>
+ /// <since_tizen> preview </since_tizen>
public void EmitSignal(string emission, string source)
{
Interop.Elementary.edje_object_signal_emit(_edjeHandle, emission, source);
/// </summary>
/// <remarks>Deleting the color class defined in the theme file.</remarks>
/// <param name="part">The color class to be deleted</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteColorClass(string part)
{
Interop.Elementary.edje_object_color_class_del(_edjeHandle, part);
/// <param name="shadowBlue">The shadow Blue value.</param>
/// <param name="shadowAlpha">The shadow Alpha value.</param>
/// <returns>True if succeed, otherwise False</returns>
+ /// <since_tizen> preview </since_tizen>
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)
{
/// <param name="shadowBlue">The shadow Blue value.</param>
/// <param name="shadowAlpha">The shadow Alpha value.</param>
/// <returns>True if succeed, otherwise False</returns>
+ /// <since_tizen> preview </since_tizen>
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)
{
/// <param name="font"> Font name.</param>
/// <param name="fontSize">Font size.</param>
/// <returns>True if succeed, otherwise False</returns>
+ /// <since_tizen> preview </since_tizen>
public bool SetTextClass(string textClass, string font, int fontSize)
{
return Interop.Elementary.edje_object_text_class_set(_edjeHandle, textClass, font, fontSize);
/// <param name="font">Font name.</param>
/// <param name="fontSize">Font size.</param>
/// <returns>True if succeed, otherwise False</returns>
+ /// <since_tizen> preview </since_tizen>
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);
/// <param name="emission">The signal's "emission" string</param>
/// <param name="source">The signal's "source" string</param>
/// <param name="action">The action to be executed when the signal is emitted</param>
+ /// <since_tizen> preview </since_tizen>
public void AddSignalAction(string emission, string source, Action<string, string> action)
{
if (emission != null && source != null && action != null)
/// <param name="emission">The signal's "emission" string</param>
/// <param name="source">The signal's "source" string</param>
/// <param name="action">The action to be executed when the signal is emitted</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteSignalAction(string emission, string source, Action<string, string> action)
{
if (emission != null && source != null && action != null)
/// <summary>
/// An EdjeTextPartObject is a class dealing with parts of type text.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EdjeTextPartObject
{
string _part;
/// <summary>
/// Gets the name of the EdjeTextPartObject
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Name { get { return _part; } }
/// <summary>
/// Gets or sets the text for an object part.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text
{
get
/// <summary>
/// Sets or gets the style of the object part.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string TextStyle
{
get
/// <summary>
/// Gets the geometry of a given edje part, in a given edje object's group definition, relative to the object's area.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Rect Geometry
{
get
/// <summary>
/// Gets the native width and height.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size TextBlockNativeSize
{
get
/// <summary>
/// Gets the formatted width and height.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size TextBlockFormattedSize
{
get
/// <summary>
/// EffectBase class for the TransitEffect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class EffectBase
{
/// <summary>
/// EffectEneded event will be triggered when be effect ended.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler EffectEnded;
internal abstract IntPtr CreateEffect(IntPtr transit);
/// <summary>
/// Focus Autoscroll Mode
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum FocusAutoScrollMode
{
/// <summary>
/// <summary>
/// The Elementary is a General Elementary,a VERY SIMPLE toolkit.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class Elementary
{
private static readonly string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj";
/// <summary>
/// Gets or sets the configured finger size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static int FingerSize
{
get
/// <summary>
/// Gets or sets the enable status of the focus highlight animation
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static bool IsFocusHighlightAnimation
{
get
/// Gets or sets the system mirrored mode.
/// This determines the default mirrored mode of widgets.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static bool IsMirrored
{
get
/// <summary>
/// Gets or sets the enable status of the focus highlight.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static bool CanFocusHighlight
{
get
/// <summary>
/// Gets or sets the base scale of the application.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double AppBaseScale
{
get
/// <summary>
/// Gets or sets the global scaling factor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double Scale
{
get
/// <summary>
/// Gets or sets the amount of inertia a scroller imposes during region bring animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double BringInScrollFriction
{
get
/// <summary>
/// Gets of sets focus auto scroll mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static FocusAutoScrollMode FocusAutoScrollMode
{
get
/// <summary>
/// Initializes Elementary.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void Initialize()
{
Interop.Elementary.elm_init(0, null);
/// <summary>
/// Shuts down Elementary.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void Shutdown()
{
Interop.Elementary.elm_shutdown();
/// <summary>
/// Runs Elementary's main loop.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void Run()
{
Interop.Elementary.elm_run();
/// <summary>
/// Prepends a theme overlay to the list of overlays
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void ThemeOverlay()
{
/// Prepends a theme overlay to the list of overlays
/// </summary>
/// <param name="filePath">The Edje file path to be used.</param>
+ /// <since_tizen> preview </since_tizen>
public static void AddThemeOverlay(string filePath)
{
Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, filePath);
/// Delete a theme overlay from the list of overlays
/// </summary>
/// <param name="filePath">The name of the theme overlay.</param>
+ /// <since_tizen> preview </since_tizen>
public static void DeleteThemeOverlay(string filePath)
{
Interop.Elementary.elm_theme_overlay_del(IntPtr.Zero, filePath);
/// <summary>
/// Free a theme
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void FreeTheme()
{
Interop.Elementary.elm_theme_free(IntPtr.Zero);
/// </summary>
/// <param name="theme">Theme search string</param>
/// <remarks>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"</remarks>
+ /// <since_tizen> preview </since_tizen>
public static void SetTheme(string theme)
{
Interop.Elementary.elm_theme_set(IntPtr.Zero, theme);
/// <summary>
/// Flush the current theme.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void FlushTheme()
{
Interop.Elementary.elm_theme_flush(IntPtr.Zero);
/// <summary>
/// This flushes all themes (default and specific ones).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void FlushAllThemes()
{
Interop.Elementary.elm_theme_full_flush();
/// Deletes a theme extension from the list of extensions.
/// </summary>
/// <param name="item">The name of the theme extension.</param>
+ /// <since_tizen> preview </since_tizen>
public static void DeleteThemeExtention(string item)
{
Interop.Elementary.elm_theme_extension_del(IntPtr.Zero, item);
/// <summary>
/// Gets the amount of inertia a scroller imposes during region bring animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetSystemScrollFriction()
{
/// <summary>
/// Sets the amount of inertia a scroller imposes during region bring animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetSystemScrollFriction(double timeSet)
/// <summary>
/// Get Elementary's profile in use
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static string GetProfile()
{
/// <summary>
/// Set the global scaling factor
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetScale(double scale)
{
/// <summary>
/// Get the global scaling factor
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static double GetScale()
{
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void FlushAllCashe()
{
Interop.Elementary.elm_cache_all_flush();
/// Changes the language of the current application.
/// </summary>
/// <param name="language">The language to set, must be the full name of the locale.</param>
+ /// <since_tizen> preview </since_tizen>
public static void SetLanguage(string language)
{
Interop.Elementary.elm_language_set(language);
/// <param name="policy">The policy identifier</param>
/// <param name="value">The policy value, which depends on the identifier</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public static bool SetPolicy(uint policy, int value)
{
return Interop.Elementary.elm_policy_set(policy, value);
/// <summary>
/// Reload Elementary's configuration, bounded to current selected profile.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void ReloadConfig()
{
/// <summary>
/// Flushes all config settings and then applies those settings to all applications using elementary on the current display.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void FlushAllConfig()
{
Interop.Elementary.elm_config_all_flush();
/// <summary>
/// The ElmScrollConfig is a scrollable views's config
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class ElmScrollConfig
{
/// <summary>
/// Gets or sets the amount of inertia a scroller imposes during region bring animations.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public static double BringInScrollFriction
{
/// <summary>
/// Enumeration for describing InputPanel layout type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum InputPanelLayout
{
/// <summary>
/// <summary>
/// Enumeration that defines the "Return" key types on the input panel (virtual keyboard).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum InputPanelReturnKeyType
{
/// <summary>
/// <summary>
/// Enumeration that defines the autocapitalization types.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum AutoCapital
{
/// <summary>
/// <summary>
/// Enumeration that defines the entry's copy and paste policy.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum CopyAndPasteMode
{
/// <summary>
/// <summary>
/// Enumeration that defines the text format types.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum TextFormat
{
/// <summary>
/// <summary>
/// Enumeration that defines the types of Input Hints.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum InputHints
{
/// <summary>
/// <summary>
/// Enumeration that defines the input panel (virtual keyboard) language modes.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum InputPanelLanguage
{
/// <summary>
/// <summary>
/// The entry is a convenience widget that shows a box in which the user can enter text.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Entry : Layout
{
SmartEvent _clicked;
/// Creates and initializes a new instance of the Entry class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Entry will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Entry(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, this.RealHandle, "clicked");
/// <summary>
/// Activated will be triggered when the entry in Activated stated.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Activated;
/// <summary>
/// Clicked will be triggered when the entry is clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
/// <summary>
/// ChangedByUser will be triggered when the entry changed by user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ChangedByUser;
/// <summary>
/// CursorChanged will be triggered when the Cursor in the entry is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler CursorChanged;
/// <summary>
/// Sets or gets the entry to the single line mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSingleLine
{
get
/// <summary>
/// Sets or gets the entry to the password mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsPassword
{
get
/// <summary>
/// Sets or gets whether the entry is editable.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEditable
{
get
/// <summary>
/// Sets or gets whether the entry is empty.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEmpty
{
get
/// <summary>
/// Sets or gets text currently shown in the object entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override string Text
{
get
/// Sets or gets the style on the top of the user style stack.
/// </summary>
/// <remarks>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').</remarks>
+ /// <since_tizen> preview </since_tizen>
public string TextStyle
{
get
/// <summary>
/// Sets or gets the current position of the cursor in the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int CursorPosition
{
get
/// <summary>
/// Sets or gets the scrollable state of the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Scrollable
{
get
/// <summary>
/// Sets or Gets the autocapitalization type on the immodule.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public AutoCapital AutoCapital
{
get
/// <summary>
/// Sets or Gets the entry object's 'autosave' status.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsAutoSave
{
get
/// <summary>
/// Sets or Gets entry text paste/drop mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public CopyAndPasteMode CopyAndPasteMode
{
get
/// <summary>
/// Gets the geometry of the cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Rect CursorGeometry
{
get
/// <summary>
/// Gets whether a format node exists at the current cursor position.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsCursorFormat
{
get
/// <summary>
/// Gets if the current cursor position holds a visible format node.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsCursorVisibelFormat
{
get
/// <summary>
/// Sets or Gets the value of input hint.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public InputHints InputHint
{
get
/// <summary>
/// Sets or gets the language mode of the input panel.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public InputPanelLanguage InputPanelLanguage
{
get
/// <summary>
/// Sets or gets the input panel layout variation of the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int InputPanelVariation
{
get
/// <summary>
/// Sets or gets the line wrap type to use on multi-line entries.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WrapType LineWrapType
{
get
/// <summary>
/// Sets or gets whether the entry should allow to use the text prediction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool PredictionAllowed
{
get
/// <summary>
/// Sets or gets whether the return key on the input panel should be disabled or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool InputPanelReturnKeyDisabled
{
get
/// 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.)
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool InputPanelShowByOnDemand
{
get
/// </summary>
/// <param name="file">The path to the file to load and save</param>
/// <param name="textFormat">The file format</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFile(string file, TextFormat textFormat)
{
Interop.Elementary.elm_entry_file_set(RealHandle, file, (Interop.Elementary.TextFormat)textFormat);
/// </summary>
/// <param name="markup">The string (in markup) to be converted</param>
/// <returns>The converted string (in UTF-8) </returns>
+ /// <since_tizen> preview </since_tizen>
public static string ConvertMarkupToUtf8(string markup)
{
return Interop.Elementary.elm_entry_markup_to_utf8(markup);
/// Moves the cursor by one position to the right within the entry.
/// </summary>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public bool MoveCursorNext()
{
return Interop.Elementary.elm_entry_cursor_next(RealHandle);
/// Moves the cursor one place to the left within the entry.
/// </summary>
/// <returns>TRUE on success, otherwise FALSE on failure</returns>
+ /// <since_tizen> preview </since_tizen>
public bool MoveCursorPrev()
{
return Interop.Elementary.elm_entry_cursor_prev(RealHandle);
/// Moves the cursor one line up within the entry.
/// </summary>
/// <returns>TRUE on success, otherwise FALSE on failure</returns>
+ /// <since_tizen> preview </since_tizen>
public bool MoveCursorUp()
{
return Interop.Elementary.elm_entry_cursor_up(RealHandle);
/// Moves the cursor one line down within the entry.
/// </summary>
/// <returns>TRUE on success, otherwise FALSE on failure</returns>
+ /// <since_tizen> preview </since_tizen>
public bool MoveCursorDown()
{
return Interop.Elementary.elm_entry_cursor_down(RealHandle);
/// <summary>
/// Moves the cursor to the beginning of the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MoveCursorBegin()
{
Interop.Elementary.elm_entry_cursor_begin_set(RealHandle);
/// <summary>
/// Moves the cursor to the end of the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MoveCursorEnd()
{
Interop.Elementary.elm_entry_cursor_end_set(RealHandle);
/// <summary>
/// Moves the cursor to the beginning of the current line.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MoveCursorLineBegin()
{
Interop.Elementary.elm_entry_cursor_line_begin_set(RealHandle);
/// <summary>
/// Moves the cursor to the end of the current line.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MoveCursorLineEnd()
{
Interop.Elementary.elm_entry_cursor_line_end_set(RealHandle);
/// Sets the input panel layout of the entry.
/// </summary>
/// <param name="layout">The layout type</param>
+ /// <since_tizen> preview </since_tizen>
public void SetInputPanelLayout(InputPanelLayout layout)
{
Interop.Elementary.elm_entry_input_panel_layout_set(RealHandle, (Interop.Elementary.InputPanelLayout)layout);
/// Sets the attribute to show the input panel automatically.
/// </summary>
/// <param name="enabled">If true the input panel appears when the entry is clicked or has focus, otherwise false</param>
+ /// <since_tizen> preview </since_tizen>
public void SetInputPanelEnabled(bool enabled)
{
Interop.Elementary.elm_entry_input_panel_enabled_set(RealHandle, enabled);
/// Sets the "return" key type. This type is used to set the string or icon on the "return" key of the input panel.
/// </summary>
/// <param name="keyType">The type of "return" key on the input panel</param>
+ /// <since_tizen> preview </since_tizen>
public void SetInputPanelReturnKeyType(InputPanelReturnKeyType keyType)
{
Interop.Elementary.elm_entry_input_panel_return_key_type_set(RealHandle, (Interop.Elementary.ReturnKeyType)keyType);
/// 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).
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void HideInputPanel()
{
Interop.Elementary.elm_entry_input_panel_hide(RealHandle);
/// <summary>
/// Selects all the text within the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void SelectAll()
{
Interop.Elementary.elm_entry_select_all(RealHandle);
/// <summary>
/// Drops any existing text selection within the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void SelectNone()
{
Interop.Elementary.elm_entry_select_none(RealHandle);
/// <summary>
/// Forces calculation of the entry size and text layouting.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ForceCalculation()
{
Interop.Elementary.elm_entry_calc_force(RealHandle);
/// Gets the string by the cursor at its current position.
/// </summary>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public string GetCursorContent()
{
return Interop.Elementary.elm_entry_cursor_content_get(RealHandle);
/// <summary>
/// Begins a selection within the entry as though the user were holding down the mouse button to make a selection.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void BeginCursorSelection()
{
Interop.Elementary.elm_entry_cursor_selection_begin(RealHandle);
/// Appends the text of the entry.
/// </summary>
/// <param name="text">The text to be displayed</param>
+ /// <since_tizen> preview </since_tizen>
public void AppendText(string text)
{
Interop.Elementary.elm_entry_entry_append(RealHandle, text);
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool VerticalBounce
{
get
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool HorizontalBounce
{
get
/// Inserts the given text into the entry at the current cursor position.
/// </summary>
/// <param name="text"></param>
+ /// <since_tizen> preview </since_tizen>
public void InsertTextToCursor(string text)
{
Interop.Elementary.elm_entry_entry_insert(RealHandle, text);
/// <summary>
/// Ends a selection within the entry as though the user had just released the mouse button while making a selection.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void EndCursorSelection()
{
Interop.Elementary.elm_entry_cursor_selection_end(RealHandle);
/// <summary>
/// Writes any changes made to the file that is set by File.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void SaveFile()
{
Interop.Elementary.elm_entry_file_save(RealHandle);
/// 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).
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void ShowInputPanel()
{
Interop.Elementary.elm_entry_input_panel_show(RealHandle);
/// This appends a custom item provider to the list for that entry.
/// </summary>
/// <param name="func">This function is used to provide items.</param>
+ /// <since_tizen> preview </since_tizen>
public void AppendItemProvider(Func<string, EvasObject> func)
{
if (func != null)
/// This prepends a custom item provider to the list for that entry.
/// </summary>
/// <param name="func">This function is used to provide items.</param>
+ /// <since_tizen> preview </since_tizen>
public void PrependItemProvider(Func<string, EvasObject> func)
{
if (!_itemsProvider.ContainsKey(func))
/// This removes a custom item provider to the list for that entry.
/// </summary>
/// <param name="func">This function is used to provide items.</param>
+ /// <since_tizen> preview </since_tizen>
public void RemoveItemProvider(Func<string, EvasObject> func)
{
if (_itemsProvider.ContainsKey(func))
/// Append a markup filter function for text inserted in the entry.
/// </summary>
/// <param name="filter">This function type is used by entry filters to modify text.</param>
+ /// <since_tizen> preview </since_tizen>
public void AppendMarkUpFilter(Func<Entry, string, string> filter)
{
if (!_textFilters.ContainsKey(filter))
/// Prepend a markup filter function for text inserted in the entry.
/// </summary>
/// <param name="filter">This function type is used by entry filters to modify text.</param>
+ /// <since_tizen> preview </since_tizen>
public void PrependMarkUpFilter(Func<Entry, string, string> filter)
{
if (!_textFilters.ContainsKey(filter))
/// Remove a markup filter
/// </summary>
/// <param name="filter">This function type is used by entry filters to modify text.</param>
+ /// <since_tizen> preview </since_tizen>
public void RemoveMarkUpFilter(Func<Entry, string, string> filter)
{
if (_textFilters.ContainsKey(filter))
/// <summary>
/// This executes a "copy" action on the selected text in the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void CopySelection()
{
Interop.Elementary.elm_entry_selection_copy(RealHandle);
/// <summary>
/// This executes a "cut" action on the selected text in the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void CutSelection()
{
Interop.Elementary.elm_entry_selection_cut(RealHandle);
/// <summary>
/// This executes a "paste" action in the entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PasteSelection()
{
Interop.Elementary.elm_entry_selection_paste(RealHandle);
/// This disabled the entry's selection.
/// </summary>
/// <param name="disable">If true, the selection are disabled.</param>
+ /// <since_tizen> preview </since_tizen>
public void DisableSelection(bool disable)
{
Interop.Elementary.elm_entry_selection_handler_disabled_set(RealHandle, disable);
/// Get any selected text within the entry.
/// </summary>
/// <returns>Selection's value</returns>
+ /// <since_tizen> preview </since_tizen>
public string GetSelection()
{
return Interop.Elementary.elm_entry_selection_get(RealHandle);
/// </summary>
/// <param name="start">The starting position.</param>
/// <param name="end">The end position.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetSelectionRegion(int start, int end)
{
Interop.Elementary.elm_entry_select_region_set(RealHandle, start, end);
/// Sets the visibility of the left-side widget of the entry
/// </summary>
/// <param name="isDisplay">true if the object should be displayed, false if not.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetIconVisible(bool isDisplay)
{
Interop.Elementary.elm_entry_icon_visible_set(RealHandle, isDisplay);
/// Set whether the return key on the input panel is disabled automatically when entry has no text.
/// </summary>
/// <param name="enable">If enabled is true, the return key is automatically disabled when the entry has no text.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetInputPanelReturnKeyAutoEnable(bool enable)
{
Interop.Elementary.elm_entry_input_panel_return_key_autoenabled_set(RealHandle, enable);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_entry_add(parent.Handle);
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EvasCanvas
{
IntPtr _handle = IntPtr.Zero;
/// Gets the current known default pointer coordinates.
/// This function returns the current known canvas unit coordinates of the mouse pointer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point Pointer
{
get
/// Gets or sets the image cache.
/// This function returns the image cache size of canvas in bytes.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ImageCacheSize
{
get
/// <summary>
/// Flush the image cache of the canvas.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void FlushImageCache()
{
Interop.Evas.evas_image_cache_flush(_handle);
/// <param name="y">The rectangle's top left corner's vertical coordinate.</param>
/// <param name="width">The rectangle's width.</param>
/// <param name="height">The rectangle's height.</param>
+ /// <since_tizen> preview </since_tizen>
public void AddDamageRectangle(int x, int y, int width, int height)
{
Interop.Evas.evas_damage_rectangle_add(_handle, x, y, width, height);
/// <param name="y">The rectangle's top left corner's vertical coordinate.</param>
/// <param name="width">The rectangle's width.</param>
/// <param name="height">The rectangle's height.</param>
+ /// <since_tizen> preview </since_tizen>
public void AddObscuredRectangle(int x, int y, int width, int height)
{
Interop.Evas.evas_obscured_rectangle_add(_handle, x, y, width, height);
/// <summary>
/// Remove all "obscured regions" from an Evas canvas.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ClearObscuredRectangle()
{
Interop.Evas.evas_obscured_clear(_handle);
/// </summary>
/// <param name="type">The type of event that triggers</param>
/// <param name="action">The action to be called when the event is triggered</param>
+ /// <since_tizen> preview </since_tizen>
public void AddEventAction(EvasObjectCallbackType type, Action action)
{
if (action != null)
/// </summary>
/// <param name="type">The type of event that triggers</param>
/// <param name="action">The action to be called when the event is triggered</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteEventAction(EvasObjectCallbackType type, Action action)
{
if (action != null)
/// <summary>
/// This group provides functions for image objects.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EvasImage : EvasObject
{
EvasObject _source = null;
/// Creates and initializes a new instance of EvasImage class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by EvasImage as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public EvasImage(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Sets or gets the source file from where an image object must fetch the real image data
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string File
{
get
/// <summary>
/// Sets or gets the source object to be visible.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSourceVisible
{
get
/// <summary>
/// Sets or gets whether an object is clipped by source object's clipper.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSourceClipped
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ImageBorderFillMode BorderCenterFillMode
{
get
/// <summary>
/// Sets or gets whether the image object's fill property should track the object's size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsFilled
{
get
/// <summary>
/// Sets or gets the scaling factor (multiplier) for the borders of an image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BorderScale
{
get
/// <summary>
/// Sets or gets the size of the given image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size Size
{
get
/// <summary>
/// Gets the row stride of the given image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Stride
{
get
/// <summary>
/// Sets or gets whether alpha channel data is being used on the given image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsOpaque
{
get
/// <summary>
/// Sets or gets whether to use high-quality image scaling algorithm on the given image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSmoothScaled
{
get
/// Sets how to fill an image object's drawing rectangle given the (real) image bound to it.
/// </summary>
/// <param name="geometry"></param>
+ /// <since_tizen> preview </since_tizen>
public void SetFill(Rect geometry)
{
Interop.Evas.evas_object_image_fill_set(RealHandle, geometry.X, geometry.Y, geometry.Width, geometry.Height);
/// </summary>
/// <param name="file">The image file path</param>
/// <param name="key">The image key in file (if its an Eet one), otherwise set null</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFile(string file, string key)
{
Interop.Evas.evas_object_image_file_set(RealHandle, file, key);
/// Sets the data for an image from memory to be loaded.
/// </summary>
/// <param name="stream">memory stream</param>
+ /// <since_tizen> preview </since_tizen>
public void SetStream(Stream stream)
{
if (stream == null)
/// </summary>
/// <param name="source">The proxy (image) object</param>
/// <returns>true if the source object is set successfully, ortherwise false on error</returns>
+ /// <since_tizen> preview </since_tizen>
public bool SetSource(EvasObject source)
{
bool result = false;
/// Set the native surface of a given image of the canvas
/// </summary>
/// <param name="surface">The surface.</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetNativeSurface(IntPtr surface)
{
/// <param name="right">The border's right width</param>
/// <param name="top">The border's top width</param>
/// <param name="bottom">The border's bottom width</param>
+ /// <since_tizen> preview </since_tizen>
public void SetBorder(int left, int right, int top, int bottom)
{
Interop.Evas.evas_object_image_border_set(RealHandle, left, right, top, bottom);
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Image as a child. It's <see cref="EvasObject"/> type.</param>
/// <returns>The new object, otherwise null if it cannot be created</returns>
+ /// <since_tizen> preview </since_tizen>
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));
/// <summary>
/// The EvasKeyEventArgs is an EvasKey EventArgs
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EvasKeyEventArgs : EventArgs
{
IntPtr _nativeEventInfo;
/// <summary>
/// BackButton name in Platform
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public const string PlatformBackButtonName = "XF86Back";
/// <summary>
/// MenuButton name in Platform
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public const string PlatformMenuButtonName = "XF86Menu";
/// <summary>
/// HomeButton name in Platform
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public const string PlatformHomeButtonName = "XF86Home";
/// <summary>
/// Gets the name of Key
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string KeyName { get; private set; }
/// <summary>
/// Sets or gets the flags.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasEventFlag Flags
{
get
/// <param name="obj"> object </param>
/// <param name="info">information </param>
/// <returns>EvasKey eventArgs</returns>
+ /// <since_tizen> preview </since_tizen>
static public EvasKeyEventArgs Create(IntPtr data, IntPtr obj, IntPtr info)
{
return new EvasKeyEventArgs(info);
/// <summary>
/// Flags for Events
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum EvasEventFlag
{
/// <summary>
/// The EvasMap is an opaque handle to map points.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EvasMap
{
IntPtr _evasMap;
/// Creates and initializes a new instance of the EvasMap class.
/// </summary>
/// <param name="count">The number of points in the map</param>
+ /// <since_tizen> preview </since_tizen>
public EvasMap(int count)
{
_evasMap = Interop.Evas.evas_map_new(count);
/// <summary>
/// Gets or sets the flag of the object move synchronization for map rendering.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsMoveSync
{
get
/// Populates source and destination map points to exactly match the object.
/// </summary>
/// <param name="obj">The object to use unmapped geometry to populate map coordinates</param>
+ /// <since_tizen> preview </since_tizen>
public void PopulatePoints(EvasObject obj)
{
Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, 0);
/// <param name="z">
/// The point Z coordinate hint (pre-perspective transform)This value is used for all four points.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public void PopulatePoints(EvasObject obj, int z)
{
Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, z);
/// </summary>
/// <param name="geometry">The geometry value contains X coordinate,Y coordinate,the width and height to use to calculate second and third points</param>
/// <param name="z">The Z coordinate hint (pre-perspective transform) This value is used for all four points.</param>
+ /// <since_tizen> preview </since_tizen>
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);
/// <param name="degrees">The abount of degrees from 0.0 to 360.0 to rotate</param>
/// <param name="cx">rotation's center horizontal position.</param>
/// <param name="cy">rotation's center vertical position.</param>
+ /// <since_tizen> preview </since_tizen>
public void Rotate(double degrees, int cx, int cy)
{
Interop.Evas.evas_map_util_rotate(_evasMap, degrees, cx, cy);
/// <param name="cx">The rotation's center horizontal position</param>
/// <param name="cy">The rotation's center vertical position</param>
/// <param name="cz">The rotation's center depth position</param>
+ /// <since_tizen> preview </since_tizen>
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);
/// </summary>
/// <param name="idx">The index of point to change ,this must be smaller than map size.</param>
/// <param name="point">3D Point coordinate</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPointCoordinate(int idx, Point3D point)
{
Interop.Evas.evas_map_point_coord_set(_evasMap, idx, point.X, point.Y, point.Z);
/// </summary>
/// <param name="idx">The index of point to change ,this must be smaller than map size.</param>
/// <returns>The coordinates of the given point in the map.</returns>
+ /// <since_tizen> preview </since_tizen>
public Point3D GetPointCoordinate(int idx)
{
Point3D point;
/// <param name="y">The vertical zoom to use</param>
/// <param name="cx">The zooming center horizontal position</param>
/// <param name="cy">The zooming center vertical position</param>
+ /// <since_tizen> preview </since_tizen>
public void Zoom(double x, double y, int cx, int cy)
{
Interop.Evas.evas_map_util_zoom(_evasMap, x, y, cx, cy);
/// <summary>
/// Enumeration for tooltip orientation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum TooltipOrientation
{
/// <summary>
/// <summary>
/// Enumeration for aspect control.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum AspectControl
{
/// <summary>
/// <summary>
/// The EcasObject is a base class for other widget class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class EvasObject
{
private IntPtr _realHandle = IntPtr.Zero;
/// <summary>
/// Sets or gets the handle for EvasObject.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr Handle { get; protected set; }
/// <summary>
/// Gets the parent object for EvasObject.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject Parent { get; private set; }
/// <summary>
/// Sets or gets the real handle for EvasObject.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr RealHandle
{
get
/// Creates and initializes a new instance of the EvasObject class with parent EvasObject class parameter.
/// </summary>
/// <param name="parent">Parent EvasObject class </param>
+ /// <since_tizen> preview </since_tizen>
protected EvasObject(EvasObject parent) : this()
{
Debug.Assert(parent == null || parent.IsRealized);
/// <summary>
/// Creates and initializes a new instance of the EvasObject class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected EvasObject()
{
_backButtonHandler = new Interop.Eext.EextEventCallback((d, o, i) => { _backButtonPressed?.Invoke(this, EventArgs.Empty); });
/// <summary>
/// Deleted will be triggered when widght is deleted
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Deleted;
/// <summary>
/// KeyUp will be triggered when key is loose
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<EvasKeyEventArgs> KeyUp;
/// <summary>
/// KeyDown will be triggered when key is preesd down
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<EvasKeyEventArgs> KeyDown;
/// <summary>
/// BackButtonPressed will be triggered when Back button is pressed
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler BackButtonPressed
{
add
/// <summary>
/// MoreButtonPressed will be triggered when More button is pressed
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler MoreButtonPressed
{
add
/// <summary>
/// Moved will be triggered when widght is moved
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Moved
{
add { _moved.On += value; }
/// <summary>
/// Current widget's size Resized Event Handler
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Resized
{
add { _resized.On += value; }
/// <summary>
/// Current widget RenderPost Event Handler
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler RenderPost
{
add
/// Called back when a widget's tooltip is activated and needs content.
/// </summary>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public delegate EvasObject GetTooltipContentDelegate();
/// <summary>
/// Get widget's status of Realized or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsRealized { get { return Handle != IntPtr.Zero; } }
/// <summary>
/// Gets EvasCanvas
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasCanvas EvasCanvas
{
get
/// <summary>
/// Gets the current class's Name.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string ClassName
{
get
/// <summary>
/// Sets or gets the horizontal pointer hints for an object's weight.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double WeightX
{
get
/// <summary>
/// Sets or gets the vertical pointer hints for an object's weight.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double WeightY
{
get
/// <summary>
/// Sets or gets the horizontal alignment hint of an object's alignment.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual double AlignmentX
{
get
/// <summary>
/// Sets or gets the vertical alignment hint of an object's alignment.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual double AlignmentY
{
get
/// <summary>
/// Sets or gets the Width hints for an object's minimum size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MinimumWidth
{
get
/// <summary>
/// Sets or gets the Height hints for an object's minimum size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MinimumHeight
{
get
/// <summary>
/// Gets the visible state of the given Evas object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsVisible
{
get
/// <summary>
/// Sets or gets the position and (rectangular) size of the given Evas object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Rect Geometry
{
get
/// <summary>
/// Sets or gets the general or main color of the given Evas object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual Color Color
{
get
/// <summary>
/// Sets or gets the map enabled state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsMapEnabled
{
get
/// <summary>
/// Sets or gets current object transformation map.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasMap EvasMap
{
get
/// <summary>
/// Sets or gets whether an object is to repeat events.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool RepeatEvents
{
get
/// <summary>
/// Sets or gets whether events on a smart object's member should get propagated up to its parent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool PropagateEvents
{
get
/// <summary>
/// Sets or gets whether an object is set to pass (ignore) events.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool PassEvents
{
get
/// <summary>
/// Sets or Gets style for this object tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string TooltipStyle
{
get
/// <summary>
/// Sets or gets the orientation of Tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public TooltipOrientation TooltipOrientation
{
get
/// <summary>
/// Sets or gets size restriction state of an object's tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool TooltipWindowMode
{
get
/// <summary>
/// Sets the content to be shown in the tooltip object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GetTooltipContentDelegate TooltipContentDelegate
{
get
/// Gets the movement freeze by 1
/// This gets the movement freeze count by one.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int TooltipMoveFreezeCount
{
get
/// <summary>
/// Sets or gets whether an Evas object is to freeze (discard) events.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AllEventsFrozen
{
get
/// <summary>
/// Sets or gets the layer of its canvas that the given object will be part of.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual int Layer
{
get
/// Clips one object to another.
/// </summary>
/// <param name="clip">The object to clip object by</param>
+ /// <since_tizen> preview </since_tizen>
public void SetClip(EvasObject clip)
{
Interop.Evas.evas_object_clip_set(Handle, clip);
/// </summary>
/// <param name="x">The horizontal alignment hint as double value ranging from 0.0 to 1.0,The default alignment hint value is 0.5 </param>
/// <param name="y">The vertical alignment hint as double value ranging from 0.0 to 1.0,The default alignment hint value is 0.5 </param>
+ /// <since_tizen> preview </since_tizen>
public void SetAlignment(double x, double y)
{
Interop.Evas.evas_object_size_hint_align_set(Handle, x, y);
/// </summary>
/// <param name="x">The non-negative double value to use as horizontal weight hint</param>
/// <param name="y">The non-negative double value to use as vertical weight hint</param>
+ /// <since_tizen> preview </since_tizen>
public void SetWeight(double x, double y)
{
Interop.Evas.evas_object_size_hint_weight_set(Handle, x, y);
/// Sets the text for an object's tooltip.
/// </summary>
/// <param name="text">The text value to display inside the tooltip</param>
+ /// <since_tizen> preview </since_tizen>
public void SetTooltipText(string text)
{
Interop.Elementary.elm_object_tooltip_text_set(RealHandle, text);
/// <summary>
/// Unsets an object's tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void UnsetTooltip()
{
Interop.Elementary.elm_object_tooltip_unset(RealHandle);
/// This increments the tooltip movement freeze count by one.
/// If the count is more than 0, the tooltip position will be fixed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PushTooltipMoveFreeze()
{
Interop.Elementary.elm_object_tooltip_move_freeze_push(RealHandle);
/// <summary>
/// This decrements the tooltip freeze count by one.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PopTooltipMoveFreeze()
{
Interop.Elementary.elm_object_tooltip_move_freeze_pop(RealHandle);
/// <summary>
/// Force hide tooltip of object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void HideTooltip()
{
Interop.Elementary.elm_object_tooltip_hide(RealHandle);
/// <summary>
/// Force show tooltip of object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ShowTooltip()
{
Interop.Elementary.elm_object_tooltip_show(RealHandle);
/// <summary>
/// Makes the current object visible.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Show()
{
Interop.Evas.evas_object_show(Handle);
/// <summary>
/// Makes the current object invisible.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Hide()
{
Interop.Evas.evas_object_hide(Handle);
/// </summary>
/// <param name="w">The new width</param>
/// <param name="h">The new height</param>
+ /// <since_tizen> preview </since_tizen>
public void Resize(int w, int h)
{
Interop.Evas.evas_object_resize(Handle, w, h);
/// </summary>
/// <param name="x">The X position to move the object to.</param>
/// <param name="y">The Y position to move the object to.</param>
+ /// <since_tizen> preview </since_tizen>
public void Move(int x, int y)
{
Interop.Evas.evas_object_move(Handle, x, y);
/// <summary>
/// Lowers obj to the bottom of its layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Lower()
{
Interop.Evas.evas_object_lower(Handle);
/// Define IntPtr operator
/// </summary>
/// <param name="obj">Parent object</param>
+ /// <since_tizen> preview </since_tizen>
public static implicit operator IntPtr(EvasObject obj)
{
if (obj == null)
/// <param name="keyname">The key to request events for</param>
/// <param name="exclusive">Set TRUE to request that the obj is the only object receiving the keyname events,otherwise set FALSE</param>
/// <returns>If the call succeeded is true,otherwise is false</returns>
+ /// <since_tizen> preview </since_tizen>
public bool KeyGrab(string keyname, bool exclusive)
{
return Interop.Evas.evas_object_key_grab(Handle, keyname, 0, 0, exclusive);
/// Removes the grab on keyname key events.
/// </summary>
/// <param name="keyname">The key the grab is set for</param>
+ /// <since_tizen> preview </since_tizen>
public void KeyUngrab(string keyname)
{
Interop.Evas.evas_object_key_ungrab(Handle, keyname, 0, 0);
/// <summary>
/// Mark smart object as changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MarkChanged()
{
Interop.Evas.evas_object_smart_changed(RealHandle);
/// Call the calculate smart function immediately.
/// This will force immediate calculations needed for renderization of this object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Calculate()
{
Interop.Evas.evas_object_smart_calculate(RealHandle);
/// <param name="aspect">The policy or type of aspect ratio to apply to object</param>
/// <param name="w">The integer to use as aspect width ratio term</param>
/// <param name="h">The integer to use as aspect height ratio term</param>
+ /// <since_tizen> preview </since_tizen>
public void SetSizeHintAspect(AspectControl aspect, int w, int h)
{
Interop.Evas.evas_object_size_hint_aspect_set(Handle, (int)aspect, w, h);
/// <param name="aspect">The policy or type of aspect ratio to apply to object</param>
/// <param name="w">The integer to use as aspect width ratio term</param>
/// <param name="h">The integer to use as aspect height ratio term</param>
+ /// <since_tizen> preview </since_tizen>
public void GetSizeHintAspect(out AspectControl aspect, out int w, out int h)
{
int aspectRatio;
/// Stack immediately below anchor.
/// </summary>
/// <param name="anchor">The object below which to stack.</param>
+ /// <since_tizen> preview </since_tizen>
public void StackBelow(EvasObject anchor)
{
Interop.Evas.evas_object_stack_below(Handle, anchor);
/// Stack immediately above anchor.
/// </summary>
/// <param name="anchor">The object above which to stack.</param>
+ /// <since_tizen> preview </since_tizen>
public void StackAbove(EvasObject anchor)
{
Interop.Evas.evas_object_stack_above(Handle, anchor);
/// <summary>
/// Raise to the top of its layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void RaiseTop()
{
Interop.Evas.evas_object_raise(Handle);
/// <param name="w">w coord of the line.</param>
/// <param name="h">h coord of the line.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
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);
/// <summary>
/// The callback of Invalidate Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected virtual void OnInvalidate()
{
}
/// <summary>
/// The callback of Instantiated Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected virtual void OnInstantiated()
{
}
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected virtual void OnRealized()
{
}
/// <summary>
/// The callback of Unrealize Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected virtual void OnUnrealize()
{
}
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected abstract IntPtr CreateHandle(EvasObject parent);
/// <summary>
/// For this object bind Parent object.Init handle and all kinds of EvasObjectEvent.
/// </summary>
/// <param name="parent">Parent object</param>
+ /// <since_tizen> preview </since_tizen>
public void Realize(EvasObject parent)
{
if (!IsRealized)
/// <summary>
/// Removes current object relationship with others.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Unrealize()
{
if (IsRealized)
/// IInvalidatable is a interface which can be overrided by its children class.
/// Inherits IDisposable
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface IInvalidatable : IDisposable
{
/// <summary>
/// Make current instance invalidate
/// </summary>
+ /// <since_tizen> preview </since_tizen>
void MakeInvalidate();
}
/// <summary>
/// Enumeration for EvasObjectCallbackType
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum EvasObjectCallbackType
{
/// <summary>
/// Event class for EvasObject
/// </summary>
/// <typeparam name="TEventArgs">Kinds of EventArgs</typeparam>
+ /// <since_tizen> preview </since_tizen>
public class EvasObjectEvent<TEventArgs> : IInvalidatable where TEventArgs : EventArgs
{
/// <summary>
/// <param name="obj">obj</param>
/// <param name="info">info</param>
/// <returns> delegate handle</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate TEventArgs SmartEventInfoParser(IntPtr data, IntPtr obj, IntPtr info);
private bool _disposed = false;
/// <param name="sender">EvasObject class belong to</param>
/// <param name="type">EvasObjectCallbackType</param>
/// <param name="parser">SmartEventInfoParser</param>
+ /// <since_tizen> preview </since_tizen>
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type, SmartEventInfoParser parser) : this(sender, sender.Handle, type, parser)
{
}
/// <param name="handle">EvasObject handle</param>
/// <param name="type">EvasObjectCallbackType</param>
/// <param name="parser">SmartEventInfoParser</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type, SmartEventInfoParser parser)
{
/// </summary>
/// <param name="sender">EvasObject class belong with</param>
/// <param name="type">SmartEventInfoParser</param>
+ /// <since_tizen> preview </since_tizen>
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, type, null)
{
}
/// <summary>
/// On Event Handler of EvasObjectEvent
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<TEventArgs> On
{
add
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Make current instance invalidate
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MakeInvalidate()
{
_sender = null;
/// <summary>
/// Event class for EvasObject
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class EvasObjectEvent : IInvalidatable
{
private EvasObjectEvent<EventArgs> _evasObjectEvent;
/// </summary>
/// <param name="sender">EvasObject class belong to</param>
/// <param name="type">EvasObjectCallbackType</param>
+ /// <since_tizen> preview </since_tizen>
public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, sender.Handle, type)
{
}
/// <param name="sender">EvasObject class belong to</param>
/// <param name="handle">EvasObject handle</param>
/// <param name="type">EvasObjectCallbackType</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type)
{
/// <summary>
/// On Event Handler of EvasObjectEvent
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler On
{
add
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (!_disposed)
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Make current instance invalidate
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MakeInvalidate()
{
_evasObjectEvent.MakeInvalidate();
/// <summary>
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FlipSelector : Layout
{
SmartEvent _selected;
/// Creates and initializes a new instance of the FlipSelector.
/// </summary>
/// <param name="parent">Parent EvasObject </param>
+ /// <since_tizen> preview </since_tizen>
public FlipSelector(EvasObject parent) : base(parent)
{
_selected = new SmartEvent(this, Handle, "selected");
/// <summary>
/// Selected will be triggered when be Selected
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Selected;
/// <summary>
/// Overflowed will be triggered when Overflowed
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Overflowed;
/// <summary>
/// Underflowed will be triggered when be Underflowed
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Underflowed;
/// <summary>
/// Sets or gets the interval on time updates for an user mouse button hold on a flip selector widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Interval
{
get
/// <summary>
/// Gets the currently selected item in a flip selector widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem SelectedItem
{
get
/// <summary>
/// Gets the first item in the given flip selector widget's list of items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem FirstItem
{
get
/// <summary>
/// Gets the last item in the given flip selector widget's list of items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem LastItem
{
get
/// <remarks>
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem Append(string text)
{
FlipSelectorItem item = new FlipSelectorItem(text);
/// <remarks>
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem Prepend(string text)
{
FlipSelectorItem item = new FlipSelectorItem(text);
/// To remove the given item.
/// </summary>
/// <param name="item">FlipSelector's item</param>
+ /// <since_tizen> preview </since_tizen>
public void Remove(FlipSelectorItem item)
{
if (item as FlipSelectorItem != null)
/// <remarks>
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void Next()
{
Interop.Elementary.elm_flipselector_flip_next(Handle);
/// <summary>
/// Programmatically select the previous item of a flip selector widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Prev()
{
Interop.Elementary.elm_flipselector_flip_prev(Handle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_flipselector_add(parent.Handle);
/// <summary>
/// Iterm class of FlipSelector
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FlipSelectorItem : ItemObject
{
/// <summary>
/// Sets or gets the Text of FlipSelectorItem
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text { get; private set; }
/// <summary>
/// Selected will be triggered when Selected
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Selected;
/// <summary>
/// Creates and initializes a new instance of the FlipSelectorItem.
/// </summary>
/// <param name="text">FlipSelectorItem's text</param>
+ /// <since_tizen> preview </since_tizen>
public FlipSelectorItem(string text) : base(IntPtr.Zero)
{
Text = text;
/// <summary>
/// The FloatingButton is a widget that to add floating area for buttons.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FloatingButton : Layout
{
/// <summary>
/// Creates and initializes a new instance of the FloatingButton class.
/// </summary>
/// <param name="parent">Created on this parent container..</param>
+ /// <since_tizen> preview </since_tizen>
public FloatingButton(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Sets or gets floatingbutton mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FloatingButtonMode Mode
{
get
/// <summary>
/// Gets floatingbutton Position.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FloatingButtonPosition Position
{
get
/// <summary>
/// Sets or gets movability for a given floatingbutton widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool MovementBlock
{
get
/// <summary>
/// Get Opacity's value of the given FloatingButton.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Opacity
{
get
/// </summary>
/// <param name="position">Button position</param>
/// <param name="animated">Animat flag</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPosition(FloatingButtonPosition position, bool animated)
{
if (animated)
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Eext.eext_floatingbutton_add(parent.Handle);
/// <summary>
/// Enumeration for FloatingButtonMode
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum FloatingButtonMode
{
/// <summary>
/// <summary>
/// Enumeration for FloatingButtonPosition
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum FloatingButtonPosition
{
/// <summary>
/// It contains Item which is <see cref="GenGridItem"/> type.
/// All events of GenGrid contain GenGridItemEventArgs as a parameter.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenGridItemEventArgs : EventArgs
{
/// <summary>
/// Gets or sets GenGrid item.The return type is <see cref="GenGridItem"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem Item { get; set; }
internal static GenGridItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// It has two direction in which a given GenGrid widget expands while placing its items, horizontal and vertical.
/// The GenGrid items are represented through <see cref="GenItemClass"/> definition field details.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenGrid : Layout
{
HashSet<GenGridItem> _children = new HashSet<GenGridItem>();
/// Creates and initializes a new instance of the GenGrid class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by GenGrid as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public GenGrid(EvasObject parent) : base(parent)
{
InitializeSmartEvent();
/// <summary>
/// ItemSelected is raised when a new gengrid item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemSelected;
/// <summary>
/// ItemUnselected is raised when the gengrid item is Unselected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemUnselected;
/// <summary>
/// ItemPressed is raised when a new gengrid item is pressed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemPressed;
/// <summary>
/// ItemReleased is raised when a new gengrid item is released.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemReleased;
/// <summary>
/// ItemActivated is raised when a new gengrid item is double clicked or pressed (enter|return|spacebar).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemActivated;
/// <summary>
/// ItemDoubleClicked is raised when a new gengrid item is double clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemDoubleClicked;
/// <summary>
/// ItemRealized is raised when a gengrid item is implementing through <see cref="GenItemClass"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemRealized;
/// <summary>
/// ItemUnrealized is raised when the gengrid item is deleted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemUnrealized;
/// <summary>
/// ItemLongPressed is raised when a gengrid item is pressed for a certain amount of time. By default it's 1 second.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenGridItemEventArgs> ItemLongPressed;
/// <summary>
/// Changed is raised when an item is added, removed, resized or moved and when the gengrid is resized or gets "horizontal" property changes.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Changed;
/// <summary>
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double ItemAlignmentX
{
get
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double ItemAlignmentY
{
get
/// Gets or sets the manner in which the items grid is filled within a given gengrid widget.
/// It is filled if true, otherwise false.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FillItems
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool MultipleSelection
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public int ItemWidth
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public int ItemHeight
{
get
/// <summary>
/// Gets or sets the gengrid select mode by <see cref="GenItemSelectionMode"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenItemSelectionMode SelectionMode
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <summary>
/// Gets or sets whether the gengrid items should be highlighted when an item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHighlight
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
/// <summary>
/// Gets the first item in a given gengrid widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem FirstItem
{
get
/// <summary>
/// Gets the last item in a given gengrid widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem LastItem
{
get
/// <summary>
/// Gets the items count in a given gengrid widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public uint ItemCount
{
get
/// <summary>
/// Gets the selected item in a given gengrid widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem SelectedItem
{
get
/// <summary>
/// Gets or sets whether a given gengrid widget is or not able have items reordered.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ReorderMode
{
get
/// <returns>Return a gengrid item that contains data and itemClass.</returns>
/// <seealso cref="GenItemClass"/>
/// <seealso cref="GenGridItem"/>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem Append(GenItemClass itemClass, object data)
{
GenGridItem item = new GenGridItem(data, itemClass);
/// <returns>Return a gengrid item that contains data and itemClass.</returns>
/// <seealso cref="GenItemClass"/>
/// <seealso cref="GenGridItem"/>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem Prepend(GenItemClass itemClass, object data)
{
GenGridItem item = new GenGridItem(data, itemClass);
/// <returns>Return a gengrid item that contains data and itemClass./></returns>
/// <seealso cref="GenItemClass"/>
/// <seealso cref="GenGridItem"/>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem InsertBefore(GenItemClass itemClass, object data, GenGridItem before)
{
GenGridItem item = new GenGridItem(data, itemClass);
/// <returns>Return a gengrid item that contains data and itemClass.</returns>
/// <seealso cref="GenItemClass"/>
/// <seealso cref="GenGridItem"/>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem InsertAfter(GenItemClass itemClass, object data, GenGridItem after)
{
GenGridItem item = new GenGridItem(data, itemClass);
/// <param name="data">The item data.</param>
/// <param name="comparison">User defined comparison function that defines the sort order based on gengrid item and its data.</param>
/// <returns>Return a gengrid item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem InsertSorted(GenItemClass itemClass, object data, Comparison<object> comparison)
{
GenGridItem item = new GenGridItem(data, itemClass);
/// If animated is false, the gengrid shows item by jumping if it's not fully visible.
/// </remarks>
/// <seealso cref="ScrollToPosition"/>
+ /// <since_tizen> preview </since_tizen>
public void ScrollTo(GenGridItem item, ScrollToPosition position, bool animated)
{
if (animated)
/// <remarks>
/// <see cref="GenItem.Update()"/> to update just one item.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void UpdateRealizedItems()
{
Interop.Elementary.elm_gengrid_realized_items_update(RealHandle);
/// <remarks>
/// <see cref="ItemObject.Delete()"/> to delete just one item.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_gengrid_clear(RealHandle);
/// -1, 0 or 1, depending if the coordinate is on the upper portion of that item (-1), on the middle section (0) or on the lower part (1).
/// </param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public GenGridItem GetItemByPosition(int x, int y, out int portionX, out int portionY)
{
IntPtr handle = Interop.Elementary.elm_gengrid_at_xy_item_get(RealHandle, x, y, out portionX, out portionY);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// A instance to the gengrid item added.
/// It contains Update() method to update a gengrid item which is given.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenGridItem : GenItem
{
internal GenGridItem(object data, GenItemClass itemClass) : base(data, itemClass)
/// If true, it is selected.
/// If false, it is unselected.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public override bool IsSelected
{
get
/// <summary>
/// Sets or gets the cursor to be shown when mouse is over the gengrid item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string Cursor
{
/// <summary>
/// Sets or gets the style for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string CursorStyle
{
/// <summary>
/// Sets or gets the cursor engine only usage for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool IsUseEngineCursor
{
/// <summary>
/// Sets or gets or sets the style of given gengrid item's tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override string TooltipStyle
{
get
/// <summary>
/// Get the gengrid item's select mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override GenItemSelectionMode SelectionMode
{
get
/// <summary>
/// Gets or sets gengrid item's row position, relative to the whole gengrid's grid area.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Row
{
get
/// <summary>
/// Gets or sets gengrid item's column position, relative to the whole gengrid's grid area.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Column
{
get
/// Set the text to be shown in the gengrid item.
/// </summary>
/// <param name="tooltip">The text to set.</param>
+ /// <since_tizen> preview </since_tizen>
public override void SetTooltipText(string tooltip)
{
Interop.Elementary.elm_gengrid_item_tooltip_text_set(Handle, tooltip);
/// <summary>
/// Unset tooltip from item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override void UnsetTooltip()
{
Interop.Elementary.elm_gengrid_item_tooltip_unset(Handle);
/// <remarks>
/// <see cref="GenGrid.UpdateRealizedItems"/> to update the contents of all the realized items.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public override void Update()
{
Interop.Elementary.elm_gengrid_item_update(Handle);
/// <summary>
/// Set the content to be shown in the tooltip item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void UpdateTooltipDelegate()
{
Interop.Elementary.elm_gengrid_item_tooltip_content_cb_set(Handle,
/// <summary>
/// Enumeration for select mode of GenItem.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum GenItemSelectionMode
{
/// <summary>
/// A base class for <see cref="GenGridItem"/> and <see cref="GenListItem"/>.
/// It contains genitem class and data to display data.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class GenItem : ItemObject
{
internal Interop.Elementary.Elm_Tooltip_Item_Content_Cb _tooltipCb;
/// <summary>
/// The delegate returning the tooltip contents.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public delegate EvasObject GetTooltipContentDelegate();
internal GenItem(object data, GenItemClass itemClass) : base(IntPtr.Zero)
/// <summary>
/// Gets the item class that defines how to display data. It returns <see cref="GenItemClass"/> type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenItemClass ItemClass { get; protected set; }
/// <summary>
/// Sets or gets tooltip content delegate.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GetTooltipContentDelegate TooltipContentDelegate
{
get
/// <summary>
/// It's a abstract property.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract GenItemSelectionMode SelectionMode { get; set; }
/// <summary>
/// Sets or gets the cursor to be shown when mouse is over the gengrid item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract string Cursor { get; set; }
/// <summary>
/// Sets or gets the style for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract string CursorStyle { get; set; }
/// <summary>
/// Sets or gets the cursor engine only usage for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract bool IsUseEngineCursor { get; set; }
/// <summary>
/// Gets item data that is added through calling <see cref="GenGrid.Append(GenItemClass, object)"/>, <see cref="GenGrid.Prepend(GenItemClass, object)"/> or <see cref="GenGrid.InsertBefore(GenItemClass, object, GenGridItem)"/> methods.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public object Data { get; protected set; }
/// <summary>
/// It's a abstract property. It's implemented by <see cref="GenGridItem.IsSelected"/> and <see cref="GenListItem.IsSelected"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract bool IsSelected { get; set; }
/// <summary>
/// It's a abstract property. It's implemented by <see cref="GenGridItem.TooltipStyle"/> and <see cref="GenListItem.TooltipStyle"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract string TooltipStyle { get; set; }
/// <summary>
/// Set tooltip text.
/// </summary>
/// <param name="tooltip">The text to set.</param>
+ /// <since_tizen> preview </since_tizen>
public abstract void SetTooltipText(string tooltip);
/// <summary>
/// Unset tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract void UnsetTooltip();
/// <summary>
/// It's a abstract method. It's implemented by <see cref="GenGridItem.Update"/> and <see cref="GenListItem.Update"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract void Update();
/// <summary>
/// The override method for delete item class and item data. It's called when the item is deleting.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnInvalidate()
{
ItemClass?.SendItemDeleted(Data);
/// <summary>
/// Abstract method for updating tooltip content.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected abstract void UpdateTooltipDelegate();
}
}
\ No newline at end of file
/// It represents the GenGrid or GenList item class definition field details.
/// It has some display styles, such as "default", "full" and "group_index".
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenItemClass : IDisposable
{
static Dictionary<IntPtr, EvasObject> s_HandleToEvasObject = new Dictionary<IntPtr, EvasObject>();
/// <param name="data">The item data.</param>
/// <param name="part">The part where the data should be shown.</param>
/// <returns>Return string that should be shown.</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate string GetTextDelegate(object data, string part);
/// <summary>
/// <param name="data">The item data.</param>
/// <param name="part">The part where the data should be shown.</param>
/// <returns>Return content that should be shown.</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate EvasObject GetContentDelegate(object data, string part);
/// <summary>
/// The delegate to define <see cref="DeleteHandler"/>.
/// </summary>
/// <param name="data">The item data.</param>
+ /// <since_tizen> preview </since_tizen>
public delegate void DeleteDelegate(object data);
/// <summary>
/// <param name="part">The part where the data should be shown.</param>
/// <param name="old">The content has been added in gengrid.</param>
/// <returns>Return content that should be shown.</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate EvasObject GetReusableContentDelegate(object data, string part, EvasObject old);
ItemClass _itemClass;
/// Creates and initializes a new instance of the GenItemClass.
/// </summary>
/// <param name="style">The item display style.</param>
+ /// <since_tizen> preview </since_tizen>
public GenItemClass(string style)
{
_style = style;
/// <summary>
/// Gets the item style.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string ItemStyle { get { return _style; } }
/// <summary>
/// Gets or sets the callback that defines how to display item text.
/// If get, return <see cref="GetTextDelegate"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GetTextDelegate GetTextHandler { get; set; }
/// <summary>
/// Gets or sets the callback that defines how to display item content.
/// If get, return <see cref="GetContentDelegate"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GetContentDelegate GetContentHandler { get; set; }
/// <summary>
/// Gets or sets the callback that defines how to delete item text and content.
/// If get, return <see cref="DeleteDelegate"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DeleteDelegate DeleteHandler { get; set; }
/// <summary>
/// Gets or sets the callback that defines how to reuse item content.
/// If get, return <see cref="GetReusableContentDelegate"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GetReusableContentDelegate ReusableContentHandler { get; set; }
internal IntPtr UnmanagedPtr
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (_unmanagedPtr != IntPtr.Zero)
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// Create a new genlist item class in a given genlist widget.
/// </summary>
/// <returns>The new item class object.</returns>
+ /// <since_tizen> preview </since_tizen>
protected virtual IntPtr CreateItemClass()
{
return Interop.Elementary.elm_genlist_item_class_new();
/// Remove an item class in a given genlist widget.
/// </summary>
/// <param name="unmanagedPtr">The object to be removed.</param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void ReleaseItemClass(IntPtr unmanagedPtr)
{
Interop.Elementary.elm_genlist_item_class_free(unmanagedPtr);
/// <summary>
/// It represents the GenGrid item class definition field details.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenGridItemClass : GenItemClass
{
/// <summary>
/// Create the GenGridItemClass instance.
/// </summary>
/// <param name="style">The item display style.</param>
+ /// <since_tizen> preview </since_tizen>
public GenGridItemClass(string style) : base(style)
{
}
/// Add a new gengrid item class in a given gengrid widget.
/// </summary>
/// <returns>The new instance.</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateItemClass()
{
return Interop.Elementary.elm_gengrid_item_class_new();
/// Remove an item class in a given gengrid widget.
/// </summary>
/// <param name="unmanagedPtr">The object to be removed.</param>
+ /// <since_tizen> preview </since_tizen>
protected override void ReleaseItemClass(IntPtr unmanagedPtr)
{
Interop.Elementary.elm_gengrid_item_class_free(unmanagedPtr);
[StructLayout(LayoutKind.Sequential)]
internal class ItemClass
{
+ /// <since_tizen> preview </since_tizen>
public delegate string GetTextCallback(IntPtr data, IntPtr obj, IntPtr part);
+ /// <since_tizen> preview </since_tizen>
public delegate IntPtr GetContentCallback(IntPtr data, IntPtr obj, IntPtr part);
+ /// <since_tizen> preview </since_tizen>
public delegate int GetStateCallback(IntPtr data, IntPtr obj, IntPtr part);
+ /// <since_tizen> preview </since_tizen>
public delegate void DelCallback(IntPtr data, IntPtr obj);
+ /// <since_tizen> preview </since_tizen>
public delegate int FilterCallback(IntPtr data, IntPtr obj, IntPtr key);
+ /// <since_tizen> preview </since_tizen>
public delegate IntPtr GetReusableContentCallback(IntPtr data, IntPtr obj, IntPtr part, IntPtr old);
public int version;
/// <summary>
/// Enumeration for setting genlist item type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum GenListItemType
{
/// <summary>
/// <summary>
/// Enumeration for setting genlist's resizing behavior, transverse axis scrolling and items cropping.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum GenListMode
{
/// <summary>
/// It contains Item which is <see cref="GenListItem"/> type.
/// All events of GenList contain GenListItemEventArgs as a parameter.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenListItemEventArgs : EventArgs
{
/// <summary>
/// Gets or sets GenList item. The return type is <see cref="GenListItem"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Item { get; set; }
internal static GenListItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// <summary>
/// Enumeration that defines where to position the item in the genlist.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ScrollToPosition
{
/// <summary>
/// But the price to pay is more complexity when it comes to usage.
/// If all you want is a simple list with icons and a single text, use the <see cref="List"/> widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenList : Layout
{
HashSet<GenListItem> _children = new HashSet<GenListItem>();
/// Creates and initializes a new instance of the GenList class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by GenList as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public GenList(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of GenList class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected GenList() : base()
{
}
/// <remarks>
/// If true, the genlist items have same height and width.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool Homogeneous
{
get
/// However, there are no sub-objects in the genlist which can be on the flying resizable (such as TEXTBLOCK).
/// If so, then some dynamic resizable objects in the genlist would not be diplayed properly.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public GenListMode ListMode
{
get
/// <summary>
/// Gets the first item in the genlist.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenListItem FirstItem
{
get
/// <summary>
/// Gets the last item in the genlist.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenListItem LastItem
{
get
/// After turning on the reorder mode, longpress on a normal item triggers reordering of the item.
/// You can move the item up and down. However, reordering does not work with group items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ReorderMode
{
get
/// <summary>
/// Gets or set the maximum number of items within an item block.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int BlockCount
{
get
/// <summary>
/// Gets or sets whether the genlist items should be highlighted when an item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHighlight
{
get
/// <summary>
/// Gets or sets the timeout in seconds for the longpress event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double LongPressTimeout
{
get
/// This is true of course if the selection was made by clicking an unfocusable area in an item or selecting it with a key movement.
/// Clicking on a focusable widget inside an item will couse this particular item to get focus as usual.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool FocusOnSelection
{
get
/// <summary>
/// Gets or sets whether enable multi-selection in the genlist.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsMultiSelection
{
get
/// <summary>
/// Gets the selected item in a given genlist widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenListItem SelectedItem
{
get
/// <summary>
/// Gets or sets the genlist select mode by <see cref="GenItemSelectionMode"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public GenItemSelectionMode SelectionMode
{
get
/// <summary>
/// Gets count of items in a this genlist widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Count
{
get
/// <summary>
/// ItemSelected is raised when a new genlist item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemSelected;
/// <summary>
/// ItemUnselected is raised when the genlist item is Unselected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemUnselected;
/// <summary>
/// ItemPressed is raised when a new genlist item is pressed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemPressed;
/// <summary>
/// ItemReleased is raised when a new genlist item is released.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemReleased;
/// <summary>
/// ItemActivated is raised when a new genlist item is double clicked or pressed (enter|return|spacebar).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemActivated;
/// <summary>
/// ItemDoubleClicked is raised when a new genlist item is double clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemDoubleClicked;
/// <summary>
/// ItemExpanded is raised when a new genlist item is indicated to expand.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemExpanded;
/// <summary>
/// ItemRealized is raised when a new genlist item is created as a real object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemRealized;
/// <summary>
/// ItemUnrealized is raised when a new genlist item is unrealized.
/// After calling unrealize, the item's content objects are deleted and the item object itself is deleted or is put into a floating cache.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemUnrealized;
/// <summary>
/// ItemLongPressed is raised when a genlist item is pressed for a certain amount of time. By default it's 1 second.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemLongPressed;
/// <summary>
/// ItemMoved is raised when a genlist item is moved in the reorder mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemMoved;
/// <summary>
/// ItemMovedAfter is raised when a genlist item is moved after another item in the reorder mode.
/// To get the relative previous item, use <see cref="GenListItem.Previous"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemMovedAfter;
/// <summary>
/// ItemMovedBefore is raised when a genlist item is moved before another item in the reorder mode.
/// To get the relative next item, use <see cref="GenListItem.Next"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<GenListItemEventArgs> ItemMovedBefore;
/// <summary>
/// Changed is raised when genlist is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Changed
{
add { _changed.On += value; }
/// <summary>
/// ScrollAnimationStarted is raised when scrolling animation has started.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ScrollAnimationStarted
{
add { _scrollAnimationStarted.On += value; }
/// <summary>
/// ScrollAnimationStopped is raised when scrolling animation has stopped.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ScrollAnimationStopped
{
add { _scrollAnimationStopped.On += value; }
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
/// <seealso cref="GenItemClass"/>
/// <seealso cref="GenListItem"/>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Append(GenItemClass itemClass, object data)
{
return Append(itemClass, data, GenListItemType.Normal);
/// <param name="data">The item data.</param>
/// <param name="type">The genlist item type.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Append(GenItemClass itemClass, object data, GenListItemType type)
{
return Append(itemClass, data, type, null);
/// <param name="type">The genlist item type.</param>
/// <param name="parent">The parent item, otherwise null if there is no parent item.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Append(GenItemClass itemClass, object data, GenListItemType type, GenListItem parent)
{
GenListItem item = new GenListItem(data, itemClass);
/// <param name="itemClass">The itemClass defines how to display the data.</param>
/// <param name="data">The item data.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Prepend(GenItemClass itemClass, object data)
{
return Prepend(itemClass, data, GenListItemType.Normal);
/// <param name="data">The item data.</param>
/// <param name="type">The genlist item type.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Prepend(GenItemClass itemClass, object data, GenListItemType type)
{
return Prepend(itemClass, data, type, null);
/// <param name="type">The genlist item type.</param>
/// <param name="parent">The parent item, otherwise null if there is no parent item.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Prepend(GenItemClass itemClass, object data, GenListItemType type, GenListItem parent)
{
GenListItem item = new GenListItem(data, itemClass);
/// <param name="data">The item data.</param>
/// <param name="before">The item before which to place this new one.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before)
{
return InsertBefore(itemClass, data, before, GenListItemType.Normal);
/// <param name="before">The item before which to place this new one.</param>
/// <param name="type">The genlist item type.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before, GenListItemType type)
{
return InsertBefore(itemClass, data, before, type, null);
/// <param name="type">The genlist item type.</param>
/// <param name="parent">The parent item, otherwise null if there is no parent item.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before, GenListItemType type, GenListItem parent)
{
GenListItem item = new GenListItem(data, itemClass);
/// <param name="type">The genlist item type.</param>
/// <param name="parent">The parent item, otherwise null if there is no parent item.</param>
/// <returns>Return a new added genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem InsertAfter(GenItemClass itemClass, object data, GenListItem after, GenListItemType type, GenListItem parent)
{
GenListItem item = new GenListItem(data, itemClass);
/// <param name="type">The genlist item type.</param>
/// <param name="parent">The parent item, otherwise null if there is no parent item.</param>
/// <returns>Return a genlist item that contains data and itemClass.</returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem InsertSorted(GenItemClass itemClass, object data, Comparison<object> comparison, GenListItemType type, GenListItem parent)
{
GenListItem item = new GenListItem(data, itemClass);
/// <param name="item">The item to display.</param>
/// <param name="position">The position to show the given item to <see cref="ScrollToPosition"/>.</param>
/// <param name="animated">The animated indicates how to display the item, by scrolling or by jumping.</param>
+ /// <since_tizen> preview </since_tizen>
public void ScrollTo(GenListItem item, ScrollToPosition position, bool animated)
{
if (animated)
/// To update just one item, use <see cref="GenListItem.Update"/>.
/// </summary>
/// <seealso cref="GenListItem.Update"/>
+ /// <since_tizen> preview </since_tizen>
public void UpdateRealizedItems()
{
Interop.Elementary.elm_genlist_realized_items_update(RealHandle);
/// To delete just one item, use <see cref="ItemObject.Delete"/>.
/// </summary>
/// <seealso cref="ItemObject.Delete"/>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_genlist_clear(RealHandle);
/// -1, 0, or 1, depending on whether the coordinate is on the upper portion of that item (-1), in the middle section (0), or on the lower part (1).
/// </param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem GetItemByPosition(int x, int y, out int pos)
{
IntPtr handle = Interop.Elementary.elm_genlist_at_xy_item_get(RealHandle, x, y, out pos);
/// </summary>
/// <param name="index">The number of the item to grab (0 being the first)</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public GenListItem GetItemByIndex(int index)
{
IntPtr handle = Interop.Elementary.elm_genlist_nth_item_get(RealHandle, index);
/// <summary>
/// The callback of Unrealize Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The type of item's part type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum GenListItemFieldType
{
/// A instance to the genlist item added.
/// It contains Update() method to update a genlist item which is given.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GenListItem : GenItem
{
internal GenListItem(object data, GenItemClass itemClass) : base(data, itemClass)
/// <summary>
/// Gets or sets whether a given genlist item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override bool IsSelected
{
get
/// <summary>
/// Gets or sets whether a given genlist item is expanded.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsExpanded
{
get
/// To update already realized items, use <see cref="GenList.UpdateRealizedItems"/>.
/// </summary>
/// <seealso cref="GenList.UpdateRealizedItems"/>
+ /// <since_tizen> preview </since_tizen>
public override void Update()
{
Interop.Elementary.elm_genlist_item_update(Handle);
/// <param name="part">The part could be "elm.text", "elm.swalllow.icon", "elm.swallow.end", "elm.swallow.content" and so on. It is also used for globbing to match '*', '?', and '.'. It can be used at updating multi fields.</param>
/// <param name="type">The type of item's part type.</param>
/// <seealso cref="GenList.UpdateRealizedItems"/>
+ /// <since_tizen> preview </since_tizen>
public void UpdateField(string part, GenListItemFieldType type)
{
Interop.Elementary.elm_genlist_item_fields_update(Handle, part, (uint)type);
/// <summary>
/// Demote an item to the end of the list.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void DemoteItem()
{
Interop.Elementary.elm_genlist_item_demote(Handle);
/// <summary>
/// Gets or sets the genlist item's select mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override GenItemSelectionMode SelectionMode
{
get
/// Gets the next item in a genlist widget's internal list of items.
/// </summary>
/// <seealso cref="Previous"/>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Next
{
get
/// Get the previous item in a genlist widget's internal list of items.
/// </summary>
/// <seealso cref="Next"/>
+ /// <since_tizen> preview </since_tizen>
public GenListItem Previous
{
get
/// <summary>
/// Sets or gets the content to be shown in the tooltip item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string Cursor
{
/// <summary>
/// Sets or gets the style for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string CursorStyle
{
/// <summary>
/// Sets or gets the cursor engine only usage for this item cursor.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool IsUseEngineCursor
{
/// Set the text to be shown in the genlist item.
/// </summary>
/// <param name="tooltip">The text to set in the content.</param>
+ /// <since_tizen> preview </since_tizen>
public override void SetTooltipText(string tooltip)
{
Interop.Elementary.elm_genlist_item_tooltip_text_set(Handle, tooltip);
/// <summary>
/// Unset tooltip from item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override void UnsetTooltip()
{
Interop.Elementary.elm_genlist_item_tooltip_unset(Handle);
/// <summary>
/// Gets or sets the style of given genlist item's tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override string TooltipStyle
{
get
/// <summary>
/// Gets or sets whether disable size restrictions on an object's tooltip.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsTooltipWindowMode
{
get
/// <summary>
/// Gets the index of the item. It is only valid once displayed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Index
{
get
/// <summary>
/// Gets the depth of expanded item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ExpandedItemDepth
{
get
/// <remarks>
/// This removes all items that are children (and their descendants) of the given item it.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void ClearSubitems()
{
Interop.Elementary.elm_genlist_item_subitems_clear(Handle);
/// </summary>
/// <param name="itemClass">The item class for the item.</param>
/// <param name="data">The data for the item.</param>
+ /// <since_tizen> preview </since_tizen>
public void UpdateItemClass(GenItemClass itemClass, object data)
{
Data = data;
/// <summary>
/// Set the content to be shown in the tooltip item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void UpdateTooltipDelegate()
{
Interop.Elementary.elm_genlist_item_tooltip_content_cb_set(Handle,
/// The GestureLayer is used to detect gestures.
/// Inherits Widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class GestureLayer : Widget
{
private readonly Interop.Elementary.GestureEventCallback _gestureCallback;
/// Creates and initializes a new instance of GestureLayer class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by GestureLayer as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public GestureLayer(EvasObject parent) : base(parent)
{
_gestureCallback = new Interop.Elementary.GestureEventCallback(GestureCallbackHandler);
/// <summary>
/// Enumeration for supported gesture types.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum GestureType
{
/// <summary>
/// <summary>
/// Enumeration for gesture states.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum GestureState
{
/// <summary>
/// <summary>
/// Sets or gets the repeat-events setting.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool HoldEvents
{
get
/// <summary>
/// Sets or gets the gesture layer continues enable of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Continues
{
get
/// <summary>
/// Sets or gets the gesture layer finger-size for taps.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int TapFingerSize
{
get
/// <summary>
/// Sets or gets the gesture layer long tap start timeout of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double LongTapTimeout
{
get
/// <summary>
/// Sets or gets the gesture layer double tap timeout of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double DoubleTapTimeout
{
get
/// <summary>
/// Sets or gets the gesture layer flick time limit (in ms) of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int FlickTimeLimit
{
get
/// <summary>
/// Sets or gets the gesture layer line min length of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int MinimumLineLength
{
get
/// <summary>
/// Sets or gets the gesture layer line angular tolerance of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double LineAngularTolerance
{
get
/// <summary>
/// Sets or gets the gesture layer line distance tolerance of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int LineDistanceTolerance
{
get
/// <summary>
/// Sets or gets step-value for rotate action.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double RotateStep
{
get
/// <summary>
/// Sets or gets the gesture layer rotate angular tolerance of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double RotateAngularTolerance
{
get
/// <summary>
/// Sets or gets control step value for zoom action.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double ZoomStep
{
get
/// <summary>
/// Sets or gets the gesture layer zoom distance tolerance of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ZoomDistanceTolerance
{
get
/// <summary>
/// Sets or gets the gesture layer zoom finger factor of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double ZoomFingerFactor
{
get
/// <summary>
/// Sets or gets the gesture layer zoom wheel factor of an object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double ZoomWheelFactor
{
get
/// A gesture layer's target may be any Evas object. This object will be used to listen to mouse and key events.
/// </summary>
/// <param name="target">The object to attach.</param>
+ /// <since_tizen> preview </since_tizen>
public void Attach(EvasObject target)
{
Interop.Elementary.elm_gesture_layer_attach(Handle, target.Handle);
/// <param name="type">The gesture you want to track state of.</param>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetGestureCallback(GestureType type, GestureState state, Action<object> action)
{
lock (_handlers)
/// <summary>
/// clear the gesture state change callback.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ClearCallbacks()
{
lock (_handlers)
/// <param name="type">The gesture you want to track state of.</param>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetTapCallback(GestureType type, GestureState state, Action<TapData> action)
{
SetCallback(type, state, action);
/// </summary>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetMomentumCallback(GestureState state, Action<MomentumData> action)
{
SetCallback(GestureType.Momentum, state, action);
/// </summary>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetLineCallback(GestureState state, Action<LineData> action)
{
SetCallback(GestureType.Line, state, action);
/// </summary>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFlickCallback(GestureState state, Action<LineData> action)
{
SetCallback(GestureType.Flick, state, action);
/// </summary>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetZoomCallback(GestureState state, Action<ZoomData> action)
{
SetCallback(GestureType.Zoom, state, action);
/// </summary>
/// <param name="state">The event the callback tracks (START, MOVE, END, ABORT).</param>
/// <param name="action">The callback itself.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetRotateCallback(GestureState state, Action<RotateData> action)
{
SetCallback(GestureType.Rotate, state, action);
/// </summary>
/// <param name="parent">The gesture layer's parent widget.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_gesture_layer_add(parent);
/// <summary>
/// clear the gesture state change callback.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnUnrealize()
{
ClearCallbacks();
/// <summary>
/// The struct of TapData
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct TapData
{
/// <summary>
/// The x coordinate of the center point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X;
/// <summary>
/// The y coordinate of the center point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y;
#pragma warning disable 3003
/// <summary>
/// The number of fingers tapped.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 FingersCount;
/// <summary>
/// The timestamp.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 Timestamp;
#pragma warning restore 3003
/// <summary>
/// The struct of MomentumData
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct MomentumData
{
/// <summary>
/// Final-swipe direction starting point on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X1;
/// <summary>
/// Final-swipe direction starting point on Y.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y1;
/// <summary>
/// Final-swipe direction ending point on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X2;
/// <summary>
/// Final-swipe direction ending point on Y
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y2;
#pragma warning disable 3003
/// <summary>
/// Timestamp of start of final x-swipe.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 HorizontalSwipeTimestamp;
/// <summary>
/// Timestamp of start of final y-swipe.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 VerticalSwipeTimestamp;
/// <summary>
/// Momentum on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 HorizontalMomentum;
/// <summary>
/// Momentum on Y.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 VerticalMomentum;
/// <summary>
/// Number of fingers.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 FingersCount;
#pragma warning restore 3003
/// <summary>
/// The struct of LineData
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct LineData
{
/// <summary>
/// Final-swipe direction starting point on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X1;
/// <summary>
/// Final-swipe direction starting point on Y.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y1;
/// <summary>
/// Final-swipe direction ending point on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X2;
/// <summary>
/// Final-swipe direction ending point on Y
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y2;
#pragma warning disable 3003
/// <summary>
/// Timestamp of start of final x-swipe.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 HorizontalSwipeTimestamp;
/// <summary>
/// Timestamp of start of final y-swipe.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 VerticalSwipeTimestamp;
/// <summary>
/// Momentum on X.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 HorizontalMomentum;
/// <summary>
/// Momentum on Y.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 VerticalMomentum;
/// <summary>
/// Number of fingers.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public UInt32 FingersCount;
#pragma warning restore 3003
/// <summary>
/// Angle (direction) of lines.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Angle;
}
/// <summary>
/// The struct of ZoomData
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct ZoomData
{
/// <summary>
/// The x coordinate of zoom center point reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X;
/// <summary>
/// The y coordinate of zoom center point reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y;
/// <summary>
/// The radius (distance) between fingers reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Radius;
/// <summary>
/// The zoom value. 1.0 means no zoom.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Zoom;
/// <summary>
/// <summary>
/// The struct of RotateData
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct RotateData
{
/// <summary>
/// The x coordinate of rotation center point reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 X;
/// <summary>
/// The y coordinate of rotation center point reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Y;
/// <summary>
/// The radius (distance) between fingers reported to user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Int32 Radius;
/// <summary>
/// The start-angle.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double BaseAngle;
/// <summary>
/// The rotation value. 0.0 means no rotation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Angle;
/// <summary>
/// <summary>
/// Config is a static class, it provides gestureLayer's timeout information.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class Config
{
/// <summary>
/// Sets or gets the duration for occurring long tap event of gesture layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double DefaultLongTapTimeout
{
get
/// <summary>
/// Sets or gets the duration for occurring double tap event of gesture layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double DefaultDoubleTapTimeout
{
get
/// <summary>
/// The HoverselItemEventArgs is an HoverselItem's EventArgs
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class HoverselItemEventArgs : EventArgs
{
/// <summary>
/// Hoversel's Item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public HoverselItem Item { get; set; }
internal static HoverselItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// <summary>
/// The hoversel is a button that pops up a list of items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Hoversel : Layout
{
SmartEvent _clicked;
/// Creates and initializes a new instance of the Hoversel class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Hoversel as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Hoversel(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, "clicked");
/// <summary>
/// Clicked will be triggered when Hoversel is clicked
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
/// <summary>
/// Expanded will be triggered when Hoversel is activated by clicking the hoversel or by a function
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Expanded;
/// <summary>
/// Dismissed will be triggered when Hoversel Dismissed
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Dismissed;
/// <summary>
/// ItemSelected will be triggered when Hoversel's Item Selected
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<HoverselItemEventArgs> ItemSelected;
/// <summary>
/// Gets or sets the status to control whether the hoversel should expand horizontally.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <summary>
/// Gets or sets the hover parent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IntPtr HoverParent
{
get
/// <summary>
/// Gets the flag of whether the hoversel is expanded.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsExpanded
{
get
/// <summary>
/// Gets or sets the status of whether update icon and text of hoversel same to those of selected item automatically.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AutoUpdate
{
get
/// <summary>
/// This triggers the hoversel popup from code, the same as if the user had clicked the button.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void HoverBegin()
{
Interop.Elementary.elm_hoversel_hover_begin(RealHandle);
/// <summary>
/// This dismisses the hoversel popup as if the user had clicked outside the hover.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void HoverEnd()
{
Interop.Elementary.elm_hoversel_hover_end(RealHandle);
/// <summary>
/// This will remove all the children items from the hoversel.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_hoversel_clear(RealHandle);
/// </summary>
/// <param name="label">Item's label</param>
/// <returns>A handle to the added item.</returns>
+ /// <since_tizen> preview </since_tizen>
public HoverselItem AddItem(string label)
{
HoverselItem item = new HoverselItem();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The HoverselItem is the Item of Hoversel
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class HoverselItem : ItemObject
{
internal HoverselItem() : base(IntPtr.Zero)
/// <summary>
/// HoverselItem's label
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Label { get; internal set; }
/// <summary>
/// ItemSelected will be triggered when HoverselItem Selected
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ItemSelected;
internal void SendItemSelected()
/// <summary>
/// IAccessibleObject is a interface which defines properties and methods of accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface IAccessibleObject
{
/// <summary>
/// Gets or sets the reading information types of an accessible object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
ReadingInfoType ReadingInfoType { get; set; }
/// <summary>
/// Gets or sets the role of the object in accessibility domain.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
AccessRole Role { get; set; }
/// <summary>
/// Gets or sets highlightable of given widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
bool CanHighlight { get; set; }
/// <summary>
/// When translation domain is set values of "name" and "description" properties will be translated with dgettext function using current translation domain as "domainname" parameter.
/// It is application developer responsibility to ensure that translation files are loaded and binded to translation domain when accessibility is enabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
string TranslationDomain { get; set; }
/// <summary>
/// Gets or sets an accessible name of the object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
string Name { get; set; }
/// <summary>
/// Gets or sets contextual information about object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
string Description { get; set; }
/// <summary>
/// Gets or sets the delegate for <see cref="IAccessibleObject.Name"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
AccessibleInfoProvider NameProvider { get; set; }
/// <summary>
/// Gets or sets the delegate for <see cref = "IAccessibleObject.Description" />.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
AccessibleInfoProvider DescriptionProvider { get; set; }
/// <summary>
/// AppendRelation API is asymmetric, which means that appending, for example, relation <see cref="FlowsTo"/> from object A to B, do not append relation <see cref="FlowsFrom"/> from object B to object A.
/// </summary>
/// <param name="relation">The relationship between source object and target object of a given type.</param>
+ /// <since_tizen> preview </since_tizen>
void AppendRelation(IAccessibleRelation relation);
/// <summary>
/// Removes the relationship between two accessible objects.
/// </summary>
/// <param name="relation">The relationship between source object and target object of a given type.</param>
+ /// <since_tizen> preview </since_tizen>
void RemoveRelation(IAccessibleRelation relation);
/// <summary>
/// Highlights accessible widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
void Highlight();
/// <summary>
/// Clears highlight of accessible widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
void Unhighlight();
}
}
/// <summary>
/// The AnimatorMotionMapper interface
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public interface IAnimatorMotionMapper
{
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
double Calculate(double position);
}
/// <summary>
/// The LinearMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class LinearMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Linear, 0, 0);
/// <summary>
/// The AccelerateMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class AccelerateMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Accelerate, 0, 0);
/// <summary>
/// The DecelerateMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DecelerateMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Decelerate, 0, 0);
/// <summary>
/// The SinusoidalMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class SinusoidalMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Sinusoidal, 0, 0);
/// <summary>
/// The AccelerateFactorMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class AccelerateFactorMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The power factor of AccelerateFactorMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double PowerFactor { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.AccelerateFactor, PowerFactor, 0);
/// <summary>
/// The DecelerateFactorMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DecelerateFactorMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The power factor of DecelerateFactorMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double PowerFactor { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DecelerateFactor, PowerFactor, 0);
/// <summary>
/// The SinusoidalFactorMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class SinusoidalFactorMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The power factor of SinusoidalFactorMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double PowerFactor { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.SinusoidalFactor, PowerFactor, 0);
/// <summary>
/// The DivisorInterpolatedMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class DivisorInterpolatedMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The Divisor of DivisorInterpolatedMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Divisor { get; set; } = 0;
/// <summary>
/// The power of DivisorInterpolatedMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Power { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DivisorInterp, Divisor, Power);
/// <summary>
/// The BounceMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class BounceMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The bounces of BounceMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Bounces { get; set; } = 0;
/// <summary>
/// The decay factor of BounceMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double DecayFactor { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Bounces);
/// <summary>
/// The SpringMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class SpringMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The wobbles of SpringMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Wobbles { get; set; } = 0;
/// <summary>
/// The decat factir of SpringMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double DecayFactor { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Wobbles);
/// <summary>
/// The CubicBezierMotionMapper class
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class CubicBezierMotionMapper : IAnimatorMotionMapper
{
/// <summary>
/// The X1 of CubicBezierMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double X1 { get; set; } = 0;
/// <summary>
/// The Y1 of CubicBezierMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Y1 { get; set; } = 0;
/// <summary>
/// The X2 of CubicBezierMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double X2 { get; set; } = 0;
/// <summary>
/// The Y2 of CubicBezierMotionMapper
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Y2 { get; set; } = 0;
/// <summary>
/// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Calculate(double position)
{
double[] values = { X1, Y1, X2, Y2 };
/// <summary>
/// Enumeration for the icon lookup order. Should look for icons in the theme, FDO paths, or both.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum IconLookupOrder
{
/// <summary>
/// or images coming from a custom file (PNG, JPG, EDJE, etc.), on icon context.
/// Inherits Image
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Icon : Image
{
/// <summary>
/// Creates and initializes a new instance of Icon class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Icon as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Icon(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Sets or gets the standard icon name of a given Icon widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string StandardIconName
{
get
/// <summary>
/// Sets or gets the icon lookup order of a given Icon widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IconLookupOrder IconLookupOrder
{
get
/// </summary>
/// <param name="file">The path to the file that is used as an icon image</param>
/// <param name="group">The group that the icon belongs to</param>
+ /// <since_tizen> preview </since_tizen>
public void SetThumb(string file, string group)
{
Interop.Elementary.elm_icon_thumb_set(RealHandle, file, group);
/// </summary>
/// <param name="parent">EvasObject</param>
/// <returns>The new object, otherwise NULL if it cannot be created</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// be it from a disk file or from a memory region.
/// Inherits Widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Image : Widget
{
bool _canScaleUp = true;
/// Creates and initializes a new instance of Image class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Image as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Image(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, "clicked");
/// <summary>
/// Clicked will be triggered when the image is clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
/// <summary>
/// LoadingCompleted will be triggered when the image is loaded completely.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler LoadingCompleted;
/// <summary>
/// Clicked will be triggered when the image is fail to load.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler LoadingFailed;
/// <summary>
/// Gets the file that is used as an image.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string File
{
get
/// <summary>
/// Sets or gets the smooth effect for an image.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSmooth
{
get
/// <summary>
/// Sets or gets whether scaling is disabled on the object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsScaling
{
get
/// <summary>
/// Sets or gets whether the object is down resizeable.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool CanScaleDown
{
get
/// <summary>
/// Sets or gets whether the object is up resizeable.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool CanScaleUp
{
get
/// <summary>
/// Sets or gets whether the image fills the entire object area, when keeping the aspect ratio.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool CanFillOutside
{
get
/// <summary>
/// Sets or gets the prescale size for the image.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int PrescaleSize
{
get
/// <summary>
/// Sets or gets whether the original aspect ratio of the image should be kept on resize.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsFixedAspect
{
get
/// <summary>
/// Sets or gets whether an image object (which supports animation) is to animate itself.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsAnimated
{
get
/// <summary>
/// Gets whether an image object supports animation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsAnimatedAvailable
{
get
/// An image object, even if it supports animation, will be displayed by default without animation.
/// To actually start playing any image object's animation, <see cref="IsAnimated"/> should be TRUE before setting this property true.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsAnimationPlaying
{
get
/// <summary>
/// Sets or gets whether the image is 'editable'.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEditable
{
get
/// <summary>
/// Gets the current size of the image.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size ObjectSize
{
get
/// <summary>
/// Sets or gets whether alpha channel data is being used on the given image object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsOpaque
{
get
/// <summary>
/// Sets or gets the image orientation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ImageOrientation Orientation
{
get
/// <summary>
/// Sets or gets the image color
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color Color
{
get
/// <summary>
/// Sets the background color
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
set
/// This property allows one to get the underlying EvasObject of type Image from this elementary widget. It can be useful to do things like save the image to a file, etc.
/// </summary>
/// <remarks>Be careful to not manipulate it, as it is under the control of widget.</remarks>
+ /// <since_tizen> preview </since_tizen>
public EvasImage ImageObject
{
get
/// <param name="right">The border's right width</param>
/// <param name="top">The border's top width</param>
/// <param name="bottom">The border's bottom width</param>
+ /// <since_tizen> preview </since_tizen>
public void SetBorder(int left, int right, int top, int bottom)
{
ImageObject?.SetBorder(left, right, top, bottom);
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ImageBorderFillMode BorderCenterFillMode
{
get
/// </summary>
/// <param name="file">The path to the file that is used as an image source</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public bool Load(string file)
{
if (file == null)
/// </summary>
/// <param name="uri">The uri to the file that is used as an image source</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public bool Load(Uri uri)
{
if (uri == null)
/// <param name="img">The binary data that is used as an image source</param>
/// <param name="size">The size of the binary data blob img</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("This method will be removed. Use Load(Stream stream) instead.")]
public unsafe bool Load(byte* img, long size)
{
/// </summary>
/// <param name="stream">The stream that is used as an image source</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public bool Load(Stream stream)
{
if (stream == null)
/// <param name="file">The path to the file that is used as an image source</param>
/// <param name="cancellationToken">cancellation token</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public Task<bool> LoadAsync(string file, CancellationToken cancellationToken = default(CancellationToken))
{
if (file == null)
/// <param name="uri">The uri to the file that is used as an image source</param>
/// <param name="cancellationToken">cancellation token</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public Task<bool> LoadAsync(Uri uri, CancellationToken cancellationToken = default(CancellationToken))
{
if (uri == null)
/// <param name="stream">The stream that is used as an image source</param>
/// <param name="cancellationToken">cancellation token</param>
/// <returns>(true = success, false = error)</returns>
+ /// <since_tizen> preview </since_tizen>
public async Task<bool> LoadAsync(Stream stream, CancellationToken cancellationToken = default(CancellationToken))
{
if (stream == null)
/// </summary>
/// <param name="part">The name of color class.</param>
/// <param name="color">The struct of color</param>
+ /// <since_tizen> preview </since_tizen>
public override void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255,
/// </summary>
/// <param name="part">The name of color class.</param>
/// <returns>color object</returns>
+ /// <since_tizen> preview </since_tizen>
public override Color GetPartColor(string part)
{
Interop.Elementary.elm_object_color_class_color_get(Handle, part, out int r, out int g, out int b, out int a);
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Image as a child. It's <see cref="EvasObject"/> type.</param>
/// <returns>The new object, otherwise null if it cannot be created</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent);
/// <summary>
/// Enumeration for the fill mode of image border
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ImageBorderFillMode
{
/// <summary>
/// <summary>
/// Enumeration for the possible orientation options
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ImageOrientation : int
{
/// <summary>
/// An index widget gives you an index for fast access to whichever group of other UI items one might have.
/// Inherits Layout
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Index : Layout
{
HashSet<IndexItem> _children = new HashSet<IndexItem>();
/// Creates and initializes a new instance of Index class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Index as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Index(EvasObject parent) : base(parent)
{
_delayedChanged = new SmartEvent(this, this.RealHandle, "delay,changed");
/// <summary>
/// Changed will be triggered when the selected index item is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Changed;
/// <summary>
/// Sets or gets the auto hiding feature is enabled or not for a given index widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AutoHide
{
get
/// <summary>
/// Sets or gets a value whether horizontal mode is enabled or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <summary>
/// Sets or gets the value of indicator's disabled status.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IndicatorVisible
{
get
/// <summary>
/// Sets or gets the omit feature is enabled or not for a given index widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool OmitEnabled
{
get
/// Set a delay change time for index object.
/// delay time is 0.2 sec by default.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Delay
{
get
/// <summary>
/// Gets or sets the items level for a given index widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Level
{
get
/// Control standard_priority group of index.
/// Priority group will be shown as many items as it can, and other group will be shown one character only.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Priority
{
get
/// <summary>
/// Gets the last selected item, for a given index widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IndexItem SelectedItem
{
get
/// </summary>
/// <param name="label">the label which the item should be indexed</param>
/// <returns>A object to the IndexItem added or null, on errors</returns>
+ /// <since_tizen> preview </since_tizen>
public IndexItem Append(string label)
{
IndexItem item = new IndexItem(label);
/// </summary>
/// <param name="label">the label which the item should be indexed</param>
/// <returns>A handle to the item added or NULL, on errors</returns>
+ /// <since_tizen> preview </since_tizen>
public IndexItem Prepend(string label)
{
IndexItem item = new IndexItem(label);
/// <param name="label">the label which the item should be indexed</param>
/// <param name="before">The index item to insert after.</param>
/// <returns>A object to the IndexItem added or null, on errors</returns>
+ /// <since_tizen> preview </since_tizen>
public IndexItem InsertBefore(string label, IndexItem before)
{
IndexItem item = new IndexItem(label);
/// <param name="label">the label which the item should be indexed</param>
/// <param name="after">The index item to insert after.</param>
/// <returns>A object to the IndexItem added or null, on errors</returns>
+ /// <since_tizen> preview </since_tizen>
public IndexItem InsertAfter(string label, IndexItem after)
{
IndexItem item = new IndexItem(label);
/// Flush the changes made to the index items so they work correctly.
/// </summary>
/// <param name="level">The index level (one of 0 or 1) where changes were made</param>
+ /// <since_tizen> preview </since_tizen>
public void Update(int level)
{
Interop.Elementary.elm_index_level_go(RealHandle, level);
/// <summary>
/// Removes all items from a given index widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_index_item_clear(RealHandle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// The IndexItem is used to manage index item
/// Inherits ItemObject
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class IndexItem : ItemObject
{
/// <summary>
/// Creates and initializes a new instance of IndexItem class.
/// </summary>
/// <param name="text">the text is set to the Text. It's 'string' type.</param>
+ /// <since_tizen> preview </since_tizen>
public IndexItem(string text) : base(IntPtr.Zero)
{
Text = text;
/// <summary>
/// Selected will be triggered when the index item is selected
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Selected;
/// <summary>
/// Gets the text
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text { get; private set; }
/// <summary>
/// Sets the selected state of an item.
/// </summary>
/// <param name="selected">The selected state</param>
+ /// <since_tizen> preview </since_tizen>
public void Select(bool selected)
{
Interop.Elementary.elm_index_item_selected_set(Handle, selected);
/// <summary>
/// The ItemObject is used to manage item object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ItemObject
{
private static Dictionary<int, ItemObject> s_IdToItemTable = new Dictionary<int, ItemObject>();
/// Creates and initializes a new instance of ItemObject class.
/// </summary>
/// <param name="handle">IntPtr</param>
+ /// <since_tizen> preview </since_tizen>
protected ItemObject(IntPtr handle)
{
_deleteCallback = DeleteCallbackHandler;
/// <summary>
/// Gets the id of item object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Id { get; private set; }
/// <summary>
/// Sets or gets whether the item object is enabled
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEnabled
{
get { return !Interop.Elementary.elm_object_item_disabled_get(Handle); }
/// <summary>
/// Gets track object of the item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject TrackObject
{
get
/// <summary>
/// Sets or gets the style of the Item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual string Style
{
get
/// <summary>
/// Deleted will be triggered when the item object is deleted
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Deleted;
/// <summary>
/// Delete the item object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Delete()
{
Interop.Elementary.elm_object_item_del(Handle);
/// </summary>
/// <param name="part">The content part name (null for the default content)</param>
/// <param name="content">The content of the object item</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartContent(string part, EvasObject content)
{
SetPartContent(part, content, false);
/// <param name="part">The content part name (null for the default content)</param>
/// <param name="content">The content of the object item</param>
/// <param name="preserveOldContent">judge whether delete old content</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartContent(string part, EvasObject content, bool preserveOldContent)
{
IntPtr oldContent = Interop.Elementary.elm_object_item_part_content_unset(Handle, part);
/// </summary>
/// <param name="part">The text part name (null for the default label)</param>
/// <param name="text">Text of the label</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartText(string part, string text)
{
Interop.Elementary.elm_object_item_part_text_set(Handle, part, text);
/// </summary>
/// <param name="part">The text part name (null for the default label)</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public string GetPartText(string part)
{
return Interop.Elementary.elm_object_item_part_text_get(Handle, part);
/// </summary>
/// <param name="part">The text part name (null for the default label)</param>
/// <param name="color">the color</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_item_color_class_color_set(Handle, part, color.R * color.A / 255,
/// </summary>
/// <param name="part">The text part name (null for the default label)</param>
/// <returns>the color of object item</returns>
+ /// <since_tizen> preview </since_tizen>
public Color GetPartColor(string part)
{
int r, g, b, a;
/// Deletes color of an object item
/// </summary>
/// <param name="part">The text part name</param>
+ /// <since_tizen> preview </since_tizen>
public void DeletePartColor(string part)
{
Interop.Elementary.elm_object_item_color_class_del(Handle, part);
/// <param name="emission">The signal's name.</param>
/// <param name="source">The signal's source.</param>
/// <param name="func">The function to be executed when the signal is emitted.</param>
+ /// <since_tizen> preview </since_tizen>
public void AddSignalHandler(string emission, string source, Func<string, string, bool> func)
{
if (emission != null && source != null && func != null)
/// <param name="emission">The signal's name.</param>
/// <param name="source">The signal's source.</param>
/// <param name="func">The function to be executed when the signal is emitted.</param>
+ /// <since_tizen> preview </since_tizen>
public void RemoveSignalHandler(string emission, string source, Func<string, string, bool> func)
{
if (emission != null && source != null && func != null)
/// </summary>
/// <param name="emission">The signal's name.</param>
/// <param name="source">The signal's source.</param>
+ /// <since_tizen> preview </since_tizen>
public void EmitSignal(string emission, string source)
{
Interop.Elementary.elm_object_item_signal_emit(Handle, emission, source);
/// Gets the handle of object item
/// </summary>
/// <param name="obj">ItemObject</param>
+ /// <since_tizen> preview </since_tizen>
public static implicit operator IntPtr(ItemObject obj)
{
if (obj == null)
/// <summary>
/// OnInvalidate of object item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected virtual void OnInvalidate() { }
internal static ItemObject GetItemById(int id)
/// <summary>
/// The ItemObjectExtension is used to manage item object extension
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class ItemObjectExtension
{
/// <summary>
/// Grab high light of item object
/// </summary>
/// <param name="obj">the item object which is grabbed high light</param>
+ /// <since_tizen> preview </since_tizen>
public static void GrabHighlight(this ItemObject obj)
{
Interop.Elementary.elm_atspi_component_highlight_grab(obj.Handle);
/// Clear high light of item object
/// </summary>
/// <param name="obj">the item object which is cleared high light</param>
+ /// <since_tizen> preview </since_tizen>
public static void ClearHighlight(this ItemObject obj)
{
Interop.Elementary.elm_atspi_component_highlight_clear(obj.Handle);
/// Label is a widget to display text, with simple html-like markup.
/// Inherits Layout
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Label : Layout
{
SmartEvent _slideCompleted;
/// Creates and initializes a new instance of Label class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Label as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Label(EvasObject parent) : base(parent)
{
_slideCompleted = new SmartEvent(this, this.RealHandle, "slide,end");
/// <summary>
/// SlideCompleted will be triggered when the slide is completed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler SlideCompleted;
/// <summary>
/// Sets or gets wrap width of the label.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int LineWrapWidth
{
get
/// <summary>
/// Sets or gets the wrapping behavior of the label.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WrapType LineWrapType
{
get
/// <summary>
/// Sets or gets the slide mode of the label widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public LabelSlideMode SlideMode
{
get
/// <summary>
/// Sets or gets the slide duration of the label.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double SlideDuration
{
get
/// If you set the duration of the slide using elm_label_slide_duration_set() you cannot get the correct speed using this function until the label is actually rendered and resized.
/// </remarks>
/// <seealso cref="SlideDuration"/>
+ /// <since_tizen> preview </since_tizen>
public double SlideSpeed
{
get
/// <summary>
/// Sets or gets the ellipsis behavior of the label.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEllipsis
{
get
/// APIs, elm_label_text_style_user_peek/pop/push, are internal APIs only in Tizen. Avalilable since Tizen_4.0.
/// </remarks>
///
+ /// <since_tizen> preview </since_tizen>
public string TextStyle
{
get
/// <summary>
/// Start slide effect.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PlaySlide()
{
Interop.Elementary.elm_label_slide_go(RealHandle);
/// </summary>
/// <param name="parent">EvasObject</param>
/// <returns>The new object, otherwise null if it cannot be created</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_label_add(parent.Handle);
/// <summary>
/// Enumeration for slide mode of a label widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum LabelSlideMode
{
/// <summary>
/// This is a container widget that takes a standard Edje design file and wraps it very thinly in a widget.
/// Inherits Widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Layout : Container
{
SmartEvent _languageChanged;
/// Creates and initializes a new instance of Layout class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Layout as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Layout(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of Layout class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Layout() : base()
{
}
/// <summary>
/// LanguageChanged will be triggered when the program's language is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler LanguageChanged;
/// <summary>
/// ThemeChanged will be triggered when the theme is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ThemeChanged;
/// <summary>
/// Gets the edje layout.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EdjeObject EdjeObject
{
get
/// <summary>
/// Gets or sets accessibility state of texblock(text) parts in the layout object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool TextBlockAccessibility
{
get
/// Successive freezes will nest, requiring an equal number of thaws.
/// </summary>
/// <returns>The frozen state or 0 if the object is not frozen or on error.</returns>
+ /// <since_tizen> preview </since_tizen>
public int Freeze()
{
return Interop.Elementary.elm_layout_freeze(RealHandle);
/// If sucessives freezes were done, an equal number of thaws will be required.
/// </summary>
/// <returns>The frozen state or 0 if the object is not frozen or on error.</returns>
+ /// <since_tizen> preview </since_tizen>
public int Thaw()
{
return Interop.Elementary.elm_layout_thaw(RealHandle);
/// The minimum size of the theme is calculated based on minimum size of parts, the size of elements inside containers like box and table, etc.
/// All of this can change due to state changes, and that's when this function should be called.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Resizing()
{
Interop.Elementary.elm_layout_sizing_eval(RealHandle);
/// </summary>
/// <param name="width">Restrict minimum size ot the current width.</param>
/// <param name="height">Restrict minimum size ot the current height.</param>
+ /// <since_tizen> preview </since_tizen>
public void Resizing(bool width, bool height)
{
Interop.Elementary.elm_layout_sizing_restricted_eval(RealHandle, width, height);
/// </summary>
/// <param name="key">The data key</param>
/// <returns>The data</returns>
+ /// <since_tizen> preview </since_tizen>
public string GetEdjeData(string key)
{
return Interop.Elementary.elm_layout_data_get(RealHandle, key);
/// </summary>
/// <param name="part">The TEXT part to retrieve the text off.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public override string GetPartText(string part)
{
return Interop.Elementary.elm_layout_text_get(RealHandle, part);
/// <param name="part">The TEXT part to retrieve the text off.</param>
/// <param name="text">The text to set.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public override bool SetPartText(string part, string text)
{
return Interop.Elementary.elm_layout_text_set(RealHandle, part, text);
/// <param name="part">The part</param>
/// <param name="child">The Object to append</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxAppend(string part, EvasObject child)
{
AddChild(child);
/// <param name="part">The part</param>
/// <param name="child">The Object to prepend</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxPrepend(string part, EvasObject child)
{
AddChild(child);
/// <param name="part">The part</param>
/// <param name="child">The Object to remove</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxRemove(string part, EvasObject child)
{
RemoveChild(child);
/// <param name="part">The part</param>
/// <param name="clear">If true, then all objects will be deleted as well, otherwise they will just be removed and will be dangling on the canvas.</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxRemoveAll(string part, bool clear)
{
ClearChildren();
/// <param name="child">The child object to insert into box.</param>
/// <param name="position">The numeric position >=0 to insert the child.</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxInsertAt(string part, EvasObject child, uint position)
{
AddChild(child);
/// <param name="child">The child object to insert into box.</param>
/// <param name="reference">Another reference object to insert before in box.</param>
/// <returns>Sucess is true</returns>
+ /// <since_tizen> preview </since_tizen>
public bool BoxInsertBefore(string part, EvasObject child, EvasObject reference)
{
AddChild(child);
/// <param name="part">The swallow part name in the edje file</param>
/// <param name="content">The child that will be added in this layout object.</param>
/// <returns>TRUE on success, FALSE otherwise</returns>
+ /// <since_tizen> preview </since_tizen>
public override bool SetPartContent(string part, EvasObject content)
{
return SetPartContent(part, content, false);
/// <param name="content">The content</param>
/// <param name="preserveOldContent">true, preserve old content will be unset. false, preserve old content will not be unset.</param>
/// <returns>TRUE on success, FALSE otherwise</returns>
+ /// <since_tizen> preview </since_tizen>
public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent)
{
if (preserveOldContent)
/// <param name="klass">The class of the group</param>
/// <param name="group">The group</param>
/// <param name="style">The style to use</param>
+ /// <since_tizen> preview </since_tizen>
public void SetTheme(string klass, string group, string style)
{
Interop.Elementary.elm_layout_theme_set(RealHandle, klass, group, style);
/// </summary>
/// <param name="file">The path to the file (edj) that is used as a layout</param>
/// <param name="group">The group that the layout belongs to in the edje file</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFile(string file, string group)
{
Interop.Elementary.elm_layout_file_set(RealHandle, file, group);
/// <summary>
/// Sets the back ground color of layout
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color BackgroundColor
{
set
/// <remarks>
/// API, elm_layout_text_valign_set, is an internal API only in Tizen. Avalilable since Tizen_4.0.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual void SetVerticalTextAlignment(string part, double valign)
{
Interop.Elementary.elm_layout_text_valign_set(RealHandle, part, valign);
/// <remarks>
/// API, elm_layout_text_valign_get, is internal API only in Tizen. Avalilable since Tizen_4.0.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual double GetVerticalTextAlignment(string part)
{
return Interop.Elementary.elm_layout_text_valign_get(RealHandle, part);
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Layout as a child. It's <see cref="EvasObject"/> type.</param>
/// <returns>The new object, otherwise null if it cannot be created</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// Enumeration for setting list's resizing behavior, transverse axis scrolling and items cropping.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ListMode
{
/// <summary>
/// It contains Item which is <see cref="ListItem"/> type.
/// All events of List contain ListItemEventArgs as a parameter.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ListItemEventArgs : EventArgs
{
/// <summary>
/// Gets or sets List item. The return type is <see cref="ListItem"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ListItem Item { get; set; }
internal static ListItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// </summary>
/// <seealso cref="GenList"/>
/// <seealso cref="GenGrid"/>
+ /// <since_tizen> preview </since_tizen>
public class List : Layout
{
HashSet<ListItem> _children = new HashSet<ListItem>();
/// Creates and initializes a new instance of the List class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by List as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public List(EvasObject parent) : base(parent)
{
_selected = new SmartEvent<ListItemEventArgs>(this, this.RealHandle, "selected", ListItemEventArgs.CreateFromSmartEvent);
/// <summary>
/// Gets or sets which mode to use for the list.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ListMode Mode
{
get
/// <summary>
/// Gets the selected item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ListItem SelectedItem
{
get
/// <summary>
/// ItemSelected is raised when a new list item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ListItemEventArgs> ItemSelected;
/// <summary>
/// ItemUnselected is raised when the list item is Unselected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ListItemEventArgs> ItemUnselected;
/// <summary>
/// ItemDoubleClicked is raised when a new list item is double clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ListItemEventArgs> ItemDoubleClicked;
/// <summary>
/// ItemLongPressed is raised when a list item is pressed for a certain amount of time. By default it's 1 second.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ListItemEventArgs> ItemLongPressed;
/// <summary>
/// ItemActivated is raised when a new list item is double clicked or pressed (enter|return|spacebar).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ListItemEventArgs> ItemActivated;
/// <summary>
/// Call before running <see cref="EvasObject.Show"/> on the list object.
/// If not called, it won't display the list properly.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Update()
{
Interop.Elementary.elm_list_go(RealHandle);
/// <param name="label">The text for the item.</param>
/// <returns>Return a new added list item that contains a text.</returns>
/// <seealso cref="ListItem"/>
+ /// <since_tizen> preview </since_tizen>
public ListItem Append(string label)
{
return Append(label, null, null);
/// <param name="rightIcon">The right icon for the item.</param>
/// <returns>Return a new added list item that contains a text and 2 icons.</returns>
/// <seealso cref="ListItem"/>
+ /// <since_tizen> preview </since_tizen>
public ListItem Append(string label, EvasObject leftIcon, EvasObject rightIcon)
{
ListItem item = new ListItem(label, leftIcon, rightIcon);
/// </summary>
/// <param name="label">The text for the item.</param>
/// <returns>Return a new added list item that contains a text.</returns>
+ /// <since_tizen> preview </since_tizen>
public ListItem Prepend(string label)
{
return Prepend(label, null, null);
/// <param name="leftIcon">The left icon for the item.</param>
/// <param name="rigthIcon">The right icon for the item.</param>
/// <returns>Return a new added list item that contains a text and 2 icons.</returns>
+ /// <since_tizen> preview </since_tizen>
public ListItem Prepend(string label, EvasObject leftIcon, EvasObject rigthIcon)
{
ListItem item = new ListItem(label, leftIcon, rigthIcon);
/// Removes all items from a given list widget.
/// To delete just one item, use <see cref="ItemObject.Delete"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_list_clear(RealHandle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// A instance to the list item added.
/// It contains Text, LeftIcon and RightIcon properties to show a list item which is given.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ListItem : ItemObject
{
internal ListItem(string text, EvasObject leftIcon, EvasObject rightIcon) : base(IntPtr.Zero)
/// <summary>
/// Gets the text for the list item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text { get; internal set; }
/// <summary>
/// Gets the left icon for the list item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject LeftIcon { get; internal set; }
/// <summary>
/// Gets the right icon for the list item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject RightIcon { get; internal set; }
}
}
\ No newline at end of file
/// When a text button is pressed, it will become focused. Backspace removes the focus. When the multi-button entry loses focus, items longer than one line are shrunk to one line.
/// The typical use case of multi-button entry is composing emails/messages to a group of addresses, each of which is an item that can be clicked for further actions.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MultiButtonEntry : Layout
{
HashSet<MultiButtonEntryItem> _children = new HashSet<MultiButtonEntryItem>();
/// Creates and initializes a new instance of the MultiButtonEntry class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by MultiButtonEntry as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntry(EvasObject parent) : base(parent)
{
_clicked = new SmartEvent(this, "clicked");
/// <summary>
/// Clicked is raised when a MultiButtonEntry is clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
/// <summary>
/// Expanded is raised when a MultiButtonEntry is expanded.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Expanded;
/// <summary>
/// Contracted is raised when a MultiButtonEntry is contracted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Contracted;
/// <summary>
/// ExpandedStateChanged is raised when shrink mode state of MultiButtonEntry is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ExpandedStateChanged;
/// <summary>
/// ItemSelected is raised when an item is selected by api, user interaction, and etc.
/// This is also raised when a user press back space while cursor is on the first field of entry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MultiButtonEntryItemEventArgs> ItemSelected;
/// <summary>
/// ItemClicked is raised when an item is clicked by user interaction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MultiButtonEntryItemEventArgs> ItemClicked;
/// <summary>
/// ItemLongPressed is raised when MultiButtonEntry item is pressed for a long time.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MultiButtonEntryItemEventArgs> ItemLongPressed;
/// <summary>
/// ItemAdded is raised when a new MultiButtonEntry item is added.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MultiButtonEntryItemEventArgs> ItemAdded;
/// <summary>
/// ItemDeleted is raised when a MultiButtonEntry item is deleted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<MultiButtonEntryItemEventArgs> ItemDeleted;
/// <summary>
/// Gets the selected item in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem SelectedItem
{
get
/// <summary>
/// Gets or sets whether the multibuttonentry is editable or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsEditable
{
get
/// If true, expanded state.
/// If false, single line state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsExpanded
{
get
/// <summary>
/// Gets the first item in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem FirstItem
{
get
/// <summary>
/// Gets the last item in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem LastItem
{
get
/// <summary>
/// Gets the entry object int the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Entry Entry
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_multibuttonentry_add(parent.Handle);
/// </summary>
/// <param name="label">The label of new item.</param>
/// <returns>A MultiButtonEntryItem to the item added.</returns>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem Append(string label)
{
var handle = Interop.Elementary.elm_multibuttonentry_item_append(RealHandle, label, null, IntPtr.Zero);
/// </summary>
/// <param name="label">The label of new item.</param>
/// <returns>A MultiButtonEntryItem to the item added.</returns>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem Prepend(string label)
{
var handle = Interop.Elementary.elm_multibuttonentry_item_prepend(RealHandle, label, null, IntPtr.Zero);
/// <param name="before">The item before which to add it.</param>
/// <param name="label">The label of new item.</param>
/// <returns>A MultiButtonEntryItem to the item added.</returns>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem InsertBefore(MultiButtonEntryItem before, string label)
{
var handle = Interop.Elementary.elm_multibuttonentry_item_insert_before(RealHandle, before.Handle, label, null, IntPtr.Zero);
/// <param name="after">The item after which to add it.</param>
/// <param name="label">The label of new item.</param>
/// <returns>A MultiButtonEntryItem to the item added.</returns>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem InsertAfter(MultiButtonEntryItem after, string label)
{
var handle = Interop.Elementary.elm_multibuttonentry_item_insert_after(RealHandle, after.Handle, label, null, IntPtr.Zero);
/// <summary>
/// Remove all items in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_multibuttonentry_clear(RealHandle);
/// Append an item filter function for text inserted in the Multibuttonentry.
/// </summary>
/// <param name="func">The function to use as item filter.</param>
+ /// <since_tizen> preview </since_tizen>
public void AppendFilter(Func<string, bool> func)
{
_filters.Add(func);
/// Prepend a filter function for text inserted in the Multibuttonentry.
/// </summary>
/// <param name="func">The function to use as text filter.</param>
+ /// <since_tizen> preview </since_tizen>
public void PrependFilter(Func<string, bool> func)
{
_filters.Insert(0, func);
/// Remove a filter from the list.
/// </summary>
/// <param name="func">The filter function to remove.</param>
+ /// <since_tizen> preview </since_tizen>
public void RemoveFilter(Func<string, bool> func)
{
_filters.Remove(func);
/// If func is NULL, the default format will be used, which is "+ 'the hidden items counter'".
/// </summary>
/// <param name="func">The function to return string to show</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFormatCallback(Func<int, string> func)
{
if (func == null)
/// The MultiButtonEntryItemEventArgs is a argument for all events of MultiButtonEntry.
/// It contains Item which is <see cref="MultiButtonEntryItem"/> type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MultiButtonEntryItemEventArgs : EventArgs
{
/// <summary>
/// Gets or sets MultiButtonEntryItem item. The return type is <see cref="MultiButtonEntryItem"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem Item { get; set; }
internal static MultiButtonEntryItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// MutltiButtonEntryItem is a item which is added to MultiButtonEntry.
/// It contains Next and Prev properties to get next and previous item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class MultiButtonEntryItem : ItemObject
{
/// <summary>
/// Creates and initializes a new instance of the MultiButtonEntryItem class.
/// </summary>
/// <param name="text">The text of MultiButtonEntryItem's Label name.</param>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem(string text) : base(IntPtr.Zero)
{
Label = text;
/// <summary>
/// Gets the label of this item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Label { get; private set; }
/// <summary>
/// Gets or sets the selected state of an item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSelected
{
get
/// <summary>
/// Get the next item in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem Next
{
get
/// <summary>
/// Get the previous item in the multibuttonentry.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public MultiButtonEntryItem Prev
{
get
/// <summary>
/// Predefined values for Hints properties in EvasObject
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class NamedHint
{
/// <summary>
/// This value can be used to <see cref="EvasObject.WeightX"/> and <see cref="EvasObject.WeightY"/>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double Expand = 1.0;
/// <summary>
/// This value can be used to <see cref="EvasObject.AlignmentX"/> and <see cref="EvasObject.AlignmentY"/>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static double Fill = -1.0;
}
}
/// The NaviItem is a widget to contain the contents to show in Naviframe.
/// Inherits ItemObject
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class NaviItem : ItemObject
{
EvasObject _content;
/// <summary>
/// Popped will be triggered when NaviItem is removed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Popped;
/// <summary>
/// Gets the content object. The name of content part is "elm.swallow.content".
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject Content
{
get { return _content; }
/// <summary>
/// Sets or gets a value whether title area is enabled or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool TitleBarVisible
{
get
/// <summary>
/// Sets or gets the title bar background color
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color TitleBarBackgroundColor
{
get
/// <summary>
/// Sets or gets an item style.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override string Style
{
get
/// Invalidate the EventArgs if _isPopped is false.
/// The method should be overridden in children class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnInvalidate()
{
if (!_isPopped)
/// The NaviframeEventArgs is a event args class for navi frame.
/// Inherits EventArgs
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class NaviframeEventArgs : EventArgs
{
/// <summary>
/// Sets or gets the content object. The name of content part is "elm.swallow.content".
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject Content { get; set; }
}
/// <summary>
/// Naviframe is a widget to stands for navigation frame. It's a views manager for applications.
/// Inherits Widget
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Naviframe : Widget
{
SmartEvent _transitionFinished;
/// Creates and initializes a new instance of Naviframe class.
/// </summary>
/// <param name="parent">The parent is a given container which will be attached by Naviframe as a child. It's <see cref="EvasObject"/> type.</param>
+ /// <since_tizen> preview </since_tizen>
public Naviframe(EvasObject parent) : base(parent)
{
_transitionFinished = new SmartEvent(this, this.RealHandle, "transition,finished");
/// This event will be invoked in progress of Pop/Delete operation.
/// After called Popped event, Pop/Delete method will be returned
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<NaviframeEventArgs> Popped;
/// <summary>
/// AnimationFinished will be triggered when animation is finished.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler AnimationFinished;
/// <summary>
/// Gets the list of navi item
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public IReadOnlyList<NaviItem> NavigationStack
{
get { return _itemStack; }
/// <summary>
/// Sets or gets the the preserve content objects when items are popped.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool PreserveContentOnPop
{
get
/// <summary>
/// Sets or gets whether the default back button is enabled
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool DefaultBackButtonEnabled
{
get
/// </summary>
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem Push(EvasObject content)
{
return Push(content, null);
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <param name="title">The current item title. null would be default.</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem Push(EvasObject content, string title)
{
return Push(content, title, null);
/// <param name="title">The current item title. null would be default.</param>
/// <param name="style">The current item style name. null would be default.</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem Push(EvasObject content, string title, string style)
{
IntPtr item = Interop.Elementary.elm_naviframe_item_push(RealHandle, title, IntPtr.Zero, IntPtr.Zero, content.Handle, style);
/// <param name="before">The item which the new item is inserted before.</param>
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertBefore(NaviItem before, EvasObject content)
{
return InsertBefore(before, content, "");
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <param name="title">The current item title. null would be default.</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertBefore(NaviItem before, EvasObject content, string title)
{
return InsertBefore(before, content, title, null);
/// <param name="title">The current item title. null would be default.</param>
/// <param name="style">The current item style name. null would be default.</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertBefore(NaviItem before, EvasObject content, string title, string style)
{
IntPtr item = Interop.Elementary.elm_naviframe_item_insert_before(RealHandle, before, title, IntPtr.Zero, IntPtr.Zero, content, null);
/// <param name="after">The item which the new item is inserted after.</param>
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertAfter(NaviItem after, EvasObject content)
{
return InsertAfter(after, content, "");
/// <param name="content">The main content object. The name of content part is "elm.swallow.content".</param>
/// <param name="title">The current item title. null would be default.</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertAfter(NaviItem after, EvasObject content, string title)
{
return InsertAfter(after, content, title, null);
/// <param name="title">The current item title. null would be default.</param>
/// <param name="style">The current item style name. null would be default.</param>
/// <returns>The created item or null upon failure.</returns>
+ /// <since_tizen> preview </since_tizen>
public NaviItem InsertAfter(NaviItem after, EvasObject content, string title, string style)
{
IntPtr item = Interop.Elementary.elm_naviframe_item_insert_after(RealHandle, after, title, IntPtr.Zero, IntPtr.Zero, content, null);
/// <summary>
/// Pop an item that is on top of the stack.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Pop()
{
Interop.Elementary.elm_naviframe_item_pop(RealHandle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent);
/// <summary>
/// Enumeration for paneldirection type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum PanelDirection
{
/// <summary>
/// <summary>
/// The Panel is a container that can contain subobjects.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Panel : Layout
{
SmartEvent _toggled;
/// Creates and initializes a new instance of Panel class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Panel will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Panel(EvasObject parent) : base(parent)
{
_toggled = new SmartEvent(this, this.RealHandle, "toggled");
/// <summary>
/// Sets or gets the hidden status of a given Panel widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsOpen
{
get
/// <summary>
/// Sets or gets the direction of a given Panel widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public PanelDirection Direction
{
get
/// <summary>
/// Toggled will be triggered when toggles Panel.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Toggled;
/// <summary>
/// <param name="enable">
/// Bool value can be false or true.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public void SetScrollable(bool enable)
{
Interop.Elementary.elm_panel_scrollable_set(RealHandle, enable);
/// <param name="ratio">
/// The size of scroll area.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public void SetScrollableArea(double ratio)
{
Interop.Elementary.elm_panel_scrollable_content_size_set(RealHandle, ratio);
/// <summary>
/// Toggles the hidden state of the Panel.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Toggle()
{
Interop.Elementary.elm_panel_toggle(RealHandle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent);
/// The Panes is a widget that adds a draggable bar between two contents.
/// When dragged this bar resizes contents' size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Panes : Layout
{
SmartEvent _press;
/// Creates and initializes a new instance of the Panes class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Panes will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Panes(EvasObject parent) : base(parent)
{
_press = new SmartEvent(this, this.RealHandle, "press");
/// <summary>
/// Pressed will be triggered when panes have been pressed (button isn't released yet).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Pressed;
/// <summary>
/// Unpressed will be triggered when panes are released after being pressed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Unpressed;
/// <summary>
/// Sets or gets resize mode of a given Panes widget.
/// True means the left and right panes resize homogeneously.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsFixed
{
get
///
/// The value is float type and between 0.0 and 1.0 representing the size proportion of the left side.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Proportion
{
get
/// Horizontal panes have "top" and "bottom" contents, vertical panes have "left" and "right" contents.
/// By default panes is in a vertical mode.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// If displayed vertically, left content is displayed at top.
/// value representing minimum size of left side in pixels.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int LeftMinimumSize
{
get
/// If displayed vertically, left content is displayed at top.
/// value between 0.0 and 1.0 representing size proportion of minimum size of left side.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double LeftMinimumRelativeSize
{
get
/// If displayed vertically, right content is displayed at top.
/// value representing minimum size of right side in pixels.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int RightMinimumSize
{
get
/// If displayed vertically, right content is displayed at top.
/// value between 0.0 and 1.0 representing size proportion of minimum size of right side.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double RightMinimumRelativeSize
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The Point is a struct that defines a 2-D point as a pair of generic type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public struct Point : IEquatable<Point>
{
/// <summary>
/// Location along the horizontal axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int X;
/// <summary>
/// Location along the vertical axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Y;
/// <summary>
/// A human-readable representation of the <see cref="T:Tizen.UI.Point" />.
/// </summary>
/// <returns>The string is formatted as "{{X={0} Y={1}}}".</returns>
+ /// <since_tizen> preview </since_tizen>
public override string ToString()
{
return string.Format("{{X={0} Y={1}}}", X, Y);
/// Gets hash code.
/// </summary>
/// <returns>The hash code.</returns>
+ /// <since_tizen> preview </since_tizen>
public override int GetHashCode()
{
unchecked
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public override bool Equals(object obj)
{
if (!(obj is Point))
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool Equals(Point other)
{
return X.Equals(other.X) && Y.Equals(other.Y);
/// <param name="p1">A <see cref="T:Tizen.UI.Point" /> on the left hand side.</param>
/// <param name="p2">A <see cref="T:Tizen.UI.Point" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Point" />s have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator ==(Point p1, Point p2)
{
return p1.Equals(p2);
/// <param name="p1">A <see cref="T:Tizen.UI.Point" /> on the left hand side.</param>
/// <param name="p2">A <see cref="T:Tizen.UI.Point" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Point" />s do not have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator !=(Point p1, Point p2)
{
return !p1.Equals(p2);
/// <summary>
/// The Point3D is a Struct that defining a 3-D point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public struct Point3D : IEquatable<Point3D>
{
/// <summary>
/// The X coordinate of a 3D point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int X;
/// <summary>
/// The Y coordinate of a 3D point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Y;
/// <summary>
/// The Z coordinate of a 3D point.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Z;
/// <summary>
/// A human-readable representation of the <see cref="T:Tizen.UI.Point3D" />.
/// </summary>
/// <returns>The string is formatted as "{{X={0} Y={1} Z={2}}}".</returns>
+ /// <since_tizen> preview </since_tizen>
public override string ToString()
{
return string.Format("{{X={0} Y={1} Z={2}}}", X, Y, Z);
}
///
+ /// <since_tizen> preview </since_tizen>
public override int GetHashCode()
{
unchecked
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public override bool Equals(object obj)
{
if (!(obj is Point3D))
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool Equals(Point3D other)
{
return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z);
/// <param name="p1">A <see cref="T:Tizen.UI.Point3D" /> on the left hand side.</param>
/// <param name="p2">A <see cref="T:Tizen.UI.Point3D" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Point3D" />s have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator ==(Point3D p1, Point3D p2)
{
return p1.Equals(p2);
/// <param name="p1">A <see cref="T:Tizen.UI.Point3D" /> on the left hand side.</param>
/// <param name="p2">A <see cref="T:Tizen.UI.Point3D" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Point3D" />s do not have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator !=(Point3D p1, Point3D p2)
{
return !p1.Equals(p2);
/// <summary>
/// The Polygon is a widget that used to draw a polygon (filled).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Polygon : EvasObject
{
/// <summary>
/// Creates and initializes a new instance of the Polygon class.
/// <param name="parent">The EvasObject to which the new Polygon will be attached as a child.</param>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Polygon(EvasObject parent) : base(parent)
{
}
/// <param name="x">The X coordinate of the new vertex.</param>
/// <param name="y">The Y coordinate of the new vertex.</param>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void AddPoint(int x, int y)
{
Interop.Evas.evas_object_polygon_point_add(Handle, x, y);
/// Adds a new vertex to the Polygon.
/// <param name="p">The coordinates of the new vertex.</param>
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void AddPoint(Point p)
{
AddPoint(p.X, p.Y);
/// <summary>
/// Removes all the vertices of the Polygon, making it empty.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void ClearPoints()
{
Interop.Evas.evas_object_polygon_points_clear(Handle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle);
/// <summary>
/// Enumeration for the popup orientation type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum PopupOrientation
{
/// <summary>
/// The Popup is a widget that is an enhancement of Notify.
/// In addition to content area, there are two optional sections, namely title area and action area.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Popup : Layout
{
HashSet<PopupItem> _children = new HashSet<PopupItem>();
/// Creates and initializes a new instance of the Popup class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Popup will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Popup(EvasObject parent) : base(parent)
{
_dismissed = new SmartEvent(this, "dismissed");
/// <summary>
/// Dismissed will be triggered when Popup have been dismissed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Dismissed;
/// <summary>
/// OutsideClicked will be triggered when users taps on the outside of Popup.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler OutsideClicked;
/// <summary>
/// OutsideClicked will be triggered when Popup is closed as a result of timeout.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler TimedOut;
/// <summary>
/// OutsideClicked will be triggered when the Popup transition is finished in showing.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ShowAnimationFinished;
/// <summary>
/// Sets or gets the position in which Popup will appear in its parent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public PopupOrientation Orientation
{
get
/// <summary>
/// Sets or gets the wrapping type of content text packed in content area of Popup widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WrapType ContentTextWrapType
{
get
/// <![CDATA[Set a value <= 0.0 to disable a running timer.If the value > 0.0 and the popup is previously visible,]]>
/// the timer will be started with this value, canceling any running timer.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Timeout
{
get
/// <remarks>
/// The visible region of popup is surrounded by a translucent region called Blocked Event area.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool AllowEvents
{
get
/// <summary>
/// Sets or gets the AlignmentX in which the popup will appear in its parent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override double AlignmentX
{
get
/// <summary>
/// Sets or gets the AlignmentY in which the popup will appear in its parent.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override double AlignmentY
{
get
/// <summary>
/// Gets the Opacity value of the Popup.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Opacity
{
get
/// </summary>
/// <param name="label"></param>
/// <returns>The new PopupItem which contains label .</returns>
+ /// <since_tizen> preview </since_tizen>
public PopupItem Append(string label)
{
return Append(label, null);
/// <param name="label">The Label which will be added into a new PopupItem. </param>
/// <param name="icon">The icon which will be added into a new PopupItem. </param>
/// <returns>The new PopupItem which contains label and icon.</returns>
+ /// <since_tizen> preview </since_tizen>
public PopupItem Append(string label, EvasObject icon)
{
PopupItem item = new PopupItem(label, icon);
/// Uses this function to dismiss the popup in hide effect.
/// when the Popup is dismissed, the "dismissed" signal will be emitted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dismiss()
{
Interop.Elementary.elm_popup_dismiss(Handle);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
return Interop.Elementary.elm_popup_add(parent.Handle);
/// <summary>
/// The PopupItem is a class that including icon and text.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class PopupItem : ItemObject
{
internal PopupItem(string text, EvasObject icon) : base(IntPtr.Zero)
/// <summary>
/// Gets the text label of popupitem.Return value is string.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text { get; internal set; }
/// <summary>
/// Gets the icon EvasObject of popupitem.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public EvasObject Icon { get; internal set; }
}
}
/// <summary>
/// The ProgressBar is a widget for visually representing the progress status of a given job/task.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ProgressBar : Layout
{
SmartEvent _changed;
/// Creates and initializes a new instance of the ProgressBar class.
/// </summary>
/// <param name="parent">The EvasObject to which the new ProgressBar will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public ProgressBar(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
/// <summary>
/// ValueChanged will be triggered when value of ProgressBar change.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ValueChanged;
/// <summary>
/// but without exact progress values. In the default theme,
/// it animates its bar with the contents filling in constantly and back to non-filled, in a loop.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsPulseMode
{
get
/// If you pass a value out of the specified range(0.0~1.0),
/// it is interpreted as the closest of the boundary values in the range.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Value
{
get
/// <summary>
/// Sets or gets the span value of ProgressBar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int SpanSize
{
get
/// <summary>
/// Sets or gets the value wheather a given ProgressBar widget is horizontal.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// <summary>
/// Sets or gets the value whether a given progress bar widget's displaying values are inverted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsInverted
{
get
/// The units label is provided with a floating point value, so the units text displays at most one floating point value.
/// Note that the units label is optional. Use a format string such as "%1.2f meters" for example.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public string UnitFormat
{
get
/// <summary>
/// Starts a given progress bar "pulsing" animation, if its under that mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PlayPulse()
{
Interop.Elementary.elm_progressbar_pulse(RealHandle, true);
/// <summary>
/// Stops a given progress bar "pulsing" animation, if its under that mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("use StopPulse instead")]
public void StopPluse()
{
/// <summary>
/// Stops a given progress bar "pulsing" animation, if its under that mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void StopPulse()
{
Interop.Elementary.elm_progressbar_pulse(RealHandle, false);
/// </summary>
/// <param name="part">Part of the Progressbar.</param>
/// <returns>Returns value range is from 0.0 to 1.0.</returns>
+ /// <since_tizen> preview </since_tizen>
public double GetPartValue(string part)
{
return Interop.Elementary.elm_progressbar_part_value_get(RealHandle, part);
/// <summary>
/// Sets or gets the general or main color of the given Progressbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override Color Color
{
get
/// </summary>
/// <param name="part">Part of the Progressbar.</param>
/// <param name="value">Value range is from 0.0 to 1.0.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartValue(string part, double value)
{
Interop.Elementary.elm_progressbar_part_value_set(RealHandle, part, value);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The Radio is a widget that allows for 1 or more options to be displayed and have the user choose only 1 of them.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Radio : Layout
{
SmartEvent _changed;
/// Creates and initializes a new instance of the Radio class.
/// </summary>
/// <param name="parent">The EvasObject to which the new Radio will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Radio(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
/// <summary>
/// ValueChanged will be triggered when value of Radio change.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ValueChanged;
/// <summary>
/// Sets or gets a unique value to each Radio button.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int StateValue
{
get
/// <summary>
/// Sets or gets the value of the radio group.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int GroupValue
{
get
/// Adds this radio to a group of other radio objects.
/// </summary>
/// <param name="group">Group which add radio in.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetGroup(Radio group)
{
if (group == null)
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// Enumeration for ReadingInfoType.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum ReadingInfoType
{
/// <summary>
/// The Rect is a struct that represent rectangluar space.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[StructLayout(LayoutKind.Sequential)]
public struct Rect : IEquatable<Rect>
{
/// <param name="y">Y axis value.</param>
/// <param name="w">Width value.</param>
/// <param name="h">Height value.</param>
+ /// <since_tizen> preview </since_tizen>
public Rect(int x, int y, int w, int h)
{
X = x;
/// <summary>
/// Gets or sets the position of this Rectangle on the X axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int X { get; set; }
/// <summary>
/// Gets or sets the position of this Rectangle on the Y axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Y { get; set; }
/// <summary>
/// Gets or sets the width of this Rectangle.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Width { get; set; }
/// <summary>
/// Gets or sets the height of this Rectangle.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Height { get; set; }
/// <summary>
/// Gets the position of this Rectangle on the X axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Left { get { return X; } }
/// <summary>
/// Gets the extent along the X axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Right { get { return X + Width; } }
/// <summary>
/// Gets the position of this Rectangle on the Y axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Top { get { return Y; } }
/// <summary>
/// Gets the extent along the Y axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Bottom { get { return Y + Height; } }
/// <summary>
/// Gets the Point defined by Rectangle.Left and Rectangle.Top.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point Location { get { return new Point { X = X, Y = Y }; } }
/// <summary>
/// Gets the extent of the Rectangle along its X and Y axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size Size { get { return new Size { Width = Width, Height = Height }; } }
/// <summary>
/// A human-readable representation of the <see cref="T:Tizen.UI.Rect" />.
/// </summary>
/// <returns>The string is formatted as "{{X={0} Y={1} Width={2} Height={3}}}".</returns>
+ /// <since_tizen> preview </since_tizen>
public override string ToString()
{
return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X, Y, Width, Height);
/// Gets the hash code.
/// </summary>
/// <returns>The hash code.</returns>
+ /// <since_tizen> preview </since_tizen>
public override int GetHashCode()
{
unchecked
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public override bool Equals(object obj)
{
if (!(obj is Rect))
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool Equals(Rect other)
{
return X.Equals(other.X) && Y.Equals(other.Y) && Width.Equals(other.Width) && Height.Equals(other.Height);
/// <param name="r1">A <see cref="T:Tizen.UI.Rectangle" /> on the left hand side.</param>
/// <param name="r2">A <see cref="T:Tizen.UI.Rectangle" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Rectangle" />s have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator ==(Rect r1, Rect r2)
{
return r1.Equals(r2);
/// <param name="r1">A <see cref="T:Tizen.UI.Rectangle" /> on the left hand side.</param>
/// <param name="r2">A <see cref="T:Tizen.UI.Rectangle" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Rectangle" />s do not have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator !=(Rect r1, Rect r2)
{
return !r1.Equals(r2);
/// <summary>
/// The Rectangle is a class that used to draw a solid colored rectangle.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Rectangle : EvasObject
{
/// <summary>
/// Creates and initializes a new instance of the Rectangle class.
/// </summary>
/// <param name="parent">The <see cref="EvasObject"/> to which the new Slider will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Rectangle(EvasObject parent) : base(parent)
{
Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle);
/// <summary>
/// Enumeration for visible type of scrollbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ScrollBarVisiblePolicy
{
/// <summary>
/// <summary>
/// Enumeration for visible type of scrollbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ScrollBlock
{
/// <summary>
/// <summary>
/// Type that controls how the content is scrolled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ScrollSingleDirection
{
/// <summary>
/// <summary>
/// The Scroller is a container that holds and clips a single object and allows you to scroll across it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Scroller : Layout
{
SmartEvent _scroll;
/// Creates and initializes a new instance of the Scroller class.
/// </summary>
/// <param name="parent">The <see cref="EvasObject"/> to which the new Scroller will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Scroller(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of the Scroller class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Scroller() : base()
{
}
/// <summary>
/// Scrolled will be triggered when the content has been scrolled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Scrolled
{
add
/// <summary>
/// DragStart will be triggered when dragging the contents around has started.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DragStart
{
add
/// <summary>
/// DragStop will be triggered when dragging the contents around has stopped.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DragStop
{
add
/// <summary>
/// PageScrolled will be triggered when the visible page has changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler PageScrolled
{
add
/// <summary>
/// Gets the current region in the content object that is visible through the Scroller.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Rect CurrentRegion
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy
{
get
/// This function will block scrolling movement in a given direction.One can disable movements in the X axis, the Y axis or both.
/// The default value is ScrollBlock.None, where movements are allowed in both directions.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public ScrollBlock ScrollBlock
{
get
/// If there are two or more pages in the viewport, it returns the number of the page which meets the top of the viewport.
/// The page number starts from 0. 0 is the first page.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public int VerticalPageIndex
{
get
/// If there are two or more pages in the viewport, it returns the number of the page which meets the left of the viewport.
/// The page number starts from 0. 0 is the first page.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public int HorizontalPageIndex
{
get
/// <summary>
/// Sets or gets the maximum limit of the movable page at vertical direction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalPageScrollLimit
{
get
/// <summary>
/// Sets or gets the maximum limit of the movable page at horizontal direction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int HorizontalPageScrollLimit
{
get
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool VerticalBounce
{
get
/// 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.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool HorizontalBounce
{
get
/// <summary>
/// Gets the width of the content object of the scroller.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ChildWidth
{
get
/// <summary>
/// Gets the height of the content object of the scroller.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ChildHeight
{
get
/// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the rigth edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
/// Default values for x and y are 0.0
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double HorizontalGravity
{
get
/// x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the rigth edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content
/// Default values for x and y are 0.0
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalGravity
{
get
/// Get scroll last page number.
/// The page number starts from 0. 0 is the first page. This returns the last page number among the pages.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int LastVerticalPageNumber
{
get
/// Get scroll last page number.
/// The page number starts from 0. 0 is the first page. This returns the last page number among the pages.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int LastHorizontalPageNumber
{
get
/// This function sets the infinite loop vertically.
/// If the content is set, it will be shown repeatedly.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool VerticalLoop
{
get
/// This function sets the infinite loop horizontally.
/// If the content is set, it will be shown repeatedly.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool HorizontalLoop
{
get
/// <summary>
/// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double VerticalRelativePageSize
{
get
/// <summary>
/// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double HorizontalRelativePageSize
{
get
/// it will stop at the next page boundaries. This is disabled, by default, for both axis.
/// This function will set if it that is enabled or not, for each axis.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool VerticalSnap
{
get
/// it will stop at the next page boundaries. This is disabled, by default, for both axis.
/// This function will set if it that is enabled or not, for each axis.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool HorizontalSnap
{
get
/// <summary>
/// Gets or sets the page size to an absolute fixed value, with 0 turning it off for that axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int PageHeight
{
get
/// <summary>
/// Gets or sets the page size to an absolute fixed value, with 0 turning it off for that axis.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int PageWidth
{
get
/// This enables or disables event propagation from the scroller content to the scroller and its parent.
/// By default event propagation is enabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ContentPropagateEvents
{
get
/// <summary>
/// Gets or sets the step size to move scroller by key event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int HorizontalStepSize
{
get
/// <summary>
/// Gets or sets the step size to move scroller by key event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int VerticalStepSize
{
get
/// <summary>
/// Gets or sets a value whether mouse wheel is enabled or not over the scroller.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool WheelDisabled
{
get
/// <summary>
/// Gets or sets the type of single direction scroll.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ScrollSingleDirection SingleDirection
{
get
/// </summary>
/// <param name="horizontal">Enable limiting minimum size horizontally</param>
/// <param name="vertical">Enable limiting minimum size vertically</param>
+ /// <since_tizen> preview </since_tizen>
public void MinimumLimit(bool horizontal, bool vertical)
{
Interop.Elementary.elm_scroller_content_min_limit(RealHandle, horizontal, vertical);
/// </summary>
/// <param name="width">The horizontal page size.</param>
/// <param name="height">The vertical page size.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPageSize(int width, int height)
{
Interop.Elementary.elm_scroller_page_size_set(RealHandle, width, height);
/// </remarks>
/// <param name="width">The horizontal page relative size.</param>
/// <param name="height">The vertical page relative size.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPageSize(double width, double height)
{
Interop.Elementary.elm_scroller_page_relative_set(RealHandle, width, height);
/// <param name="horizontalPageIndex">The horizontal page number.</param>
/// <param name="verticalPageIndex">The vertical page number.</param>
/// <param name="animated">True means slider with animation.</param>
+ /// <since_tizen> preview </since_tizen>
public void ScrollTo(int horizontalPageIndex, int verticalPageIndex, bool animated)
{
if (animated)
/// </remarks>
/// <param name="region">Rect struct of region.</param>
/// <param name="animated">True means allows the scroller to "smoothly slide" to this location.</param>
+ /// <since_tizen> preview </since_tizen>
public void ScrollTo(Rect region, bool animated)
{
if (animated)
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The Size is a struct that defining height and width as a pair of generic type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public struct Size : IEquatable<Size>
{
/// <summary>
/// Magnitude along the horizontal axis, in platform-defined units.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Width;
/// <summary>
/// Magnitude along the vertical axis, in platform-specific units.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Height;
/// <summary>
/// </summary>
/// <param name="width">The width to set</param>
/// <param name="height">The height to set</param>
+ /// <since_tizen> preview </since_tizen>
public Size(int width, int height)
{
Width = width;
/// A human-readable representation of the <see cref="T:Tizen.UI.Size" />.
/// </summary>
/// <returns>The string is formatted as "{{Width={0} Height={1}}}".</returns>
+ /// <since_tizen> preview </since_tizen>
public override string ToString()
{
return string.Format("{{Width={0} Height={1}}}", Width, Height);
/// Gets hash code.
/// </summary>
/// <returns>The hash code.</returns>
+ /// <since_tizen> preview </since_tizen>
public override int GetHashCode()
{
unchecked
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public override bool Equals(object obj)
{
if (!(obj is Size))
/// true if obj and this instance are the same type and represent the same value.
/// otherwise, false.
/// </returns>
+ /// <since_tizen> preview </since_tizen>
public bool Equals(Size other)
{
return Width.Equals(other.Width) && Height.Equals(other.Height);
/// <param name="s1">A <see cref="T:Tizen.UI.Size" /> on the left hand side.</param>
/// <param name="s2">A <see cref="T:Tizen.UI.Size" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Size" />s have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator ==(Size s1, Size s2)
{
return s1.Equals(s2);
/// <param name="s1">A <see cref="T:Tizen.UI.Size" /> on the left hand side.</param>
/// <param name="s2">A <see cref="T:Tizen.UI.Size" /> on the right hand side.</param>
/// <returns>True if the two <see cref="T:Tizen.UI.Size" />s do not have equal values.</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool operator !=(Size s1, Size s2)
{
return !s1.Equals(s2);
/// <summary>
/// Enumeration for the Slider's indicator visiblity mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum SliderIndicatorVisibleMode
{
/// <summary>
/// <summary>
/// The Slider is a widget that adds a draggable slider widget for selecting the value of something within a range.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Slider : Layout
{
double _minimum = 0.0;
/// Creates and initializes a new instance of the Slider class.
/// </summary>
/// <param name="parent">The <see cref="EvasObject"/> to which the new Slider will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
public Slider(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
/// <summary>
/// ValueChanged will be triggered when the Slider value is changed by the user.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ValueChanged;
/// <summary>
/// This will be called only when the user stops dragging for a very short period or when they release their finger/mouse,
/// so it avoids possibly expensive reactions to the value change.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DelayedValueChanged;
/// <summary>
/// DragStarted will be triggered when dragging the Slider indicator around has started.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DragStarted;
/// <summary>
/// DragStopped will be triggered when dragging the Slider indicator around has stopped.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DragStopped;
/// <summary>
/// Use this when you're not setting other size hints expanding on the given direction
/// (like weight and alignment hints), and you would like it to have a specific size.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public int SpanSize
{
get
/// such as "%1.2f meters" for example, and it displays values like: "3.14 meters" for a value
/// equal to 3.14159.By default, the indicator label is disabled.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public string IndicatorFormat
{
get
/// <remarks>
/// The orientation may be vertically or horizontally.By default, it's displayed horizontally.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsHorizontal
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Minimum
{
get
/// 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.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Maximum
{
get
/// Value will be presented on the unit label following format specified with UnitFormat and
/// on indicator with IndicatorFormat.The value must to be between Minimum and Maximum values.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Value
{
get
/// is set and the flick event is used to inc/dec slider values.
/// By default, the step value is equal to 0.05.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public double Step
{
get
/// as opposed to normally have the low values on the former and high values on the latter,
/// respectively, for the horizontal and vertical modes.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsInverted
{
get
/// By default, the indicator is bigger when dragged by the user.
/// It won't display values set with IndicatorFormat if you disable the indicator.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsIndicatorVisible
{
get
/// <summary>
/// Sets or gets the visible mode of slider indicator.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public SliderIndicatorVisibleMode IndicatorVisibleMode
{
get
/// <summary>
/// Sets or gets whether to Show the indicator of slider on focus.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsIndicatorFocusable
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// They are defined by an event string, which identifies them uniquely.
/// </summary>
/// <typeparam name="TEventArgs">The parameter for the event.</typeparam>
+ /// <since_tizen> preview </since_tizen>
public class SmartEvent<TEventArgs> : IInvalidatable where TEventArgs : EventArgs
{
/// <summary>
/// <param name="obj">The sender obj.</param>
/// <param name="info">The item sender obj.</param>
/// <returns>Return smart event item args.</returns>
+ /// <since_tizen> preview </since_tizen>
public delegate TEventArgs SmartEventInfoParser(IntPtr data, IntPtr obj, IntPtr info);
private EvasObject _sender;
/// <param name="sender">The source of the event.</param>
/// <param name="eventName">The event name.</param>
/// <param name="parser">The event parameter.</param>
+ /// <since_tizen> preview </since_tizen>
public SmartEvent(EvasObject sender, string eventName, SmartEventInfoParser parser) : this(sender, sender.Handle, eventName, parser)
{
}
/// <param name="handle">Teh event handler.</param>
/// <param name="eventName">The event name.</param>
/// <param name="parser">The event parser.</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public SmartEvent(EvasObject sender, IntPtr handle, string eventName, SmartEventInfoParser parser)
{
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="eventName">The event name.</param>
+ /// <since_tizen> preview </since_tizen>
public SmartEvent(EvasObject sender, string eventName) : this(sender, eventName, null)
{
}
/// <summary>
/// Adds or removes delegate for event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<TEventArgs> On
{
add
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Make current instance invalidate.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MakeInvalidate()
{
_sender = null;
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (disposing)
/// This way, you can extend EvasObject's own <see cref="EvasObjectEvent"/>.
/// They are defined by an event string, which identifies them uniquely.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class SmartEvent : IInvalidatable
{
private SmartEvent<EventArgs> _smartEvent;
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="eventName">The event name.</param>
+ /// <since_tizen> preview </since_tizen>
public SmartEvent(EvasObject sender, string eventName) : this(sender, sender.RealHandle, eventName)
{
}
/// <param name="sender">The source of the event.</param>
/// <param name="handle">The event handler.</param>
/// <param name="eventName">The event name.</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public SmartEvent(EvasObject sender, IntPtr handle, string eventName)
{
/// <summary>
/// Adds or removes delegate for event.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler On
{
add
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// <summary>
/// Make current instance invalidate.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void MakeInvalidate()
{
_smartEvent.MakeInvalidate();
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (disposing)
/// The Spinner is a widget that increase or decrease numeric values using arrow buttons, or edit values directly.
/// Inherits <see cref="Layout"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Spinner : Layout
{
double _minimum = 0.0;
/// Creates and initializes a new instance of the Spinner class.
/// </summary>
/// <param name="parent">The parent of new Spinner instance</param>
+ /// <since_tizen> preview </since_tizen>
public Spinner(EvasObject parent) : base(parent)
{
}
/// <summary>
/// Creates and initializes a new instance of Layout class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Spinner() : base()
{
}
/// <summary>
/// ValueChanged will be triggered whenever the spinner value is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler ValueChanged;
/// <summary>
/// DelayedValueChanged will be triggered after a short time when the value is changed.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler DelayedValueChanged;
/// <summary>
/// Sets or gets the label format of the spinner.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string LabelFormat
{
get
/// <summary>
/// Sets or gets the minimum value for the spinner.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Minimum
{
get
/// <summary>
/// Sets or gets the maximum value for the spinner.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Maximum
{
get
/// <summary>
/// Sets or gets the step that used to increment or decrement the spinner value.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Step
{
get
/// <summary>
/// Sets or gets the value displayed by the spinner.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Value
{
get
/// <summary>
/// Sets or gets the interval on time updates for an user mouse button hold on spinner widgets' arrows.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Interval
{
get
/// <summary>
/// Sets or gets the base for rounding.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double RoundBase
{
get
/// <summary>
/// Sets or gets the round value for rounding.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int RoundValue
{
get
/// If wrap is enabled, when the user tries to increment the value, but displayed value plus step value is bigger than maximum value, the new value will be the minimum value.
/// By default it's disabled.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsWrapEnabled
{
get
/// Sets or gets whether the spinner can be directly edited by the user or not.
/// </summary>
/// <remarks>By default it is enabled</remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsEditable
{
get
/// </summary>
/// <param name="value">The numerical value to be replaced</param>
/// <param name="label">The label to be used</param>
+ /// <since_tizen> preview </since_tizen>
public void AddSpecialValue(double value, string label)
{
Interop.Elementary.elm_spinner_special_value_add(RealHandle, value, label);
/// Remove a previously added special value, After this, the spinner will display the value itself instead of a label.
/// </summary>
/// <param name="value">The replaced numerical value</param>
+ /// <since_tizen> preview </since_tizen>
public void RemoveSpecialValue(double value)
{
Interop.Elementary.elm_spinner_special_value_del(RealHandle, value);
/// </summary>
/// <param name="value">The replaced numerical value.</param>
/// <returns>The value of the spinner which replaced numerical value with special string</returns>
+ /// <since_tizen> preview </since_tizen>
public string GetSpecialValue(double value)
{
return Interop.Elementary.elm_spinner_special_value_get(RealHandle, value);
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// The Table is a container widget to arrange other widgets in a table where items can span multiple columns or rows .
/// Inherits <see cref="Container"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Table : Container
{
int _paddingX = 0;
/// <param name="parent">
/// A <see cref="EvasObject"/> to which the new Table instance will be attached.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public Table(EvasObject parent) : base(parent)
{
}
/// Sets or gets whether the layout of this table is homogeneous.
/// </summary>
/// <remarks>True for homogeneous, False for no homogeneous</remarks>
+ /// <since_tizen> preview </since_tizen>
public bool Homogeneous
{
get
/// <summary>
/// Sets or gets the horizontal padding between the cells.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int PaddingX
{
get
/// <summary>
/// Sets or gets the vertical padding between the cells.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int PaddingY
{
get
/// <param name="row">The row number</param>
/// <param name="colspan">The column span</param>
/// <param name="rowspan">The row span</param>
+ /// <since_tizen> preview </since_tizen>
public void Pack(EvasObject obj, int col, int row, int colspan, int rowspan)
{
if (obj == null)
/// Removes the child from the table.
/// </summary>
/// <param name="obj">The subobject</param>
+ /// <since_tizen> preview </since_tizen>
public void Unpack(EvasObject obj)
{
if (obj == null)
/// <summary>
/// Removes all child objects from a table object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Clear()
{
Interop.Elementary.elm_table_clear(RealHandle, false);
/// </summary>
/// <param name="part">The name of part class</param>
/// <param name="color">The color</param>
+ /// <since_tizen> preview </since_tizen>
public override void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255,
/// </summary>
/// <param name="part">The name of part class, it could be 'bg', 'elm.swllow.content'</param>
/// <returns>The color of the particular part</returns>
+ /// <since_tizen> preview </since_tizen>
public override Color GetPartColor(string part)
{
int r, g, b, a;
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent);
/// <summary>
/// Enumeration for the selection mode of Toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ToolbarSelectionMode
{
/// <summary>
/// <summary>
/// Enumeration that sets the toolbar items display behavior, it can be scrollable, can show a menu with exceeding items, or simply hide them.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ToolbarShrinkMode
{
/// <summary>
/// <summary>
/// Enumeration for the icon lookup order of Toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum ToolbarIconLookupOrder
{
/// <summary>
/// <remarks>
/// Inherits EventArgs.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public class ToolbarItemEventArgs : EventArgs
{
/// <summary>
/// Gets the ToolbarItem.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem Item { get; private set; }
internal static ToolbarItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info)
/// <summary>
/// The Toolbar is a widget that displays a list of items inside a box.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Toolbar : Widget
{
SmartEvent<ToolbarItemEventArgs> _clicked;
/// <param name="parent">
/// A EvasObject to which the new Table instance will be attached.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public Toolbar(EvasObject parent) : base(parent)
{
_selected = new SmartEvent<ToolbarItemEventArgs>(this, this.RealHandle, "selected", ToolbarItemEventArgs.CreateFromSmartEvent);
/// <summary>
/// Selected will be triggered when toolbar have been selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler<ToolbarItemEventArgs> Selected;
/// <summary>
/// Sets or gets whether the layout of this toolbar is homogeneous.
/// </summary>
/// <remarks>True for homogeneous, False for no homogeneous</remarks>
+ /// <since_tizen> preview </since_tizen>
public bool Homogeneous
{
get
/// <summary>
/// Sets or gets the slection mode of a given Toolbar widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarSelectionMode SelectionMode
{
get
/// <summary>
/// Sets or gets the shrink mode of a given Toolbar widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarShrinkMode ShrinkMode
{
get
/// <summary>
/// Sets or gets toolbar's current orientation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsHorizontal
{
/// The default lookup order is ToolbarIocnLookupOrder.ThemeFreedesktop.
/// Icons added before calling this function will not be affected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarIconLookupOrder IconLookupOrder
{
get
/// Sets or gets the icon size of a given toolbar widget.
/// Default value is 32 pixels, to be used by toolbar items.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int IconSize
{
get
/// <summary>
/// Gets the number of items in a toolbar widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ItemsCount
{
get
/// Sets or gets the alignment of the items.
/// </summary>
/// <remarks>The toolbar items alignment, a float between 0.0 and 1.0</remarks>
+ /// <since_tizen> preview </since_tizen>
public double ItemAlignment
{
get
/// The transverse expansion of the item, true for on and false for off.
/// By default it's false.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool TransverseExpansion
{
get
/// <returns>The new ToolbarItem which appended to the toolbar</returns>
/// <seealso cref="Append(string, string)"/>
/// <seealso cref="Prepend(string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem Append(string label)
{
return Append(label, null);
/// <seealso cref="Append(string)"/>
/// <seealso cref="Prepend(string)"/>
/// <seealso cref="Prepend(string, string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem Append(string label, string icon)
{
ToolbarItem item = new ToolbarItem(label, icon);
/// <seealso cref="Append(string)"/>
/// <seealso cref="Append(string, string)"/>
/// <seealso cref="Prepend(string, string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem Prepend(string label)
{
return Prepend(label, null);
/// <seealso cref="Append(string)"/>
/// <seealso cref="Append(string, string)"/>
/// <seealso cref="Prepend(string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem Prepend(string label, string icon)
{
ToolbarItem item = new ToolbarItem(label, icon);
/// <param name="label">The label of the item</param>
/// <returns>The new <see cref="ToolbarItem"/> which insert into the toolbar</returns>
/// <seealso cref="InsertBefore(ToolbarItem, string, string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem InsertBefore(ToolbarItem before, string label)
{
return InsertBefore(before, label, string.Empty);
/// <param name="icon">A string with the icon name or the absolute path of an image file</param>
/// <returns>The new <see cref="ToolbarItem"/> which insert into the toolbar</returns>
/// <seealso cref="InsertBefore(ToolbarItem, string)"/>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem InsertBefore(ToolbarItem before, string label, string icon)
{
ToolbarItem item = new ToolbarItem(label, icon);
/// <param name="label">The label of the item</param>
/// <param name="icon">A string with the icon name or the absolute path of an image file</param>
/// <returns>The new <see cref="ToolbarItem"/> which insert into the toolbar</returns>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem InsertAfter(ToolbarItem after, string label, string icon)
{
ToolbarItem item = new ToolbarItem(label, icon);
/// </summary>
/// <param name="label">The label of the item</param>
/// <returns>The <see cref="ToolbarItem"/> into the toolbar</returns>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem FindItemByLabel(string label)
{
IntPtr handle = Interop.Elementary.elm_toolbar_item_find_by_label(RealHandle, label);
/// <summary>
/// Gets the selected ToolbarItemItem of the toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem SelectedItem
{
get
/// <summary>
/// Gets the first ToolbarItemItem of the toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem FirstItem
{
get
/// <summary>
/// Gets the last ToolbarItemItem of the toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public ToolbarItem LastItem
{
get
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
/// <summary>
/// The ToolbarItem is a item of Toolbar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ToolbarItem : ItemObject
{
string _icon;
/// <summary>
/// Sets or gets the icon path of the item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Icon
{
get
/// <summary>
/// Sets or gets the text string of the item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Text
{
get
/// <summary>
/// Sets or gets the enable of the item.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Enabled is obsolete as of version v1.1.0-beta-023. Please use IsEnabled instead.")]
public bool Enabled
{
/// Sets or gets whether displaying the item as a separator.
/// </summary>
/// <remarks>Items aren't set as a separator by default. If set as a separator it displays a separator theme, so it won't display icons or labels.</remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsSeparator
{
get
/// <summary>
/// Sets or gets whether the item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsSelected
{
get
/// <summary>
/// Selected will be triggered when the item is selected.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Selected;
/// <summary>
/// LongPressed will be triggered when the item is pressed long time.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler LongPressed;
/// <summary>
/// Clicked will be triggered when the item is clicked.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Clicked;
internal void SendSelected()
/// For using these effects, create an Transit and add the desired transition effects.
/// </summary>
/// <remarks>Transit is not reusable. If the effect ends, the transit is destroyed automatically.</remarks>
+ /// <since_tizen> preview </since_tizen>
public class Transit : IDisposable
{
IntPtr _handle = IntPtr.Zero;
/// <summary>
/// A callback called when the transit is deleted.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Deleted;
/// <summary>
/// Creates and initializes a new instance of Transit class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Transit()
{
_handle = Interop.Elementary.elm_transit_add();
/// <summary>
/// Gets or sets the transit animation time
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Duration
{
get
/// Gets or sets a value whether the objects states will be keep or not.
/// If it is not kept, the objects states will be reset when transition ends.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ObjectStateKeep
{
get
/// <summary>
/// Gets or sets the transit animation acceleration type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public TweenMode TweenMode
{
get
/// Gets or sets the transit repeat count.
/// If the repeat is a negative number, it will repeat infinite times.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Repeat
{
get
/// <summary>
/// Gets or sets if the auto reverse is on.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AutoReverse
{
get
/// <summary>
/// Gets or sets the event enabled when transit is operating.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool EventEnabled
{
get
/// Gets or sets the smooth scaling for transit map rendering
/// This gets smooth scaling for transit map rendering.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Smooth
{
get
/// The value returned is a fraction(current time / total time).
/// It represents the progression position relative to the total.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Progress
{
get
/// Gets or sets the transit animation tween mode acceleration factor.
/// </summary>
/// <returns>A factor value from 0.0 to 1.0.</returns>
+ /// <since_tizen> preview </since_tizen>
public double BeginAccelerationFactor
{
get
/// Gets or sets the transit animation tween mode acceleration factor.
/// </summary>
/// <returns>A factor value from 0.0 to 1.0.</returns>
+ /// <since_tizen> preview </since_tizen>
public double EndAccelerationFactor
{
get
/// Once this API is called, the transit begins to measure the time.
/// </summary>
/// <param name="interval">The interval value in seconds</param>
+ /// <since_tizen> preview </since_tizen>
public void Go(double interval = 0)
{
Interop.Elementary.elm_transit_go_in(_handle, interval);
/// <summary>
/// Pause the transition.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Pause()
{
if (Interop.Elementary.elm_transit_paused_get(_handle) == false)
/// <summary>
/// Resume the transition.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Resume()
{
if (Interop.Elementary.elm_transit_paused_get(_handle) == true)
/// Get the current chained transit list.
/// </summary>
/// <remarks>Cannot add the duplicate transit.</remarks>
+ /// <since_tizen> preview </since_tizen>
public IList<Transit> Chains
{
get { return _chains; }
/// Get the objects list of the transit.
/// </summary>
/// <remarks>Cannot add the duplicate object.</remarks>
+ /// <since_tizen> preview </since_tizen>
public IList<EvasObject> Objects
{
get { return _objects; }
/// Add the effect.
/// </summary>
/// <param name="effect">EffectBase object.</param>
+ /// <since_tizen> preview </since_tizen>
public void AddEffect(EffectBase effect)
{
IntPtr _effect = effect.CreateEffect(_handle);
/// <summary>
/// Destroy current object
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void Dispose()
{
Dispose(true);
/// true if managed resources should be disposed
/// otherwise, false.
/// </param>
+ /// <since_tizen> preview </since_tizen>
protected virtual void Dispose(bool disposing)
{
if (_isDisposed)
/// <summary>
/// The axis along which flip effect should be applied.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum FlipAxis
{
/// <summary>
/// <summary>
/// The direction in which the wipe effect should occur.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum WipeDirection
{
/// <summary>
/// <summary>
/// Whether the wipe effect should show or hide the object.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum WipeType
{
/// <summary>
/// <summary>
/// The type of acceleration used in the transition.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum TweenMode
{
/// <summary>
/// <summary>
/// Blend effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class BlendEffect : EffectBase
{
/// <summary>
/// Creates and initializes a new instance of BlendEffect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public BlendEffect()
{
}
/// <summary>
/// Color effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ColorEffect : EffectBase
{
Color _begin;
/// </summary>
/// <param name="beginColor">The begin color of the effect</param>
/// <param name="endColor">The end color of the effect</param>
+ /// <since_tizen> preview </since_tizen>
public ColorEffect(Color beginColor, Color endColor)
{
_begin = beginColor;
/// <summary>
/// The begin color of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color BeginColor
{
get { return _begin; }
/// <summary>
/// The end color of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Color EndColor
{
get { return _end; }
/// <summary>
/// Fade effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FadeEffect : EffectBase
{
/// <summary>
/// Creates and initializes a new instance of FadeEffect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FadeEffect()
{
}
/// <summary>
/// Flip effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class FlipEffect : EffectBase
{
FlipAxis _axis;
/// <param name="axis">Flipping Axis(X or Y).</param>
/// <param name="clockWise">Flipping Direction. True is clock-wise.</param>
/// <param name="resizable">Resizable effect with FlipEffect</param>
+ /// <since_tizen> preview </since_tizen>
public FlipEffect(FlipAxis axis, bool clockWise, bool resizable = false)
{
_axis = axis;
/// <summary>
/// Flipping Axis(X or Y).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public FlipAxis Axis
{
get { return _axis; }
/// <summary>
/// Flipping Direction. True is clock-wise.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ClockWise
{
get { return _clockWise; }
/// <summary>
/// Resizable FlipEffect.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Resizable
{
get { return _resizable; }
/// <summary>
/// Resizing effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ResizingEffect : EffectBase
{
Size _begin;
/// </summary>
/// <param name="beginSize">The begin Size of the effect</param>
/// <param name="endSize">The end Size of the effect</param>
+ /// <since_tizen> preview </since_tizen>
public ResizingEffect(Size beginSize, Size endSize)
{
_begin = beginSize;
/// <summary>
/// The begin Size of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size BeginSize
{
get { return _begin; }
/// <summary>
/// The end Size of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size EndSize
{
get { return _end; }
/// <summary>
/// Rotation effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class RotationEffect : EffectBase
{
float _begin;
/// </summary>
/// <param name="beginDegree">The begin degree of the effect</param>
/// <param name="endDegree">The end degree of the effect</param>
+ /// <since_tizen> preview </since_tizen>
public RotationEffect(float beginDegree, float endDegree)
{
_begin = beginDegree;
/// <summary>
/// The begin degree of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public float BeginDegree
{
get { return _begin; }
/// <summary>
/// The end degree of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public float EndDegree
{
get { return _end; }
/// <summary>
/// Translation effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class TranslationEffect : EffectBase
{
Point _begin;
/// </summary>
/// <param name="beginPoint">The begin Point of the effect</param>
/// <param name="endPoint">The end Point of the effect</param>
+ /// <since_tizen> preview </since_tizen>
public TranslationEffect(Point beginPoint, Point endPoint)
{
_begin = beginPoint;
/// <summary>
/// The begin Point of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point BeginPoint
{
get { return _begin; }
/// <summary>
/// The end Point of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point EndPoint
{
get { return _end; }
/// <summary>
/// Wipe effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class WipeEffect : EffectBase
{
WipeType _type;
/// </summary>
/// <param name="type">Wipe type. Hide or show.</param>
/// <param name="direction">Wipe Direction.</param>
+ /// <since_tizen> preview </since_tizen>
public WipeEffect(WipeType type, WipeDirection direction)
{
_type = type;
/// <summary>
/// Wipe type. Hide or show.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WipeType Type
{
get { return _type; }
/// <summary>
/// Wipe Direction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WipeDirection Direction
{
get { return _direction; }
/// <summary>
/// Zoom effect class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class ZoomEffect : EffectBase
{
float _begin;
/// </summary>
/// <param name="beginRate">The begin rate of the effect</param>
/// <param name="endRate">The end rate of the effect</param>
+ /// <since_tizen> preview </since_tizen>
public ZoomEffect(float beginRate, float endRate)
{
_begin = beginRate;
/// <summary>
/// The begin rate of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public float BeginRate
{
get { return _begin; }
/// <summary>
/// The end rate of the effect
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public float EndRate
{
get { return _end; }
/// <summary>
/// This class is a static class for a utility methods.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static class Utility
{
/// <summary>
/// Appends a font path to the list of font paths used by the application.
/// </summary>
/// <param name="path">The new font path.</param>
+ /// <since_tizen> preview </since_tizen>
public static void AppendGlobalFontPath(string path)
{
Interop.Evas.evas_font_path_global_append(path);
/// Prepends a font path to the list of font paths used by the application.
/// </summary>
/// <param name="path">The new font path.</param>
+ /// <since_tizen> preview </since_tizen>
public static void PrependEvasGlobalFontPath(string path)
{
Interop.Evas.evas_font_path_global_prepend(path);
/// <summary>
/// Removes all font paths loaded into memory by evas_font_path_app_* APIs for the application.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void ClearEvasGlobalFontPath()
{
Interop.Evas.evas_font_path_global_clear();
/// <param name="shadowBlue">Shadow Bluevalue</param>
/// <param name="shadowAlpha">Shadow Alpha value</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public static bool SetEdjeColorClass(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)
{
/// <param name="shadowBlue">Shadow Bluevalue</param>
/// <param name="shadowAlpha">Shadow Alpha value</param>
/// <returns></returns>
+ /// <since_tizen> preview </since_tizen>
public static bool GetEdjeColorClass(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)
{
/// Processes all queued up edje messages.
/// This function triggers the processing of messages addressed to any (alive) edje objects.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public static void ProcessEdjeMessageSignal()
{
Interop.Elementary.edje_message_signal_process();
/// <param name="font">The font name</param>
/// <param name="size">The font size</param>
/// <returns>True, on success or false, on error</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool SetEdjeTextClass(string textClass, string font, int size)
{
return Interop.Elementary.edje_text_class_set(textClass, font, size);
/// <param name="font">The font name</param>
/// <param name="size">The font size</param>
/// <returns>True, on success or false, on error</returns>
+ /// <since_tizen> preview </since_tizen>
public static bool GetEdjeTextClass(string textClass, out string font, out int size)
{
return Interop.Elementary.edje_text_class_get(textClass, out font, out size);
/// Delete the text class.
/// </summary>
/// <param name="textClass"></param>
+ /// <since_tizen> preview </since_tizen>
public static void DeleteEdjeTextClass(string textClass)
{
Interop.Elementary.edje_text_class_del(textClass);
/// <param name="red">The Red component of the color</param>
/// <param name="green">The Green component of the color</param>
/// <param name="blue">The Blue component of the color</param>
+ /// <since_tizen> preview </since_tizen>
public static void PremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue)
{
Interop.Evas.evas_color_argb_premul(alpha, ref red, ref green, ref blue);
/// <param name="red">The Red component of the color</param>
/// <param name="green">The Green component of the color</param>
/// <param name="blue">The Blue component of the color</param>
+ /// <since_tizen> preview </since_tizen>
public static void UnPremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue)
{
Interop.Evas.evas_color_argb_unpremul(alpha, ref red, ref green, ref blue);
/// <summary>
/// Enumeration for the focus direction.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum FocusDirection
{
/// <summary>
/// The Widget is abstract class, it is the parent of other widgets.
/// Inherits from <see cref="EvasObject"/>.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public abstract class Widget : AccessibleObject
{
Dictionary<string, EvasObject> _partContents = new Dictionary<string, EvasObject>();
/// <summary>
/// Creates and initializes a new instance of Widget class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Widget()
{
}
/// Creates and initializes a new instance of the Widget class.
/// </summary>
/// <param name="parent">The parent of new Widget instance</param>
+ /// <since_tizen> preview </since_tizen>
protected Widget(EvasObject parent) : base(parent)
{
}
/// </summary>
/// <param name="content">The content which put to the part</param>
/// <param name="part">The updated part</param>
+ /// <since_tizen> preview </since_tizen>
protected void UpdatePartContents(EvasObject content, string part = "__default__")
{
_partContents[part] = content;
/// <summary>
/// Focused will be triggered when the widget is focused.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Focused;
/// <summary>
/// Unfocused will be triggered when the widget is unfocused.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler Unfocused;
/// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public virtual bool IsEnabled
{
get
/// <summary>
/// Sets or gets the style of the widget.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Style
{
get
/// <summary>
/// Gets whether this widget is focused.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsFocused
{
get
/// Gets whether a widget is focusable or not.
/// </summary>
/// <remarks>Widgets which are meant to be interacted with by input events are created able to be focused, by default</remarks>
+ /// <since_tizen> preview </since_tizen>
public bool IsFocusAllowed
{
get
/// Sets or gets the text of the widget.
/// </summary>
/// <remarks>It could be override by special child class</remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual string Text
{
get
/// Sets or gets the background color of the widget.
/// </summary>
/// <remarks>It could be override by special child class</remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual Color BackgroundColor
{
get
/// Sets or gets the opacity of the widget.
/// </summary>
/// <remarks>It could be override by special child class</remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual int Opacity
{
get
/// <summary>
/// Sets or gets whether a widget and its children are focusable or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AllowTreeFocus
{
get
/// <summary>
/// Sets or gets the widget's mirrored mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsMirroredMode
{
get
/// Sets or gets the widget's mirrored mode setting.
/// When widget set automatic mode(true), it follows the system mirrored mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsAutoMirroredMode
{
get
/// Sets the widget to be focused or not.
/// </summary>
/// <param name="isFocus">Weather be focused</param>
+ /// <since_tizen> preview </since_tizen>
public void SetFocus(bool isFocus)
{
Interop.Elementary.elm_object_focus_set(RealHandle, isFocus);
/// Sets the ability for a widget to be focused.
/// </summary>
/// <param name="isAllowFocus">True if the object can be focused, false if not(and on errors)</param>
+ /// <since_tizen> preview </since_tizen>
public void AllowFocus(bool isAllowFocus)
{
Interop.Elementary.elm_object_focus_allow_set(RealHandle, isAllowFocus);
/// Gives focus to next widget in widget tree.
/// </summary>
/// <param name="direction">Direction to move the focus</param>
+ /// <since_tizen> preview </since_tizen>
public void FocusNext(FocusDirection direction)
{
Interop.Elementary.elm_object_focus_next(RealHandle, (int)direction);
/// </summary>
/// <param name="next">Focus next widget</param>
/// <param name="direction">Focus direction</param>
+ /// <since_tizen> preview </since_tizen>
public void SetNextFocusObject(EvasObject next, FocusDirection direction)
{
Interop.Elementary.elm_object_focus_next_object_set(RealHandle, next.RealHandle, (int)direction);
/// <param name="part">The name of particular part</param>
/// <param name="content">The content</param>
/// <seealso cref="SetPartContent(string, EvasObject, bool)"/>
+ /// <since_tizen> preview </since_tizen>
public virtual bool SetPartContent(string part, EvasObject content)
{
return SetPartContent(part, content, false);
/// <param name="content">The content</param>
/// <param name="preserveOldContent">true, preserve old content will be unset. false, preserve old content will not be unset.</param>
/// <seealso cref="SetPartContent(string, EvasObject)"/>
+ /// <since_tizen> preview </since_tizen>
public virtual bool SetPartContent(string part, EvasObject content, bool preserveOldContent)
{
if (preserveOldContent)
/// </summary>
/// <param name="content">The content</param>
/// <seealso cref="SetContent(EvasObject, bool)"/>
+ /// <since_tizen> preview </since_tizen>
public void SetContent(EvasObject content)
{
SetContent(content, false);
/// <param name="content">The content</param>
/// <param name="preserveOldContent">true, preserve old content will be unset. false, preserve old content will not be unset.</param>
/// <seealso cref="SetContent(EvasObject)"/>
+ /// <since_tizen> preview </since_tizen>
public void SetContent(EvasObject content, bool preserveOldContent)
{
if (preserveOldContent)
/// </summary>
/// <param name="part">The name of particular part</param>
/// <param name="text">The text</param>
+ /// <since_tizen> preview </since_tizen>
public virtual bool SetPartText(string part, string text)
{
Interop.Elementary.elm_object_part_text_set(RealHandle, part, text);
/// </summary>
/// <param name="part">The name of particular part</param>
/// <returns>Text of the particular part of the widget</returns>
+ /// <since_tizen> preview </since_tizen>
public virtual string GetPartText(string part)
{
return Interop.Elementary.elm_object_part_text_get(RealHandle, part);
/// <param name="part">The name of particular part</param>
/// <param name="color">The color be set to widget</param>
/// <remarks>This method is a virtual method, it could be override by special child class</remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual void SetPartColor(string part, Color color)
{
Interop.Elementary.elm_object_color_class_color_set(RealHandle, part, color.R * color.A / 255,
/// <param name="part">The name of particular part</param>
/// <returns>The color of the particular part</returns>
/// <remarks>This method is a virtual method, it could be override by special child class</remarks>
+ /// <since_tizen> preview </since_tizen>
public virtual Color GetPartColor(string part)
{
int r, g, b, a;
/// </summary>
/// <param name="part">The name of particular part</param>
/// <param name="opacity">The opacity of the particular part</param>
+ /// <since_tizen> preview </since_tizen>
public void SetPartOpacity(string part, int opacity)
{
Interop.Elementary.elm_object_color_class_color_set(Handle, part, 255, 255, 255, opacity);
/// </summary>
/// <param name="part">The name of particular part</param>
/// <returns>Opacity value of the particular part</returns>
+ /// <since_tizen> preview </since_tizen>
public int GetPartOpacity(string part)
{
int r, g, b, a;
/// </summary>
/// <param name="emission">The signal's name.</param>
/// <param name="source">The signal's source.</param>
+ /// <since_tizen> preview </since_tizen>
public void SignalEmit(string emission, string source)
{
Interop.Elementary.elm_object_signal_emit(Handle, emission, source);
/// <summary>
/// The callback of Realized Event
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected override void OnRealized()
{
base.OnRealized();
/// <summary>
/// Enumeration for the display rotation of window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Flags]
public enum DisplayRotation
{
/// <summary>
/// Enumeration for the indicator opacity
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum StatusBarMode
{
/// <summary>
/// <summary>
/// Enumeration for the keygrab modes of window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public enum KeyGrabMode
{
/// <summary>
/// Enumeration for the indicator mode.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum IndicatorMode
{
/// <summary>
/// <summary>
/// Enumeration for the keyboard mode
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum KeyboardMode
{
/// <summary>
/// <summary>
/// Enumeration for the window type
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum WindowType
{
/// <summary>
/// <summary>
/// The Window is container that contain the graphical user interface of a program.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public class Window : Widget
{
SmartEvent _deleteRequest;
/// Creates and initializes a new instance of the Window class.
/// </summary>
/// <param name="name">Window name.</param>
+ /// <since_tizen> preview </since_tizen>
public Window(string name) : this(null, name)
{
}
/// When closing the window in any way outside the program control,
/// and set callback when window rotation changed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public Window(Window parent, string name) : this(parent, name, WindowType.Basic)
{
}
/// When closing the window in any way outside the program control,
/// and set callback when window rotation changed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public Window(Window parent, string name, WindowType type)
{
Name = name;
/// <summary>
/// Creates and initializes a new instance of the Window class.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
protected Window()
{
}
/// <summary>
/// CloseRequested will be triggered when Window close.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler CloseRequested;
/// <summary>
/// RotationChanged will be triggered when Window do rotation.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public event EventHandler RotationChanged;
/// <summary>
/// Sets or gets Window name.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Name { get; set; }
/// <summary>
/// Gets the Window type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public WindowType Type { get; } = WindowType.Basic;
/// <summary>
/// Gets Window size with Size value(w,h)
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size ScreenSize
{
get
/// <summary>
/// Gets the screen dpi for the screen that a Window is on.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Point ScreenDpi
{
get
/// <summary>
/// Gets the rotation of the Window.The rotation of the window in degrees (0-360).
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int Rotation
{
get
/// <summary>
/// Gets whether window manager supports window rotation or not.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool IsRotationSupported
{
get
/// <summary>
/// Sets or gets available rotation degree.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[Obsolete("Sorry, it's error typo of AvailableRotations, please use AvailableRotations")]
public DisplayRotation AavailableRotations { get; set; }
/// <summary>
/// Sets or gets available rotation degree.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public DisplayRotation AvailableRotations
{
get
/// If you enable auto deletion, the window is automatically destroyed after the signal is emitted.
/// If auto deletion is disabled, the window is not destroyed and the program has to handle it.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool AutoDeletion
{
get
/// True if the window alpha channel is enabled, false otherwise.
/// If alpha is true, the alpha channel of the canvas will be enabled possibly making parts of the window completely or partially transparent.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public bool Alpha
{
get
/// <remarks>
/// The Role will be invalid if a new role is set or if the window is destroyed.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public string Role
{
get
/// <summary>
/// Sets or gets the mode of status bar.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public StatusBarMode StatusBarMode
{
get
/// <summary>
/// Sets or gets the iconified state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Iconified
{
/// Gets or sets the window's indicator mode.
/// </summary>
/// <value>The indicator mode.</value>
+ /// <since_tizen> preview </since_tizen>
public IndicatorMode IndicatorMode
{
get
/// <summary>
/// Gets or sets the aspect ratio of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public double Aspect
{
get
/// <summary>
/// Window's autohide state.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool AutoHide
{
get
/// Get the borderless state of a window.
/// This function requests the Window Manager to not draw any decoration around the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Borderless
{
get
/// <summary>
/// Gets or sets the demand attention state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool DemandAttention
{
get
/// <summary>
/// Gets or sets the floating mode of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FloatingMode
{
get
/// Gets or sets the animate status for the focus highlight for this window.
/// This function will enable or disable the animation of focus highlight only for the given window, regardless of the global setting for it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FocusHighlightAnimation
{
get
/// Gets or sets the enabled status for the focus highlight in a window.
/// This function will enable or disable the focus highlight only for the given window, regardless of the global setting for it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool FocusHighlightEnabled
{
get
/// Gets or sets the style for the focus highlight on this window.
/// Sets the style to use for theming the highlight of focused objects on the given window.If style is NULL, the default will be used.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string FocusHighlightStyle
{
get
/// <summary>
/// Get the keyboard mode of the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public KeyboardMode KeyboardMode
{
get
/// more than 5 means that the window will be placed above all others,
/// and anything else means that the window will be placed in the default layer.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public override int Layer
{
get
/// <summary>
/// Gets or sets the modal state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Modal
{
get
/// This is a way to request the display on which the windowis shown does not blank, screensave or otherwise hide or obscure the window.It is intended for uses such as media playback on a television where a user may not want to be interrupted by an idle screen.
/// The noblank property may have no effect if the window is iconified/minimized or hidden.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool NoBlank
{
get
/// <summary>
/// Get the profile of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Profile
{
get
/// Get the constraints on the maximum width and height of a window relative to the width and height of its screen.
/// When this function returns true, obj will never resize larger than the screen.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool ScreenConstrain
{
get
/// <summary>
/// Gets or sets the base size of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size BaseSize
{
get
/// <summary>
/// Gets or sets the step size of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public Size StepSize
{
get
/// <summary>
/// Get the screen position X of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ScreenPositionX
{
get
/// <summary>
/// Get the screen position Y of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public int ScreenPositionY
{
get
/// <summary>
/// Gets or sets the title of the window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public string Title
{
get
/// <summary>
/// Gets or sets the urgent state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Urgent
{
get
/// <summary>
/// Gets or sets the withdrawn state of a window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public bool Withdrawn
{
get
/// <param name="number">A number (any value, 0 being the common default) to differentiate multiple instances of services with the same name.</param>
/// <param name="systemWide">A boolean that if true, specifies to create a system-wide service all users can connect to, otherwise the service is private to the user id that created the service.</param>
/// <returns>If true, create successfull, otherwise false</returns>
+ /// <since_tizen> preview </since_tizen>
public bool CreateServiceSocket(string name, int number, bool systemWide)
{
return Interop.Elementary.elm_win_socket_listen(RealHandle, name, number, systemWide);
/// </summary>
/// <param name="degree">The rotation of the window, in degrees (0-360), counter-clockwise.</param>
/// <param name="resize">Resizes the window's contents so that they fit inside the current window geometry.</param>
+ /// <since_tizen> preview </since_tizen>
public void SetRotation(int degree, bool resize)
{
if (resize)
/// Use this for windows that have only output information or might only be interacted with by the mouse or fingers, and never for typing input.
/// Be careful that this may have side-effects like making the window non-accessible in some cases unless the window is specially handled. Use this with care.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void FocusSkip(bool skip)
{
Interop.Elementary.elm_win_prop_focus_skip_set(Handle, skip);
/// Pull up the window object.
/// Places the window pointed by obj at the top of the stack, so that it's not covered by any other window.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void PullUp()
{
Interop.Elementary.elm_win_raise(Handle);
/// Bring down the window object.
/// Places the window pointed by obj at the bottom of the stack, so that no other window is covered by it.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public void BringDown()
{
Interop.Elementary.elm_win_lower(Handle);
/// This is just a request that a Window Manager may ignore, so calling this function does not ensure
/// in any way that the window is going to be the active one after it.
/// </remarks>
+ /// <since_tizen> preview </since_tizen>
public void Active()
{
Interop.Elementary.elm_win_activate(Handle);
/// It will not delete the object itself, which will be left unmanaged and should be deleted by the developer, manually handled or set as child of some other container.
/// </summary>
/// <param name="obj">Resize object.</param>
+ /// <since_tizen> preview </since_tizen>
public void DeleteResizeObject(EvasObject obj)
{
Interop.Elementary.elm_win_resize_object_del(Handle, obj);
/// <param name="obj">
/// Resize object.
/// </param>
+ /// <since_tizen> preview </since_tizen>
public void AddResizeObject(EvasObject obj)
{
Interop.Elementary.elm_win_resize_object_add(Handle, obj);
/// </summary>
/// <param name="keyname">The keyname to grab.</param>
/// <param name="mode">According to the grabmode, it can grab key differently</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyGrab(string keyname, KeyGrabMode mode)
{
/// This function unset keygrab value.Ungrab key of window.
/// </summary>
/// <param name="keyname">The keyname to grab.</param>
+ /// <since_tizen> preview </since_tizen>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyUngrab(string keyname)
{
/// Set the keygrab of the window.
/// </summary>
/// <param name="keyname">keyname string to set keygrab</param>
+ /// <since_tizen> preview </since_tizen>
public void KeyGrabEx(string keyname)
{
Interop.Elementary.eext_win_keygrab_set(RealHandle, keyname);
/// Unset the keygrab of the window.
/// </summary>
/// <param name="keyname">keyname string to unset keygrab</param>
+ /// <since_tizen> preview </since_tizen>
public void KeyUngrabEx(string keyname)
{
Interop.Elementary.eext_win_keygrab_unset(RealHandle, keyname);
/// </summary>
/// <param name="parent">Parent EvasObject</param>
/// <returns>Handle IntPtr</returns>
+ /// <since_tizen> preview </since_tizen>
protected override IntPtr CreateHandle(EvasObject parent)
{
Interop.Elementary.elm_config_accel_preference_set("3d");
/// <summary>
/// Enumeration for the wrap type.
/// </summary>
+ /// <since_tizen> preview </since_tizen>
public enum WrapType
{
/// <summary>