4 #define DEC_V_CBACK_BOOL__WXMOUSEEVENT( METHOD ) \
5 bool METHOD( wxMouseEvent& event )
7 #define DEF_V_CBACK_BOOL__WXMOUSEEVENT( CLASS, BASE, METHOD ) \
8 bool CLASS::METHOD( wxMouseEvent& param1 ) \
11 if( wxPliFCback( aTHX_ &m_callback, #METHOD ) ) \
13 wxAutoSV evt( aTHX_ wxPli_object_2_sv( aTHX_ newSViv( 0 ), ¶m1 ));\
14 wxAutoSV ret( aTHX_ wxPliCCback( aTHX_ &m_callback, G_SCALAR, \
16 sv_setiv( SvRV( evt ), 0 ); \
17 return SvTRUE( ret ); \
19 return BASE::METHOD( param1 ); \
22 class wxPlPopupTransientWindow : public wxPopupTransientWindow
24 WXPLI_DECLARE_DYNAMIC_CLASS( wxPlPopupTransientWindow );
25 WXPLI_DECLARE_V_CBACK();
27 WXPLI_DEFAULT_CONSTRUCTOR( wxPlPopupTransientWindow,
28 "Wx::PlPopupTransientWindow", true );
29 WXPLI_CONSTRUCTOR_2( wxPlPopupTransientWindow,
30 "Wx::PlPopupTransientWindow", true,
33 DEC_V_CBACK_VOID__WXWINDOW( Popup );
34 DEC_V_CBACK_VOID__VOID( Dismiss );
35 DEC_V_CBACK_BOOL__VOID( CanDismiss );
36 DEC_V_CBACK_BOOL__WXMOUSEEVENT( ProcessLeftDown );
37 DEC_V_CBACK_BOOL__BOOL( Show );
40 DEF_V_CBACK_VOID__WXWINDOW( wxPlPopupTransientWindow,
41 wxPopupTransientWindow, Popup );
42 DEF_V_CBACK_VOID__VOID( wxPlPopupTransientWindow,
43 wxPopupTransientWindow, Dismiss );
44 DEF_V_CBACK_BOOL__VOID( wxPlPopupTransientWindow,
45 wxPopupTransientWindow, CanDismiss );
46 DEF_V_CBACK_BOOL__WXMOUSEEVENT( wxPlPopupTransientWindow,
47 wxPopupTransientWindow, ProcessLeftDown );
48 DEF_V_CBACK_BOOL__BOOL( wxPlPopupTransientWindow,
49 wxPopupTransientWindow, Show );
51 WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPlPopupTransientWindow,
52 wxPopupTransientWindow );