Emmanuele Bassi 21a24c862e Allow checking the backend type at run-time
Portable code should be allowed to check type backend currently being
used, so that it can use platform-specific API (not just Clutter's).

We don't want to go down the GDK route, with public types for
ClutterBackend and ClutterStageWindow implementations, and use the type
system, e.g.:

  #ifdef GDK_WINDOWING_X11
    if (GDK_IS_WINDOW_X11 (window))
      use_x11_api (window);
    else
  #endif
  #ifdef GDK_WINDOWING_WIN32
    if (GDK_IS_WINDOW_WIN32 (window))
      use_win32_api (window);
    else
  #endif
    g_critical ("Unsupported backend");

This system would make us expose the backend system, and we want to
still reserve us the option to change the backend system to increase its
granularity — e.g. choosing different input event systems regardless of
the windowing system.

This commit adds a simple function that checks the backend type against
a symbolic constant — the same constant string that can be used to
select the backend at run-time through the CLUTTER_BACKEND environment
variable.
2011-11-03 13:45:19 +00:00
..
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00
2011-04-18 16:24:27 +01:00
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00
2011-06-07 16:06:24 +01:00
2010-03-02 11:12:32 +00:00
2011-10-19 15:23:55 +01:00
2011-10-19 15:23:55 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2010-10-21 12:22:17 +01:00
2011-06-07 16:06:24 +01:00
2011-06-20 15:25:53 +01:00
2011-10-11 23:42:23 +01:00
2011-06-07 16:06:24 +01:00
2011-09-07 16:14:10 +01:00
2011-06-07 16:06:24 +01:00
2011-06-07 16:06:24 +01:00
2011-09-19 20:26:37 +01:00
2011-06-07 16:06:24 +01:00
2011-11-03 13:45:19 +00:00
2011-11-03 13:45:19 +00:00