]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/bookctrl.h
added wx/font.h include to fix PCH-less build
[wxWidgets.git] / include / wx / bookctrl.h
index 71d1a392836def49c43b0f95dea717d6f2133e1d..5d09ad2d9a06acce8233943b80abe5f812d4f371 100644 (file)
@@ -131,6 +131,10 @@ public:
     // returns true if we have wxCHB_TOP or wxCHB_BOTTOM style
     bool IsVertical() const { return HasFlag(wxBK_BOTTOM | wxBK_TOP); }
 
+    // set/get option to shrink to fit current page
+    void SetFitToCurrentPage(bool fit) { m_fitToCurrentPage = fit; }
+    bool GetFitToCurrentPage() const { return m_fitToCurrentPage; }
+
     // operations
     // ----------
 
@@ -229,6 +233,9 @@ protected:
     // controller buddy if available, NULL otherwise (usually for native book controls like wxNotebook)
     wxControl *m_bookctrl;
 
+    // Whether to shrink to fit current page
+    bool m_fitToCurrentPage;
+
 private:
 
     // common part of all ctors