wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
long GetCompareFuncData() { return m_compareFuncData; };
+
+ // public overrides needed for pimpl approach
+ virtual bool SetFont(const wxFont& font);
+ virtual bool SetForegroundColour(const wxColour& colour);
+ virtual bool SetBackgroundColour(const wxColour& colour);
+
protected:
- // overrides needed for pimpl approach
+ // protected overrides needed for pimpl approach
virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
+ int width, int height,
+ int sizeFlags = wxSIZE_AUTO);
// common part of all ctors
void Init();
m_genericImpl->SetSize(x, y, width, height, sizeFlags);
}
+bool wxListCtrl::SetFont(const wxFont& font)
+{
+ bool rv;
+ rv = wxControl::SetFont(font);
+ if (m_genericImpl)
+ rv = m_genericImpl->SetFont(font);
+ return rv;
+}
+
+bool wxListCtrl::SetForegroundColour(const wxColour& colour)
+{
+ bool rv;
+ rv = wxControl::SetForegroundColour(colour);
+ if (m_genericImpl)
+ rv = m_genericImpl->SetForegroundColour(colour);
+ return rv;
+}
+
+bool wxListCtrl::SetBackgroundColour(const wxColour& colour)
+{
+ bool rv;
+ rv = wxControl::SetBackgroundColour(colour);
+ if (m_genericImpl)
+ rv = m_genericImpl->SetBackgroundColour(colour);
+ return rv;
+}
+
// ----------------------------------------------------------------------------
// accessors
// ----------------------------------------------------------------------------