GetSize() and GetClientSize() changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -67,22 +67,24 @@ public:
|
||||
m_alignment = wxLAYOUT_TOP;
|
||||
m_orientation = wxLAYOUT_HORIZONTAL;
|
||||
}
|
||||
// Read by the app
|
||||
inline void SetRequestedLength(int length) { m_requestedLength = length; }
|
||||
inline int GetRequestedLength() const { return m_requestedLength; }
|
||||
|
||||
inline void SetFlags(int flags) { m_flags = flags; }
|
||||
inline int GetFlags() const { return m_flags; }
|
||||
// Read by the app
|
||||
void SetRequestedLength(int length) { m_requestedLength = length; }
|
||||
int GetRequestedLength() const { return m_requestedLength; }
|
||||
|
||||
// Set by the app
|
||||
inline void SetSize(const wxSize& size) { m_size = size; }
|
||||
inline wxSize GetSize() const { return m_size; }
|
||||
void SetFlags(int flags) { m_flags = flags; }
|
||||
int GetFlags() const { return m_flags; }
|
||||
|
||||
inline void SetOrientation(wxLayoutOrientation orient) { m_orientation = orient; }
|
||||
inline wxLayoutOrientation GetOrientation() const { return m_orientation; }
|
||||
// Set by the app
|
||||
void SetSize(const wxSize& size) { m_size = size; }
|
||||
wxSize GetSize() const { return m_size; }
|
||||
|
||||
void SetOrientation(wxLayoutOrientation orient) { m_orientation = orient; }
|
||||
wxLayoutOrientation GetOrientation() const { return m_orientation; }
|
||||
|
||||
void SetAlignment(wxLayoutAlignment align) { m_alignment = align; }
|
||||
wxLayoutAlignment GetAlignment() const { return m_alignment; }
|
||||
|
||||
inline void SetAlignment(wxLayoutAlignment align) { m_alignment = align; }
|
||||
inline wxLayoutAlignment GetAlignment() const { return m_alignment; }
|
||||
protected:
|
||||
int m_flags;
|
||||
int m_requestedLength;
|
||||
|
@@ -37,30 +37,30 @@ public:
|
||||
~wxTabControl(void);
|
||||
|
||||
virtual void OnDraw(wxDC& dc, bool lastInRow);
|
||||
inline void SetLabel(const wxString& str) { m_controlLabel = str; }
|
||||
inline wxString GetLabel(void) const { return m_controlLabel; }
|
||||
void SetLabel(const wxString& str) { m_controlLabel = str; }
|
||||
wxString GetLabel(void) const { return m_controlLabel; }
|
||||
|
||||
inline void SetFont(const wxFont& f) { m_labelFont = f; }
|
||||
inline wxFont *GetFont(void) const { return (wxFont*) & m_labelFont; }
|
||||
void SetFont(const wxFont& f) { m_labelFont = f; }
|
||||
wxFont *GetFont(void) const { return (wxFont*) & m_labelFont; }
|
||||
|
||||
inline void SetSelected(bool sel) { m_isSelected = sel; }
|
||||
inline bool IsSelected(void) const { return m_isSelected; }
|
||||
void SetSelected(bool sel) { m_isSelected = sel; }
|
||||
bool IsSelected(void) const { return m_isSelected; }
|
||||
|
||||
inline void SetPosition(int x, int y) { m_offsetX = x; m_offsetY = y; }
|
||||
inline void SetSize(int x, int y) { m_width = x; m_height = y; }
|
||||
void SetPosition(int x, int y) { m_offsetX = x; m_offsetY = y; }
|
||||
void SetSize(int x, int y) { m_width = x; m_height = y; }
|
||||
|
||||
inline void SetRowPosition(int r) { m_rowPosition = r; }
|
||||
inline int GetRowPosition() const { return m_rowPosition; }
|
||||
inline void SetColPosition(int c) { m_colPosition = c; }
|
||||
inline int GetColPosition() const { return m_colPosition; }
|
||||
void SetRowPosition(int r) { m_rowPosition = r; }
|
||||
int GetRowPosition() const { return m_rowPosition; }
|
||||
void SetColPosition(int c) { m_colPosition = c; }
|
||||
int GetColPosition() const { return m_colPosition; }
|
||||
|
||||
inline int GetX(void) const { return m_offsetX; }
|
||||
inline int GetY(void) const { return m_offsetY; }
|
||||
inline int GetWidth(void) const { return m_width; }
|
||||
inline int GetHeight(void) const { return m_height; }
|
||||
int GetX(void) const { return m_offsetX; }
|
||||
int GetY(void) const { return m_offsetY; }
|
||||
int GetWidth(void) const { return m_width; }
|
||||
int GetHeight(void) const { return m_height; }
|
||||
|
||||
inline int GetId(void) const { return m_id; }
|
||||
inline void SetId(int i) { m_id = i; }
|
||||
int GetId(void) const { return m_id; }
|
||||
void SetId(int i) { m_id = i; }
|
||||
|
||||
virtual bool HitTest(int x, int y) const ;
|
||||
|
||||
|
@@ -207,7 +207,7 @@ public:
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxString& name = wxTreeCtrlNameStr)
|
||||
{
|
||||
Create(parent, id, pos, size, style, validator, name);
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxString& name = wxTreeCtrlNameStr);
|
||||
|
||||
// accessors
|
||||
@@ -409,7 +409,7 @@ public:
|
||||
wxTreeItemId HitTest(const wxPoint& point)
|
||||
{ int dummy; return HitTest(point, dummy); }
|
||||
wxTreeItemId HitTest(const wxPoint& point, int& flags);
|
||||
|
||||
|
||||
// start editing the item label: this (temporarily) replaces the item
|
||||
// with a one line edit control. The item will be selected if it hadn't
|
||||
// been before. textCtrlClass parameter allows you to create an edit
|
||||
|
Reference in New Issue
Block a user