X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FHoversel.cs;h=ec8ec91a3cc018f25ab87a339488f0bcd2a10a84;hb=cc07997c2c942822c5d8c72db49b238a201a8946;hp=6adca6267bef00dfdb93be3473c932a311f7dd38;hpb=24852f385dc7578c74647940cce2dc7434f5f378;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Hoversel.cs b/src/ElmSharp/ElmSharp/Hoversel.cs old mode 100644 new mode 100755 index 6adca62..ec8ec91 --- a/src/ElmSharp/ElmSharp/Hoversel.cs +++ b/src/ElmSharp/ElmSharp/Hoversel.cs @@ -21,11 +21,13 @@ namespace ElmSharp /// /// The HoverselItemEventArgs is an HoverselItem's EventArgs /// + /// preview public class HoverselItemEventArgs : EventArgs { /// /// Hoversel's Item /// + /// preview public HoverselItem Item { get; set; } internal static HoverselItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -38,6 +40,7 @@ namespace ElmSharp /// /// The hoversel is a button that pops up a list of items. /// + /// preview public class Hoversel : Layout { SmartEvent _clicked; @@ -50,6 +53,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Hoversel class. /// /// The parent is a given container which will be attached by Hoversel as a child. It's type. + /// preview public Hoversel(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, "clicked"); @@ -82,26 +86,31 @@ namespace ElmSharp /// /// Clicked will be triggered when Hoversel is clicked /// + /// preview public event EventHandler Clicked; /// /// Expanded will be triggered when Hoversel is activated by clicking the hoversel or by a function /// + /// preview public event EventHandler Expanded; /// /// Dismissed will be triggered when Hoversel Dismissed /// + /// preview public event EventHandler Dismissed; /// /// ItemSelected will be triggered when Hoversel's Item Selected /// + /// preview public event EventHandler ItemSelected; /// /// Gets or sets the status to control whether the hoversel should expand horizontally. /// + /// preview public bool IsHorizontal { get @@ -117,6 +126,7 @@ namespace ElmSharp /// /// Gets or sets the hover parent. /// + /// preview public IntPtr HoverParent { get @@ -132,6 +142,7 @@ namespace ElmSharp /// /// Gets the flag of whether the hoversel is expanded. /// + /// preview public bool IsExpanded { get @@ -143,6 +154,7 @@ namespace ElmSharp /// /// Gets or sets the status of whether update icon and text of hoversel same to those of selected item automatically. /// + /// preview public bool AutoUpdate { get @@ -158,6 +170,7 @@ namespace ElmSharp /// /// This triggers the hoversel popup from code, the same as if the user had clicked the button. /// + /// preview public void HoverBegin() { Interop.Elementary.elm_hoversel_hover_begin(RealHandle); @@ -166,6 +179,7 @@ namespace ElmSharp /// /// This dismisses the hoversel popup as if the user had clicked outside the hover. /// + /// preview public void HoverEnd() { Interop.Elementary.elm_hoversel_hover_end(RealHandle); @@ -174,6 +188,7 @@ namespace ElmSharp /// /// This will remove all the children items from the hoversel. /// + /// preview public void Clear() { Interop.Elementary.elm_hoversel_clear(RealHandle); @@ -185,6 +200,7 @@ namespace ElmSharp /// /// Item's label /// A handle to the added item. + /// preview public HoverselItem AddItem(string label) { HoverselItem item = new HoverselItem(); @@ -193,6 +209,12 @@ namespace ElmSharp return item; } + /// + /// Creates a widget handle. + /// + /// Parent EvasObject + /// Handle IntPtr + /// preview protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);