const wxString& name ) ;
static WXWindow MacGetWindowInUpdate() { return s_macWindowInUpdate ; }
virtual void MacGetPortParams(WXPOINTPTR localOrigin, WXRECTPTR clipRect, WXWindow *window , wxWindowMac** rootwin ) ;
- virtual void Clear() ;
+ virtual void ClearBackground() ;
virtual WXWidget MacGetContainerForEmbedding() ;
WXWindow MacGetWindowRef() { return m_macWindow ; }
virtual void MacActivate( long timestamp , bool inIsActivating ) ;
{
case kEventTextInputUnicodeForKeyEvent :
// this is only called when no default handler has jumped in, eg a wxControl on a floater window does not
- // get its own kEventTextInputUnicodeForKeyEvent, so we route back the
+ // get its own kEventTextInputUnicodeForKeyEvent, so we route back the
wxControl* control = wxDynamicCast( focus , wxControl ) ;
if ( control )
{
GetEventParameter( event, kEventParamCurrentBounds, typeQDRectangle, NULL,
sizeof( newContentRect ), NULL, &newContentRect );
-
+
wxRect contentRect(newContentRect.left , newContentRect.top ,
newContentRect.right - newContentRect.left ,
newContentRect.bottom - newContentRect.top) ;
-
+
bool handled = false ;
- if ((attributes & kWindowBoundsChangeSizeChanged) != 0)
+ if ((attributes & kWindowBoundsChangeSizeChanged) != 0)
{
wxSizeEvent event(contentRect , toplevelWindow->GetId());
event.SetEventObject(toplevelWindow);
*rootwin = this ;
}
-void wxTopLevelWindowMac::Clear()
+void wxTopLevelWindowMac::ClearBackground()
{
- wxWindow::Clear() ;
+ wxWindow::ClearBackground() ;
}
WXWidget wxTopLevelWindowMac::MacGetContainerForEmbedding()
DisposeRgn( diffRgn );
if ( visRgn )
DisposeRgn( visRgn ) ;
-
+
EndUpdate( (WindowRef)m_macWindow ) ;
SetEmptyRgn( (RgnHandle) m_macNoEraseUpdateRgn ) ;
m_macNeedsErasing = false ;
{
case kEventTextInputUnicodeForKeyEvent :
// this is only called when no default handler has jumped in, eg a wxControl on a floater window does not
- // get its own kEventTextInputUnicodeForKeyEvent, so we route back the
+ // get its own kEventTextInputUnicodeForKeyEvent, so we route back the
wxControl* control = wxDynamicCast( focus , wxControl ) ;
if ( control )
{
GetEventParameter( event, kEventParamCurrentBounds, typeQDRectangle, NULL,
sizeof( newContentRect ), NULL, &newContentRect );
-
+
wxRect contentRect(newContentRect.left , newContentRect.top ,
newContentRect.right - newContentRect.left ,
newContentRect.bottom - newContentRect.top) ;
-
+
bool handled = false ;
- if ((attributes & kWindowBoundsChangeSizeChanged) != 0)
+ if ((attributes & kWindowBoundsChangeSizeChanged) != 0)
{
wxSizeEvent event(contentRect , toplevelWindow->GetId());
event.SetEventObject(toplevelWindow);
*rootwin = this ;
}
-void wxTopLevelWindowMac::Clear()
+void wxTopLevelWindowMac::ClearBackground()
{
- wxWindow::Clear() ;
+ wxWindow::ClearBackground() ;
}
WXWidget wxTopLevelWindowMac::MacGetContainerForEmbedding()
DisposeRgn( diffRgn );
if ( visRgn )
DisposeRgn( visRgn ) ;
-
+
EndUpdate( (WindowRef)m_macWindow ) ;
SetEmptyRgn( (RgnHandle) m_macNoEraseUpdateRgn ) ;
m_macNeedsErasing = false ;