2007-11-27 19:40:25 +00:00
|
|
|
/********************************************************************
|
2007-04-29 17:35:43 +00:00
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
2007-11-27 19:40:25 +00:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program 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 General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*********************************************************************/
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
#ifndef KWIN_EFFECTSIMPL_H
|
|
|
|
#define KWIN_EFFECTSIMPL_H
|
|
|
|
|
|
|
|
#include "kwineffects.h"
|
|
|
|
|
|
|
|
#include "scene.h"
|
|
|
|
|
|
|
|
#include <QStack>
|
2010-05-25 16:56:23 +00:00
|
|
|
#include <QHash>
|
2011-02-17 18:35:08 +00:00
|
|
|
#include <Plasma/FrameSvg>
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
|
2007-07-06 12:38:41 +00:00
|
|
|
class KService;
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2011-02-25 21:06:02 +00:00
|
|
|
class Client;
|
2011-02-27 09:47:42 +00:00
|
|
|
class Deleted;
|
2011-02-25 21:06:02 +00:00
|
|
|
class Unmanaged;
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
class EffectsHandlerImpl : public EffectsHandler
|
|
|
|
{
|
2011-02-25 19:41:10 +00:00
|
|
|
Q_OBJECT
|
2011-01-30 14:34:42 +00:00
|
|
|
public:
|
|
|
|
EffectsHandlerImpl(CompositingType type);
|
|
|
|
virtual ~EffectsHandlerImpl();
|
|
|
|
virtual void prePaintScreen(ScreenPrePaintData& data, int time);
|
|
|
|
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
|
|
|
|
virtual void postPaintScreen();
|
|
|
|
virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
|
|
|
|
virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
|
|
|
|
virtual void postPaintWindow(EffectWindow* w);
|
|
|
|
virtual void paintEffectFrame(EffectFrame* frame, QRegion region, double opacity, double frameOpacity);
|
|
|
|
|
|
|
|
bool provides(Effect::Feature ef);
|
|
|
|
|
|
|
|
virtual void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
|
|
|
|
|
|
|
|
virtual void buildQuads(EffectWindow* w, WindowQuadList& quadList);
|
|
|
|
|
|
|
|
virtual void activateWindow(EffectWindow* c);
|
|
|
|
virtual EffectWindow* activeWindow() const;
|
|
|
|
virtual void moveWindow(EffectWindow* w, const QPoint& pos, bool snap = false, double snapAdjust = 1.0);
|
|
|
|
virtual void windowToDesktop(EffectWindow* w, int desktop);
|
|
|
|
virtual void windowToScreen(EffectWindow* w, int screen);
|
|
|
|
virtual void setShowingDesktop(bool showing);
|
|
|
|
|
|
|
|
virtual int currentDesktop() const;
|
|
|
|
virtual int numberOfDesktops() const;
|
|
|
|
virtual void setCurrentDesktop(int desktop);
|
|
|
|
virtual void setNumberOfDesktops(int desktops);
|
|
|
|
virtual QSize desktopGridSize() const;
|
|
|
|
virtual int desktopGridWidth() const;
|
|
|
|
virtual int desktopGridHeight() const;
|
|
|
|
virtual int workspaceWidth() const;
|
|
|
|
virtual int workspaceHeight() const;
|
|
|
|
virtual int desktopAtCoords(QPoint coords) const;
|
|
|
|
virtual QPoint desktopGridCoords(int id) const;
|
|
|
|
virtual QPoint desktopCoords(int id) const;
|
|
|
|
virtual int desktopAbove(int desktop = 0, bool wrap = true) const;
|
|
|
|
virtual int desktopToRight(int desktop = 0, bool wrap = true) const;
|
|
|
|
virtual int desktopBelow(int desktop = 0, bool wrap = true) const;
|
|
|
|
virtual int desktopToLeft(int desktop = 0, bool wrap = true) const;
|
|
|
|
virtual bool isDesktopLayoutDynamic() const;
|
|
|
|
virtual int addDesktop(QPoint coords);
|
|
|
|
virtual void deleteDesktop(int id);
|
|
|
|
virtual QString desktopName(int desktop) const;
|
|
|
|
virtual bool optionRollOverDesktops() const;
|
|
|
|
|
|
|
|
virtual int displayWidth() const;
|
|
|
|
virtual int displayHeight() const;
|
|
|
|
virtual QPoint cursorPos() const;
|
|
|
|
virtual bool grabKeyboard(Effect* effect);
|
|
|
|
virtual void ungrabKeyboard();
|
|
|
|
virtual void* getProxy(QString name);
|
|
|
|
virtual void startMousePolling();
|
|
|
|
virtual void stopMousePolling();
|
|
|
|
virtual EffectWindow* findWindow(WId id) const;
|
|
|
|
virtual EffectWindowList stackingOrder() const;
|
|
|
|
virtual void setElevatedWindow(EffectWindow* w, bool set);
|
|
|
|
|
|
|
|
virtual void setTabBoxWindow(EffectWindow*);
|
|
|
|
virtual void setTabBoxDesktop(int);
|
|
|
|
virtual EffectWindowList currentTabBoxWindowList() const;
|
|
|
|
virtual void refTabBox();
|
|
|
|
virtual void unrefTabBox();
|
|
|
|
virtual void closeTabBox();
|
|
|
|
virtual QList< int > currentTabBoxDesktopList() const;
|
|
|
|
virtual int currentTabBoxDesktop() const;
|
|
|
|
virtual EffectWindow* currentTabBoxWindow() const;
|
|
|
|
|
|
|
|
virtual void setActiveFullScreenEffect(Effect* e);
|
|
|
|
virtual Effect* activeFullScreenEffect() const;
|
|
|
|
|
|
|
|
virtual void pushRenderTarget(GLRenderTarget* target);
|
|
|
|
virtual GLRenderTarget* popRenderTarget();
|
|
|
|
virtual bool isRenderTargetBound();
|
|
|
|
|
|
|
|
virtual void addRepaintFull();
|
|
|
|
virtual void addRepaint(const QRect& r);
|
|
|
|
virtual void addRepaint(const QRegion& r);
|
|
|
|
virtual void addRepaint(int x, int y, int w, int h);
|
|
|
|
virtual int activeScreen() const;
|
|
|
|
virtual int numScreens() const;
|
|
|
|
virtual int screenNumber(const QPoint& pos) const;
|
|
|
|
virtual QRect clientArea(clientAreaOption, int screen, int desktop) const;
|
|
|
|
virtual QRect clientArea(clientAreaOption, const EffectWindow* c) const;
|
|
|
|
virtual QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const;
|
|
|
|
virtual double animationTimeFactor() const;
|
|
|
|
virtual WindowQuadType newWindowQuadType();
|
|
|
|
|
|
|
|
virtual Window createInputWindow(Effect* e, int x, int y, int w, int h, const QCursor& cursor);
|
|
|
|
using EffectsHandler::createInputWindow;
|
|
|
|
virtual void destroyInputWindow(Window w);
|
|
|
|
virtual bool checkInputWindowEvent(XEvent* e);
|
|
|
|
virtual void checkInputWindowStacking();
|
|
|
|
|
|
|
|
virtual void checkElectricBorder(const QPoint &pos, Time time);
|
|
|
|
virtual void reserveElectricBorder(ElectricBorder border);
|
|
|
|
virtual void unreserveElectricBorder(ElectricBorder border);
|
|
|
|
virtual void reserveElectricBorderSwitching(bool reserve);
|
|
|
|
|
|
|
|
virtual unsigned long xrenderBufferPicture();
|
|
|
|
virtual void reconfigure();
|
|
|
|
virtual void registerPropertyType(long atom, bool reg);
|
|
|
|
virtual QByteArray readRootProperty(long atom, long type, int format) const;
|
|
|
|
virtual void deleteRootProperty(long atom) const;
|
|
|
|
|
|
|
|
virtual bool hasDecorationShadows() const;
|
|
|
|
|
|
|
|
virtual bool decorationsHaveAlpha() const;
|
|
|
|
|
|
|
|
virtual bool decorationSupportsBlurBehind() const;
|
|
|
|
|
|
|
|
virtual EffectFrame* effectFrame(EffectFrameStyle style, bool staticSize, const QPoint& position, Qt::Alignment alignment) const;
|
|
|
|
|
|
|
|
// internal (used by kwin core or compositing code)
|
|
|
|
void startPaint();
|
|
|
|
void windowMoveResizeGeometryUpdate(EffectWindow* c, const QRect& geometry);
|
|
|
|
void windowDamaged(EffectWindow* w, const QRect& r);
|
|
|
|
bool borderActivated(ElectricBorder border);
|
|
|
|
void grabbedKeyboardEvent(QKeyEvent* e);
|
|
|
|
bool hasKeyboardGrab() const;
|
|
|
|
void propertyNotify(EffectWindow* c, long atom);
|
|
|
|
|
|
|
|
bool loadEffect(const QString& name);
|
|
|
|
void toggleEffect(const QString& name);
|
|
|
|
void unloadEffect(const QString& name);
|
|
|
|
void reconfigureEffect(const QString& name);
|
|
|
|
bool isEffectLoaded(const QString& name);
|
|
|
|
QStringList loadedEffects() const;
|
|
|
|
QStringList listOfEffects() const;
|
|
|
|
|
|
|
|
QList<EffectWindow*> elevatedWindows() const;
|
|
|
|
|
2011-02-28 20:03:13 +00:00
|
|
|
public Q_SLOTS:
|
|
|
|
void slotWindowUserMovedResized(EffectWindow* c, bool first, bool last);
|
2011-03-06 20:15:09 +00:00
|
|
|
void slotClientGroupItemSwitched(EffectWindow* from, EffectWindow* to);
|
|
|
|
void slotClientGroupItemAdded(EffectWindow* from, EffectWindow* to);
|
|
|
|
void slotClientGroupItemRemoved(EffectWindow* c, EffectWindow* group);
|
2011-02-28 20:03:13 +00:00
|
|
|
|
2011-02-25 19:41:10 +00:00
|
|
|
protected Q_SLOTS:
|
|
|
|
void slotDesktopChanged(int old);
|
2011-02-25 21:06:02 +00:00
|
|
|
void slotClientAdded(KWin::Client *c);
|
|
|
|
void slotUnmanagedAdded(KWin::Unmanaged *u);
|
2011-02-27 08:25:45 +00:00
|
|
|
void slotClientClosed(KWin::Client *c);
|
|
|
|
void slotUnmanagedClosed(KWin::Unmanaged *u);
|
2011-02-27 09:05:04 +00:00
|
|
|
void slotClientActivated(KWin::Client *c);
|
2011-02-27 09:47:42 +00:00
|
|
|
void slotDeletedRemoved(KWin::Deleted *d);
|
2011-02-28 20:03:13 +00:00
|
|
|
void slotClientMaximized(KWin::Client *c, KDecorationDefines::MaximizeMode maxMode);
|
2011-03-06 09:30:23 +00:00
|
|
|
void slotOpacityChanged(KWin::Toplevel *t, qreal oldOpacity);
|
2011-03-06 09:55:27 +00:00
|
|
|
void slotClientMinimized(KWin::Client *c, bool animate);
|
2011-03-06 10:08:19 +00:00
|
|
|
void slotClientUnminimized(KWin::Client *c, bool animate);
|
2011-03-12 11:34:59 +00:00
|
|
|
void slotClientGeometryShapeChanged(KWin::Client *c, const QRect &old);
|
|
|
|
void slotUnmanagedGeometryShapeChanged(KWin::Unmanaged *u, const QRect &old);
|
2011-02-25 19:41:10 +00:00
|
|
|
|
2011-01-30 14:34:42 +00:00
|
|
|
protected:
|
|
|
|
KLibrary* findEffectLibrary(KService* service);
|
|
|
|
void effectsChanged();
|
2011-03-06 10:13:11 +00:00
|
|
|
void setupClientConnections(KWin::Client *c);
|
|
|
|
void setupUnmanagedConnections(KWin::Unmanaged *u);
|
2011-01-30 14:34:42 +00:00
|
|
|
|
|
|
|
Effect* keyboard_grab_effect;
|
|
|
|
QStack<GLRenderTarget*> render_targets;
|
|
|
|
Effect* fullscreen_effect;
|
|
|
|
QList<EffectWindow*> elevated_windows;
|
|
|
|
QMultiMap< int, EffectPair > effect_order;
|
|
|
|
QHash< long, int > registered_atoms;
|
|
|
|
int next_window_quad_type;
|
|
|
|
int mouse_poll_ref_count;
|
|
|
|
int current_paint_effectframe;
|
2007-04-29 17:35:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectWindowImpl : public EffectWindow
|
|
|
|
{
|
2011-01-30 14:34:42 +00:00
|
|
|
public:
|
|
|
|
EffectWindowImpl();
|
|
|
|
virtual ~EffectWindowImpl();
|
|
|
|
|
|
|
|
virtual void enablePainting(int reason);
|
|
|
|
virtual void disablePainting(int reason);
|
|
|
|
virtual bool isPaintingEnabled();
|
|
|
|
virtual void addRepaint(const QRect& r);
|
|
|
|
virtual void addRepaint(int x, int y, int w, int h);
|
|
|
|
virtual void addRepaintFull();
|
|
|
|
|
|
|
|
virtual void refWindow();
|
|
|
|
virtual void unrefWindow();
|
|
|
|
virtual bool isDeleted() const;
|
|
|
|
|
|
|
|
virtual bool isOnAllDesktops() const;
|
|
|
|
virtual int desktop() const; // prefer isOnXXX()
|
|
|
|
virtual bool isMinimized() const;
|
|
|
|
virtual double opacity() const;
|
|
|
|
virtual bool hasAlpha() const;
|
|
|
|
virtual QString caption() const;
|
|
|
|
virtual QPixmap icon() const;
|
|
|
|
virtual QString windowClass() const;
|
|
|
|
virtual QString windowRole() const;
|
|
|
|
virtual const EffectWindowGroup* group() const;
|
|
|
|
|
|
|
|
virtual int x() const;
|
|
|
|
virtual int y() const;
|
|
|
|
virtual int width() const;
|
|
|
|
virtual int height() const;
|
|
|
|
virtual QRect geometry() const;
|
|
|
|
virtual QRegion shape() const;
|
|
|
|
virtual int screen() const;
|
|
|
|
virtual bool hasOwnShape() const;
|
|
|
|
virtual QPoint pos() const;
|
|
|
|
virtual QSize size() const;
|
|
|
|
virtual QRect rect() const;
|
|
|
|
virtual bool isMovable() const;
|
|
|
|
virtual bool isMovableAcrossScreens() const;
|
|
|
|
virtual bool isUserMove() const;
|
|
|
|
virtual bool isUserResize() const;
|
|
|
|
virtual QRect iconGeometry() const;
|
|
|
|
virtual QRect contentsRect() const;
|
|
|
|
virtual QRect decorationInnerRect() const;
|
|
|
|
virtual QByteArray readProperty(long atom, long type, int format) const;
|
|
|
|
virtual void deleteProperty(long atom) const;
|
|
|
|
|
|
|
|
virtual bool isDesktop() const;
|
|
|
|
virtual bool isDock() const;
|
|
|
|
virtual bool isToolbar() const;
|
|
|
|
virtual bool isTopMenu() const;
|
|
|
|
virtual bool isMenu() const;
|
|
|
|
virtual bool isNormalWindow() const; // normal as in 'NET::Normal or NET::Unknown non-transient'
|
|
|
|
virtual bool isSpecialWindow() const;
|
|
|
|
virtual bool isDialog() const;
|
|
|
|
virtual bool isSplash() const;
|
|
|
|
virtual bool isUtility() const;
|
|
|
|
virtual bool isDropdownMenu() const;
|
|
|
|
virtual bool isPopupMenu() const; // a context popup, not dropdown, not torn-off
|
|
|
|
virtual bool isTooltip() const;
|
|
|
|
virtual bool isNotification() const;
|
|
|
|
virtual bool isComboBox() const;
|
|
|
|
virtual bool isDNDIcon() const;
|
|
|
|
virtual bool isManaged() const; // managed or override-redirect
|
|
|
|
virtual bool acceptsFocus() const;
|
|
|
|
virtual bool keepAbove() const;
|
|
|
|
|
|
|
|
virtual bool isModal() const;
|
|
|
|
virtual EffectWindow* findModal();
|
|
|
|
virtual EffectWindowList mainWindows() const;
|
|
|
|
|
|
|
|
virtual bool isSkipSwitcher() const;
|
|
|
|
|
|
|
|
virtual WindowQuadList buildQuads(bool force = false) const;
|
|
|
|
|
|
|
|
virtual void minimize() const;
|
|
|
|
virtual void unminimize() const;
|
|
|
|
virtual void closeWindow() const;
|
|
|
|
|
|
|
|
virtual bool visibleInClientGroup() const;
|
|
|
|
|
|
|
|
const Toplevel* window() const;
|
|
|
|
Toplevel* window();
|
|
|
|
|
|
|
|
void setWindow(Toplevel* w); // internal
|
|
|
|
void setSceneWindow(Scene::Window* w); // internal
|
|
|
|
const Scene::Window* sceneWindow() const; // internal
|
|
|
|
Scene::Window* sceneWindow(); // internal
|
|
|
|
|
|
|
|
void setData(int role, const QVariant &data);
|
|
|
|
QVariant data(int role) const;
|
|
|
|
private:
|
|
|
|
Toplevel* toplevel;
|
|
|
|
Scene::Window* sw; // This one is used only during paint pass.
|
|
|
|
QHash<int, QVariant> dataMap;
|
2007-04-29 17:35:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class EffectWindowGroupImpl
|
|
|
|
: public EffectWindowGroup
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
EffectWindowGroupImpl(Group* g);
|
|
|
|
virtual EffectWindowList members() const;
|
|
|
|
private:
|
|
|
|
Group* group;
|
|
|
|
};
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2010-07-18 16:32:37 +00:00
|
|
|
class EffectFrameImpl
|
|
|
|
: public QObject, public EffectFrame
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2010-07-18 16:32:37 +00:00
|
|
|
Q_OBJECT
|
2011-01-30 14:34:42 +00:00
|
|
|
public:
|
|
|
|
explicit EffectFrameImpl(EffectFrameStyle style, bool staticSize = true, QPoint position = QPoint(-1, -1),
|
|
|
|
Qt::Alignment alignment = Qt::AlignCenter);
|
|
|
|
virtual ~EffectFrameImpl();
|
|
|
|
|
|
|
|
virtual void free();
|
|
|
|
virtual void render(QRegion region = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0);
|
|
|
|
virtual Qt::Alignment alignment() const;
|
|
|
|
virtual void setAlignment(Qt::Alignment alignment);
|
|
|
|
virtual const QFont& font() const;
|
|
|
|
virtual void setFont(const QFont& font);
|
|
|
|
virtual const QRect& geometry() const;
|
|
|
|
virtual void setGeometry(const QRect& geometry, bool force = false);
|
|
|
|
virtual const QPixmap& icon() const;
|
|
|
|
virtual void setIcon(const QPixmap& icon);
|
|
|
|
virtual const QSize& iconSize() const;
|
|
|
|
virtual void setIconSize(const QSize& size);
|
|
|
|
virtual void setPosition(const QPoint& point);
|
|
|
|
virtual const QString& text() const;
|
|
|
|
virtual void setText(const QString& text);
|
|
|
|
EffectFrameStyle style() const {
|
|
|
|
return m_style;
|
|
|
|
};
|
|
|
|
Plasma::FrameSvg& frame() {
|
|
|
|
return m_frame;
|
|
|
|
}
|
|
|
|
bool isStatic() const {
|
|
|
|
return m_static;
|
2010-07-18 16:32:37 +00:00
|
|
|
};
|
2011-01-30 14:34:42 +00:00
|
|
|
void finalRender(QRegion region, double opacity, double frameOpacity) const;
|
|
|
|
virtual void setShader(GLShader* shader) {
|
|
|
|
m_shader = shader;
|
|
|
|
}
|
|
|
|
virtual GLShader* shader() const {
|
|
|
|
return m_shader;
|
|
|
|
}
|
|
|
|
virtual void setSelection(const QRect& selection);
|
|
|
|
const QRect& selection() const {
|
|
|
|
return m_selectionGeometry;
|
|
|
|
}
|
|
|
|
Plasma::FrameSvg& selectionFrame() {
|
|
|
|
return m_selection;
|
|
|
|
}
|
2011-02-17 18:35:08 +00:00
|
|
|
/**
|
|
|
|
* The foreground text color as specified by the default Plasma theme.
|
|
|
|
*/
|
|
|
|
static QColor styledTextColor();
|
2011-01-30 14:34:42 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void plasmaThemeChanged();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Q_DISABLE_COPY(EffectFrameImpl) // As we need to use Qt slots we cannot copy this class
|
|
|
|
void align(QRect &geometry); // positions geometry around m_point respecting m_alignment
|
|
|
|
void autoResize(); // Auto-resize if not a static size
|
|
|
|
|
|
|
|
EffectFrameStyle m_style;
|
|
|
|
Plasma::FrameSvg m_frame; // TODO: share between all EffectFrames
|
|
|
|
Plasma::FrameSvg m_selection;
|
|
|
|
|
|
|
|
// Position
|
|
|
|
bool m_static;
|
|
|
|
QPoint m_point;
|
|
|
|
Qt::Alignment m_alignment;
|
|
|
|
QRect m_geometry;
|
|
|
|
|
|
|
|
// Contents
|
|
|
|
QString m_text;
|
|
|
|
QFont m_font;
|
|
|
|
QPixmap m_icon;
|
|
|
|
QSize m_iconSize;
|
|
|
|
QRect m_selectionGeometry;
|
|
|
|
|
|
|
|
Scene::EffectFrame* m_sceneFrame;
|
|
|
|
GLShader* m_shader;
|
|
|
|
};
|
2007-05-24 14:41:56 +00:00
|
|
|
|
|
|
|
inline
|
2008-01-13 13:00:15 +00:00
|
|
|
QList<EffectWindow*> EffectsHandlerImpl::elevatedWindows() const
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2007-05-24 14:41:56 +00:00
|
|
|
return elevated_windows;
|
2011-01-30 14:34:42 +00:00
|
|
|
}
|
2007-05-24 14:41:56 +00:00
|
|
|
|
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
inline
|
2011-01-30 14:34:42 +00:00
|
|
|
EffectWindowGroupImpl::EffectWindowGroupImpl(Group* g)
|
|
|
|
: group(g)
|
|
|
|
{
|
|
|
|
}
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2011-01-30 14:34:42 +00:00
|
|
|
EffectWindow* effectWindow(Toplevel* w);
|
|
|
|
EffectWindow* effectWindow(Scene::Window* w);
|
2007-04-29 17:35:43 +00:00
|
|
|
|
2007-08-08 14:42:06 +00:00
|
|
|
inline
|
|
|
|
const Scene::Window* EffectWindowImpl::sceneWindow() const
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2007-08-08 14:42:06 +00:00
|
|
|
return sw;
|
2011-01-30 14:34:42 +00:00
|
|
|
}
|
2007-08-08 14:42:06 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
Scene::Window* EffectWindowImpl::sceneWindow()
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2007-08-08 14:42:06 +00:00
|
|
|
return sw;
|
2011-01-30 14:34:42 +00:00
|
|
|
}
|
2007-08-08 14:42:06 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
const Toplevel* EffectWindowImpl::window() const
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2007-08-08 14:42:06 +00:00
|
|
|
return toplevel;
|
2011-01-30 14:34:42 +00:00
|
|
|
}
|
2007-08-08 14:42:06 +00:00
|
|
|
|
|
|
|
inline
|
|
|
|
Toplevel* EffectWindowImpl::window()
|
2011-01-30 14:34:42 +00:00
|
|
|
{
|
2007-08-08 14:42:06 +00:00
|
|
|
return toplevel;
|
2011-01-30 14:34:42 +00:00
|
|
|
}
|
2007-08-08 14:42:06 +00:00
|
|
|
|
2007-04-29 17:35:43 +00:00
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|