/// Directly show the focused region or item automatically
/// </summary>
Show,
+
/// <summary>
/// Do not show the focused region or item automatically
/// </summary>
None,
+
/// <summary>
/// Bring in the focused region or item automatically which might invole the scrolling
/// </summary>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static void SetSystemScrollFriction(double timeSet)
+
{
BringInScrollFriction = timeSet;
}
-using System;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
set
{
Interop.Evas.evas_object_image_alpha_set(RealHandle, !value);
-
}
}
return result;
}
+ /// <summary>
+ /// Set the native surface of a given image of the canvas
+ /// </summary>
+ /// <param name="surface">The surface.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetNativeSurface(IntPtr surface)
{
return _handle != IntPtr.Zero ? _handle : Interop.Evas.evas_object_image_add(Interop.Evas.evas_object_evas_get(parent.Handle));
}
}
-}
+}
\ No newline at end of file
-/*
+/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
/// BackButton name in Platform
/// </summary>
public const string PlatformBackButtonName = "XF86Back";
+
/// <summary>
/// MenuButton name in Platform
/// </summary>
public const string PlatformMenuButtonName = "XF86Menu";
+
/// <summary>
/// HomeButton name in Platform
/// </summary>
/// </summary>
public string KeyName { get; private set; }
+ /// <summary>
+ /// Sets or gets the flags.
+ /// </summary>
public EvasEventFlag Flags
{
get
/// Name string of the key pressed
/// </summary>
public string keyname;
+
/// <summary>
/// Data to be passed to the event
/// </summary>
public IntPtr data;
+
/// <summary>
/// Modifier keys pressed during the event
/// </summary>
public IntPtr modifiers;
+
/// <summary>
/// Locks info
/// </summary>
public IntPtr locks;
+
/// <summary>
/// Logical key: (example, shift+1 == exclamation)
/// </summary>
public string key;
+
/// <summary>
/// UTF8 string if this keystroke has produced a visible string to be ADDED
/// </summary>
public string str;
+
/// <summary>
/// UTF8 string if this keystroke has modified a string in the middle of being composed - this string replaces the previous one
/// </summary>
/// Event_flags
/// </summary>
public EvasEventFlag event_flags;
+
/// <summary>
///
/// </summary>
public IntPtr dev;
+
/// <summary>
/// Keycode
/// </summary>
/// No fancy flags set
/// </summary>
None = 0,
+
/// <summary>
///This event is being delivered but should be put "on hold" until the on hold flag is unset. the event should be used for informational purposes and maybe some indications visually, but not actually perform anything
/// </summary>
OnHold = 1,
}
-
-}
+}
\ No newline at end of file
_ownership = false;
}
+ /// <summary>
+ /// Destroy the EvasMap object.
+ /// </summary>
~EvasMap()
{
if (_ownership)
Interop.Evas.evas_map_util_zoom(_evasMap, x, y, cx, cy);
}
}
-}
+}
\ No newline at end of file
namespace ElmSharp
{
+ /// <summary>
+ /// Enumeration for tooltip orientation.
+ /// </summary>
public enum TooltipOrientation
{
+ /// <summary>
+ /// Default value, Tooltip moves with mouse pointer.
+ /// </summary>
None,
+
+ /// <summary>
+ /// Tooltip should appear at the top left of parent.
+ /// </summary>
TopLeft,
+
+ /// <summary>
+ /// Tooltip should appear at the left of parent.
+ /// </summary>
Top,
+
+ /// <summary>
+ /// Tooltip should appear at the top right of parent.
+ /// </summary>
TopRight,
+
+ /// <summary>
+ /// Tooltip should appear at the left of parent.
+ /// </summary>
Left,
+
+ /// <summary>
+ /// Tooltip should appear at the center of parent.
+ /// </summary>
Center,
+
+ /// <summary>
+ /// Tooltip should appear at the right of parent.
+ /// </summary>
Right,
+
+ /// <summary>
+ /// Tooltip should appear at the bottom left of parent.
+ /// </summary>
BottomLeft,
+
+ /// <summary>
+ /// Tooltip should appear at the bottom of parent.
+ /// </summary>
Bottom,
+
+ /// <summary>
+ /// Tooltip should appear at the bottom right of parent.
+ /// </summary>
BottomRight,
}
+ /// <summary>
+ /// Enumeration for aspect control.
+ /// </summary>
public enum AspectControl
{
- None = 0, /* Preference on scaling unset */
- Neither = 1, /* Same effect as unset preference on scaling */
- Horizontal = 2, /* Use all horizontal container space to place an object, using the given aspect */
- Vertical = 3, /* Use all vertical container space to place an object, using the given aspect */
- Both = 4 /* Use all horizontal @b and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect */
+ /// <summary>
+ /// Preference on scaling unset.
+ /// </summary>
+ None = 0,
+
+ /// <summary>
+ /// Same effect as unset preference on scaling.
+ /// </summary>
+ Neither = 1,
+
+ /// <summary>
+ /// Use all horizontal container space to place an object, using the given aspect
+ /// </summary>
+ Horizontal = 2,
+
+ /// <summary>
+ /// Use all vertical container space to place an object, using the given aspect.
+ /// </summary>
+ Vertical = 3,
+
+ /// <summary>
+ /// Use all horizontal @b and vertical container spaces to place an object (never growing it out of those bounds), using the given aspect.
+ /// </summary>
+ Both = 4
}
/// <summary>
private Interop.Eext.EextEventCallback _backButtonHandler;
private Interop.Eext.EextEventCallback _moreButtonHandler;
+ /// <summary>
+ /// Sets or gets the handle for EvasObject.
+ /// </summary>
public IntPtr Handle { get; protected set; }
+
+ /// <summary>
+ /// Gets the parent object for EvasObject.
+ /// </summary>
public EvasObject Parent { get; private set; }
+ /// <summary>
+ /// Sets or gets the real handle for EvasObject.
+ /// </summary>
public IntPtr RealHandle
{
get
_eventStore.Add(item);
}
}
-}
+}
\ No newline at end of file
/// </summary>
public interface IInvalidatable : IDisposable
{
+ /// <summary>
+ /// Make current instance invalidate
+ /// </summary>
void MakeInvalidate();
}
{
}
+ /// <summary>
+ /// Creates and initializes a new instance of the EvasObjectEvent.
+ /// </summary>
+ /// <param name="sender">EvasObject class belong to</param>
+ /// <param name="handle">EvasObject handle</param>
+ /// <param name="type">EvasObjectCallbackType</param>
+ /// <param name="parser">SmartEventInfoParser</param>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type, SmartEventInfoParser parser)
{
{
}
+ /// <summary>
+ /// Destroy the EvasObjectEvent object.
+ /// </summary>
~EvasObjectEvent()
{
Dispose(false);
}
}
- /// <summary>
- /// Destroy Current Obj
- /// </summary>
public void Dispose()
{
Dispose(true);
{
}
+ /// <summary>
+ /// Creates and initializes a new instance of the EvasObjectEvent.
+ /// </summary>
+ /// <param name="sender">EvasObject class belong to</param>
+ /// <param name="handle">EvasObject handle</param>
+ /// <param name="type">EvasObjectCallbackType</param>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type)
{
_evasObjectEvent = new EvasObjectEvent<EventArgs>(sender, handle, type, null);
}
+ /// <summary>
+ /// Destroy the EvasObjectEvent object.
+ /// </summary>
~EvasObjectEvent()
{
Dispose(false);
}
}
- /// <summary>
- /// Destroy Current Obj
- /// </summary>
public void Dispose()
{
Dispose(true);
}
}
+ /// <summary>
+ /// Sets or gets the cursor to be shown when mouse is over the gengrid item.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string Cursor
{
}
}
+ /// <summary>
+ /// Sets or gets the style for this item cursor.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string CursorStyle
{
}
}
+ /// <summary>
+ /// Sets or gets the cursor engine only usage for this item cursor.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool IsUseEngineCursor
{
}
/// <summary>
- /// Gets or sets the style of given gengrid item's tooltip.
+ /// Sets or gets or sets the style of given gengrid item's tooltip.
/// </summary>
public override string TooltipStyle
{
}
}
+ /// <summary>
+ /// Get the gengrid item's select mode.
+ /// </summary>
public override GenItemSelectionMode SelectionMode
{
get
}
}
+ /// <summary>
+ /// Set the text to be shown in the gengrid item.
+ /// </summary>
+ /// <param name="tooltip">The text to set.</param>
public override void SetTooltipText(string tooltip)
{
Interop.Elementary.elm_gengrid_item_tooltip_text_set(Handle, tooltip);
}
+ /// <summary>
+ /// Unset tooltip from item.
+ /// </summary>
public override void UnsetTooltip()
{
Interop.Elementary.elm_gengrid_item_tooltip_unset(Handle);
Interop.Elementary.elm_gengrid_item_update(Handle);
}
+ /// <summary>
+ /// Set the content to be shown in the tooltip item.
+ /// </summary>
protected override void UpdateTooltipDelegate()
{
Interop.Elementary.elm_gengrid_item_tooltip_content_cb_set(Handle,
/// </summary>
public GenItemClass ItemClass { get; protected set; }
+ /// <summary>
+ /// Sets or gets tooltip content delegate.
+ /// </summary>
public GetTooltipContentDelegate TooltipContentDelegate
{
get
/// </summary>
public abstract GenItemSelectionMode SelectionMode { get; set; }
+ /// <summary>
+ /// Sets or gets the cursor to be shown when mouse is over the gengrid item
+ /// </summary>
public abstract string Cursor { get; set; }
+
+ /// <summary>
+ /// Sets or gets the style for this item cursor.
+ /// </summary>
public abstract string CursorStyle { get; set; }
+ /// <summary>
+ /// Sets or gets the cursor engine only usage for this item cursor.
+ /// </summary>
public abstract bool IsUseEngineCursor { get; set; }
/// <summary>
/// </summary>
public abstract string TooltipStyle { get; set; }
+ /// <summary>
+ /// Set tooltip text.
+ /// </summary>
+ /// <param name="tooltip">The text to set.</param>
public abstract void SetTooltipText(string tooltip);
+
+ /// <summary>
+ /// Unset tooltip.
+ /// </summary>
public abstract void UnsetTooltip();
/// <summary>
ItemClass = null;
}
+ /// <summary>
+ /// Abstract method for updating tooltip content.
+ /// </summary>
protected abstract void UpdateTooltipDelegate();
}
-}
+}
\ No newline at end of file
ReleaseItemClass(unmanaged);
}
+ /// <summary>
+ /// Destroy the GenItemClass object.
+ /// </summary>
~GenItemClass()
{
Dispose(false);
DeleteHandler?.Invoke(data);
}
+ /// <summary>
+ /// Create a new genlist item class in a given genlist widget.
+ /// </summary>
+ /// <returns>The new item class object.</returns>
protected virtual IntPtr CreateItemClass()
{
return Interop.Elementary.elm_genlist_item_class_new();
}
+ /// <summary>
+ /// Remove an item class in a given genlist widget.
+ /// </summary>
+ /// <param name="unmanagedPtr">The object to be removed.</param>
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>
public class GenGridItemClass : GenItemClass
{
+ /// <summary>
+ /// Create the GenGridItemClass instance.
+ /// </summary>
+ /// <param name="style">The item display style.</param>
public GenGridItemClass(string style) : base(style)
{
}
+ /// <summary>
+ /// Add a new gengrid item class in a given gengrid widget.
+ /// </summary>
+ /// <returns>The new instance.</returns>
protected override IntPtr CreateItemClass()
{
return Interop.Elementary.elm_gengrid_item_class_new();
}
+ /// <summary>
+ /// Remove an item class in a given gengrid widget.
+ /// </summary>
+ /// <param name="unmanagedPtr">The object to be removed.</param>
protected override void ReleaseItemClass(IntPtr unmanagedPtr)
{
Interop.Elementary.elm_gengrid_item_class_free(unmanagedPtr);
}
}
+ /// <summary>
+ /// Sets or gets the content to be shown in the tooltip item
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string Cursor
{
}
}
+ /// <summary>
+ /// Sets or gets the style for this item cursor.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override string CursorStyle
{
}
}
+ /// <summary>
+ /// Sets or gets the cursor engine only usage for this item cursor.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool IsUseEngineCursor
{
}
}
+ /// <summary>
+ /// Set the text to be shown in the genlist item.
+ /// </summary>
+ /// <param name="tooltip">The text to set in the content.</param>
public override void SetTooltipText(string tooltip)
{
Interop.Elementary.elm_genlist_item_tooltip_text_set(Handle, tooltip);
}
+ /// <summary>
+ /// Unset tooltip from item.
+ /// </summary>
public override void UnsetTooltip()
{
Interop.Elementary.elm_genlist_item_tooltip_unset(Handle);
Interop.Elementary.elm_genlist_item_item_class_update((IntPtr)Handle, itemClass.UnmanagedPtr);
}
+ /// <summary>
+ /// Set the content to be shown in the tooltip item.
+ /// </summary>
protected override void UpdateTooltipDelegate()
{
Interop.Elementary.elm_genlist_item_tooltip_content_cb_set(Handle,
null);
}
}
-}
+}
\ No newline at end of file
/// <summary>
/// Creates and initializes a new instance of ItemEvasObject class.
/// </summary>
- /// <param name="handle">IntPtr</param>
+ /// <param name="parent">IntPtr</param>
public ItemEvasObject(IntPtr parent) : base()
{
_parent = parent;
/// </summary>
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>
public override string ToString()
{
return string.Format("{{X={0} Y={1}}}", X, Y);
}
+ /// <summary>
+ /// Gets hash code.
+ /// </summary>
+ /// <returns>The hash code.</returns>
public override int GetHashCode()
{
unchecked
return !p1.Equals(p2);
}
}
-}
+}
\ No newline at end of file
/// </summary>
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>
public override string ToString()
{
return string.Format("{{X={0} Y={1} Z={2}}}", X, Y, Z);
}
+ ///
public override int GetHashCode()
{
unchecked
return !p1.Equals(p2);
}
}
-}
+}
\ No newline at end of file
Interop.Elementary.elm_progressbar_pulse(RealHandle, true);
}
+ /// <summary>
+ /// Stops a given progress bar "pulsing" animation, if its under that mode.
+ /// </summary>
[Obsolete("use StopPulse instead")]
public void StopPluse()
{
Width = w;
Height = h;
}
+
/// <summary>
/// Gets or sets the position of this Rectangle on the X axis.
/// </summary>
/// </summary>
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>
public override string ToString()
{
return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X, Y, Width, Height);
}
+ /// <summary>
+ /// Gets the hash code.
+ /// </summary>
+ /// <returns>The hash code.</returns>
public override int GetHashCode()
{
unchecked
return !r1.Equals(r2);
}
}
-}
+}
\ No newline at end of file
return string.Format("{{Width={0} Height={1}}}", Width, Height);
}
+ /// <summary>
+ /// Gets hash code.
+ /// </summary>
+ /// <returns>The hash code.</returns>
public override int GetHashCode()
{
unchecked
return !s1.Equals(s2);
}
}
-}
+}
\ No newline at end of file
{
}
+ /// <summary>
+ /// reates and initializes a new instance of the SmartEvent class.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="handle">Teh event handler.</param>
+ /// <param name="eventName">The event name.</param>
+ /// <param name="parser">The event parser.</param>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public SmartEvent(EvasObject sender, IntPtr handle, string eventName, SmartEventInfoParser parser)
{
{
}
+ /// <summary>
+ /// Destroy the SmartEvent object.
+ /// </summary>
~SmartEvent()
{
Dispose(false);
public class SmartEvent : IInvalidatable
{
private SmartEvent<EventArgs> _smartEvent;
+
private event EventHandler _handlers;
/// <summary>
{
}
+ /// <summary>
+ /// Creates and initializes a new instance of the SmartEvent class.
+ /// </summary>
+ /// <param name="sender">The source of the event.</param>
+ /// <param name="handle">The event handler.</param>
+ /// <param name="eventName">The event name.</param>
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public SmartEvent(EvasObject sender, IntPtr handle, string eventName)
{
_smartEvent = new SmartEvent<EventArgs>(sender, handle, eventName, null);
}
+ /// <summary>
+ /// Destroy the SmartEvent object.
+ /// </summary>
~SmartEvent()
{
Dispose(false);
}
}
}
-}
+}
\ No newline at end of file
}
}
+ /// <summary>
+ /// Sets or gets toolbar's current orientation.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsHorizontal
{
public Transit()
{
_handle = Interop.Elementary.elm_transit_add();
- DeletedCallback = (ptr1, ptr2) => {
+ DeletedCallback = (ptr1, ptr2) =>
+ {
Deleted?.Invoke(this, EventArgs.Empty);
Dispose(true);
};
((INotifyCollectionChanged)_chains).CollectionChanged += OnChaninCollectionChanged;
}
+ /// <summary>
+ /// Destroy the Transit object.
+ /// </summary>
~Transit()
{
Dispose(false);
Interop.Elementary.elm_transit_chain_transit_del(_handle, transit._handle);
}
}
-}
+}
\ No newline at end of file
namespace ElmSharp
{
+ /// <summary>
+ /// This class is a static class for a utility methods.
+ /// </summary>
public static class Utility
{
/// <summary>
internal Color _backgroundColor = Color.Default;
internal int _opacity = Color.Default.A;
+ /// <summary>
+ /// Creates and initializes a new instance of Widget class.
+ /// </summary>
protected Widget()
{
}
Transparent = 3,
}
+ /// <summary>
+ /// Enumeration for the keygrab modes of window.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public enum KeyGrabMode
{
+ /// <summary>
+ /// Unknown keygrab mode
+ /// </summary>
Shared = 256,
+
+ /// <summary>
+ /// Getting the grabbed-key together with the other client windows.
+ /// </summary>
Topmost = 512,
+
+ /// <summary>
+ /// Getting the grabbed-key only when window is top of the stack.
+ /// </summary>
Exclusive = 1024,
+
+ /// <summary>
+ /// Getting the grabbed-key exclusively regardless of window's position.
+ /// </summary>
OverrideExclusive = 2048,
}
_rotationChanged.On += (s, e) => RotationChanged?.Invoke(this, EventArgs.Empty);
}
+ /// <summary>
+ /// Creates and initializes a new instance of the Window class.
+ /// </summary>
protected Window()
{
}
}
}
+ /// <summary>
+ /// Sets or gets available rotation degree.
+ /// </summary>
[Obsolete("Sorry, it's error typo of AvailableRotations, please use AvailableRotations")]
public DisplayRotation AavailableRotations { get; set; }
}
}
+ /// <summary>
+ /// Sets or gets the iconified state of a window.
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool Iconified
{
Interop.Elementary.elm_win_resize_object_add(Handle, obj);
}
+ /// <summary>
+ /// Set keygrab value of the window.
+ /// This function grabs the key of window using grab_mode.
+ /// </summary>
+ /// <param name="keyname">The keyname to grab.</param>
+ /// <param name="mode">According to the grabmode, it can grab key differently</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyGrab(string keyname, KeyGrabMode mode)
{
Interop.Elementary.elm_win_keygrab_set(RealHandle, keyname, 0, 0, 0, mode);
}
+ /// <summary>
+ /// Unset keygrab value of the window.
+ /// This function unset keygrab value.Ungrab key of window.
+ /// </summary>
+ /// <param name="keyname">The keyname to grab.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void WinKeyUngrab(string keyname)
{
return (DisplayRotation)orientation;
}
}
-}
+}
\ No newline at end of file