add size() method .. to get current desktop size
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 21 Aug 2008 17:24:28 +0000 (17:24 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 21 Aug 2008 17:24:28 +0000 (17:24 +0000)
lib/gui/ewidgetdesktop.h

index 34befbd..91b7ea0 100644 (file)
@@ -72,6 +72,7 @@ public:
        void setStyleID(int id) { m_style_id = id; }
        
        void resize(eSize size);
+       eSize size() const { return m_screen.m_screen_size; }
 private:
        ePtrList<eWidget> m_root;
        void calcWidgetClipRegion(eWidget *widget, gRegion &parent_visible);