summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2018-09-21 20:05:44 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-09-21 20:05:44 +0900
commitf19a3baca9c07c93d8c3eded33b0f84501a23501 (patch)
tree69c70d0f21cf086617d0bca64caa7a2fcb5cfdba
parente220e4d2f6962f7b3535cd69bcf3fb3ab7573c39 (diff)
downloadefl-f19a3baca9c07c93d8c3eded33b0f84501a23501.tar.gz
Colorselector : Add docs of elm_colorselector_palette_item_* APIs
Summary: Add documentation for these APIs elm_colorselector_palette_item_color_get elm_colorselector_palette_item_color_set elm_colorselector_palette_item_selected_get elm_colorselector_palette_item_selected_set Test Plan: make doc Reviewers: cedric, Hermet, zmike, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7091
-rw-r--r--src/lib/elementary/elm_colorselector_common.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_colorselector_common.h b/src/lib/elementary/elm_colorselector_common.h
index 3902173c9f..5dc0ba226e 100644
--- a/src/lib/elementary/elm_colorselector_common.h
+++ b/src/lib/elementary/elm_colorselector_common.h
@@ -20,12 +20,50 @@ struct _Elm_Custom_Palette
Eina_List *color_list;
};
+/**
+ * @brief Get Palette item's color.
+ *
+ * @param[in] it The color palette item.
+ * @param[out] r integer pointer for r-value of color
+ * @param[out] g integer pointer for g-value of color
+ * @param[out] b integer pointer for b-value of color
+ * @param[out] a integer pointer for a-value of color
+ *
+ * @ingroup Elm_Colorselector
+ */
EAPI void elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r, int *g, int *b, int *a);
+/**
+ * @brief Set palette item's color.
+ *
+ * @param[in] it The color palette item.
+ * @param[in] r r-value of color
+ * @param[in] g g-value of color
+ * @param[in] b b-value of color
+ * @param[in] a a-value of color
+ *
+ * @ingroup Elm_Colorselector
+ */
EAPI void elm_colorselector_palette_item_color_set(Elm_Object_Item *it, int r, int g, int b, int a);
+/**
+ * @brief Get the selected state of color palette item.
+ *
+ * @param[in] it The colorpalette item
+ * @return @c EINA_TRUE if the item is selected, @c EINA_FALSE otherwise.
+ *
+ * @ingroup Elm_Colorselector
+ */
EAPI Eina_Bool elm_colorselector_palette_item_selected_get(const Elm_Object_Item *it);
+/**
+ * @brief Set the selected state of color palette item.
+ *
+ * @param[in] it The colorpalette item
+ * @param[in] selected The selected state
+ *
+ * @ingroup Elm_Colorselector
+ */
EAPI void elm_colorselector_palette_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
/**