-static bool EcoreEventWindowPropertyChanged( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- return windowBase->OnWindowPropertyChanged( data, type, event );
- }
-
- return true;
-}
-
-/**
- * Called when the window gains focus.
- */
-static bool EcoreEventWindowFocusIn( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnFocusIn( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when the window loses focus.
- */
-static bool EcoreEventWindowFocusOut( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnFocusOut( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when the window is damaged.
- */
-static bool EcoreEventWindowDamaged( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnWindowDamaged( data, type, event );
- }
-
- return true;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////////////
-// Selection Callbacks
-/////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * Called when the source window notifies us the content in clipboard is selected.
- */
-static bool EcoreEventSelectionClear( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnSelectionClear( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when the source window sends us about the selected content.
- * For example, when dragged items are dragged INTO our window or when items are selected in the clipboard.
- */
-static bool EcoreEventSelectionNotify( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnSelectionNotify( data, type, event );
- }
- return true;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////////////
-// Touch Callbacks
-/////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * Called when a touch down is received.
- */
-static bool EcoreEventMouseButtonDown( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnMouseButtonDown( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when a touch up is received.
- */
-static bool EcoreEventMouseButtonUp( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnMouseButtonUp( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when a touch motion is received.
- */
-static bool EcoreEventMouseButtonMove( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnMouseButtonMove( data, type, event );
- }
- return true;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////////////
-// Wheel Callbacks
-/////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * Called when a mouse wheel is received.
- */
-static bool EcoreEventMouseWheel( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnMouseWheel( data, type, event );
- }
- return true;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////////////
-// Key Callbacks
-/////////////////////////////////////////////////////////////////////////////////////////////////
-
-/**
- * Called when a key down is received.
- */
-static bool EcoreEventKeyDown( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnKeyDown( data, type, event );
- }
- return true;
-}
-
-/**
- * Called when a key up is received.
- */
-static bool EcoreEventKeyUp( void* data, int type, TWinEventInfo *event )
-{
- WindowBaseWin* windowBase = static_cast< WindowBaseWin* >( data );
- if( windowBase )
- {
- windowBase->OnKeyUp( data, type, event );
- }
- return true;
-}