e_comp_cfdata: Transfer struct definition to e_comp_cfdata_intern.h 40/324040/1
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Mon, 12 May 2025 07:13:53 +0000 (16:13 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 12 May 2025 11:38:56 +0000 (20:38 +0900)
- _E_Comp_Config
- _E_Comp_Match

Change-Id: I78e2b2d701e0e44687048d6de96e7cf8be454c18

src/bin/core/e_comp_cfdata_intern.h
src/include/e_comp_cfdata.h

index c2361e8814cadc85a8287e2badb4d8df042a7cef..dfa88337815172ae2940df0c3967cad6338aba91 100644 (file)
@@ -7,6 +7,103 @@
 
 #define E_COMP_VERSION 1
 
+struct _E_Comp_Config
+{
+   int           version;
+   E_DEPRECATED  char   *shadow_style;
+   const char   *effect_file; // effect edj path for effect object
+   const char   *effect_style; // name of effect group to apply
+   const char   *depth_in_style; // name of effect group to apply for depth in type
+   const char   *bg_effect_style; // name of effect group for background
+   const char   *kbd_effect_style; // name of keyboard group to apply
+   int           engine;
+   int           max_unmapped_time;
+   int           min_unmapped_time;
+   int           fps_average_range;
+   unsigned char fps_corner;
+   unsigned char fps_show;
+   unsigned char indirect;
+   unsigned char texture_from_pixmap;
+   unsigned char grab;
+   unsigned char vsync;
+   unsigned char swap_mode;
+   unsigned char send_flush;
+   unsigned char send_dump;
+   unsigned char nocomp_fs;
+   unsigned char nocomp_use_timer;
+   double        nocomp_begin_timeout;
+   unsigned char hwc_deactive; // 0: run hwc policy if capable of, 1: not to run hwc policy
+   unsigned char hwc_send_redraw_request; // 0: none, 1: send redraw request to client when client need to redraw for hwc
+   unsigned char hwc_prefer_gbm; //0: prefer creating ecore_evas with tbm, 1: prefer creating ecore_evas with gbm
+   unsigned char use_native_type_buffer; // 0: use the tbm_buffer(tbm_surface), 1: use the native_buffer(wl_buffer)
+   unsigned char smooth_windows;
+   unsigned char nofade;
+   double        first_draw_delay;
+   Eina_Bool skip_first_damage;
+   Eina_Bool disable_screen_effects;
+   Eina_Bool enable_advanced_features;
+   const char   *launch_file;
+   // the following options add the "/fast" suffix to the normal groups
+   Eina_Bool fast_popups;
+   Eina_Bool fast_borders;
+   Eina_Bool fast_menus;
+   Eina_Bool fast_overrides;
+   Eina_Bool fast_objects;
+
+   struct
+   {
+      Eina_Bool disable_popups;
+      Eina_List *popups;    // used for e popups
+      Eina_Bool disable_borders;
+      Eina_List *borders;    // used for borders
+      Eina_Bool disable_overrides;
+      Eina_List *overrides;    // used for client menus, tooltips etc.
+      Eina_Bool disable_menus;
+      Eina_List *menus;    // used for e menus
+      Eina_Bool disable_objects;
+      Eina_List *objects;    // used for e objects which are not popups or menus
+   } match;
+
+   unsigned char dim_rect_enable;
+   unsigned char dim_rect_effect;
+   Eina_Bool input_log_enable;
+   unsigned char avoid_afill; // used for avoiding to fill the alpha channel. 0: use gl_tbm ee engine, 1: use gl_tbm_ES ee engine
+   unsigned char canvas_render_delay_after_boot; // no canvas update before client's commit request, begin rendering after 1st commit
+
+   struct
+   {
+      Eina_Bool use; // 0: none 1: use commit_handler timer
+      double    interval; // time value the interval of commit_handler after tdm_commit in second (default : 0)
+   } commit_handler_timer;
+
+   int e_wheel_click_angle;
+   int input_output_assign_policy;
+   int touch_block_on_palm;
+   unsigned char blur_video_capture;
+};
+
+struct _E_Comp_Match
+{
+   const char *title; // glob - used for borders, NULL if not to be used
+   const char *name; // glob - used for borders, overrides, popups, NULL if not to be used
+   const char *clas; // glob - used for borders, overrides, NULL if not to be used
+   const char *role; // glob - used for borders
+
+   E_DEPRECATED const char *shadow_style; // shadow style to use
+   E_DEPRECATED const char *visibility_effect; // effect to use when showing and hiding
+
+   int         primary_type; // Ecore_X_Window_Type - used for borders, overrides, first one found - ECORE_X_WINDOW_TYPE_UNKNOWN if not to be used
+   char        borderless; // used for borders, 0 == dont use, 1 == borderless, -1 == not borderless
+   char        dialog; // used for borders, 0 == don't use, 1 == dialog, -1 == not dialog
+   char        accepts_focus; // used for borders, 0 == don't use, 1 == accepts focus, -1 == does not accept focus
+   char        vkbd; // used for borders, 0 == don't use, 1 == is vkbd, -1 == not vkbd
+   char        argb; // used for borders, overrides, popups, menus, 0 == don't use, 1 == is argb, -1 == not argb
+   char        fullscreen; // used for borders, 0 == don't use, 1 == is fullscreen, -1 == not fullscreen
+   char        modal; // used for borders, 0 == don't use, 1 == is modal, -1 == not modal
+   char        focus; // used for setting focus state (on popups): 1 is focused, unset is use regular logic
+   char        no_shadow; // set whether shadow is disabled
+};
+
 EINTERN void           e_comp_cfdata_edd_init(E_Config_DD **conf_edd, E_Config_DD **match_edd);
 EINTERN E_Comp_Config *e_comp_cfdata_config_new(void);
 EINTERN void           e_comp_cfdata_config_free(E_Comp_Config *cfg);
index bdcaf7a4115ecf851955aaaf1e1801025ac27ba3..0f3b7e40831afc40d2f15a3b0edb9dff1f8c3103 100644 (file)
@@ -7,103 +7,6 @@
 typedef struct _E_Comp_Config E_Comp_Config;
 typedef struct _E_Comp_Match  E_Comp_Match;
 
-struct _E_Comp_Config
-{
-   int           version;
-   E_DEPRECATED  char   *shadow_style;
-   const char   *effect_file; // effect edj path for effect object
-   const char   *effect_style; // name of effect group to apply
-   const char   *depth_in_style; // name of effect group to apply for depth in type
-   const char   *bg_effect_style; // name of effect group for background
-   const char   *kbd_effect_style; // name of keyboard group to apply
-   int           engine;
-   int           max_unmapped_time;
-   int           min_unmapped_time;
-   int           fps_average_range;
-   unsigned char fps_corner;
-   unsigned char fps_show;
-   unsigned char indirect;
-   unsigned char texture_from_pixmap;
-   unsigned char grab;
-   unsigned char vsync;
-   unsigned char swap_mode;
-   unsigned char send_flush;
-   unsigned char send_dump;
-   unsigned char nocomp_fs;
-   unsigned char nocomp_use_timer;
-   double        nocomp_begin_timeout;
-   unsigned char hwc_deactive; // 0: run hwc policy if capable of, 1: not to run hwc policy
-   unsigned char hwc_send_redraw_request; // 0: none, 1: send redraw request to client when client need to redraw for hwc
-   unsigned char hwc_prefer_gbm; //0: prefer creating ecore_evas with tbm, 1: prefer creating ecore_evas with gbm
-   unsigned char use_native_type_buffer; // 0: use the tbm_buffer(tbm_surface), 1: use the native_buffer(wl_buffer)
-   unsigned char smooth_windows;
-   unsigned char nofade;
-   double        first_draw_delay;
-   Eina_Bool skip_first_damage;
-   Eina_Bool disable_screen_effects;
-   Eina_Bool enable_advanced_features;
-   const char   *launch_file;
-   // the following options add the "/fast" suffix to the normal groups
-   Eina_Bool fast_popups;
-   Eina_Bool fast_borders;
-   Eina_Bool fast_menus;
-   Eina_Bool fast_overrides;
-   Eina_Bool fast_objects;
-
-   struct
-   {
-      Eina_Bool disable_popups;
-      Eina_List *popups;    // used for e popups
-      Eina_Bool disable_borders;
-      Eina_List *borders;    // used for borders
-      Eina_Bool disable_overrides;
-      Eina_List *overrides;    // used for client menus, tooltips etc.
-      Eina_Bool disable_menus;
-      Eina_List *menus;    // used for e menus
-      Eina_Bool disable_objects;
-      Eina_List *objects;    // used for e objects which are not popups or menus
-   } match;
-
-   unsigned char dim_rect_enable;
-   unsigned char dim_rect_effect;
-   Eina_Bool input_log_enable;
-   unsigned char avoid_afill; // used for avoiding to fill the alpha channel. 0: use gl_tbm ee engine, 1: use gl_tbm_ES ee engine
-   unsigned char canvas_render_delay_after_boot; // no canvas update before client's commit request, begin rendering after 1st commit
-
-   struct
-   {
-      Eina_Bool use; // 0: none 1: use commit_handler timer
-      double    interval; // time value the interval of commit_handler after tdm_commit in second (default : 0)
-   } commit_handler_timer;
-
-   int e_wheel_click_angle;
-   int input_output_assign_policy;
-   int touch_block_on_palm;
-   unsigned char blur_video_capture;
-};
-
-struct _E_Comp_Match
-{
-   const char *title; // glob - used for borders, NULL if not to be used
-   const char *name; // glob - used for borders, overrides, popups, NULL if not to be used
-   const char *clas; // glob - used for borders, overrides, NULL if not to be used
-   const char *role; // glob - used for borders
-
-   E_DEPRECATED const char *shadow_style; // shadow style to use
-   E_DEPRECATED const char *visibility_effect; // effect to use when showing and hiding
-
-   int         primary_type; // Ecore_X_Window_Type - used for borders, overrides, first one found - ECORE_X_WINDOW_TYPE_UNKNOWN if not to be used
-   char        borderless; // used for borders, 0 == dont use, 1 == borderless, -1 == not borderless
-   char        dialog; // used for borders, 0 == don't use, 1 == dialog, -1 == not dialog
-   char        accepts_focus; // used for borders, 0 == don't use, 1 == accepts focus, -1 == does not accept focus
-   char        vkbd; // used for borders, 0 == don't use, 1 == is vkbd, -1 == not vkbd
-   char        argb; // used for borders, overrides, popups, menus, 0 == don't use, 1 == is argb, -1 == not argb
-   char        fullscreen; // used for borders, 0 == don't use, 1 == is fullscreen, -1 == not fullscreen
-   char        modal; // used for borders, 0 == don't use, 1 == is modal, -1 == not modal
-   char        focus; // used for setting focus state (on popups): 1 is focused, unset is use regular logic
-   char        no_shadow; // set whether shadow is disabled
-};
-
 
 //////////////////////////////////////////////////////////////
 // This is for getting/setting internal value of E_Comp_Config