6988744db7
Instead of using ClutterActor for the base class of the Stage implementation we should extend the StageWindow interface with the required bits (geometry, realization) and use a simple object class. This require a wee bit of changes across Backend, Stage and StageWindow, even though it's mostly re-shuffling. First of all, StageWindow should get new virtual functions: * geometry: - resize() - get_geometry() * realization - realize() - unrealize() This covers all the bits that we use from ClutterActor currently inside the stage implementations. The ClutterBackend::create_stage() virtual function should create a StageWindow, and not an Actor (it should always have been; the fact that it returned an Actor was a leak of the black magic going on underneath). Since we never guaranteed ABI compatibility for the Backend class, this is not a problem. Internally to ClutterStage we can finally drop the shenanigans of setting/unsetting actor flags on the implementation: if the realization succeeds, for instance, we set the REALIZED flag on the Stage and we're done. As an initial proof of concept, the X11 and GLX stage implementations have been ported to the New World Order(tm) and show no regressions.
85 lines
2.5 KiB
C
85 lines
2.5 KiB
C
/*
|
|
* Clutter.
|
|
*
|
|
* An OpenGL based 'interactive canvas' library.
|
|
*
|
|
* Authored By Matthew Allum <mallum@openedhand.com>
|
|
*
|
|
* Copyright (C) 2006 OpenedHand
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __CLUTTER_H__
|
|
#define __CLUTTER_H__
|
|
|
|
#define __CLUTTER_H_INSIDE__
|
|
|
|
#include "clutter-deprecated.h"
|
|
|
|
#include "clutter-actor.h"
|
|
#include "clutter-alpha.h"
|
|
#include "clutter-animatable.h"
|
|
#include "clutter-animation.h"
|
|
#include "clutter-backend.h"
|
|
#include "clutter-behaviour-depth.h"
|
|
#include "clutter-behaviour-ellipse.h"
|
|
#include "clutter-behaviour.h"
|
|
#include "clutter-behaviour-opacity.h"
|
|
#include "clutter-behaviour-path.h"
|
|
#include "clutter-behaviour-rotate.h"
|
|
#include "clutter-behaviour-scale.h"
|
|
#include "clutter-binding-pool.h"
|
|
#include "clutter-cairo-texture.h"
|
|
#include "clutter-child-meta.h"
|
|
#include "clutter-clone.h"
|
|
#include "clutter-color.h"
|
|
#include "clutter-container.h"
|
|
#include "clutter-event.h"
|
|
#include "clutter-feature.h"
|
|
#include "clutter-frame-source.h"
|
|
#include "clutter-group.h"
|
|
#include "clutter-interval.h"
|
|
#include "clutter-keysyms.h"
|
|
#include "clutter-list-model.h"
|
|
#include "clutter-main.h"
|
|
#include "clutter-media.h"
|
|
#include "clutter-model.h"
|
|
#include "clutter-path.h"
|
|
#include "clutter-rectangle.h"
|
|
#include "clutter-score.h"
|
|
#include "clutter-scriptable.h"
|
|
#include "clutter-script.h"
|
|
#include "clutter-shader.h"
|
|
#include "clutter-shader-types.h"
|
|
#include "clutter-stage.h"
|
|
#include "clutter-stage-manager.h"
|
|
#include "clutter-stage-window.h"
|
|
#include "clutter-texture.h"
|
|
#include "clutter-text.h"
|
|
#include "clutter-timeline.h"
|
|
#include "clutter-timeout-pool.h"
|
|
#include "clutter-types.h"
|
|
#include "clutter-units.h"
|
|
#include "clutter-util.h"
|
|
#include "clutter-version.h"
|
|
|
|
#include "clutter-enum-types.h"
|
|
|
|
#undef __CLUTTER_H_INSIDE__
|
|
|
|
#endif /* __CLUTTER_H__ */
|