wxDC::GetSize() should work now in wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-10-30 16:43:37 +00:00
parent 188781dbbd
commit 376aa62a5d
12 changed files with 74 additions and 54 deletions

View File

@@ -69,12 +69,6 @@ void wxDC::DestroyClippingRegion()
// get DC capabilities
// ---------------------------------------------------------------------------
void wxDC::DoGetSize( int* width, int* height ) const
{
if (width) *width = m_maxX-m_minX;
if (height) *height = m_maxY-m_minY;
}
void wxDC::DoGetSizeMM( int* width, int* height ) const
{
int w = 0;

View File

@@ -393,6 +393,13 @@ void wxWindowDC::SetUpDC()
}
}
void wxWindowDC::DoGetSize( int* width, int* height ) const
{
wxCHECK_RET( m_owner, _T("GetSize() doesn't work without window") );
m_owner->GetSize(width, height);
}
void wxWindowDC::DoFloodFill( wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
const wxColour &WXUNUSED(col), int WXUNUSED(style) )
{

View File

@@ -101,3 +101,7 @@ bool wxScreenDC::EndDrawingOnTop()
return TRUE;
}
void wxScreenDC::DoGetSize(int *width, int *height) const
{
wxDisplaySize(width, height);
}