]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/paletteg.cpp
render scrollbar's thumb as stippled bar to distinguish it from controls
[wxWidgets.git] / src / generic / paletteg.cpp
index 741a78893abc1b74e5434828d4e672987fe96753..5d21a8b33053323b28022043405d9622055e921f 100644 (file)
@@ -80,11 +80,19 @@ bool wxPalette::operator != (const wxPalette& palette) const
     return m_refData != palette.m_refData;
 }
 
     return m_refData != palette.m_refData;
 }
 
-bool wxPalette::Ok(void) const
+bool wxPalette::IsOk() const
 {
     return (m_refData != NULL);
 }
 
 {
     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,
 bool wxPalette::Create(int n,
                        const unsigned char *red,
                        const unsigned char *green,