summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYossi Kantor <yossi.kantor@samsung.com>2014-04-02 17:53:53 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-23 16:14:12 +0300
commitd9855e9a3da818d93385c6804f5a37d185efb007 (patch)
tree721aebd3c06d400ffa9dce3366b56a03ef308aea
parentcf1ed77c7d9ffb334bf55ef2333ed169acc4027b (diff)
Eolian: Legacy integration of Evas Grid
-rw-r--r--src/Makefile_Evas.am4
-rw-r--r--src/lib/evas/Evas_Legacy.h128
2 files changed, 4 insertions, 128 deletions
diff --git a/src/Makefile_Evas.am b/src/Makefile_Evas.am
index f2edbe1..11db9a5 100644
--- a/src/Makefile_Evas.am
+++ b/src/Makefile_Evas.am
@@ -41,6 +41,7 @@ BUILT_SOURCES += \
41 lib/evas/canvas/evas.eo.h \ 41 lib/evas/canvas/evas.eo.h \
42 lib/evas/canvas/evas_grid.eo.c \ 42 lib/evas/canvas/evas_grid.eo.c \
43 lib/evas/canvas/evas_grid.eo.h \ 43 lib/evas/canvas/evas_grid.eo.h \
44 lib/evas/canvas/evas_grid.eo.legacy.h \
44 lib/evas/canvas/evas_image.eo.c \ 45 lib/evas/canvas/evas_image.eo.c \
45 lib/evas/canvas/evas_image.eo.h \ 46 lib/evas/canvas/evas_image.eo.h \
46 lib/evas/canvas/evas_out.eo.c \ 47 lib/evas/canvas/evas_out.eo.c \
@@ -133,7 +134,8 @@ nodist_installed_evascanvasheaders_DATA = \
133 lib/evas/canvas/evas_smart_clipped.eo.legacy.h \ 134 lib/evas/canvas/evas_smart_clipped.eo.legacy.h \
134 lib/evas/canvas/evas_table.eo.legacy.h \ 135 lib/evas/canvas/evas_table.eo.legacy.h \
135 lib/evas/canvas/evas_common_interface.eo.legacy.h \ 136 lib/evas/canvas/evas_common_interface.eo.legacy.h \
136 lib/evas/canvas/evas_object.eo.legacy.h 137 lib/evas/canvas/evas_object.eo.legacy.h \
138 lib/evas/canvas/evas_grid.eo.legacy.h
137 139
138noinst_HEADERS = \ 140noinst_HEADERS = \
139lib/evas/include/evas_inline.x \ 141lib/evas/include/evas_inline.x \
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index e48d5fa..56a21c5 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -5004,133 +5004,7 @@ EAPI Evas_Object *evas_object_table_child_get(const Evas_O
5004 */ 5004 */
5005EAPI Evas_Object *evas_object_grid_add(Evas *evas) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC; 5005EAPI Evas_Object *evas_object_grid_add(Evas *evas) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
5006 5006
5007/** 5007#include "canvas/evas_grid.eo.legacy.h"
5008 * Create a grid that is child of a given element @a parent.
5009 *
5010 * @see evas_object_grid_add()
5011 * @since 1.1
5012 */
5013EAPI Evas_Object *evas_object_grid_add_to(Evas_Object *parent) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
5014
5015/**
5016 * Set the virtual resolution for the grid
5017 *
5018 * @param o The grid object to modify
5019 * @param w The virtual horizontal size (resolution) in integer units
5020 * @param h The virtual vertical size (resolution) in integer units
5021 * @since 1.1
5022 */
5023EAPI void evas_object_grid_size_set(Evas_Object *o, int w, int h) EINA_ARG_NONNULL(1);
5024
5025/**
5026 * Get the current virtual resolution
5027 *
5028 * @param o The grid object to query
5029 * @param w A pointer to an integer to store the virtual width
5030 * @param h A pointer to an integer to store the virtual height
5031 * @see evas_object_grid_size_set()
5032 * @since 1.1
5033 */
5034EAPI void evas_object_grid_size_get(const Evas_Object *o, int *w, int *h) EINA_ARG_NONNULL(1);
5035
5036/**
5037 * Sets the mirrored mode of the grid. In mirrored mode the grid items go
5038 * from right to left instead of left to right. That is, 0,0 is top right, not
5039 * to left.
5040 *
5041 * @param o The grid object.
5042 * @param mirrored the mirrored mode to set
5043 * @since 1.1
5044 */
5045EAPI void evas_object_grid_mirrored_set(Evas_Object *o, Eina_Bool mirrored) EINA_ARG_NONNULL(1);
5046
5047/**
5048 * Gets the mirrored mode of the grid.
5049 *
5050 * @param o The grid object.
5051 * @return @c EINA_TRUE if it's a mirrored grid, @c EINA_FALSE otherwise.
5052 * @see evas_object_grid_mirrored_set()
5053 * @since 1.1
5054 */
5055EAPI Eina_Bool evas_object_grid_mirrored_get(const Evas_Object *o) EINA_ARG_NONNULL(1);
5056
5057/**
5058 * Add a new child to a grid object.
5059 *
5060 * @param o The given grid object.
5061 * @param child The child object to add.
5062 * @param x The virtual x coordinate of the child
5063 * @param y The virtual y coordinate of the child
5064 * @param w The virtual width of the child
5065 * @param h The virtual height of the child
5066 * @return 1 on success, 0 on failure.
5067 * @since 1.1
5068 */
5069EAPI Eina_Bool evas_object_grid_pack(Evas_Object *o, Evas_Object *child, int x, int y, int w, int h) EINA_ARG_NONNULL(1, 2);
5070
5071/**
5072 * Remove child from grid.
5073 *
5074 * @note removing a child will immediately call a walk over children in order
5075 * to recalculate numbers of columns and rows. If you plan to remove
5076 * all children, use evas_object_grid_clear() instead.
5077 *
5078 * @return 1 on success, 0 on failure.
5079 * @since 1.1
5080 */
5081EAPI Eina_Bool evas_object_grid_unpack(Evas_Object *o, Evas_Object *child) EINA_ARG_NONNULL(1, 2);
5082
5083/**
5084 * Faster way to remove all child objects from a grid object.
5085 *
5086 * @param o The given grid object.
5087 * @param clear if true, it will delete just removed children.
5088 * @since 1.1
5089 */
5090EAPI void evas_object_grid_clear(Evas_Object *o, Eina_Bool clear) EINA_ARG_NONNULL(1);
5091
5092/**
5093 * Get the pack options for a grid child
5094 *
5095 * Get the pack x, y, width and height in virtual coordinates set by
5096 * evas_object_grid_pack()
5097 * @param o The grid object
5098 * @param child The grid child to query for coordinates
5099 * @param x The pointer to where the x coordinate will be returned
5100 * @param y The pointer to where the y coordinate will be returned
5101 * @param w The pointer to where the width will be returned
5102 * @param h The pointer to where the height will be returned
5103 * @return 1 on success, 0 on failure.
5104 * @since 1.1
5105 */
5106EAPI Eina_Bool evas_object_grid_pack_get(const Evas_Object *o, Evas_Object *child, int *x, int *y, int *w, int *h);
5107
5108/**
5109 * Get an iterator to walk the list of children for the grid.
5110 *
5111 * @note Do not remove or delete objects while walking the list.
5112 * @since 1.1
5113 */
5114EAPI Eina_Iterator *evas_object_grid_iterator_new(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
5115
5116/**
5117 * Get an accessor to get random access to the list of children for the grid.
5118 *
5119 * @note Do not remove or delete objects while walking the list.
5120 * @since 1.1
5121 */
5122EAPI Eina_Accessor *evas_object_grid_accessor_new(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
5123
5124/**
5125 * Get the list of children for the grid.
5126 *
5127 * @note This is a duplicate of the list kept by the grid internally.
5128 * It's up to the user to destroy it when it no longer needs it.
5129 * It's possible to remove objects from the grid when walking this
5130 * list, but these removals won't be reflected on it.
5131 * @since 1.1
5132 */
5133EAPI Eina_List *evas_object_grid_children_get(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
5134 5008
5135/** 5009/**
5136 * @} 5010 * @}