A canvas begins with the mouse being assumed outside ($false).
]]
}
- /* FIXME: missing keys { seat } */
+ /* keys {
+ seat: Efl.Input.Device @optional; [[The seat to consider, if $null
+ then the default seat will be used.]]
+ } */
values {
inside: bool; [[$true if the mouse pointer is inside the canvas,
$false otherwise]]
*/
/**
+ * @brief Returns whether the default mouse pointer is logically inside the
+ * canvas.
+ *
+ * When this function is called it will return a value of either @c false or
+ * @c true, depending on if event_feed_mouse_in or event_feed_mouse_out have
+ * been called to feed in a mouse enter event into the canvas.
+ *
+ * A return value of @c true indicates the mouse is logically inside the
+ * canvas, and @c false implies it is logically outside the canvas.
+ *
+ * A canvas begins with the mouse being assumed outside ($false).
+ *
+ * If @c e is not a valid canvas, the return value is undefined.
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true if the mouse pointer is inside the canvas, @c false
+ * otherwise
+ *
+ * @ingroup Evas_Canvas
+ */
+EAPI Eina_Bool evas_pointer_inside_get(const Evas *obj) EINA_WARN_UNUSED_RESULT;
+
+/**
* @defgroup Evas_Touch_Point_List Touch Point List Functions
*
* Functions to get information of touched points in the Evas.
in: bool; [[$true if the pointer is inside, $false otherwise.]]
}
}
- @property pointer_inside {
- get {
- [[Returns whether the default mouse pointer is logically inside the
- canvas.
-
- When this function is called it will return a value of either
- $false or $true, depending on if event_feed_mouse_in or
- event_feed_mouse_out have been called to feed in a mouse
- enter event into the canvas.
-
- A return value of $true indicates the mouse is logically
- inside the canvas, and $false implies it is logically
- outside the canvas.
-
- A canvas begins with the mouse being assumed outside ($false).
-
- If $e is not a valid canvas, the return value is undefined.
- ]]
- /* FIXME-doc
- Example:
- @code
- extern Evas *evas;
-
- if (evas_pointer_inside_get(evas)) printf("Mouse is in!\n");
- else printf("Mouse is out!\n");
- @endcode
- */
- return: bool @warn_unused; [[$true if the mouse pointer is inside the canvas, $false otherwise]]
- }
- }
@property image_max_size {
get {
[[Get the maximum image size evas can possibly handle.
Efl.Object.provider_find;
Efl.Loop_User.loop { get; }
//Efl.Canvas.seats;
+ Efl.Canvas.pointer_inside { get; }
Efl.Canvas.device { get; }
Efl.Canvas.seat { get; }
}
}
EOLIAN static Eina_Bool
-_evas_canvas_pointer_inside_get(Eo *eo_e, Evas_Public_Data *e)
+_evas_canvas_efl_canvas_pointer_inside_get(Eo *eo_e, Evas_Public_Data *e)
{
return _evas_canvas_pointer_inside_by_device_get(eo_e, e, NULL);
}
return list;
}
+/* Legacy EAPI */
+
+EAPI Eina_Bool
+evas_pointer_inside_get(const Evas *obj)
+{
+ return efl_canvas_pointer_inside_get(obj);
+}
+
/* Internal EO APIs */
EWAPI const Efl_Event_Description _EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE =