]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/position.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPosition
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
11 This class represents the position of an item in any kind of grid of rows and
12 columns such as wxGridBagSizer, or wxHVScrolledWindow.
24 Construct a new wxPosition, setting the row and column to the
25 default value of (0, 0).
30 Construct a new wxPosition, setting the row and column to the
31 value of (@a row, @a col).
33 wxPosition(int row
, int col
);
36 A synonym for GetColumn().
41 Get the current row value.
43 int GetColumn() const;
46 Get the current row value.
51 A synonym for SetColumn().
53 void SetCol(int column
);
56 Set a new column value.
58 void SetColumn(int column
);
67 @name Miscellaneous operators
71 bool operator ==(const wxPosition
& pos
) const;
72 bool operator !=(const wxPosition
& pos
) const;
73 wxPosition
& operator +=(const wxPosition
& pos
);
74 wxPosition
& operator -=(const wxPosition
& pos
);
75 wxPosition
& operator +=(const wxSize
& size
);
76 wxPosition
& operator -=(const wxSize
& size
);
77 wxPosition
operator +(const wxPosition
& pos
) const;
78 wxPosition
operator -(const wxPosition
& pos
) const;
79 wxPosition
operator +(const wxSize
& size
) const;
80 wxPosition
operator -(const wxSize
& size
) const;