git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18765
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void SetHCURSOR(WXHCURSOR cursor);
inline WXHCURSOR GetHCURSOR() const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); }
private :
void SetHCURSOR(WXHCURSOR cursor);
inline WXHCURSOR GetHCURSOR() const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); }
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);
wxCursor::wxCursor( const wxImage &image )
{
wxCursor::wxCursor( const wxImage &image )
{
+ CreateFromImage( image ) ;
-void wxCursor::Create(const wxImage & image)
+void wxCursor::CreateFromImage(const wxImage & image)
{
m_refData = new wxCursorRefData;
{
m_refData = new wxCursorRefData;
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
delete m_refData ;
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
delete m_refData ;
+ CreateFromImage(image) ;
wxCursor::wxCursor( const wxImage &image )
{
wxCursor::wxCursor( const wxImage &image )
{
+ CreateFromImage( image ) ;
-void wxCursor::Create(const wxImage & image)
+void wxCursor::CreateFromImage(const wxImage & image)
{
m_refData = new wxCursorRefData;
{
m_refData = new wxCursorRefData;
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
delete m_refData ;
image.SetOption(wxCUR_HOTSPOT_X,hotSpotX ) ;
image.SetOption(wxCUR_HOTSPOT_Y,hotSpotY ) ;
delete m_refData ;
+ CreateFromImage(image) ;