From c5bdfbfd500e93b69a19e53008bda7773db861e8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 18 Mar 2002 23:39:53 +0000 Subject: removed add/removeTimer and fixed some stupid return referenses --- src/BaseDisplay.hh | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/src/BaseDisplay.hh b/src/BaseDisplay.hh index 4aa7228..ffc2b8d 100644 --- a/src/BaseDisplay.hh +++ b/src/BaseDisplay.hh @@ -22,12 +22,11 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: BaseDisplay.hh,v 1.14 2002/03/18 15:28:25 fluxgen Exp $ +// $Id: BaseDisplay.hh,v 1.15 2002/03/18 23:39:53 fluxgen Exp $ #ifndef BASEDISPLAY_HH #define BASEDISPLAY_HH -#include "Timer.hh" #include "NotCopyable.hh" #include "FbAtoms.hh" #include @@ -77,9 +76,9 @@ public: inline ScreenInfo *getScreenInfo(int s) { return screenInfoList[s]; } - inline const Bool &hasShapeExtensions(void) const { return shape.extensions; } - inline const bool &doShutdown(void) const { return m_shutdown; } - inline const bool &isStartup(void) const { return m_startup; } + inline const bool hasShapeExtensions(void) const { return shape.extensions; } + inline const bool doShutdown(void) const { return m_shutdown; } + inline const bool isStartup(void) const { return m_startup; } inline const Cursor &getSessionCursor(void) const { return cursor.session; } inline const Cursor &getMoveCursor(void) const { return cursor.move; } @@ -91,8 +90,8 @@ public: inline const char *getXDisplayName(void) const { return const_cast(m_display_name); } inline const char *getApplicationName(void) const { return const_cast(m_app_name); } - inline const int &getNumberOfScreens(void) const { return number_of_screens; } - inline const int &getShapeEventBase(void) const { return shape.event_basep; } + inline const int getNumberOfScreens(void) const { return number_of_screens; } + inline const int getShapeEventBase(void) const { return shape.event_basep; } inline void shutdown(void) { m_shutdown = true; } inline void run(void) { m_startup = m_shutdown = false; } @@ -102,8 +101,6 @@ public: void grab(void); void ungrab(void); void eventLoop(void); - void addTimer(BTimer *); - void removeTimer(BTimer *); // another pure virtual... this is used to handle signals that BaseDisplay // doesn't understand itself @@ -128,24 +125,18 @@ private: struct shape { Bool extensions; int event_basep, error_basep; - } shape; - - + } shape; bool m_startup, m_shutdown; Display *m_display; typedef std::vector ScreenInfoList; - ScreenInfoList screenInfoList; - - typedef std::list TimerList; - TimerList timerList; + ScreenInfoList screenInfoList; char *m_display_name, *m_app_name; int number_of_screens, m_server_grabs, colors_per_channel; -protected: - +protected: virtual void process_event(XEvent *) = 0; }; @@ -161,11 +152,11 @@ public: inline const Window &getRootWindow(void) const { return root_window; } inline const Colormap &getColormap(void) const { return colormap; } - inline const int &getDepth(void) const { return depth; } - inline const int &getScreenNumber(void) const { return screen_number; } + inline const int getDepth(void) const { return depth; } + inline const int getScreenNumber(void) const { return screen_number; } - inline const unsigned int &getWidth(void) const { return width; } - inline const unsigned int &getHeight(void) const { return height; } + inline const unsigned int getWidth(void) const { return width; } + inline const unsigned int getHeight(void) const { return height; } private: BaseDisplay *basedisplay; @@ -176,8 +167,7 @@ private: int depth, screen_number; unsigned int width, height; - }; -#endif // __BaseDisplay_hh +#endif // BASEDISPLAY_HH -- cgit v0.11.2