efl_canvas_object: make is_frame_object internal
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Sat, 23 Feb 2019 13:22:11 +0000 (14:22 +0100)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 8 Mar 2019 11:49:35 +0000 (20:49 +0900)
it was decided that this property should be internal. So now it is
internal.

ref T7555

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D8010

src/lib/elementary/efl_ui_widget.c
src/lib/elementary/efl_ui_widget.eo
src/lib/evas/Evas_Internal.h
src/lib/evas/Evas_Legacy.h
src/lib/evas/canvas/efl_canvas_object.eo
src/lib/evas/canvas/evas_object_main.c

index 877a18b..aa7670e 100644 (file)
@@ -6640,6 +6640,7 @@ static void _elm_widget_class_color_clear(Eo *obj EINA_UNUSED, Elm_Widget_Smart_
    EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_widget), \
    ELM_PART_CONTENT_DEFAULT_OPS(efl_ui_widget), \
    ELM_PART_TEXT_DEFAULT_OPS(efl_ui_widget), \
+   EFL_OBJECT_OP_FUNC(efl_canvas_object_is_frame_object_set, _efl_ui_widget_efl_canvas_object_is_frame_object_set), \
    EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _efl_ui_widget_efl_object_dbg_info_get), \
 /***********************************************************************************  \
  * TIZEN_ONLY_FEATURE: apply Tizen's color_class features.                         *  \
index d8349f2..dc5e512 100644 (file)
@@ -899,7 +899,6 @@ abstract @beta Efl.Ui.Widget extends Efl.Canvas.Group implements Efl.Access.Obje
       Efl.Gfx.Entity.scale { set; get; }
       Efl.Canvas.Object.clip { set; }
       Efl.Canvas.Object.no_render { set; }
-      Efl.Canvas.Object.is_frame_object { set; }
       Efl.Canvas.Group.group_calculate;
       Efl.Canvas.Group.group_member_del;
       Efl.Canvas.Group.group_member_add;
index da1330f..48b7928 100644 (file)
@@ -79,6 +79,44 @@ EOAPI Eo *efl_input_focus_instance_get(Efl_Object *owner, void **priv);
 EOAPI Eo *efl_input_hold_instance_get(Efl_Object *owner, void **priv);
 EOAPI Eo *efl_input_key_instance_get(Efl_Object *owner, void **priv);
 EOAPI Eo *efl_input_pointer_instance_get(Efl_Object *owner, void **priv);
+/**
+ * @brief If @c true the object belongs to the window border decorations.
+ *
+ * This will be @c false by default, and should be @c false for all objects
+ * created by the application, unless swallowed in some very specific parts of
+ * the window.
+ *
+ * It is very unlikely that an application needs to call this manually, as the
+ * window will handle this feature automatically.
+ *
+ * @param[in] obj The object.
+ * @param[in] is_frame @c true if the object is a frame, @c false otherwise
+ *
+ * @since 1.2
+ *
+ * @ingroup Efl_Canvas_Object
+ */
+EOAPI void efl_canvas_object_is_frame_object_set(Eo *obj, Eina_Bool is_frame);
+
+/**
+ * @brief If @c true the object belongs to the window border decorations.
+ *
+ * This will be @c false by default, and should be @c false for all objects
+ * created by the application, unless swallowed in some very specific parts of
+ * the window.
+ *
+ * It is very unlikely that an application needs to call this manually, as the
+ * window will handle this feature automatically.
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true if the object is a frame, @c false otherwise
+ *
+ * @since 1.2
+ *
+ * @ingroup Efl_Canvas_Object
+ */
+EOAPI Eina_Bool efl_canvas_object_is_frame_object_get(const Eo *obj);
 
 EWAPI extern const Efl_Event_Description _EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE;
 #define EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE (&(_EVAS_CANVAS_EVENT_RENDER_FLUSH_PRE))
index 22645f2..f2c329e 100755 (executable)
@@ -8325,6 +8325,45 @@ EAPI void evas_object_text_filter_source_set(Evas_Object *obj, const char *name,
  */
 EAPI Evas_Object *evas_object_event_grabber_add(Evas *e);
 
+/**
+ * @brief If @c true the object belongs to the window border decorations.
+ *
+ * This will be @c false by default, and should be @c false for all objects
+ * created by the application, unless swallowed in some very specific parts of
+ * the window.
+ *
+ * It is very unlikely that an application needs to call this manually, as the
+ * window will handle this feature automatically.
+ *
+ * @param[in] obj The object.
+ * @param[in] is_frame @c true if the object is a frame, @c false otherwise
+ *
+ * @since 1.2
+ *
+ * @ingroup Evas_Object_Group
+ */
+EAPI void evas_object_is_frame_object_set(Efl_Canvas_Object *obj, Eina_Bool is_frame);
+
+/**
+ * @brief If @c true the object belongs to the window border decorations.
+ *
+ * This will be @c false by default, and should be @c false for all objects
+ * created by the application, unless swallowed in some very specific parts of
+ * the window.
+ *
+ * It is very unlikely that an application needs to call this manually, as the
+ * window will handle this feature automatically.
+ *
+ * @param[in] obj The object.
+ *
+ * @return @c true if the object is a frame, @c false otherwise
+ *
+ * @since 1.2
+ *
+ * @ingroup Evas_Object_Group
+ */
+EAPI Eina_Bool evas_object_is_frame_object_get(const Efl_Canvas_Object *obj);
+
 /*********************************************************************************
  * TIZEN_ONLY(20171110): Import TIZEN_ONLY functions for
  *                       Edje textblock/text calculation/ellipsize feature.
index d29bafa..f66b6ac 100644 (file)
@@ -269,22 +269,6 @@ abstract @beta Efl.Canvas.Object extends Efl.Loop_Consumer implements Efl.Gfx.En
          legacy: null;
          return: bool; [[$true if the seat was removed from the focus list or $false otherwise.]]
       }
-      @property is_frame_object {
-         [[If $true the object belongs to the window border decorations.
-
-           This will be $false by default, and should be $false for all objects
-           created by the application, unless swallowed in some very specific
-           parts of the window.
-
-           It is very unlikely that an application needs to call this manually,
-           as the window will handle this feature automatically.
-
-           @since 1.2
-         ]]
-         values {
-            is_frame: bool; [[$true if the object is a frame, $false otherwise]]
-         }
-      }
       @property precise_is_inside {
          set {
             [[Set whether to use precise (usually expensive) point collision
index e05e483..f26744b 100644 (file)
@@ -2545,13 +2545,30 @@ evas_object_pointer_inside_get(const Evas_Object *eo_obj)
    return evas_object_pointer_inside_by_device_get(eo_obj, NULL);
 }
 
+EAPI void
+evas_object_is_frame_object_set(Efl_Canvas_Object *obj, Eina_Bool is_frame)
+{
+   efl_canvas_object_is_frame_object_set(obj, is_frame);
+}
+
+EAPI Eina_Bool
+evas_object_is_frame_object_get(const Efl_Canvas_Object *obj)
+{
+   return efl_canvas_object_is_frame_object_get(obj);
+}
+
+
 /* Internal EO APIs and hidden overrides */
 
+EOAPI EFL_VOID_FUNC_BODYV(efl_canvas_object_is_frame_object_set, EFL_FUNC_CALL(is_frame), Eina_Bool is_frame);
+EOAPI EFL_FUNC_BODY_CONST(efl_canvas_object_is_frame_object_get, Eina_Bool, 0);
 EOAPI EFL_VOID_FUNC_BODY(efl_canvas_object_legacy_ctor)
 EOAPI EFL_VOID_FUNC_BODYV(efl_canvas_object_type_set, EFL_FUNC_CALL(type), const char *type)
 
 #define EFL_CANVAS_OBJECT_EXTRA_OPS \
    EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _efl_canvas_object_efl_object_dbg_info_get), \
+   EFL_OBJECT_OP_FUNC(efl_canvas_object_is_frame_object_set, _efl_canvas_object_is_frame_object_set), \
+   EFL_OBJECT_OP_FUNC(efl_canvas_object_is_frame_object_get, _efl_canvas_object_is_frame_object_get), \
    EFL_OBJECT_OP_FUNC(efl_canvas_object_legacy_ctor, _efl_canvas_object_legacy_ctor), \
    EFL_OBJECT_OP_FUNC(efl_canvas_object_type_set, _efl_canvas_object_type_set)