wxCursorRefData::wxCursorRefData()
{
- m_cursor = (MGLCursor*) NULL;
+ m_cursor = NULL;
}
wxCursorRefData::~wxCursorRefData()
{
}
-wxCursor::wxCursor(int cursorId)
+void wxCursor::InitFromStock(wxStockCursor cursorId)
{
if ( !gs_cursorsHash )
gs_cursorsHash = new wxCursorsHash;
if ( gs_cursorsHash->find(cursorId) != gs_cursorsHash->end() )
{
- wxLogTrace(_T("mglcursor"), _T("cursor id %i fetched from cache"), cursorId);
+ wxLogTrace(wxT("mglcursor"), wxT("cursor id %i fetched from cache"), cursorId);
*this = (*gs_cursorsHash)[cursorId];
return;
}
else
{
(*gs_cursorsHash)[cursorId] = *this;
- wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
+ wxLogTrace(wxT("mglcursor"), wxT("cursor id %i added to cache (%s)"),
cursorId, cursorname);
}
}
-wxCursor::wxCursor(const char WXUNUSED(bits)[],
- int WXUNUSED(width),
- int WXUNUSED(height),
- int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY),
- const char WXUNUSED(maskBits)[],
- wxColour * WXUNUSED(fg), wxColour * WXUNUSED(bg) )
-{
- //FIXME_MGL
-}
-
wxCursor::wxCursor(const wxString& cursor_file,
- long flags,
+ wxBitmapType type,
int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY))
{
- if ( flags == wxBITMAP_TYPE_CUR || flags == wxBITMAP_TYPE_CUR_RESOURCE )
+ if ( type == wxBITMAP_TYPE_CUR || type == wxBITMAP_TYPE_CUR_RESOURCE )
{
m_refData = new wxCursorRefData();
M_CURSORDATA->m_cursor = new MGLCursor(cursor_file.mb_str());