~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/ghost/GHOST_ITimerTask.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 * <br>
46
46
 * Note that GHOST processes timers in the UI thread. You should ask GHOST 
47
47
 * process messages in order for the timer-callbacks to be called.
48
 
 * @see GHOST_ISystem#installTimer
49
 
 * @see GHOST_TimerProcPtr
50
 
 * @author      Maarten Gribnau
51
 
 * @date        May 31, 2001
 
48
 * \see GHOST_ISystem#installTimer
 
49
 * \see GHOST_TimerProcPtr
 
50
 * \author      Maarten Gribnau
 
51
 * \date        May 31, 2001
52
52
 */
53
53
class GHOST_ITimerTask
54
54
{
62
62
 
63
63
        /**
64
64
         * Returns the timer callback.
65
 
         * @return The timer callback.
 
65
         * \return The timer callback.
66
66
         */
67
67
        virtual GHOST_TimerProcPtr getTimerProc() const = 0;
68
68
 
69
69
        /**
70
70
         * Changes the timer callback.
71
 
         * @param timerProc The timer callback.
 
71
         * \param timerProc The timer callback.
72
72
         */
73
73
        virtual void setTimerProc(const GHOST_TimerProcPtr timerProc) = 0;
74
74
 
75
75
        /**
76
76
         * Returns the timer user data.
77
 
         * @return The timer user data.
 
77
         * \return The timer user data.
78
78
         */
79
79
        virtual GHOST_TUserDataPtr getUserData() const = 0;
80
80
        
81
81
        /**
82
82
         * Changes the time user data.
83
 
         * @param data The timer user data.
 
83
         * \param data The timer user data.
84
84
         */
85
85
        virtual void setUserData(const GHOST_TUserDataPtr userData) = 0;
86
86
 
 
87
 
87
88
#ifdef WITH_CXX_GUARDEDALLOC
88
 
public:
89
 
        void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GHOST:GHOST_ITimerTask"); }
90
 
        void operator delete( void *mem ) { MEM_freeN(mem); }
 
89
        MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_ITimerTask")
91
90
#endif
92
91
};
93
92