summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-20 19:55:19 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-12-20 19:55:20 +0900
commit7031a8cd7ec87177b4c9002506a81f3475645d6a (patch)
tree2f3d8416df1bfd9eeac263695cae019dba00be69
parentec3685f24f86fdbed95a29bf8f683ae0bda9506d (diff)
elm_widget: remove defines that are not implemented
Summary: they are not implemented - so using them would not work, to me it looks like they can be dropped. Reviewers: cedric, raster, stefan_schmidt, Jaehyun_Cho Reviewed By: Jaehyun_Cho Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7455
-rw-r--r--src/lib/elementary/elm_widget.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/lib/elementary/elm_widget.h b/src/lib/elementary/elm_widget.h
index 6f53ff64d2..99229851f8 100644
--- a/src/lib/elementary/elm_widget.h
+++ b/src/lib/elementary/elm_widget.h
@@ -299,22 +299,10 @@
299 299
300#include "elm_object_item.h" 300#include "elm_object_item.h"
301 301
302typedef void (*Elm_Widget_Text_Set_Cb)(void *data, const char *part, const char *text);
303typedef void (*Elm_Widget_Content_Set_Cb)(void *data, const char *part, Evas_Object *content);
304typedef const char *(*Elm_Widget_Text_Get_Cb)(const void *data, const char *part);
305typedef Evas_Object *(*Elm_Widget_Content_Get_Cb)(const void *data, const char *part);
306typedef Evas_Object *(*Elm_Widget_Content_Unset_Cb)(const void *data, const char *part);
307typedef void (*Elm_Widget_Signal_Emit_Cb)(void *data, const char *emission, const char *source);
308typedef void (*Elm_Widget_Disable_Cb)(void *data);
309typedef Eina_Bool (*Elm_Widget_Del_Pre_Cb)(void *data); 302typedef Eina_Bool (*Elm_Widget_Del_Pre_Cb)(void *data);
310typedef void (*Elm_Widget_Item_Signal_Cb)(void *data, Elm_Object_Item *item, const char *emission, const char *source); 303typedef void (*Elm_Widget_Item_Signal_Cb)(void *data, Elm_Object_Item *item, const char *emission, const char *source);
311typedef void (*Elm_Widget_Style_Set_Cb)(void *data, const char *style);
312typedef const char *(*Elm_Widget_Style_Get_Cb)(const void *data);
313typedef void (*Elm_Widget_Focus_Set_Cb)(void *data, Eina_Bool focused);
314typedef Eina_Bool (*Elm_Widget_Focus_Get_Cb)(const void *data);
315 304
316typedef void (*Elm_Access_On_Highlight_Cb)(void *data); 305typedef void (*Elm_Access_On_Highlight_Cb)(void *data);
317typedef void * (*list_data_get_func_type)(const Eina_List * l);
318 306
319#include "efl_ui_widget.eo.h" 307#include "efl_ui_widget.eo.h"
320 308
@@ -323,55 +311,6 @@ typedef void * (*list_data_get_func_type)(const Eina_List * l);
323 * @{ 311 * @{
324 */ 312 */
325 313
326/* Please, ALWAYS update the ELM_WIDGET_SMART_CLASS_INIT macro
327 * whenever you change the following struct! */
328
329/**
330 * Base widget smart class. It has the 'virtual' functions for all
331 * general, common actions on Elementary widgets.
332 */
333typedef struct _Elm_Widget_Smart_Class
334{
335 Evas_Smart_Class base; /**< Base smart class struct, needed for all smart objects */
336 int version; /**< Version of this smart class definition */
337
338 void (*parent_set)(Evas_Object *obj,
339 Evas_Object *parent); /**< 'Virtual' function handling parent widget attachment to new object */
340 Eina_Bool (*on_focus)(Evas_Object *obj); /**< 'Virtual' function handling focus in/out events on the widget */
341 Eina_Bool (*disable)(Evas_Object *obj); /**< 'Virtual' function on the widget being disabled */
342 Eina_Bool (*theme)(Evas_Object *obj); /**< 'Virtual' function on the widget being re-themed */
343 Eina_Bool (*translate)(Evas_Object *obj); /**< 'Virtual' function handling language changes on Elementary */
344 Eina_Bool (*event)(Evas_Object *obj,
345 Evas_Object *source,
346 Evas_Callback_Type type,
347 void *event_info); /**< 'Virtual' function handling input events on the widget */
348 Eina_Bool (*on_focus_region)(const Evas_Object *obj,
349 Evas_Coord *x,
350 Evas_Coord *y,
351 Evas_Coord *w,
352 Evas_Coord *h); /**< 'Virtual' function returning an inner area of a widget that should be brought into the visible area of a broader viewport, may this context arise. On the base Elementary widget class, it defaults to the object's total area, so only override it if you have to. */
353 Eina_Bool (*focus_next)(const Evas_Object *obj,
354 Elm_Focus_Direction dir,
355 Evas_Object **next,
356 Elm_Object_Item **next_item); /**< 'Virtual' function handling passing focus to sub-objects */
357 Eina_Bool (*focus_direction)(const Evas_Object *obj,
358 const Evas_Object *base,
359 double degree,
360 Evas_Object **target,
361 Elm_Object_Item **target_item,
362 double *weight); /**< 'Virtual' function handling passing focus to sub-objects <b>given a direction, in degrees</b> */
363
364 Eina_Bool (*widget_sub_object_add)(Evas_Object *obj,
365 Evas_Object *sobj); /**< 'Virtual' function handling sub objects being added */
366
367 Eina_Bool (*widget_sub_object_del)(Evas_Object *obj,
368 Evas_Object *sobj); /**< 'Virtual' function handling sub objects being removed */
369 void (*access)(Evas_Object *obj,
370 Eina_Bool is_access); /**< 'Virtual' function on the widget being set access */
371 Eina_Bool (*activate)(Evas_Object *obj,
372 Efl_Ui_Activate act); /**< 'Virtual' function to activate widget */
373} Elm_Widget_Smart_Class;
374
375/** 314/**
376 * Base widget smart data. This is data bound to an Elementary object 315 * Base widget smart data. This is data bound to an Elementary object
377 * @b instance, so its particular to that specific object and not 316 * @b instance, so its particular to that specific object and not
@@ -639,7 +578,6 @@ struct _Elm_Widget_Item_Data
639 578
640#define ELM_NEW(t) calloc(1, sizeof(t)) 579#define ELM_NEW(t) calloc(1, sizeof(t))
641 580
642EAPI Evas_Object *elm_widget_add(Evas_Smart *, Evas_Object *);
643EAPI Eina_Bool elm_widget_api_check(int ver); 581EAPI Eina_Bool elm_widget_api_check(int ver);
644EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access); 582EAPI Eina_Bool elm_widget_access(Evas_Object *obj, Eina_Bool is_access);
645EAPI Efl_Ui_Theme_Apply_Result elm_widget_theme(Evas_Object *obj); 583EAPI Efl_Ui_Theme_Apply_Result elm_widget_theme(Evas_Object *obj);
@@ -680,7 +618,6 @@ EAPI void elm_widget_display_mode_set(Evas_Object *obj, Evas_Display
680EAPI Eina_Bool elm_widget_focus_highlight_enabled_get(const Evas_Object *obj); 618EAPI Eina_Bool elm_widget_focus_highlight_enabled_get(const Evas_Object *obj);
681EAPI void elm_widget_focus_highlight_focus_part_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h); 619EAPI void elm_widget_focus_highlight_focus_part_geometry_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
682Evas_Object *_elm_widget_focus_highlight_object_get(const Evas_Object *obj); 620Evas_Object *_elm_widget_focus_highlight_object_get(const Evas_Object *obj);
683EAPI const Elm_Widget_Smart_Class *elm_widget_smart_class_get(void);
684 621
685/** 622/**
686 * @internal 623 * @internal