provide backward-compat wxCursor(int) ctor; remove empty stubs of XBM ctor from all ports except gtk,motif; make all ports emit wxLogError on invalid bitmap types; implement wxCursor(const wxString&, ...) ctor on GTK (not tested yet)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,15 +53,6 @@ wxCursor::wxCursor(void)
|
||||
{
|
||||
}
|
||||
|
||||
wxCursor::wxCursor(const char WXUNUSED(bits)[],
|
||||
int WXUNUSED(width),
|
||||
int WXUNUSED(height),
|
||||
int WXUNUSED(hotSpotX),
|
||||
int WXUNUSED(hotSpotY),
|
||||
const char WXUNUSED(maskBits)[])
|
||||
{
|
||||
}
|
||||
|
||||
wxCursor::wxCursor(const wxImage& rImage)
|
||||
{
|
||||
wxImage vImage32 = rImage.Scale(32,32);
|
||||
@@ -94,7 +85,7 @@ wxCursor::wxCursor(const wxImage& rImage)
|
||||
} // end of wxCursor::wxCursor
|
||||
|
||||
wxCursor::wxCursor( const wxString& WXUNUSED(rsCursorFile),
|
||||
long lFlags,
|
||||
wxBitmapType type,
|
||||
int WXUNUSED(nHotSpotX),
|
||||
int WXUNUSED(nHotSpotY) )
|
||||
{
|
||||
@@ -103,17 +94,19 @@ wxCursor::wxCursor( const wxString& WXUNUSED(rsCursorFile),
|
||||
pRefData = new wxCursorRefData;
|
||||
m_refData = pRefData;
|
||||
pRefData->m_bDestroyCursor = false;
|
||||
if (lFlags == wxBITMAP_TYPE_CUR_RESOURCE)
|
||||
if (type == wxBITMAP_TYPE_CUR_RESOURCE)
|
||||
{
|
||||
pRefData->m_hCursor = (WXHCURSOR) ::WinLoadPointer( HWND_DESKTOP
|
||||
,0
|
||||
,(ULONG)lFlags // if OS/2 this should be the resource Id
|
||||
,(ULONG)type // if OS/2 this should be the resource Id
|
||||
);
|
||||
}
|
||||
else
|
||||
wxLogError("Invalid cursor bitmap type '%d'", type);
|
||||
} // end of wxCursor::wxCursor
|
||||
|
||||
// Cursors by stock number
|
||||
wxCursor::wxCursor(wxStockCursor nCursorType)
|
||||
void wxCursor::InitFromStock(wxStockCursor nCursorType)
|
||||
{
|
||||
wxCursorRefData* pRefData = new wxCursorRefData;
|
||||
|
||||
|
Reference in New Issue
Block a user