From 27db8e6d13e172abe53fda9c807c2e85b90d9b5c Mon Sep 17 00:00:00 2001 From: hongqingli Date: Mon, 26 Jun 2017 11:14:02 +0800 Subject: add api comments for Calendar/Entry/Image/ItemObjectExtention Change-Id: Ibf1e84371e49f430d432e2ffb13039439e9b5a20 Signed-off-by: hongqingli --- ElmSharp/ElmSharp/Calendar.cs | 15 +++++++++++++++ ElmSharp/ElmSharp/Entry.cs | 5 +++++ ElmSharp/ElmSharp/Image.cs | 12 ++++++++++++ ElmSharp/ElmSharp/ItemObjectExtension.cs | 11 +++++++++++ 4 files changed, 43 insertions(+) mode change 100644 => 100755 ElmSharp/ElmSharp/Calendar.cs mode change 100644 => 100755 ElmSharp/ElmSharp/Entry.cs mode change 100644 => 100755 ElmSharp/ElmSharp/Image.cs mode change 100644 => 100755 ElmSharp/ElmSharp/ItemObjectExtension.cs diff --git a/ElmSharp/ElmSharp/Calendar.cs b/ElmSharp/ElmSharp/Calendar.cs old mode 100644 new mode 100755 index 38eace6..ef87281 --- a/ElmSharp/ElmSharp/Calendar.cs +++ b/ElmSharp/ElmSharp/Calendar.cs @@ -83,12 +83,27 @@ namespace ElmSharp OnDemand } + /// + /// Enumeration used to define which fields of a tm struct will be taken into account + /// [Flags] public enum CalendarSelectable { + /// + /// None will be taken into account + /// None = 0, + /// + /// Year will be taken into account + /// Year = 1 << 0, + /// + /// Month will be taken into account + /// Month = 1 << 1, + /// + /// Day will be taken into account + /// Day = 1 << 2 } diff --git a/ElmSharp/ElmSharp/Entry.cs b/ElmSharp/ElmSharp/Entry.cs old mode 100644 new mode 100755 index 420f624..67c7ff9 --- a/ElmSharp/ElmSharp/Entry.cs +++ b/ElmSharp/ElmSharp/Entry.cs @@ -753,6 +753,11 @@ namespace ElmSharp Interop.Elementary.elm_entry_select_none(RealHandle); } + /// + /// Sets the color of color class for a given widget. + /// + /// The name of color class. + /// The struct of color public override void SetPartColor(string part, Color color) { IntPtr handle = (part == "bg") ? Handle : RealHandle; diff --git a/ElmSharp/ElmSharp/Image.cs b/ElmSharp/ElmSharp/Image.cs old mode 100644 new mode 100755 index 315e999..6c98cb3 --- a/ElmSharp/ElmSharp/Image.cs +++ b/ElmSharp/ElmSharp/Image.cs @@ -615,10 +615,22 @@ namespace ElmSharp } } + /// + /// Enumeration for the fill mode of image border + /// public enum ImageBorderFillMode { + /// + /// None mode of image border + /// None, + /// + /// Default mode of image border + /// Default, + /// + /// Solid mode of image border + /// Solid, } diff --git a/ElmSharp/ElmSharp/ItemObjectExtension.cs b/ElmSharp/ElmSharp/ItemObjectExtension.cs old mode 100644 new mode 100755 index 420c048..ef8b609 --- a/ElmSharp/ElmSharp/ItemObjectExtension.cs +++ b/ElmSharp/ElmSharp/ItemObjectExtension.cs @@ -18,13 +18,24 @@ using System; namespace ElmSharp { + /// + /// The ItemObjectExtension is used to manage item object extension + /// public static class ItemObjectExtension { + /// + /// Grab high light of item object + /// + /// the item object which is grabbed high light public static void GrabHighlight(this ItemObject obj) { Interop.Elementary.elm_atspi_component_highlight_grab(obj.Handle); } + /// + /// Clear high light of item object + /// + /// the item object which is cleared high light public static void ClearHighlight(this ItemObject obj) { Interop.Elementary.elm_atspi_component_highlight_clear(obj.Handle); -- cgit v1.2.3