Blender  V3.3
GHOST_CallbackEventConsumer.cpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3 
13 #include "GHOST_C-api.h"
14 #include "GHOST_Debug.h"
15 
17  GHOST_TUserDataPtr userData)
18 {
19  m_eventCallback = eventCallback;
20  m_userData = userData;
21 }
22 
24 {
25  return m_eventCallback((GHOST_EventHandle)event, m_userData);
26 }
GHOST C-API function and type declarations.
bool(* GHOST_EventCallbackProcPtr)(GHOST_EventHandle event, GHOST_TUserDataPtr userdata)
Definition: GHOST_C-api.h:23
void * GHOST_TUserDataPtr
Definition: GHOST_Types.h:72
GHOST_CallbackEventConsumer(GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr userData)
bool processEvent(GHOST_IEvent *event)
GHOST_EventCallbackProcPtr m_eventCallback