Implememt GetColoursCount() in the generic wxPalette.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-23 09:54:11 +00:00
parent 84140dc956
commit d72f87f60b
2 changed files with 14 additions and 6 deletions

View File

@@ -80,11 +80,19 @@ bool wxPalette::operator != (const wxPalette& palette) const
return m_refData != palette.m_refData;
}
bool wxPalette::Ok(void) const
bool wxPalette::Ok() const
{
return (m_refData != NULL);
}
int wxPalette::GetColoursCount() const
{
if (m_refData)
return M_PALETTEDATA->m_count;
return 0;
}
bool wxPalette::Create(int n,
const unsigned char *red,
const unsigned char *green,