virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const = 0;
// get/set size of area between book control area and page area
- inline unsigned int GetInternalBorder() const
+ inline size_t GetInternalBorder() const
{
return m_internalBorder;
}
- void SetInternalBorder(unsigned int internalBorder)
+ void SetInternalBorder(size_t internalBorder)
{
m_internalBorder = internalBorder;
}
bool IsVertical() const { return HasFlag(wxBK_BOTTOM | wxBK_TOP); }
// set/get option to shrink to fit current page
- void SetShrinkMode(bool shrink) { m_shrinkToFit = shrink; }
- bool GetShrinkMode() const { return m_shrinkToFit; }
+ void SetFitToCurrentPage(bool fit) { m_fitToCurrentPage = fit; }
+ bool GetFitToCurrentPage() const { return m_fitToCurrentPage; }
// operations
// ----------
wxControl *m_bookctrl;
// Whether to shrink to fit current page
- bool m_shrinkToFit;
+ bool m_fitToCurrentPage;
private:
void Init();
// internal border
- unsigned int m_internalBorder;
+ size_t m_internalBorder;
DECLARE_ABSTRACT_CLASS(wxBookCtrlBase)
DECLARE_NO_COPY_CLASS(wxBookCtrlBase)