]>
git.saurik.com Git - wxWidgets.git/blob - interface/position.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPosition
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This class represents the position of an item in any kind of grid of rows and
14 columns such as wxGridBagSizer, or
27 Construct a new wxPosition, optionally setting the row and column. The
28 default value is (0, 0).
31 wxPosition(int row
, int col
);
35 A synonym for GetColumn().
40 Get the current row value.
42 int GetColumn() const;
45 Get the current row value.
53 bool operator ==(const wxPosition
& p
) const;
54 const bool operator !=(const wxPosition
& p
) const;
55 const wxPosition
& operator +=(const wxPosition
& p
) const;
56 wxPosition
operator -=(const wxPosition
& p
) const;
57 wxPosition
operator +=(const wxSize
& s
) const;
58 wxPosition
operator -=(const wxSize
& s
) const;
59 wxPosition
operator +(const wxPosition
& p
) const;
60 const wxPosition
operator -(const wxPosition
& p
) const;
61 const wxPosition
operator +(const wxSize
& s
) const;
62 const wxPosition
operator -(const wxSize
& s
) const;
66 A synonym for SetColumn().
68 void SetCol(int column
);
71 Set a new column value.
73 void SetColumn(int column
);