| VRS - The Virtual Rendering System |
| version 3.3 |
00001 /********************************************************************** 00002 VRS - The Virtual Rendering System 00003 Copyright (C) 2001-2008 Computer Graphics Systems Group at the 00004 Hasso-Plattner-Institute, Potsdam, Germany. 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 This library is distributed in the hope that it will be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 See the GNU Lesser General Public License for more details. 00013 You should have received a copy of the GNU Lesser+ General Public 00014 License along with this library; if not, write to the FreeSoftware 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307, USA. 00016 00017 The MAM/VRS Gtk-- binding was originally written by Frederic Chauvin and 00018 Tobias Gloth (C)1998. It is covered by the terms of the GNU Library 00019 General Public License. The port to VRS 3.0 was kindly provided by 00020 John Burris, (C)2002. 00021 **********************************************************************/ 00022 // $Id: gtkclock.h 6315 2008-04-25 14:54:38Z Silvio_Moelter $ 00023 // $Date: 2008-04-25 16:54:38 +0200 (Fri, 25 Apr 2008) $ 00024 // $Revision: 6315 $ 00025 // $State$ 00026 // $Author: Silvio_Moelter $ 00027 // 00028 00029 #ifndef VRS_GTK_GTK_CLOCK_H 00030 #define VRS_GTK_GTK_CLOCK_H 00031 00032 #include <vrs/gtk/config.h> 00033 #include <vrs/sg/clock.h> 00034 #include <gtk/gtkmain.h> 00035 00036 namespace VRS { 00037 00038 //- GtkClock 00039 class VRS_GTK_API GtkClock : public Clock { 00041 00042 public: 00043 //- GtkClock, ~GtkClock 00044 GtkClock (double delay=0.02); 00045 virtual ~GtkClock (); 00047 00048 //- start 00049 void start(); 00051 00052 //- stop 00053 void stop(); 00055 00056 //- delay 00057 double delay () const; 00059 00060 VRS_TYPEINFO(GtkClock, Clock); 00061 00062 private: 00063 double delay_; 00064 guint idleSignal_; 00065 }; 00066 00067 inline double GtkClock::delay () const { return delay_; } 00068 00069 } // namespace VRS 00070 00071 #endif // VRS_GTK_GTK_CLOCK_H