return ret;
}
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_AddFrameRenderedCallback( void* nuiWindow, void* nuiCallback, int nuiFrameId )
+{
+ Dali::Window* window = (Dali::Window*)nuiWindow;
+ void (*callback)(int32_t) = (void (*)(int32_t))nuiCallback;
+
+ if( !window || !callback )
+ {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null", 0);
+ return;
+ }
+
+ try
+ {
+ Dali::DevelWindow::AddFrameRenderedCallback( *window, std::unique_ptr< Dali::CallbackBase >( Dali::MakeCallback( callback ) ), nuiFrameId );
+ }
+ catch( std::out_of_range& e )
+ {
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+ return;
+ }
+ catch( std::exception& e )
+ {
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+ return;
+ }
+ catch( Dali::DaliException e )
+ {
+ SWIG_CSharpException(SWIG_UnknownError, e.condition);
+ return;
+ }
+ catch(...)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+ return;
+ }
+}
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_AddFramePresentedCallback( void* nuiWindow, void* nuiCallback, int nuiFrameId )
+{
+ Dali::Window* window = (Dali::Window*)nuiWindow;
+ void (*callback)(int32_t) = (void (*)(int32_t))nuiCallback;
+
+ if( !window || !callback )
+ {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null", 0);
+ return;
+ }
+
+ try
+ {
+ Dali::DevelWindow::AddFramePresentedCallback( *window, std::unique_ptr< Dali::CallbackBase >( Dali::MakeCallback( callback ) ), nuiFrameId );
+ }
+ catch( std::out_of_range& e )
+ {
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+ return;
+ }
+ catch( std::exception& e )
+ {
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+ return;
+ }
+ catch( Dali::DaliException e )
+ {
+ SWIG_CSharpException(SWIG_UnknownError, e.condition);
+ return;
+ }
+ catch(...)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+ return;
+ }
+}
+
#ifdef __cplusplus
}
#endif