aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-05-22 02:49:50 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-05-22 02:49:50 +0000
commit46e02cf8bb14545bf73586145d52603b8fafd435 (patch)
tree01e271f53f8c8365bcad7195b3a55fa7ab54dbf5 /legacy/evas/src/lib/canvas/evas_main.c
parentwhitespace (diff)
downloadefl-46e02cf8bb14545bf73586145d52603b8fafd435.tar.gz
whitespace
SVN revision: 14889
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_main.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_main.c244
1 files changed, 122 insertions, 122 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_main.c b/legacy/evas/src/lib/canvas/evas_main.c
index 4cc447dea2..ef4f627563 100644
--- a/legacy/evas/src/lib/canvas/evas_main.c
+++ b/legacy/evas/src/lib/canvas/evas_main.c
@@ -75,7 +75,7 @@ Evas *
evas_new(void)
{
Evas *e;
-
+
e = calloc(1, sizeof(Evas));
if (!e) return NULL;
@@ -101,7 +101,7 @@ evas_free(Evas *e)
Evas_Object_List *l;
int i;
int del = 1;
-
+
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return;
MAGIC_CHECK_END();
@@ -112,35 +112,35 @@ evas_free(Evas *e)
for (l = (Evas_Object_List *)(e->layers); l; l = l->next)
{
Evas_Layer *lay;
- Evas_Object_List *ll;
-
+ Evas_Object_List *ll;
+
lay = (Evas_Layer *)l;
evas_layer_pre_free(lay);
for (ll = (Evas_Object_List *)lay->objects; ll; ll = ll->next)
{
Evas_Object *o;
-
+
o = (Evas_Object *)ll;
if (!o->delete_me)
del += o->delete_me;
}
}
-
+
}
while (e->layers)
{
Evas_Layer *lay;
-
+
lay = e->layers;
evas_layer_del(lay);
evas_layer_free(lay);
}
-
- evas_font_path_clear(e);
+
+ evas_font_path_clear(e);
e->pointer.object.in = evas_list_free(e->pointer.object.in);
-
+
if (e->name_hash) evas_hash_free(e->name_hash);
-
+
while (e->damages)
{
free(e->damages->data);
@@ -155,7 +155,7 @@ evas_free(Evas *e)
e->engine.func->info_free(e, e->engine.info);
e->engine.func->context_free(e->engine.data.output, e->engine.data.context);
e->engine.func->output_free(e->engine.data.output);
-
+
for (i = 0; i < e->modifiers.mod.count; i++)
free(e->modifiers.mod.list[i]);
if (e->modifiers.mod.list) free(e->modifiers.mod.list);
@@ -163,7 +163,7 @@ evas_free(Evas *e)
for (i = 0; i < e->locks.lock.count; i++)
free(e->locks.lock.list[i]);
if (e->locks.lock.list) free(e->locks.lock.list);
-
+
e->magic = 0;
free(e);
}
@@ -181,7 +181,7 @@ evas_free(Evas *e)
* Evas_Engine_Info_Software_X11 *einfo;
* extern Display *display;
* extern Window win;
- *
+ *
* evas = evas_new();
* evas_output_method_set(evas, evas_render_method_lookup("software_x11"));
* evas_output_size_set(evas, 640, 480);
@@ -213,33 +213,33 @@ evas_output_method_set(Evas *e, int render_method)
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return;
MAGIC_CHECK_END();
-
+
/* if our engine to set it to is invalid - abort */
if (render_method == RENDER_METHOD_INVALID) return;
/* if the engine is already set up - abort */
if (e->output.render_method != RENDER_METHOD_INVALID) return;
/* set the render method */
e->output.render_method = render_method;
-#ifdef BUILD_ENGINE_SOFTWARE_X11
+#ifdef BUILD_ENGINE_SOFTWARE_X11
if (e->output.render_method == RENDER_METHOD_SOFTWARE_X11)
e->engine.func = &evas_engine_software_x11_func;
else
-#endif
-#ifdef BUILD_ENGINE_SOFTWARE_XCB
+#endif
+#ifdef BUILD_ENGINE_SOFTWARE_XCB
if (e->output.render_method == RENDER_METHOD_SOFTWARE_XCB)
e->engine.func = &evas_engine_software_xcb_func;
else
-#endif
+#endif
#ifdef BUILD_ENGINE_GL_X11
if (e->output.render_method == RENDER_METHOD_GL_X11)
e->engine.func = &evas_engine_gl_x11_func;
else
-#endif
+#endif
#ifdef BUILD_ENGINE_CAIRO_X11
if (e->output.render_method == RENDER_METHOD_CAIRO_X11)
e->engine.func = &evas_engine_cairo_x11_func;
else
-#endif
+#endif
#ifdef BUILD_ENGINE_DIRECTFB
if (e->output.render_method == RENDER_METHOD_DIRECTFB)
e->engine.func = &evas_engine_directfb_func;
@@ -264,7 +264,7 @@ evas_output_method_set(Evas *e, int render_method)
if (e->output.render_method == RENDER_METHOD_SOFTWARE_QTOPIA)
e->engine.func = &evas_engine_software_qtopia_func;
else
-#endif
+#endif
return;
/* get the engine info struct */
if (e->output.render_method != RENDER_METHOD_INVALID)
@@ -286,7 +286,7 @@ evas_output_method_get(Evas *e)
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return RENDER_METHOD_INVALID;
MAGIC_CHECK_END();
-
+
return e->output.render_method;
}
@@ -307,16 +307,16 @@ Evas_Engine_Info *
evas_engine_info_get(Evas *e)
{
Evas_Engine_Info *info;
-
+
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return NULL;
MAGIC_CHECK_END();
-
+
if (!e->engine.info) return NULL;
-
+
info = e->engine.info;
e->engine.info_magic = info->magic;
-
+
return info;
}
@@ -333,7 +333,7 @@ evas_engine_info_get(Evas *e)
* their settings to be changed more than once.
*
* Once called, the @p info pointer should be considered invalid.
- *
+ *
* Example:
*
* @param e The pointer to the Evas Canvas
@@ -376,10 +376,10 @@ evas_engine_info_set(Evas *e, Evas_Engine_Info *info)
void
evas_output_size_set(Evas *e, int w, int h)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return;
MAGIC_CHECK_END();
-
+
if ((w == e->output.w) && (h == e->output.h)) return;
if (w < 1) w = 1;
if (h < 1) h = 1;
@@ -408,11 +408,11 @@ void
evas_output_size_get(Evas *e, int *w, int *h)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
- if (w) *w = 0;
- if (h) *h = 0;
+ if (w) *w = 0;
+ if (h) *h = 0;
return;
MAGIC_CHECK_END();
-
+
if (w) *w = e->output.w;
if (h) *h = e->output.h;
}
@@ -438,10 +438,10 @@ evas_output_size_get(Evas *e, int *w, int *h)
void
evas_output_viewport_set(Evas *e, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return;
MAGIC_CHECK_END();
-
+
if ((x == e->viewport.x) && (y == e->viewport.y) &&
(w == e->viewport.w) && (h == e->viewport.h)) return;
if (w <= 0) return;
@@ -463,32 +463,32 @@ evas_output_viewport_set(Evas *e, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas
* @param w The pointer to a width variable to be filled in
* @param h The pointer to a height variable to be filled in
* @ingroup Evas_Output_Size
- *
+ *
* Calling this function writes the current canvas output viewport size and
* location values into the variables pointed to by @p x, @p y, @p w and @p h.
* On success the variables have the output location and size values written to
* them in canvas units. Any of @p x, @p y, @p w or @p h that are NULL will not
* be written to. If @p e is invalid, the results are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* Evas_Coord x, y, width, height;
- *
+ *
* evas_output_viewport_get(evas, &x, &y, &w, &h);
* @endcode
*/
void
evas_output_viewport_get(Evas *e, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
- if (x) *x = 0;
- if (y) *y = 0;
- if (w) *w = 0;
- if (h) *h = 0;
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ if (x) *x = 0;
+ if (y) *y = 0;
+ if (w) *w = 0;
+ if (h) *h = 0;
return;
MAGIC_CHECK_END();
-
+
if (x) *x = e->viewport.x;
if (y) *y = e->viewport.y;
if (w) *w = e->viewport.w;
@@ -504,30 +504,30 @@ evas_output_viewport_get(Evas *e, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, E
/**
* Convert/scale an ouput screen co-ordinate into canvas co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param x The screen/output x co-ordinate
* @return The screen co-ordinate translated to canvas unit co-ordinates
* @ingroup Evas_Coord_Mapping_Group
- *
+ *
* This function takes in a horizontal co-ordinate as the @p x parameter and
* converts it into canvas units, accounting for output size, viewport size
- * and location, returning it as the function return value. If @p e is
+ * and location, returning it as the function return value. If @p e is
* invalid, the results are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* extern int screen_x;
* Evas_Coord canvas_x;
- *
+ *
* canvas_x = evas_coord_screen_x_to_world(evas, screen_x);
* @endcode
*/
Evas_Coord
evas_coord_screen_x_to_world(Evas *e, int x)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
MAGIC_CHECK_END();
if (e->output.w == e->viewport.w) return e->viewport.x + x;
@@ -536,30 +536,30 @@ evas_coord_screen_x_to_world(Evas *e, int x)
/**
* Convert/scale an ouput screen co-ordinate into canvas co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param y The screen/output y co-ordinate
* @return The screen co-ordinate translated to canvas unit co-ordinates
* @ingroup Evas_Coord_Mapping_Group
- *
+ *
* This function takes in a vertical co-ordinate as the @p y parameter and
* converts it into canvas units, accounting for output size, viewport size
- * and location, returning it as the function return value. If @p e is
+ * and location, returning it as the function return value. If @p e is
* invalid, the results are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* extern int screen_y;
* Evas_Coord canvas_y;
- *
+ *
* canvas_y = evas_coord_screen_y_to_world(evas, screen_y);
* @endcode
*/
Evas_Coord
evas_coord_screen_y_to_world(Evas *e, int y)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
MAGIC_CHECK_END();
if (e->output.h == e->viewport.h) return e->viewport.y + y;
@@ -568,30 +568,30 @@ evas_coord_screen_y_to_world(Evas *e, int y)
/**
* Convert/scale a canvas co-ordinate into output screen co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param x The canvas x co-ordinate
* @return The output/screen co-ordinate translated to output co-ordinates
* @ingroup Evas_Coord_Mapping_Group
- *
+ *
* This function takes in a horizontal co-ordinate as the @p x parameter and
* converts it into output units, accounting for output size, viewport size
- * and location, returning it as the function return value. If @p e is
+ * and location, returning it as the function return value. If @p e is
* invalid, the results are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* int screen_x;
* extern Evas_Coord canvas_x;
- *
+ *
* screen_x = evas_coord_world_x_to_screen(evas, canvas_x);
* @endcode
*/
int
evas_coord_world_x_to_screen(Evas *e, Evas_Coord x)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
MAGIC_CHECK_END();
if (e->output.w == e->viewport.w) return x - e->viewport.x;
@@ -600,30 +600,30 @@ evas_coord_world_x_to_screen(Evas *e, Evas_Coord x)
/**
* Convert/scale a canvas co-ordinate into output screen co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param y The canvas y co-ordinate
* @return The output/screen co-ordinate translated to output co-ordinates
* @ingroup Evas_Coord_Mapping_Group
- *
+ *
* This function takes in a vertical co-ordinate as the @p x parameter and
* converts it into output units, accounting for output size, viewport size
- * and location, returning it as the function return value. If @p e is
+ * and location, returning it as the function return value. If @p e is
* invalid, the results are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* int screen_y;
* extern Evas_Coord canvas_y;
- *
+ *
* screen_y = evas_coord_world_y_to_screen(evas, canvas_y);
* @endcode
*/
int
evas_coord_world_y_to_screen(Evas *e, Evas_Coord y)
{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+ MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
MAGIC_CHECK_END();
if (e->output.h == e->viewport.h) return y - e->viewport.y;
@@ -632,26 +632,26 @@ evas_coord_world_y_to_screen(Evas *e, Evas_Coord y)
/**
* Look up a numeric ID from a string name of a rendering engine.
- *
+ *
* @param name The string name of an engine
* @return A numeric (opaque) ID for the rendering engine
* @ingroup Evas_Output_Method
- *
+ *
* This function looks up a numeric return value for the named engine in the
* string @p name. This is a normal C string, NUL byte terminated. The name
* is case sensitive. If the rendering engine is available, a numeric ID for
* that engine is returned that is not 0. If the engine is not available, 0
* is returned, indicating an invalid engine.
- *
+ *
* The programmer should NEVER rely on the numeric ID of an engine unless it is
* returned by this function. Programs should NOT be written accessing render
* method ID's directly, without first obtaining it from this function.
- *
+ *
* Example:
* @code
* int engine_id;
* Evas *evas;
- *
+ *
* evas = evas_new();
* if (!evas)
* {
@@ -672,30 +672,30 @@ evas_render_method_lookup(const char *name)
{
if (!name) return RENDER_METHOD_INVALID;
-#ifdef BUILD_ENGINE_SOFTWARE_X11
+#ifdef BUILD_ENGINE_SOFTWARE_X11
if (!strcmp(name, "software_x11")) return RENDER_METHOD_SOFTWARE_X11;
#endif
-#ifdef BUILD_ENGINE_SOFTWARE_XCB
+#ifdef BUILD_ENGINE_SOFTWARE_XCB
if (!strcmp(name, "software_xcb")) return RENDER_METHOD_SOFTWARE_XCB;
#endif
-#ifdef BUILD_ENGINE_GL_X11
+#ifdef BUILD_ENGINE_GL_X11
if (!strcmp(name, "gl_x11")) return RENDER_METHOD_GL_X11;
#endif
-#ifdef BUILD_ENGINE_CAIRO_X11
+#ifdef BUILD_ENGINE_CAIRO_X11
if (!strcmp(name, "cairo_x11")) return RENDER_METHOD_CAIRO_X11;
#endif
-#ifdef BUILD_ENGINE_DIRECTFB
+#ifdef BUILD_ENGINE_DIRECTFB
if (!strcmp(name, "directfb")) return RENDER_METHOD_DIRECTFB;
#endif
-#ifdef BUILD_ENGINE_FB
+#ifdef BUILD_ENGINE_FB
if (!strcmp(name, "fb")) return RENDER_METHOD_FB;
#endif
-#ifdef BUILD_ENGINE_BUFFER
+#ifdef BUILD_ENGINE_BUFFER
if (!strcmp(name, "buffer")) return RENDER_METHOD_BUFFER;
#endif
#ifdef BUILD_ENGINE_SOFTWARE_WIN32_GDI
if (!strcmp(name, "software_win32_gdi")) return RENDER_METHOD_SOFTWARE_WIN32_GDI;
-#endif
+#endif
#ifdef BUILD_ENGINE_SOFTWARE_QTOPIA
if (!strcmp(name, "software_qtopia")) return RENDER_METHOD_SOFTWARE_QTOPIA;
#endif
@@ -704,10 +704,10 @@ evas_render_method_lookup(const char *name)
/**
* List all the rendering engines compiled into the copy of the Evas library
- *
+ *
* @return A linked list whose data members are C strings of engine names
* @ingroup Evas_Output_Method
- *
+ *
* Calling this will return a handle (pointer) to an Evas linked list. Each node
* in the linked list will have the data pointer be a (char *) pointer to the
* string name of the rendering engine available. The strings should never be
@@ -715,11 +715,11 @@ evas_render_method_lookup(const char *name)
* as soon as the program no longer needs it using
* evas_render_method_list_free(). If no engines are available from Evas, NULL
* will be returned.
- *
+ *
* Example:
* @code
* Evas_List *engine_list, *l;
- *
+ *
* engine_list = evas_render_method_list();
* if (!engine_list)
* {
@@ -730,7 +730,7 @@ evas_render_method_lookup(const char *name)
* for (l = engine_list; l; l = l->next)
* {
* char *engine_name;
- *
+ *
* engine_name = l->data;
* printf("%s\n", engine_name);
* }
@@ -741,22 +741,22 @@ Evas_List *
evas_render_method_list(void)
{
Evas_List *methods = NULL;
-
+
#ifdef BUILD_ENGINE_SOFTWARE_X11
methods = evas_list_append(methods, strdup("software_x11"));
-#endif
+#endif
#ifdef BUILD_ENGINE_SOFTWARE_XCB
methods = evas_list_append(methods, strdup("software_xcb"));
-#endif
+#endif
#ifdef BUILD_ENGINE_GL_X11
methods = evas_list_append(methods, strdup("gl_x11"));
-#endif
+#endif
#ifdef BUILD_ENGINE_CAIRO_X11
methods = evas_list_append(methods, strdup("cairo_x11"));
-#endif
+#endif
#ifdef BUILD_ENGINE_DIRECTFB
methods = evas_list_append(methods, strdup("directfb"));
-#endif
+#endif
#ifdef BUILD_ENGINE_FB
methods = evas_list_append(methods, strdup("fb"));
#endif
@@ -765,28 +765,28 @@ evas_render_method_list(void)
#endif
#ifdef BUILD_ENGINE_SOFTWARE_WIN32_GDI
methods = evas_list_append(methods, strdup("software_win32_gdi"));
-#endif
+#endif
#ifdef BUILD_ENGINE_SOFTWARE_QTOPIA
methods = evas_list_append(methods, strdup("software_qtopia"));
-#endif
+#endif
return methods;
}
/**
* This function should be called to free a list of engine names
- *
+ *
* @param list The Evas_List base pointer for the engine list to be freed
* @ingroup Evas_Output_Method
- *
+ *
* When this function is called it will free the engine list passed in as
* @p list. The list should only be a list of engines generated by calling
* evas_render_method_list(). If @p list is NULL, nothing will happen.
- *
+ *
* Example:
* @code
* Evas_List *engine_list, *l;
- *
+ *
* engine_list = evas_render_method_list();
* if (!engine_list)
* {
@@ -797,7 +797,7 @@ evas_render_method_list(void)
* for (l = engine_list; l; l = l->next)
* {
* char *engine_name;
- *
+ *
* engine_name = l->data;
* printf("%s\n", engine_name);
* }
@@ -822,22 +822,22 @@ evas_render_method_list_free(Evas_List *list)
/**
* This function returns the current known pointer co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param x The pointer to an integer to be filled in
* @param y The pointer to an integer to be filled in
* @ingroup Evas_Pointer_Group
- *
+ *
* This function returns the current known screen/output co-ordinates of the
* mouse pointer and sets the contents of the integers pointed to by @p x
* and @p y to contain these co-ordinates. If @p e is not a valid canvas the
* results of this function are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* int mouse_x, mouse_y;
- *
+ *
* evas_pointer_output_xy_get(evas, &mouse_x, &mouse_y);
* printf("Mouse is at screen position %i, %i\n", mouse_x, mouse_y);
* @endcode
@@ -856,22 +856,22 @@ evas_pointer_output_xy_get(Evas *e, int *x, int *y)
/**
* This function returns the current known pointer co-ordinates
- *
+ *
* @param e The pointer to the Evas Canvas
* @param x The pointer to a Evas_Coord to be filled in
* @param y The pointer to a Evas_Coord to be filled in
* @ingroup Evas_Pointer_Group
- *
+ *
* This function returns the current known canvas unit co-ordinates of the
* mouse pointer and sets the contents of the Evas_Coords pointed to by @p x
* and @p y to contain these co-ordinates. If @p e is not a valid canvas the
* results of this function are undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* Evas_Coord mouse_x, mouse_y;
- *
+ *
* evas_pointer_output_xy_get(evas, &mouse_x, &mouse_y);
* printf("Mouse is at canvas position %f, %f\n", mouse_x, mouse_y);
* @endcode
@@ -890,32 +890,32 @@ evas_pointer_canvas_xy_get(Evas *e, Evas_Coord *x, Evas_Coord *y)
/**
* Returns a bitmask with the mouse buttons currently pressed, set to 1
- *
+ *
* @param e The pointer to the Evas Canvas
* @return A bitmask of the currently depressed buttons on the cavas
* @ingroup Evas_Pointer_Group
- *
+ *
* Calling this function will return a 32-bit integer with the appropriate bits
* set to 1 that correspond to a mouse button being depressed. This limits
* Evas to a mouse devices with a maximum of 32 buttons, but that is generally
* in excess of any host system's pointing device abilities.
- *
+ *
* A canvas by default begins with no mouse buttons being pressed and only
* calls to evas_event_feed_mouse_down(), evas_event_feed_mouse_down_data(),
* evas_event_feed_mouse_up() and evas_event_feed_mouse_up_data() will alter
* that.
- *
+ *
* The least significant bit corresponds to the first mouse button (button 1)
* and the most significant bit corresponds to the last mouse button
* (button 32).
- *
+ *
* If @p e is not a valid canvas, the return value is undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
* int button_mask, i;
- *
+ *
* button_mask = evas_pointer_button_down_mask_get(evas);
* printf("Buttons currently pressed:\n");
* for (i = 0; i < 32; i++)
@@ -935,27 +935,27 @@ evas_pointer_button_down_mask_get(Evas *e)
/**
* Returns whether the mouse pointer is logically inside the canvas
- *
+ *
* @param e The pointer to the Evas Canvas
* @return An integer that is 1 if the mouse is inside the canvas, 0 otherwise
* @ingroup Evas_Pointer_Group
- *
+ *
* When this function is called it will return a value of either 0 or 1,
* depending on if evas_event_feed_mouse_in(), evas_event_feed_mouse_in_data(),
* or evas_event_feed_mouse_out(), evas_event_feed_mouse_out_data() have been
* called to feed in a mouse enter event into the canvas.
- *
+ *
* A return value of 1 indicates the mouse is logically inside the canvas, and
* 0 implies it is logically outside the canvas.
- *
+ *
* A canvas begins with the mouse being assumed outside (0).
- *
+ *
* If @p e is not a valid canvas, the return value is undefined.
- *
+ *
* Example:
* @code
* extern Evas *evas;
- *
+ *
* if (evas_pointer_inside_get(evas)) printf("Mouse is in!\n");
* else printf("Mouse is out!\n");
* @endcode
@@ -966,5 +966,5 @@ evas_pointer_inside_get(Evas *e)
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
MAGIC_CHECK_END();
- return (int)e->pointer.inside;
+ return (int)e->pointer.inside;
}