Changeset View
Changeset View
Standalone View
Standalone View
scripting/meta.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | // forward declarations | 26 | // forward declarations | ||
27 | class QPoint; | 27 | class QPoint; | ||
28 | class QRect; | 28 | class QRect; | ||
29 | class QScriptContext; | 29 | class QScriptContext; | ||
30 | class QSize; | 30 | class QSize; | ||
31 | 31 | | |||
32 | namespace KWin { | 32 | namespace KWin { | ||
33 | class Client; | | |||
34 | class Toplevel; | 33 | class Toplevel; | ||
34 | class X11Client; | ||||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | typedef KWin::Client* KClientRef; | 37 | typedef KWin::X11Client *KClientRef; | ||
38 | typedef KWin::Toplevel* KToplevelRef; | 38 | typedef KWin::Toplevel* KToplevelRef; | ||
39 | 39 | | |||
40 | namespace KWin | 40 | namespace KWin | ||
41 | { | 41 | { | ||
42 | namespace MetaScripting | 42 | namespace MetaScripting | ||
43 | { | 43 | { | ||
44 | 44 | | |||
45 | 45 | | |||
Show All 24 Lines | |||||
70 | * features. As for QSize and QPoint, I don't really plan any such thing. | 70 | * features. As for QSize and QPoint, I don't really plan any such thing. | ||
71 | */ | 71 | */ | ||
72 | namespace Rect | 72 | namespace Rect | ||
73 | { | 73 | { | ||
74 | QScriptValue toScriptValue(QScriptEngine*, const QRect&); | 74 | QScriptValue toScriptValue(QScriptEngine*, const QRect&); | ||
75 | void fromScriptValue(const QScriptValue&, QRect&); | 75 | void fromScriptValue(const QScriptValue&, QRect&); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | namespace Client | 78 | namespace X11Client | ||
79 | { | 79 | { | ||
80 | QScriptValue toScriptValue(QScriptEngine *eng, const KClientRef &client); | 80 | QScriptValue toScriptValue(QScriptEngine *eng, const KClientRef &client); | ||
81 | void fromScriptValue(const QScriptValue &value, KClientRef& client); | 81 | void fromScriptValue(const QScriptValue &value, KClientRef& client); | ||
82 | } | 82 | } | ||
83 | 83 | | |||
84 | namespace Toplevel | 84 | namespace Toplevel | ||
85 | { | 85 | { | ||
86 | QScriptValue toScriptValue(QScriptEngine *eng, const KToplevelRef &client); | 86 | QScriptValue toScriptValue(QScriptEngine *eng, const KToplevelRef &client); | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |