]>
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 wxHVScrolledWindow.
16 @todo rename this class to wxItemPosition or such, wxPosition is too generic
28 Construct a new wxPosition, setting the row and column to the
29 default value of (0, 0).
34 Construct a new wxPosition, setting the row and column to the
35 value of (@a row, @a col).
37 wxPosition(int row
, int col
);
40 A synonym for GetColumn().
45 Get the current row value.
47 int GetColumn() const;
50 Get the current row value.
55 A synonym for SetColumn().
57 void SetCol(int column
);
60 Set a new column value.
62 void SetColumn(int column
);
71 @name Miscellaneous operators
75 bool operator ==(const wxPosition
& p
) const;
76 bool operator !=(const wxPosition
& p
) const;
77 wxPosition
& operator +=(const wxPosition
& p
) const;
78 wxPosition
& operator -=(const wxPosition
& p
) const;
79 wxPosition
& operator +=(const wxSize
& s
) const;
80 wxPosition
& operator -=(const wxSize
& s
) const;
81 wxPosition
& operator +(const wxPosition
& p
) const;
82 wxPosition
& operator -(const wxPosition
& p
) const;
83 wxPosition
& operator +(const wxSize
& s
) const;
84 wxPosition
& operator -(const wxSize
& s
) const;