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

« back to all changes in this revision

Viewing changes to intern/ghost/GHOST_IEvent.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
 * Use the getType() method to retrieve the type of event and the getData() 
46
46
 * method to get the event data out. Using the event type you can cast the 
47
47
 * event data to the correct event dat structure.
48
 
 * @see GHOST_IEventConsumer#processEvent
49
 
 * @see GHOST_TEventType
50
 
 * @author      Maarten Gribnau
51
 
 * @date        May 31, 2001
 
48
 * \see GHOST_IEventConsumer#processEvent
 
49
 * \see GHOST_TEventType
 
50
 * \author      Maarten Gribnau
 
51
 * \date        May 31, 2001
52
52
 */
53
53
class GHOST_IEvent
54
54
{
62
62
 
63
63
        /**
64
64
         * Returns the event type.
65
 
         * @return The event type.
 
65
         * \return The event type.
66
66
         */
67
67
        virtual GHOST_TEventType getType() = 0;
68
68
 
69
69
        /**
70
70
         * Returns the time this event was generated.
71
 
         * @return The event generation time.
 
71
         * \return The event generation time.
72
72
         */
73
73
        virtual GHOST_TUns64 getTime() = 0;
74
74
 
75
75
        /**
76
76
         * Returns the window this event was generated on, 
77
77
         * or NULL if it is a 'system' event.
78
 
         * @return The generating window.
 
78
         * \return The generating window.
79
79
         */
80
 
        virtual GHOST_IWindow* getWindow() = 0;
 
80
        virtual GHOST_IWindow *getWindow() = 0;
81
81
        
82
82
        /**
83
83
         * Returns the event data.
84
 
         * @return The event data.
 
84
         * \return The event data.
85
85
         */
86
86
        virtual GHOST_TEventDataPtr getData() = 0;
87
87
        
88
88
#ifdef WITH_CXX_GUARDEDALLOC
89
 
public:
90
 
        void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GHOST:GHOST_IEvent"); }
91
 
        void operator delete( void *mem ) { MEM_freeN(mem); }
 
89
        MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_IEvent")
92
90
#endif
93
91
};
94
92