~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_CallbackEventConsumer.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:
39
39
/**
40
40
 * Event consumer that will forward events to a call-back routine.
41
41
 * Especially useful for the C-API.
42
 
 * @author      Maarten Gribnau
43
 
 * @date        October 25, 2001
 
42
 * \author      Maarten Gribnau
 
43
 * \date        October 25, 2001
44
44
 */
45
45
class GHOST_CallbackEventConsumer : public GHOST_IEventConsumer
46
46
{
47
47
public:
48
48
        /**
49
49
         * Constructor.
50
 
         * @param       eventCallback   The call-back routine invoked.
51
 
         * @param       userData                The data passed back though the call-back routine.
 
50
         * \param       eventCallback   The call-back routine invoked.
 
51
         * \param       userData                The data passed back though the call-back routine.
52
52
         */
53
53
        GHOST_CallbackEventConsumer(
54
 
                GHOST_EventCallbackProcPtr eventCallback, 
55
 
                GHOST_TUserDataPtr userData);
 
54
            GHOST_EventCallbackProcPtr eventCallback,
 
55
            GHOST_TUserDataPtr userData);
56
56
 
57
57
        /**
58
58
         * Destructor.
63
63
 
64
64
        /**
65
65
         * This method is called by an event producer when an event is available.
66
 
         * @param event The event that can be handled or ignored.
67
 
         * @return Indication as to whether the event was handled.
 
66
         * \param event The event that can be handled or ignored.
 
67
         * \return Indication as to whether the event was handled.
68
68
         */
69
 
        virtual bool processEvent(GHOST_IEvent* event);
 
69
        virtual bool processEvent(GHOST_IEvent *event);
70
70
 
71
71
protected:
72
72
        /** The call-back routine invoked. */
73
 
        GHOST_EventCallbackProcPtr      m_eventCallback;
 
73
        GHOST_EventCallbackProcPtr m_eventCallback;
74
74
        /** The data passed back though the call-back routine. */
75
 
        GHOST_TUserDataPtr                      m_userData;
 
75
        GHOST_TUserDataPtr m_userData;
 
76
 
 
77
#ifdef WITH_CXX_GUARDEDALLOC
 
78
        MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_CallbackEventConsumer")
 
79
#endif
76
80
};
77
81
 
78
82
#endif // __GHOST_CALLBACKEVENTCONSUMER_H__