renaming because of conflicts with base Create::
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,7 +74,7 @@ public:
|
|||||||
void SetHCURSOR(WXHCURSOR cursor);
|
void SetHCURSOR(WXHCURSOR cursor);
|
||||||
inline WXHCURSOR GetHCURSOR() const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); }
|
inline WXHCURSOR GetHCURSOR() const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); }
|
||||||
private :
|
private :
|
||||||
void Create(const wxImage & image) ;
|
void CreateFromImage(const wxImage & image) ;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor);
|
extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor);
|
||||||
|
@@ -81,10 +81,10 @@ wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSE
|
|||||||
|
|
||||||
wxCursor::wxCursor( const wxImage &image )
|
wxCursor::wxCursor( const wxImage &image )
|
||||||
{
|
{
|
||||||
Create( image ) ;
|
CreateFromImage( image ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxCursor::Create(const wxImage & image)
|
void wxCursor::CreateFromImage(const wxImage & image)
|
||||||
{
|
{
|
||||||
m_refData = new wxCursorRefData;
|
m_refData = new wxCursorRefData;
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho
|
|||||||
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
|
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
|
||||||
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
|
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
|
||||||
delete m_refData ;
|
delete m_refData ;
|
||||||
Create(image) ;
|
CreateFromImage(image) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -81,10 +81,10 @@ wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSE
|
|||||||
|
|
||||||
wxCursor::wxCursor( const wxImage &image )
|
wxCursor::wxCursor( const wxImage &image )
|
||||||
{
|
{
|
||||||
Create( image ) ;
|
CreateFromImage( image ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxCursor::Create(const wxImage & image)
|
void wxCursor::CreateFromImage(const wxImage & image)
|
||||||
{
|
{
|
||||||
m_refData = new wxCursorRefData;
|
m_refData = new wxCursorRefData;
|
||||||
|
|
||||||
@@ -187,7 +187,7 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho
|
|||||||
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
|
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
|
||||||
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
|
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
|
||||||
delete m_refData ;
|
delete m_refData ;
|
||||||
Create(image) ;
|
CreateFromImage(image) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user