The Image sample now does anti-aliasing, oh well.
Made internal use of OnIdle - er - internal. (I.e. it doesn't use EVT_IDLE anymore and thus cannot be overridden by users) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -302,6 +302,9 @@ bool wxApp::SendIdleEvents( wxWindow* win )
|
||||
|
||||
wxIdleEvent event;
|
||||
event.SetEventObject(win);
|
||||
|
||||
win->OnInternalIdle();
|
||||
|
||||
win->ProcessEvent(event);
|
||||
|
||||
if (event.MoreRequested())
|
||||
|
@@ -101,7 +101,6 @@ static gint gtk_frame_configure_callback( GtkWidget *WXUNUSED(widget), GdkEventC
|
||||
BEGIN_EVENT_TABLE(wxFrame, wxWindow)
|
||||
EVT_SIZE(wxFrame::OnSize)
|
||||
EVT_CLOSE(wxFrame::OnCloseWindow)
|
||||
EVT_IDLE(wxFrame::OnIdle)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxFrame,wxWindow)
|
||||
@@ -457,7 +456,7 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), int width, int height
|
||||
m_resizing = FALSE;
|
||||
}
|
||||
|
||||
void wxFrame::OnIdle(wxIdleEvent& WXUNUSED(event) )
|
||||
void wxFrame::OnInternalIdle()
|
||||
{
|
||||
if (!m_sizeSet)
|
||||
GtkOnSize( m_x, m_y, m_width, m_height );
|
||||
|
@@ -1257,7 +1257,6 @@ BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
|
||||
EVT_SIZE(wxWindow::OnSize)
|
||||
EVT_SYS_COLOUR_CHANGED(wxWindow::OnSysColourChanged)
|
||||
EVT_INIT_DIALOG(wxWindow::OnInitDialog)
|
||||
EVT_IDLE(wxWindow::OnIdle)
|
||||
EVT_KEY_DOWN(wxWindow::OnKeyDown)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
@@ -1791,6 +1790,11 @@ void wxWindow::SetSize( int x, int y, int width, int height, int sizeFlags )
|
||||
m_resizing = FALSE;
|
||||
}
|
||||
|
||||
void wxWindow::OnInternalIdle()
|
||||
{
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
||||
void wxWindow::SetSize( int width, int height )
|
||||
{
|
||||
SetSize( -1, -1, width, height, wxSIZE_USE_EXISTING );
|
||||
@@ -3449,7 +3453,3 @@ void wxWindow::GetPositionConstraint(int *x, int *y) const
|
||||
GetPosition(x, y);
|
||||
}
|
||||
|
||||
void wxWindow::OnIdle(wxIdleEvent& WXUNUSED(event) )
|
||||
{
|
||||
UpdateWindowUI();
|
||||
}
|
||||
|
Reference in New Issue
Block a user