]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/position.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPosition
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 This class represents the position of an item in any kind of grid of rows and
13 columns such as wxGridBagSizer, or wxHVScrolledWindow.
15 @todo rename this class to wxItemPosition or such, wxPosition is too generic
27 Construct a new wxPosition, setting the row and column to the
28 default value of (0, 0).
33 Construct a new wxPosition, setting the row and column to the
34 value of (@a row, @a col).
36 wxPosition(int row
, int col
);
39 A synonym for GetColumn().
44 Get the current row value.
46 int GetColumn() const;
49 Get the current row value.
54 A synonym for SetColumn().
56 void SetCol(int column
);
59 Set a new column value.
61 void SetColumn(int column
);
70 @name Miscellaneous operators
74 bool operator ==(const wxPosition
& p
) const;
75 bool operator !=(const wxPosition
& p
) const;
76 wxPosition
& operator +=(const wxPosition
& p
) const;
77 wxPosition
& operator -=(const wxPosition
& p
) const;
78 wxPosition
& operator +=(const wxSize
& s
) const;
79 wxPosition
& operator -=(const wxSize
& s
) const;
80 wxPosition
& operator +(const wxPosition
& p
) const;
81 wxPosition
& operator -(const wxPosition
& p
) const;
82 wxPosition
& operator +(const wxSize
& s
) const;
83 wxPosition
& operator -(const wxSize
& s
) const;