--
Eduardo Gurgel Pinho
(GELSoL-UFC)

(Gentoo) Linux User #415930
http://edgurgel.wordpress.com
http://alu.dc.ufc.br/~eduardo

From 1f4c8a58b295388cfbb834e232dc64c950833c91 Mon Sep 17 00:00:00 2001
From: Eduardo Gurgel Pinho <edua...@mad4.chagas>
Date: Mon, 16 Nov 2009 22:01:32 -0300
Subject: [PATCH] Getters to Cube Gears plugin usage.

---
 plugins/cube/include/cube/cube.h |   10 ++++++++++
 plugins/cube/src/cube.cpp        |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/plugins/cube/include/cube/cube.h b/plugins/cube/include/cube/cube.h
index 611f968..f26a4f7 100644
--- a/plugins/cube/include/cube/cube.h
+++ b/plugins/cube/include/cube/cube.h
@@ -127,6 +127,16 @@ class CubeScreen :
        RotationState rotationState () const;
        void rotationState (RotationState state);
 
+       int xRotations () const;
+
+       int nOutput () const;
+
+       float outputXScale () const;
+       float outputYScale () const;
+       float outputXOffset () const;
+       float outputYOffset () const;
+
+
        friend class PrivateCubeWindow;
        friend class PrivateCubeScreen;
 
diff --git a/plugins/cube/src/cube.cpp b/plugins/cube/src/cube.cpp
index e5c7e64..cd60c55 100644
--- a/plugins/cube/src/cube.cpp
+++ b/plugins/cube/src/cube.cpp
@@ -118,6 +118,42 @@ CubeScreen::rotationState (CubeScreen::RotationState state)
     priv->mRotationState = state;
 }
 
+int 
+CubeScreen::xRotations () const
+{
+    return priv->mXRotations;
+}
+
+int 
+CubeScreen::nOutput () const
+{
+    return priv->mNOutput;
+}
+
+float
+CubeScreen::outputXScale () const
+{
+    return priv->mOutputXScale;
+}
+
+float
+CubeScreen::outputYScale () const
+{
+    return priv->mOutputYScale;
+}
+
+float
+CubeScreen::outputXOffset () const
+{
+    return priv->mOutputXOffset;
+}
+
+float
+CubeScreen::outputYOffset () const
+{
+    return priv->mOutputYOffset;
+}
+
 void
 PrivateCubeScreen::loadImg (int n)
 {
-- 
1.6.4.4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz

Reply via email to