jackdanielz pushed a commit to branch master.

commit 3503e09397a10edb78cd56394e9a2ade4f0a819e
Author: Daniel Zaoui <[email protected]>
Date:   Sun Apr 28 14:37:51 2013 +0300

    Elementary: Lost APIs have resurrected.
---
 src/lib/Makefile.am               |  1 +
 src/lib/elm_flipselector.h        |  1 +
 src/lib/elm_flipselector_common.h | 61 +++++++++++++++++++++++++++++++++++++++
 src/lib/elm_photocam_legacy.h     | 15 ++++++++++
 4 files changed, 78 insertions(+)

diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 622942b..0b251f7 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -210,6 +210,7 @@ elm_flip_common.h \
 elm_flip_eo.h \
 elm_flip_legacy.h \
 elm_flipselector.h \
+elm_flipselector_common.h \
 elm_flipselector_eo.h \
 elm_flipselector_legacy.h \
 elm_focus.h \
diff --git a/src/lib/elm_flipselector.h b/src/lib/elm_flipselector.h
index 03610b9..8e4761a 100644
--- a/src/lib/elm_flipselector.h
+++ b/src/lib/elm_flipselector.h
@@ -54,6 +54,7 @@
  * @{
  */
 
+#include "elm_flipselector_common.h"
 #ifdef EFL_EO_API_SUPPORT
 #include "elm_flipselector_eo.h"
 #endif
diff --git a/src/lib/elm_flipselector_common.h 
b/src/lib/elm_flipselector_common.h
new file mode 100644
index 0000000..40f8633
--- /dev/null
+++ b/src/lib/elm_flipselector_common.h
@@ -0,0 +1,61 @@
+/**
+ * Set whether a given flip selector widget's item should be the
+ * currently selected one.
+ *
+ * @param it The flip selector item
+ * @param selected @c EINA_TRUE to select it, @c EINA_FALSE to unselect.
+ *
+ * This sets whether @p item is or not the selected (thus, under
+ * display) one. If @p item is different than the one under display,
+ * the latter will be unselected. If the @p item is set to be
+ * unselected, on the other hand, the @b first item in the widget's
+ * internal members list will be the new selected one.
+ *
+ * @see elm_flipselector_item_selected_get()
+ *
+ * @ingroup Flipselector
+ */
+EAPI void                        
elm_flipselector_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
+
+/**
+ * Get whether a given flip selector widget's item is the currently
+ * selected one.
+ *
+ * @param it The flip selector item
+ * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
+ * (or on errors).
+ *
+ * @see elm_flipselector_item_selected_set()
+ *
+ * @ingroup Flipselector
+ */
+EAPI Eina_Bool  elm_flipselector_item_selected_get(const Elm_Object_Item *it);
+
+/**
+ * Gets the item before @p item in a flip selector widget's internal list of
+ * items.
+ *
+ * @param it The item to fetch previous from
+ * @return The item before the @p item, in its parent's list. If there is no
+ *         previous item for @p item or there's an error, @c NULL is returned.
+ *
+ * @see elm_flipselector_item_next_get()
+ *
+ * @ingroup Flipselector
+ */
+EAPI Elm_Object_Item *elm_flipselector_item_prev_get(const Elm_Object_Item 
*it);
+
+/**
+ * Gets the item after @p item in a flip selector widget's
+ * internal list of items.
+ *
+ * @param it The item to fetch next from
+ * @return The item after the @p item, in its parent's list. If there is no 
next
+ *         item for @p item or there's an error, @c NULL is returned.
+ *
+ * @see elm_flipselector_item_prev_get()
+ *
+ * @ingroup Flipselector
+ */
+EAPI Elm_Object_Item            *elm_flipselector_item_next_get(const 
Elm_Object_Item *it);
+
diff --git a/src/lib/elm_photocam_legacy.h b/src/lib/elm_photocam_legacy.h
index be52b97..9f8ea4f 100644
--- a/src/lib/elm_photocam_legacy.h
+++ b/src/lib/elm_photocam_legacy.h
@@ -154,6 +154,21 @@ EAPI void                   
elm_photocam_image_region_get(const Evas_Object *obj
 EAPI void                   elm_photocam_image_region_show(Evas_Object *obj, 
int x, int y, int w, int h);
 
 /**
+ * @brief Bring in the viewed portion of the image
+ *
+ * @param obj The photocam object
+ * @param x X-coordinate of region in image original pixels
+ * @param y Y-coordinate of region in image original pixels
+ * @param w Width of region in image original pixels
+ * @param h Height of region in image original pixels
+ *
+ * This shows the region of the image using animation.
+ *
+ * @ingroup Photocam
+ */
+EAPI void                   elm_photocam_image_region_bring_in(Evas_Object 
*obj, int x, int y, int w, int h);
+
+/**
  * @brief Set the paused state for photocam
  *
  * @param obj The photocam object

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to