// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#ifndef __PALMOS__
+
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "imaglist.h"
#endif
bool wxGenericImageList::Create()
{
- return TRUE;
+ return true;
}
int wxGenericImageList::Add( const wxBitmap &bitmap )
{
wxList::compatibility_iterator node = m_images.Item( index );
- wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );
+ wxCHECK_MSG( node, false, wxT("wrong index in image list") );
wxBitmap* newBitmap = (bitmap.IsKindOf(CLASSINFO(wxIcon))) ?
#if defined(__VISAGECPP__)
m_images.Insert( next, newBitmap );
}
- return TRUE;
+ return true;
}
bool wxGenericImageList::Remove( int index )
{
wxList::compatibility_iterator node = m_images.Item( index );
- wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );
+ wxCHECK_MSG( node, false, wxT("wrong index in image list") );
delete node->GetData();
m_images.Erase( node );
- return TRUE;
+ return true;
}
bool wxGenericImageList::RemoveAll()
WX_CLEAR_LIST(wxList, m_images);
m_images.Clear();
- return TRUE;
+ return true;
}
bool wxGenericImageList::GetSize( int index, int &width, int &height ) const
wxList::compatibility_iterator node = m_images.Item( index );
- wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );
+ wxCHECK_MSG( node, false, wxT("wrong index in image list") );
wxBitmap *bm = (wxBitmap*)node->GetData();
width = bm->GetWidth();
height = bm->GetHeight();
- return TRUE;
+ return true;
}
bool wxGenericImageList::Draw( int index, wxDC &dc, int x, int y,
{
wxList::compatibility_iterator node = m_images.Item( index );
- wxCHECK_MSG( node, FALSE, wxT("wrong index in image list") );
+ wxCHECK_MSG( node, false, wxT("wrong index in image list") );
wxBitmap *bm = (wxBitmap*)node->GetData();
else
dc.DrawBitmap( *bm, x, y, (flags & wxIMAGELIST_DRAW_TRANSPARENT) > 0 );
- return TRUE;
+ return true;
}
-
+#endif // __PALMOS__