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 AbstractClient; | ||||
33 | class Client; | 34 | class Client; | ||
34 | class Toplevel; | 35 | class Toplevel; | ||
35 | } | 36 | } | ||
36 | 37 | | |||
38 | typedef KWin::AbstractClient *KAbstractClientRef; | ||||
37 | typedef KWin::Client* KClientRef; | 39 | typedef KWin::Client* KClientRef; | ||
38 | typedef KWin::Toplevel* KToplevelRef; | 40 | typedef KWin::Toplevel* KToplevelRef; | ||
39 | 41 | | |||
40 | namespace KWin | 42 | namespace KWin | ||
41 | { | 43 | { | ||
42 | namespace MetaScripting | 44 | namespace MetaScripting | ||
43 | { | 45 | { | ||
44 | 46 | | |||
Show All 25 Lines | |||||
70 | * features. As for QSize and QPoint, I don't really plan any such thing. | 72 | * features. As for QSize and QPoint, I don't really plan any such thing. | ||
71 | */ | 73 | */ | ||
72 | namespace Rect | 74 | namespace Rect | ||
73 | { | 75 | { | ||
74 | QScriptValue toScriptValue(QScriptEngine*, const QRect&); | 76 | QScriptValue toScriptValue(QScriptEngine*, const QRect&); | ||
75 | void fromScriptValue(const QScriptValue&, QRect&); | 77 | void fromScriptValue(const QScriptValue&, QRect&); | ||
76 | } | 78 | } | ||
77 | 79 | | |||
80 | namespace AbstractClient | ||||
81 | { | ||||
82 | QScriptValue toScriptValue(QScriptEngine *engine, const KAbstractClientRef &client); | ||||
83 | void fromScriptValue(const QScriptValue &value, KAbstractClientRef &client); | ||||
84 | } | ||||
85 | | ||||
78 | namespace Client | 86 | namespace Client | ||
79 | { | 87 | { | ||
80 | QScriptValue toScriptValue(QScriptEngine *eng, const KClientRef &client); | 88 | QScriptValue toScriptValue(QScriptEngine *eng, const KClientRef &client); | ||
81 | void fromScriptValue(const QScriptValue &value, KClientRef& client); | 89 | void fromScriptValue(const QScriptValue &value, KClientRef& client); | ||
82 | } | 90 | } | ||
83 | 91 | | |||
84 | namespace Toplevel | 92 | namespace Toplevel | ||
85 | { | 93 | { | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |