wxCursor(const wxString& name, long flags = 0,
int hotSpotX = 0, int hotSpotY = 0);
- wxCursor(int cursor_type);
+ wxCursor(wxStockCursor cursor_type);
virtual ~wxCursor();
// FIXME: operator==() is wrong!
{
public:
wxCursor() {}
- wxCursor(int cursorId);
+ wxCursor(wxStockCursor cursorId);
wxCursor(const char bits[], int width, int height,
int hotSpotX=-1, int hotSpotY=-1,
const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
{
public:
wxCursor();
- wxCursor( int cursorId );
+ wxCursor( wxStockCursor cursorId );
#if wxUSE_IMAGE
wxCursor( const wxImage & image );
#endif
{
public:
wxCursor();
- wxCursor( int cursorId );
+ wxCursor( wxStockCursor cursorId );
#if wxUSE_IMAGE
wxCursor( const wxImage & image );
#endif
public:
wxCursor();
- wxCursor(int cursorId);
+ wxCursor(wxStockCursor cursorId);
wxCursor(const char bits[], int width, int height,
int hotSpotX=-1, int hotSpotY=-1,
const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0);
wxCursor(const wxString& name,
long flags = wxBITMAP_TYPE_CUR_RESOURCE,
int hotSpotX = 0, int hotSpotY = 0);
- wxCursor(int idCursor);
+ wxCursor(wxStockCursor idCursor);
virtual ~wxCursor();
// implementation only
,int nHotSpotX = 0
,int nHotSpotY = 0
);
- wxCursor(int nCursorType);
+ wxCursor(wxStockCursor nCursorType);
inline ~wxCursor() { }
inline WXHCURSOR GetHCURSOR(void) const { return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0); }
wxBitmapType flags = wxBITMAP_TYPE_MACCURSOR_RESOURCE,
int hotSpotX = 0, int hotSpotY = 0);
- wxCursor(int cursor_type);
+ wxCursor(wxStockCursor cursor_type);
virtual ~wxCursor();
bool CreateFromXpm(const char* const* bits);
wxCursor(const wxString& name,
long flags = wxBITMAP_TYPE_CUR_RESOURCE,
int hotSpotX = 0, int hotSpotY = 0);
- wxCursor(int idCursor);
+ wxCursor(wxStockCursor idCursor);
virtual ~wxCursor();
// implementation only
{
public:
wxCursor();
- wxCursor( int cursorId );
+ wxCursor( wxStockCursor cursorId );
#if wxUSE_IMAGE
wxCursor( const wxImage & image );
#endif
IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxObject)
-wxCursor::wxCursor(int cursorId)
+wxCursor::wxCursor(wxStockCursor cursorId)
{
#warning "FIXME -- implement the cursor as bitmaps (that's what DFB uses)"
}
{
}
-wxCursor::wxCursor( int cursorId )
+wxCursor::wxCursor( wxStockCursor cursorId )
{
m_refData = new wxCursorRefData();
}
-wxCursor::wxCursor( int cursorId )
+wxCursor::wxCursor( wxStockCursor cursorId )
{
m_refData = new wxCursorRefData();
{
}
-wxCursor::wxCursor(int cursorId)
+wxCursor::wxCursor(wxStockCursor cursorId)
{
if ( !gs_cursorsHash )
gs_cursorsHash = new wxCursorsHash;
}
// Cursors by stock number
-wxCursor::wxCursor(int idCursor)
+wxCursor::wxCursor(wxStockCursor idCursor)
{
// all wxWidgets standard cursors
static const struct StdCursor
} // end of wxCursor::wxCursor
// Cursors by stock number
-wxCursor::wxCursor(int nCursorType)
+wxCursor::wxCursor(wxStockCursor nCursorType)
{
wxCursorRefData* pRefData = new wxCursorRefData;
CGImageRef cgimage = wxMacCreateCGImageFromBitmap(bmp);
if ( cgimage )
{
- M_CURSORDATA->m_hCursor = wxMacCocoaCreateCursorFromCGImage( cgimage, hotSpotX, hotSpotY );
+ M_CURSORDATA->m_hCursor = wxMacCocoaCreateCursorFromCGImage( cgimage, hotSpotX, hotSpotY );
CFRelease( cgimage );
}
#elif wxOSX_USE_CARBON
}
// Cursors by stock number
-wxCursor::wxCursor(int cursor_type)
+wxCursor::wxCursor(wxStockCursor cursor_type)
{
m_refData = new wxCursorRefData;
#if wxOSX_USE_COCOA
}
// Cursors by stock number
-wxCursor::wxCursor(int idCursor)
+wxCursor::wxCursor(wxStockCursor idCursor)
{
}
}
void Window::SetCursor(Cursor curs) {
- int cursorId;
+ wxStockCursor cursorId;
switch (curs) {
case cursorText:
cursorId = wxCURSOR_ARROW;
break;
}
-#ifdef __WXMOTIF__
- wxCursor wc = wxStockCursor(cursorId) ;
-#else
- wxCursor wc = wxCursor(cursorId) ;
-#endif
- if(curs != cursorLast)
- {
- GETWIN(id)->SetCursor(wc);
- cursorLast = curs;
- }
+
+ wxCursor wc = wxCursor(cursorId);
+ if(curs != cursorLast)
+ {
+ GETWIN(id)->SetCursor(wc);
+ cursorLast = curs;
+ }
}
}
-wxCursor::wxCursor( int cursorId )
+wxCursor::wxCursor( wxStockCursor cursorId )
{
m_refData = new wxCursorRefData();