2008-09-29 23:58:56 -07:00
# ifndef ELM_PRIV_H
# define ELM_PRIV_H
2008-12-09 22:33:24 -08:00
# ifdef HAVE_ELEMENTARY_X
2011-12-29 23:20:48 -08:00
# include <Ecore_X.h>
2008-12-09 22:33:24 -08:00
# endif
# ifdef HAVE_ELEMENTARY_FB
2011-12-29 23:20:48 -08:00
# include <Ecore_Fb.h>
2008-12-09 22:33:24 -08:00
# endif
2015-10-01 07:23:55 -07:00
# ifdef HAVE_ELEMENTARY_WL2
# include <Ecore_Wl2.h>
2012-06-06 06:55:15 -07:00
# endif
2014-03-28 00:19:06 -07:00
# ifdef HAVE_ELEMENTARY_DRM
2016-05-18 11:33:37 -07:00
# include <Ecore_Drm2.h>
2014-03-28 00:19:06 -07:00
# endif
2015-10-14 00:12:28 -07:00
# ifdef HAVE_ELEMENTARY_COCOA
# include <Ecore_Cocoa.h>
# endif
2015-10-15 14:13:42 -07:00
# ifdef HAVE_ELEMENTARY_WIN32
# include <Ecore_Win32.h>
# endif
2008-12-08 21:40:38 -08:00
2013-11-12 05:56:05 -08:00
# include <Eio.h>
2012-08-17 01:09:06 -07:00
2017-05-21 21:25:30 -07:00
// Evas internal EO APIs
# include "Evas_Internal.h"
2012-08-17 01:09:06 -07:00
# ifdef EAPI
# undef EAPI
# endif
# ifdef _WIN32
# ifdef ELEMENTARY_BUILD
# ifdef DLL_EXPORT
# define EAPI __declspec(dllexport)
# else
# define EAPI
# endif /* ! DLL_EXPORT */
# else
# define EAPI __declspec(dllimport)
# endif /* ! EFL_EVAS_BUILD */
# else
# ifdef __GNUC__
# if __GNUC__ >= 4
# define EAPI __attribute__ ((visibility("default")))
# else
# define EAPI
# endif
# else
# define EAPI
# endif
# endif /* ! _WIN32 */
2010-09-13 00:56:23 -07:00
# include "elm_widget.h"
2016-10-26 03:01:52 -07:00
# include "elm_access.eo.h"
2017-01-01 12:10:07 -08:00
# include "elm_code_private.h"
2010-09-09 18:54:05 -07:00
2012-05-07 12:32:13 -07:00
# ifdef HAVE_LANGINFO_H
# include <langinfo.h>
# endif
2012-04-25 20:32:18 -07:00
2014-01-20 19:08:20 -08:00
# define CRI(...) EINA_LOG_DOM_CRIT(_elm_log_dom, __VA_ARGS__)
2012-08-30 09:47:05 -07:00
# define ERR(...) EINA_LOG_DOM_ERR(_elm_log_dom, __VA_ARGS__)
2010-09-13 00:56:23 -07:00
# define WRN(...) EINA_LOG_DOM_WARN(_elm_log_dom, __VA_ARGS__)
# define INF(...) EINA_LOG_DOM_INFO(_elm_log_dom, __VA_ARGS__)
2012-08-30 09:47:05 -07:00
# define DBG(...) EINA_LOG_DOM_DBG(_elm_log_dom, __VA_ARGS__)
2010-09-09 18:54:05 -07:00
2011-05-29 11:13:52 -07:00
# ifdef ENABLE_NLS
2012-09-30 00:15:30 -07:00
# include <libintl.h>
# define E_(string) _elm_dgettext(string)
2011-05-29 11:13:52 -07:00
# else
2012-09-30 00:15:30 -07:00
# ifndef setlocale
# define setlocale(c, l)
# endif
# ifndef libintl_setlocale
# define libintl_setlocale(c, l)
# endif
# ifndef bindtextdomain
# define bindtextdomain(domain, dir)
# endif
# ifndef libintl_bindtextdomain
# define libintl_bindtextdomain(domain, dir)
# endif
# define E_(string) (string)
2011-05-29 11:13:52 -07:00
# endif
2011-10-19 07:17:14 -07:00
# define N_(string) (string)
2011-02-13 00:22:06 -08:00
2013-11-03 19:17:58 -08:00
typedef struct _Elm_Theme_Files Elm_Theme_Files ;
2012-08-30 09:47:05 -07:00
typedef struct _Edje_Signal_Data Edje_Signal_Data ;
typedef struct _Elm_Config Elm_Config ;
2014-02-27 17:36:15 -08:00
typedef struct _Elm_Config_Bindings_Widget Elm_Config_Bindings_Widget ;
typedef struct _Elm_Config_Binding_Key Elm_Config_Binding_Key ;
2014-04-14 03:47:52 -07:00
typedef struct _Elm_Config_Binding_Modifier Elm_Config_Binding_Modifier ;
2012-08-30 09:47:05 -07:00
typedef struct _Elm_Module Elm_Module ;
2008-09-29 23:58:56 -07:00
2012-05-25 12:53:59 -07:00
struct _Edje_Signal_Data
{
Evas_Object * obj ;
Edje_Signal_Cb func ;
const char * emission ;
const char * source ;
void * data ;
} ;
2013-11-03 19:17:58 -08:00
struct _Elm_Theme_Files
{
/*
* We are conserving a list of path even if that ' s duplicated
* because we expose those directly to the outside world : ' (
*/
Eina_List * items ;
Eina_List * handles ;
} ;
2010-05-11 18:03:46 -07:00
struct _Elm_Theme
{
2013-11-03 19:17:58 -08:00
Elm_Theme_Files overlay ;
Elm_Theme_Files themes ;
Elm_Theme_Files extension ;
2010-09-13 00:56:23 -07:00
Eina_Hash * cache ;
2011-09-11 18:05:07 -07:00
Eina_Hash * cache_data ;
2010-11-05 01:37:31 -07:00
Elm_Theme * ref_theme ;
Eina_List * referrers ;
2010-05-11 18:03:46 -07:00
const char * theme ;
2010-09-13 00:56:23 -07:00
int ref ;
2014-03-18 01:18:09 -07:00
Eina_Hash * cache_style_load_failed ;
2010-05-11 18:03:46 -07:00
} ;
2010-09-13 00:56:23 -07:00
/* increment this whenever we change config enough that you need new
* defaults for elm to work .
Tooltips: split owner/eventarea, allow subitems to have indepentent tooltips.
Now owner widget (elm_widget) is just used to listen for theme changes
and create/destroy the tooltip data. The actual mouse events operates
on all Evas_Object and is the one where tooltip data is actually
stored.
The public API is basically the same, just the event_info is now NULL
to avoid confusion.
The internal API introduces elm_object_sub_tooltip_content_cb_set()
and as the first parameter the eventarea. While this may be confusing,
as the second parameter is the actual elementary object, it is the one
that all other calls receive, like elm_object_tooltip_hide() or
elm_object_tooltip_unset(), thus it does make sense to have such order.
Also internal API, elm_widget_item_tooltip_* functions were
added. They are a variation of the widget API to handle its items, as
such the func() gets one more parameter: item, and the del_cb() gets
the item as event_info (that's why the public widget version got
event_info always NULL, to not confuse with this one!)
Widgets with items that makes sense to have tooltips got extra API:
* toolbar
* list
* gengrid
* genlist
SVN revision: 52173
2010-09-12 14:05:13 -07:00
*/
2014-04-24 01:54:45 -07:00
# define ELM_CONFIG_EPOCH 0x0002
2012-08-30 09:47:05 -07:00
/* increment this whenever a new set of config values are added but
* the users config doesn ' t need to be wiped - simply new values need
* to be put in
2010-09-09 18:54:05 -07:00
*/
2017-02-17 00:21:20 -08:00
# define ELM_CONFIG_FILE_GENERATION 0x000e
2014-11-28 22:31:25 -08:00
# define ELM_CONFIG_VERSION_EPOCH_OFFSET 16
# define ELM_CONFIG_VERSION ((ELM_CONFIG_EPOCH << ELM_CONFIG_VERSION_EPOCH_OFFSET) | \
2012-08-30 09:47:05 -07:00
ELM_CONFIG_FILE_GENERATION )
2010-11-24 00:22:02 -08:00
/* NB: profile configuration files (.src) must have their
* " config_version " entry ' s value up - to - date with ELM_CONFIG_VERSION
* ( in decimal ) ! ! */
2010-03-31 05:38:58 -07:00
2010-11-01 14:10:07 -07:00
/* note: always remember to sync it with elm_config.c */
extern const char * _elm_engines [ ] ;
2010-11-05 01:37:31 -07:00
# define ELM_SOFTWARE_X11 (_elm_engines[0])
# define ELM_SOFTWARE_FB (_elm_engines[1])
2014-08-21 22:48:13 -07:00
# define ELM_OPENGL_X11 (_elm_engines[2])
# define ELM_SOFTWARE_WIN32 (_elm_engines[3])
# define ELM_SOFTWARE_SDL (_elm_engines[4])
# define ELM_OPENGL_SDL (_elm_engines[5])
# define ELM_BUFFER (_elm_engines[6])
# define ELM_EWS (_elm_engines[7])
# define ELM_OPENGL_COCOA (_elm_engines[8])
# define ELM_SOFTWARE_PSL1GHT (_elm_engines[9])
# define ELM_WAYLAND_SHM (_elm_engines[10])
# define ELM_WAYLAND_EGL (_elm_engines[11])
# define ELM_DRM (_elm_engines[12])
2014-08-26 04:11:02 -07:00
# define ELM_SOFTWARE_DDRAW (_elm_engines[13])
2010-11-01 14:10:07 -07:00
2011-12-29 23:20:48 -08:00
# define ELM_FONT_TOKEN_STYLE ":style="
2010-11-18 02:01:24 -08:00
2012-11-08 15:01:37 -08:00
# define ELM_ACCESS_MODE_OFF EINA_FALSE
# define ELM_ACCESS_MODE_ON EINA_TRUE
2011-08-19 07:39:27 -07:00
2014-04-20 22:58:18 -07:00
# define ELM_ATSPI_MODE_OFF EINA_FALSE
# define ELM_ATSPI_MODE_ON EINA_TRUE
2013-05-21 10:24:02 -07:00
/* convenience macro to compress code and avoid typos */
2014-01-23 06:15:39 -08:00
# undef CEIL
# define CEIL(a) (((a) % 2 != 0) ? ((a) / 2 + 1) : ((a) / 2))
2015-05-20 12:31:53 -07:00
# undef IS_INSIDE
# define IS_INSIDE(x, y, xx, yy, ww, hh) \
( ( ( x ) < ( ( xx ) + ( ww ) ) ) & & ( ( y ) < ( ( yy ) + ( hh ) ) ) & & \
( ( x ) > = ( xx ) ) & & ( ( y ) > = ( yy ) ) )
2014-01-23 06:15:39 -08:00
2011-12-03 14:51:12 -08:00
2014-01-06 07:14:35 -08:00
# define ELM_SAFE_FREE(_h, _fn) do { _fn((void*)_h); _h = NULL; } while (0)
win: Add background part to the win border
Use Efl.Part for window to manipulate the background.
Two part names are used in EDC:
- elm.rect.background
- elm.swallow.background
For apps the part name is only "background".
To set a solid color background (alpha is ok):
efl_gfx_color_set(efl_part(win, "background"), r, g, b, a);
To set an image:
efl_file_set(efl_part(win, "background"), "image.jpg", NULL);
To set an object:
efl_content_set(efl_part(win, "background"), subobj);
The solid bg is invisible by default, will become visible and use
COPY render mode if a color is set. Standard window uses the
swallow part.
@feature
2016-11-09 23:10:28 -08:00
# define ELM_SAFE_DEL(_h) do { efl_del(_h); _h = NULL; } while (0)
2013-05-21 10:24:02 -07:00
2013-07-14 19:13:24 -07:00
# define ELM_PRIV_STATIC_VARIABLE_DECLARE(name, signal, type) \
static const char name [ ] = signal ;
# define ELM_PRIV_SMART_CALLBACKS_DESC(name, signal, type) \
{ name , type } ,
2010-09-13 00:56:23 -07:00
struct _Elm_Config
{
2011-12-29 23:20:48 -08:00
int config_version ;
const char * engine ;
2014-08-05 08:04:11 -07:00
const char * accel ;
2016-03-09 15:57:09 -08:00
const char * web_backend ;
2014-08-05 08:04:11 -07:00
unsigned char accel_override ;
2011-12-29 23:20:48 -08:00
unsigned char vsync ;
unsigned char thumbscroll_enable ;
int thumbscroll_threshold ;
2013-03-07 01:13:15 -08:00
int thumbscroll_hold_threshold ;
2011-12-29 23:20:48 -08:00
double thumbscroll_momentum_threshold ;
2013-07-03 02:43:19 -07:00
int thumbscroll_flick_distance_tolerance ;
2011-12-29 23:20:48 -08:00
double thumbscroll_friction ;
2013-04-30 06:06:28 -07:00
double thumbscroll_min_friction ;
double thumbscroll_friction_standard ;
2011-12-29 23:20:48 -08:00
double thumbscroll_bounce_friction ;
2013-04-17 05:46:21 -07:00
double thumbscroll_acceleration_threshold ;
double thumbscroll_acceleration_time_limit ;
double thumbscroll_acceleration_weight ;
2011-12-29 23:20:48 -08:00
double page_scroll_friction ;
double bring_in_scroll_friction ;
double zoom_friction ;
2016-02-18 09:22:00 -08:00
Eina_Bool scroll_animation_disable ;
2016-02-18 09:44:43 -08:00
double scroll_accel_factor ;
2011-12-29 23:20:48 -08:00
unsigned char thumbscroll_bounce_enable ;
double thumbscroll_border_friction ;
double thumbscroll_sensitivity_friction ;
2013-04-30 00:46:59 -07:00
unsigned char scroll_smooth_start_enable ;
2015-09-11 07:24:51 -07:00
// double scroll_smooth_time_interval;; // not used anymore
2011-12-29 23:20:48 -08:00
double scroll_smooth_amount ;
2015-09-11 07:24:51 -07:00
// double scroll_smooth_history_weight;; // not used anymore
// double scroll_smooth_future_time;; // not used anymore
2011-12-29 23:20:48 -08:00
double scroll_smooth_time_window ;
double scale ;
int bgpixmap ;
int compositing ;
Eina_List * font_dirs ;
Eina_List * font_overlays ;
int font_hinting ;
int cache_flush_poll_interval ;
unsigned char cache_flush_enable ;
int image_cache ;
int font_cache ;
int edje_cache ;
int edje_collection_cache ;
int finger_size ;
double fps ;
const char * theme ;
const char * modules ;
double tooltip_delay ;
unsigned char cursor_engine_only ;
unsigned char focus_highlight_enable ;
unsigned char focus_highlight_animate ;
2014-03-08 10:39:23 -08:00
unsigned char focus_highlight_clip_disable ; /**< This shows disabled status of focus highlight clip feature. This value is false by default so the focus highlight is clipped. */
2014-03-20 07:50:46 -07:00
unsigned char focus_move_policy ; /**< This show how the elementary focus is moved to another object. Focus can be moved by click or mouse_in. */
2014-04-05 08:10:55 -07:00
unsigned char item_select_on_focus_disable ; /**< This shows the disabled status of select on focus feature. This value is false by default so that select on focus feature is enabled by default.*/
2014-07-21 02:55:55 -07:00
unsigned char first_item_focus_on_first_focus_in ; /**< This sets the first item focus on first focus in feature*/
2014-05-11 06:42:45 -07:00
Elm_Focus_Autoscroll_Mode focus_autoscroll_mode ; /**< This shows the focus auto scroll mode. By default, @c ELM_FOCUS_AUTOSCROLL_MODE_SHOW is set. */
2014-11-28 22:56:45 -08:00
Elm_Slider_Indicator_Visible_Mode slider_indicator_visible_mode ; /**< this sets the slider indicator visible mode */
2015-12-07 15:53:47 -08:00
double popup_horizontal_align ;
double popup_vertical_align ;
popup: add popup default scrollable flag config for other profiles.
Summary:
The default scrollable flag of popup can be different in each profiles.
So I added the scrollable configuration of popup.
@feature
Test Plan:
1. Before
1) elementary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, but its list is very long, only small part of popup could be shown.
2. After Patch
1) change "popup_scroller" value to 1 in base.src, then run elementary_test -to popup or ELM_POPUP_SCROLLABLE=1 elemantary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, popup's genlist will be in scroller, so entire popup can be shown.
Reviewers: jaehwan, id213sin, cedric, raster, singh.amitesh, SanghyeonLee, Hermet
Subscribers: Hermet, minkyu, herb, jpeg
Differential Revision: https://phab.enlightenment.org/D3856
2016-05-16 18:22:07 -07:00
Eina_Bool popup_scrollable ;
2011-12-29 23:20:48 -08:00
int toolbar_shrink_mode ;
unsigned char fileselector_expand_enable ;
2013-09-30 08:49:50 -07:00
unsigned char fileselector_double_tap_navigation_enable ;
2011-12-29 23:20:48 -08:00
unsigned char inwin_dialogs_enable ;
int icon_size ;
double longpress_timeout ;
unsigned char effect_enable ;
unsigned char desktop_entry ;
2015-12-10 22:49:27 -08:00
unsigned char context_menu_disabled ;
2012-08-28 03:37:02 -07:00
unsigned char password_show_last ;
2011-12-29 23:20:48 -08:00
double password_show_last_timeout ;
2012-08-28 03:37:02 -07:00
unsigned char glayer_zoom_finger_enable ;
2011-12-29 23:20:48 -08:00
double glayer_zoom_finger_factor ;
double glayer_zoom_wheel_factor ;
double glayer_zoom_distance_tolerance ;
double glayer_rotate_finger_enable ;
double glayer_rotate_angular_tolerance ;
double glayer_line_min_length ;
double glayer_line_distance_tolerance ;
double glayer_line_angular_tolerance ;
unsigned int glayer_flick_time_limit_ms ;
double glayer_long_tap_start_timeout ;
2012-05-20 07:56:35 -07:00
double glayer_double_tap_timeout ;
2012-11-08 15:01:37 -08:00
Eina_Bool access_mode ;
2012-08-28 03:37:02 -07:00
unsigned char glayer_continues_enable ;
2012-03-06 20:57:03 -08:00
int week_start ;
int weekend_start ;
int weekend_len ;
2012-04-01 23:20:01 -07:00
int year_min ;
int year_max ;
2014-02-27 14:16:45 -08:00
Eina_List * color_overlays ;
2012-03-09 05:04:00 -08:00
Eina_List * color_palette ;
2012-07-05 02:23:38 -07:00
unsigned char softcursor_mode ;
2012-08-28 03:37:02 -07:00
unsigned char auto_norender_withdrawn ;
unsigned char auto_norender_iconified_same_as_withdrawn ;
unsigned char auto_flush_withdrawn ;
unsigned char auto_dump_withdrawn ;
unsigned char auto_throttle ;
double auto_throttle_amount ;
2012-09-12 07:08:26 -07:00
const char * indicator_service_0 ;
const char * indicator_service_90 ;
const char * indicator_service_180 ;
const char * indicator_service_270 ;
2012-11-29 00:58:49 -08:00
unsigned char selection_clear_enable ;
2013-01-22 10:51:24 -08:00
unsigned char disable_external_menu ;
2013-05-20 05:03:43 -07:00
unsigned char clouseau_enable ;
2013-06-07 01:17:30 -07:00
unsigned char magnifier_enable ;
double magnifier_scale ;
2014-02-09 02:12:12 -08:00
unsigned char audio_mute_effect ;
unsigned char audio_mute_background ;
unsigned char audio_mute_music ;
unsigned char audio_mute_foreground ;
unsigned char audio_mute_interface ;
unsigned char audio_mute_input ;
unsigned char audio_mute_alert ;
unsigned char audio_mute_all ;
2015-03-04 00:47:54 -08:00
unsigned char win_auto_focus_enable ;
unsigned char win_auto_focus_animate ;
2015-06-25 21:54:47 -07:00
double transition_duration_factor ;
2015-08-05 22:59:06 -07:00
unsigned char naviframe_prev_btn_auto_pushed ;
2016-02-12 11:38:36 -08:00
unsigned char spinner_min_max_filter_enable ;
2014-02-27 17:36:15 -08:00
Eina_List * bindings ;
2014-04-20 22:58:18 -07:00
Eina_Bool atspi_mode ;
2015-03-15 22:14:12 -07:00
int gl_depth ;
int gl_stencil ;
int gl_msaa ;
2016-04-25 06:56:55 -07:00
const char * icon_theme ;
2017-02-07 13:42:45 -08:00
unsigned char entry_select_allow ;
2011-09-08 03:10:38 -07:00
/* Not part of the EET file */
2011-12-29 23:20:48 -08:00
Eina_Bool is_mirrored : 1 ;
Eina_Bool translate : 1 ;
2010-09-13 00:56:23 -07:00
} ;
2010-05-07 08:49:06 -07:00
2014-02-27 17:36:15 -08:00
struct _Elm_Config_Bindings_Widget
{
const char * name ;
Eina_List * key_bindings ;
} ;
struct _Elm_Config_Binding_Key
{
int context ;
const char * key ;
const char * action ;
const char * params ;
2014-04-14 03:47:52 -07:00
Eina_List * modifiers ;
} ;
struct _Elm_Config_Binding_Modifier
{
const char * mod ;
unsigned char flag ;
2014-02-27 17:36:15 -08:00
} ;
2010-09-13 00:56:23 -07:00
struct _Elm_Module
{
int version ;
const char * name ;
const char * as ;
const char * so_path ;
const char * data_dir ;
const char * bin_dir ;
2011-11-05 10:49:04 -07:00
Eina_Module * module ;
2010-09-13 00:56:23 -07:00
void * data ;
void * api ;
2011-12-29 23:20:48 -08:00
int ( * init_func ) ( Elm_Module * m ) ;
int ( * shutdown_func ) ( Elm_Module * m ) ;
2010-09-13 00:56:23 -07:00
int references ;
} ;
2010-05-07 08:49:06 -07:00
2016-03-09 15:57:09 -08:00
Eina_Bool _elm_web_init ( const char * engine ) ;
2015-06-08 06:40:28 -07:00
Eo * _elm_atspi_bridge_get ( void ) ;
2013-12-03 00:07:05 -08:00
void _elm_atspi_bridge_init ( void ) ;
void _elm_atspi_bridge_shutdown ( void ) ;
2014-04-20 20:46:11 -07:00
2016-03-29 14:52:52 -07:00
Eina_Bool _elm_prefs_init ( void ) ;
2012-11-30 06:41:39 -08:00
void _elm_prefs_shutdown ( void ) ;
/* these already issued by the two above, respectively */
void _elm_prefs_data_init ( void ) ;
void _elm_prefs_data_shutdown ( void ) ;
2012-08-30 09:47:05 -07:00
void _elm_emotion_init ( void ) ;
void _elm_emotion_shutdown ( void ) ;
2012-07-02 19:13:42 -07:00
2011-12-29 23:20:48 -08:00
int _elm_ews_wm_init ( void ) ;
void _elm_ews_wm_shutdown ( void ) ;
2012-08-30 09:47:05 -07:00
void _elm_ews_wm_rescale ( Elm_Theme * th ,
Eina_Bool use_theme ) ;
2011-12-29 23:20:48 -08:00
void _elm_win_shutdown ( void ) ;
2012-08-30 09:47:05 -07:00
void _elm_win_rescale ( Elm_Theme * th ,
Eina_Bool use_theme ) ;
2012-06-29 23:01:25 -07:00
void _elm_win_access ( Eina_Bool is_access ) ;
2011-12-29 23:20:48 -08:00
void _elm_win_translate ( void ) ;
2016-03-18 00:38:26 -07:00
void _elm_win_focus_reconfigure ( void ) ;
win: Add background part to the win border
Use Efl.Part for window to manipulate the background.
Two part names are used in EDC:
- elm.rect.background
- elm.swallow.background
For apps the part name is only "background".
To set a solid color background (alpha is ok):
efl_gfx_color_set(efl_part(win, "background"), r, g, b, a);
To set an image:
efl_file_set(efl_part(win, "background"), "image.jpg", NULL);
To set an object:
efl_content_set(efl_part(win, "background"), subobj);
The solid bg is invisible by default, will become visible and use
COPY render mode if a color is set. Standard window uses the
swallow part.
@feature
2016-11-09 23:10:28 -08:00
void _elm_win_standard_init ( Eo * win ) ;
2011-12-29 23:20:48 -08:00
2012-07-11 04:53:29 -07:00
Ecore_X_Window _elm_ee_xwin_get ( const Ecore_Evas * ee ) ;
theme: return enum from elm_widget_style_set instead of bool
Summary:
if trying to apply incorrect theme, widget apply default theme and return TRUE.
so there is no way to check it really apply correct theme.
To resolve this problem, _elm_theme_set return three type enum
* related history : 4ca3ef45146e05908a13d1010909abeba9693ad6
* elm_object_style_set is public api, so I didn't change it.
* typedef name [ Theme_Apply ] is temporarily, please suggest better one.
@fix
Reviewers: singh.amitesh, herb, Hermet, cedric, jpeg, raster
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4073
2016-06-30 23:09:42 -07:00
Elm_Theme_Apply _elm_theme_object_set ( Evas_Object * parent ,
2012-08-30 09:47:05 -07:00
Evas_Object * o ,
const char * clas ,
const char * group ,
2013-02-25 20:26:22 -08:00
const char * style ) ;
2012-08-30 09:47:05 -07:00
Eina_Bool _elm_theme_object_icon_set ( Evas_Object * o ,
const char * group ,
const char * style ) ;
theme: return enum from elm_widget_style_set instead of bool
Summary:
if trying to apply incorrect theme, widget apply default theme and return TRUE.
so there is no way to check it really apply correct theme.
To resolve this problem, _elm_theme_set return three type enum
* related history : 4ca3ef45146e05908a13d1010909abeba9693ad6
* elm_object_style_set is public api, so I didn't change it.
* typedef name [ Theme_Apply ] is temporarily, please suggest better one.
@fix
Reviewers: singh.amitesh, herb, Hermet, cedric, jpeg, raster
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4073
2016-06-30 23:09:42 -07:00
Elm_Theme_Apply _elm_theme_set ( Elm_Theme * th ,
2012-08-30 09:47:05 -07:00
Evas_Object * o ,
const char * clas ,
const char * group ,
2013-02-25 20:26:22 -08:00
const char * style ) ;
2012-08-30 09:47:05 -07:00
Eina_Bool _elm_theme_icon_set ( Elm_Theme * th ,
Evas_Object * o ,
const char * group ,
const char * style ) ;
2017-06-01 18:45:25 -07:00
Eina_File * _elm_theme_group_file_find ( Elm_Theme * th ,
const char * group ) ;
2016-12-07 02:27:05 -08:00
void _elm_theme_parse ( Elm_Theme * th ,
2012-08-30 09:47:05 -07:00
const char * theme ) ;
2011-12-29 23:20:48 -08:00
void _elm_theme_shutdown ( void ) ;
void _elm_module_init ( void ) ;
void _elm_module_shutdown ( void ) ;
void _elm_module_parse ( const char * s ) ;
Elm_Module * _elm_module_find_as ( const char * as ) ;
2012-08-30 09:47:05 -07:00
Elm_Module * _elm_module_add ( const char * name ,
const char * as ) ;
2011-12-29 23:20:48 -08:00
void _elm_module_del ( Elm_Module * m ) ;
Eina_Bool _elm_module_load ( Elm_Module * m ) ;
void _elm_module_unload ( Elm_Module * m ) ;
2012-08-30 09:47:05 -07:00
const void * _elm_module_symbol_get ( Elm_Module * m ,
const char * name ) ;
2011-12-29 23:20:48 -08:00
2015-09-10 02:29:24 -07:00
void _elm_widget_focus_auto_show ( Evas_Object * obj ) ;
2012-08-30 09:47:05 -07:00
void _elm_widget_top_win_focused_set ( Evas_Object * obj ,
Eina_Bool top_win_focused ) ;
2011-12-29 23:20:48 -08:00
Eina_Bool _elm_widget_top_win_focused_get ( const Evas_Object * obj ) ;
2012-12-27 05:38:40 -08:00
void _elm_unneed_systray ( void ) ;
2012-12-05 14:24:00 -08:00
void _elm_unneed_sys_notify ( void ) ;
2011-12-29 23:20:48 -08:00
void _elm_unneed_ethumb ( void ) ;
void _elm_unneed_web ( void ) ;
void _elm_rescale ( void ) ;
2013-05-20 05:03:43 -07:00
Eina_Bool _elm_clouseau_reload ( void ) ;
2011-12-29 23:20:48 -08:00
void _elm_config_init ( void ) ;
void _elm_config_sub_init ( void ) ;
void _elm_config_shutdown ( void ) ;
void _elm_config_sub_shutdown ( void ) ;
2016-01-04 00:58:18 -08:00
Eina_Bool _elm_config_save ( Elm_Config * cfg , const char * profile ) ;
2011-12-29 23:20:48 -08:00
void _elm_config_reload ( void ) ;
2013-09-05 15:38:42 -07:00
size_t _elm_config_user_dir_snprintf ( char * dst , size_t size ,
const char * fmt , . . . )
EINA_PRINTF ( 3 , 4 ) ;
2015-04-05 13:02:05 -07:00
void elm_color_class_init ( void ) ;
void elm_color_class_shutdown ( void ) ;
2011-12-29 23:20:48 -08:00
void _elm_recache ( void ) ;
const char * _elm_config_current_profile_get ( void ) ;
2012-08-30 09:47:05 -07:00
const char * _elm_config_profile_dir_get ( const char * prof ,
Eina_Bool is_user ) ;
2015-12-30 22:38:20 -08:00
Eina_List * _elm_config_profiles_list ( Eina_Bool hide_profiles ) ;
2011-12-29 23:20:48 -08:00
void _elm_config_all_update ( void ) ;
void _elm_config_profile_set ( const char * profile ) ;
void _elm_config_engine_set ( const char * engine ) ;
Eina_List * _elm_config_font_overlays_list ( void ) ;
2012-08-30 09:47:05 -07:00
void _elm_config_font_overlay_set ( const char * text_class ,
const char * font ,
Evas_Font_Size size ) ;
2011-12-29 23:20:48 -08:00
void _elm_config_font_overlay_remove ( const char * text_class ) ;
void _elm_config_font_overlay_apply ( void ) ;
Eina_List * _elm_config_text_classes_get ( void ) ;
void _elm_config_text_classes_free ( Eina_List * l ) ;
2010-11-18 02:01:24 -08:00
2014-02-27 14:16:45 -08:00
Eina_List * _elm_config_color_classes_get ( void ) ;
void _elm_config_color_classes_free ( Eina_List * l ) ;
Eina_List * _elm_config_color_overlays_list ( void ) ;
void _elm_config_color_overlay_set ( const char * color_class ,
int r , int g , int b , int a ,
int r2 , int g2 , int b2 , int a2 ,
int r3 , int g3 , int b3 , int a3 ) ;
void _elm_config_color_overlay_remove ( const char * color_class ) ;
void _elm_config_color_overlay_apply ( void ) ;
2012-06-29 23:01:25 -07:00
Eina_Bool _elm_config_access_get ( void ) ;
void _elm_config_access_set ( Eina_Bool is_access ) ;
2014-02-27 17:36:15 -08:00
Eina_Bool _elm_config_key_binding_call ( Evas_Object * obj ,
2015-12-21 04:55:23 -08:00
const char * name ,
2014-02-27 17:36:15 -08:00
const Evas_Event_Key_Down * ev ,
const Elm_Action * actions ) ;
2012-08-30 09:47:05 -07:00
Elm_Font_Properties * _elm_font_properties_get ( Eina_Hash * * font_hash ,
const char * font ) ;
Eina_Hash * _elm_font_available_hash_add ( Eina_Hash * font_hash ,
const char * full_name ) ;
2010-11-18 02:01:24 -08:00
void _elm_font_available_hash_del ( Eina_Hash * hash ) ;
2010-09-13 00:56:23 -07:00
void elm_tooltip_theme ( Elm_Tooltip * tt ) ;
2012-08-30 09:47:05 -07:00
void elm_object_sub_tooltip_content_cb_set ( Evas_Object * eventarea ,
Evas_Object * owner ,
Elm_Tooltip_Content_Cb func ,
const void * data ,
Evas_Smart_Cb del_cb ) ;
2010-09-25 15:01:19 -07:00
void elm_cursor_theme ( Elm_Cursor * cur ) ;
2012-08-30 09:47:05 -07:00
void elm_object_sub_cursor_set ( Evas_Object * eventarea ,
Evas_Object * owner ,
const char * cursor ) ;
2010-06-17 01:50:43 -07:00
2012-08-30 09:47:05 -07:00
void elm_menu_clone ( Evas_Object * from_menu ,
Evas_Object * to_menu ,
Elm_Object_Item * parent ) ;
2010-12-19 22:05:09 -08:00
2011-12-29 23:20:48 -08:00
char * _elm_util_mkup_to_text ( const char * mkup ) ;
char * _elm_util_text_to_mkup ( const char * text ) ;
2011-07-05 07:05:59 -07:00
2011-12-29 23:20:48 -08:00
Eina_Bool _elm_video_check ( Evas_Object * video ) ;
2011-07-05 07:05:59 -07:00
2012-03-09 05:04:00 -08:00
Eina_List * _elm_config_color_list_get ( const char * palette_name ) ;
2012-08-30 09:47:05 -07:00
void _elm_config_color_set ( const char * palette_name ,
int r ,
int g ,
int b ,
int a ) ;
2012-03-09 05:04:00 -08:00
void _elm_config_colors_free ( const char * palette_name ) ;
2012-12-27 05:38:33 -08:00
typedef struct _Elm_DBus_Menu Elm_DBus_Menu ;
const char * _elm_dbus_menu_register ( Eo * obj ) ;
void _elm_dbus_menu_unregister ( Eo * obj ) ;
int _elm_dbus_menu_item_add ( Elm_DBus_Menu * dbus_menu ,
Elm_Object_Item * item ) ;
2013-11-15 16:50:32 -08:00
void _elm_dbus_menu_update ( Elm_DBus_Menu * dbus_menu ) ;
2012-12-27 05:38:33 -08:00
void _elm_dbus_menu_item_delete ( Elm_DBus_Menu * dbus_menu ,
int id ) ;
2013-01-17 14:11:33 -08:00
void _elm_dbus_menu_app_menu_register ( Ecore_X_Window xid , Eo * obj ,
void ( * result_cb ) ( Eina_Bool , void * ) ,
void * data ) ;
2012-12-27 05:38:33 -08:00
void _elm_dbus_menu_app_menu_unregister ( Eo * obj ) ;
void _elm_dbus_menu_item_select_cb ( Elm_Object_Item * obj_item ) ;
2013-01-17 14:11:09 -08:00
void _elm_menu_menu_bar_set ( Eo * obj , Eina_Bool menu_bar ) ;
2013-01-22 10:51:16 -08:00
void _elm_menu_menu_bar_hide ( Eo * obj ) ;
2013-01-17 14:11:09 -08:00
2016-10-28 10:59:31 -07:00
# ifdef HAVE_ELEMENTARY_WL2
void _elm_win_wl_cursor_set ( Evas_Object * obj , const char * cursor ) ;
# endif
2016-12-23 04:48:46 -08:00
void _efl_ui_focus_manager_redirect_events_del ( Efl_Ui_Focus_Manager * manager , Eo * obj ) ;
void _efl_ui_focus_manager_redirect_events_add ( Efl_Ui_Focus_Manager * manager , Eo * obj ) ;
2012-05-28 13:35:35 -07:00
/* DEPRECATED, will be removed on next release */
void _elm_icon_signal_emit ( Evas_Object * obj ,
const char * emission ,
const char * source ) ;
void _elm_icon_signal_callback_add ( Evas_Object * obj ,
const char * emission ,
const char * source ,
Edje_Signal_Cb func_cb ,
void * data ) ;
void * _elm_icon_signal_callback_del ( Evas_Object * obj ,
const char * emission ,
const char * source ,
Edje_Signal_Cb func_cb ) ;
2016-08-11 16:58:28 -07:00
void _efl_ui_image_sizing_eval ( Evas_Object * obj ) ;
2012-05-28 13:35:35 -07:00
/* end of DEPRECATED */
2016-06-22 19:06:22 -07:00
Eina_Bool _elm_config_accel_preference_parse ( const char * pref , Eina_Stringshare * * accel , int * gl_depth , int * gl_stencil , int * gl_msaa ) ;
2011-12-29 23:20:48 -08:00
extern char * _elm_appname ;
extern Elm_Config * _elm_config ;
2016-06-21 01:54:56 -07:00
extern Efl_Config * _efl_config_obj ;
2011-12-29 23:20:48 -08:00
extern const char * _elm_data_dir ;
extern const char * _elm_lib_dir ;
extern int _elm_log_dom ;
extern Eina_List * _elm_win_list ;
extern int _elm_win_deferred_free ;
2012-02-29 04:45:58 -08:00
extern const char * _elm_preferred_engine ;
2014-03-08 08:22:33 -08:00
extern const char * _elm_accel_preference ;
2014-01-23 00:24:19 -08:00
extern const char SIG_WIDGET_FOCUSED [ ] ;
extern const char SIG_WIDGET_UNFOCUSED [ ] ;
2014-01-23 02:30:34 -08:00
extern const char SIG_WIDGET_LANG_CHANGED [ ] ;
2014-02-07 21:05:06 -08:00
extern const char SIG_WIDGET_ACCESS_CHANGED [ ] ;
2014-02-05 23:18:57 -08:00
extern const char SIG_LAYOUT_FOCUSED [ ] ;
extern const char SIG_LAYOUT_UNFOCUSED [ ] ;
2010-04-12 01:27:10 -07:00
2016-01-05 05:15:00 -08:00
extern Eina_Bool _config_profile_lock ;
2015-10-01 07:23:55 -07:00
# ifdef HAVE_ELEMENTARY_WL2
extern Ecore_Wl2_Display * _elm_wl_display ;
# endif
2011-11-20 05:58:35 -08:00
# ifdef ENABLE_NLS
2011-09-18 00:53:41 -07:00
/* Our gettext wrapper, used to disable translation of elm if the app
* is not translated . */
static inline const char *
_elm_dgettext ( const char * string )
{
if ( EINA_UNLIKELY ( _elm_config - > translate = = EINA_FALSE ) )
{
return string ;
}
return dgettext ( PACKAGE , string ) ;
}
2011-12-29 23:20:48 -08:00
2011-11-20 05:58:35 -08:00
# endif
2011-09-18 00:53:41 -07:00
2016-05-10 10:20:56 -07:00
/* Used by the paste handler */
void _elm_entry_entry_paste ( Evas_Object * obj , const char * entry ) ;
2012-04-25 20:32:18 -07:00
double _elm_atof ( const char * s ) ;
2008-09-29 23:58:56 -07:00
# endif