kwin/scripting
Martin Gräßlin 6b1f0b1fca [kwin] Introduce Screens::size and Screens::geometry
Screens provides a size which is constructed from the size of
the bounding geometry of all screens and provides an overload taking
an int to return the size of a specified screen. For geometry() a new
ovload is added without an argument, which is just a convenient wrapper
for QRect(QPoint(0, 0), size()).

Both new methods are exported to effects and scripting as new
properties there called virtualScreenSize and virtualScreenGeometry.

The (virtual) size gets cached in screens and is updated whenever the
count or geometry changes.

Construction of Screens is slightly changed by moving the init code
from ctor into a virtual method init(). Reason is that we ended in
a loop with accessing the singleton pointer before it was set.

REVIEW: 116114
2014-03-05 13:03:33 +01:00
..
CMakeLists.txt [kwin] Remove dependency on KF5Declarative 2014-02-26 08:30:52 +01:00
dbuscall.cpp New QML Type DBusCall 2013-08-13 09:57:51 +02:00
dbuscall.h New QML Type DBusCall 2013-08-13 09:57:51 +02:00
documentation-effect-global.xml
documentation-global.xml
genericscriptedconfig.cpp Port kwin/genericscriptedconfig from Plasma::ConfigLoader to KConfigLoader 2013-09-24 12:37:25 +02:00
genericscriptedconfig.h
kwinscript.desktop SVN_SILENT made messages (.desktop file) 2014-02-18 05:12:30 +00:00
Messages.sh
meta.cpp
meta.h
screenedgeitem.cpp Add a ScreenEdgeItem to reserve a screen edge from QML 2013-08-13 09:57:51 +02:00
screenedgeitem.h Add a ScreenEdgeItem to reserve a screen edge from QML 2013-08-13 09:57:51 +02:00
scriptedeffect.cpp Replace NULL with nullptr in scripting folder 2014-02-24 16:33:40 +01:00
scriptedeffect.h Replace NULL with nullptr in scripting folder 2014-02-24 16:33:40 +01:00
scripting.cpp [kwin] Remove dependency on KF5Declarative 2014-02-26 08:30:52 +01:00
scripting.h Replace NULL with nullptr in scripting folder 2014-02-24 16:33:40 +01:00
scripting_model.cpp Replace NULL with nullptr in scripting folder 2014-02-24 16:33:40 +01:00
scripting_model.h Replace NULL with nullptr in scripting folder 2014-02-24 16:33:40 +01:00
scriptingutils.cpp
scriptingutils.h [kwin] Use KGlobalAccel to register global shortcuts from scripts 2013-12-10 09:09:35 +01:00
timer.cpp
workspace_wrapper.cpp [kwin] Introduce Screens::size and Screens::geometry 2014-03-05 13:03:33 +01:00
workspace_wrapper.h [kwin] Introduce Screens::size and Screens::geometry 2014-03-05 13:03:33 +01:00