forked from enlightenment/efl
* ecore_evas: Add support for quartz backend in ecore_evas_new.
SVN revision: 43231
This commit is contained in:
parent
2829dfc366
commit
2298aa7960
|
@ -129,6 +129,12 @@ ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine)
|
||||||
return 1;
|
return 1;
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
|
case ECORE_EVAS_ENGINE_QUARTZ:
|
||||||
|
#ifdef BUILD_ECORE_EVAS_QUARTZ
|
||||||
|
return 1;
|
||||||
|
#else
|
||||||
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -317,6 +323,22 @@ _ecore_evas_constructor_software_x11(int x, int y, int w, int h, const char *ext
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef BUILD_ECORE_EVAS_QUARTZ
|
||||||
|
static Ecore_Evas *
|
||||||
|
_ecore_evas_constructor_quartz(int x, int y, int w, int h, const char *extra_options)
|
||||||
|
{
|
||||||
|
char *name = NULL;
|
||||||
|
Ecore_Evas *ee;
|
||||||
|
|
||||||
|
_ecore_evas_parse_extra_options_str(extra_options, "name=", &name);
|
||||||
|
ee = ecore_evas_quartz_new(name, w, h);
|
||||||
|
free(name);
|
||||||
|
|
||||||
|
if (ee) ecore_evas_move(ee, x, y);
|
||||||
|
return ee;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_ECORE_EVAS_XRENDER_X11
|
#ifdef BUILD_ECORE_EVAS_XRENDER_X11
|
||||||
static Ecore_Evas *
|
static Ecore_Evas *
|
||||||
_ecore_evas_constructor_xrender_x11(int x, int y, int w, int h, const char *extra_options)
|
_ecore_evas_constructor_xrender_x11(int x, int y, int w, int h, const char *extra_options)
|
||||||
|
@ -570,6 +592,9 @@ static const struct ecore_evas_engine _engines[] = {
|
||||||
/* independent */
|
/* independent */
|
||||||
#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
|
#ifdef BUILD_ECORE_EVAS_SOFTWARE_BUFFER
|
||||||
{"buffer", _ecore_evas_constructor_buffer},
|
{"buffer", _ecore_evas_constructor_buffer},
|
||||||
|
#endif
|
||||||
|
#ifdef BUILD_ECORE_EVAS_QUARTZ
|
||||||
|
{"quartz", _ecore_evas_constructor_quartz},
|
||||||
#endif
|
#endif
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue