Set/get for internal border in book based controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -118,6 +118,15 @@ public:
|
||||
// calculate the size of the control from the size of its page
|
||||
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
|
||||
{
|
||||
return m_internalBorder;
|
||||
}
|
||||
void SetInternalBorder(unsigned int internalBorder)
|
||||
{
|
||||
m_internalBorder = internalBorder;
|
||||
}
|
||||
|
||||
// operations
|
||||
// ----------
|
||||
@@ -192,13 +201,9 @@ protected:
|
||||
// helper: get the next page wrapping if we reached the end
|
||||
int GetNextPage(bool forward) const;
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// Always rely on GetBestSize, which will look at all the pages
|
||||
virtual void SetInitialBestSize(const wxSize& WXUNUSED(size)) { }
|
||||
|
||||
|
||||
// the array of all pages of this control
|
||||
wxArrayPages m_pages;
|
||||
|
||||
@@ -208,6 +213,13 @@ protected:
|
||||
// true if we must delete m_imageList
|
||||
bool m_ownsImageList;
|
||||
|
||||
private:
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// internal border
|
||||
unsigned int m_internalBorder;
|
||||
|
||||
DECLARE_NO_COPY_CLASS(wxBookCtrlBase)
|
||||
};
|
||||
|
Reference in New Issue
Block a user