]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/position.h
4e636967edbbfba98ae3b395665d04546c17ec7e
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.
25 Construct a new wxPosition, setting the row and column to the
26 default value of (0, 0).
31 Construct a new wxPosition, setting the row and column to the
32 value of (@a row, @a col).
34 wxPosition(int row
, int col
);
37 A synonym for GetColumn().
42 Get the current row value.
44 int GetColumn() const;
47 Get the current row value.
52 A synonym for SetColumn().
54 void SetCol(int column
);
57 Set a new column value.
59 void SetColumn(int column
);
68 @name Miscellaneous operators
72 bool operator ==(const wxPosition
& p
) const;
73 bool operator !=(const wxPosition
& p
) const;
74 wxPosition
& operator +=(const wxPosition
& p
) const;
75 wxPosition
& operator -=(const wxPosition
& p
) const;
76 wxPosition
& operator +=(const wxSize
& s
) const;
77 wxPosition
& operator -=(const wxSize
& s
) const;
78 wxPosition
& operator +(const wxPosition
& p
) const;
79 wxPosition
& operator -(const wxPosition
& p
) const;
80 wxPosition
& operator +(const wxSize
& s
) const;
81 wxPosition
& operator -(const wxSize
& s
) const;