moving GUI function to proper place
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
facd676487
commit
3083eb85df
@ -533,15 +533,6 @@ bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
|
|||||||
// wxMac Specific utility functions
|
// wxMac Specific utility functions
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint& pos , const wxSize &size )
|
|
||||||
{
|
|
||||||
int x ,y , w ,h ;
|
|
||||||
|
|
||||||
window->MacGetBoundsForControl( pos , size , x , y, w, h ) ;
|
|
||||||
Rect bounds = { y , x , y+h , x+w };
|
|
||||||
return bounds ;
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxMacStringToPascal( const wxString&from , StringPtr to )
|
void wxMacStringToPascal( const wxString&from , StringPtr to )
|
||||||
{
|
{
|
||||||
wxCharBuffer buf = from.mb_str( wxConvLocal ) ;
|
wxCharBuffer buf = from.mb_str( wxConvLocal ) ;
|
||||||
|
@ -2611,4 +2611,13 @@ void wxWindowMac::MacHandleControlClick( WXWidget control , wxInt16 controlpart
|
|||||||
wxASSERT_MSG( (ControlRef) m_macControl != NULL , wxT("No valid mac control") ) ;
|
wxASSERT_MSG( (ControlRef) m_macControl != NULL , wxT("No valid mac control") ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint& pos , const wxSize &size )
|
||||||
|
{
|
||||||
|
int x ,y , w ,h ;
|
||||||
|
|
||||||
|
window->MacGetBoundsForControl( pos , size , x , y, w, h ) ;
|
||||||
|
Rect bounds = { y , x , y+h , x+w };
|
||||||
|
return bounds ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user