]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/position.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxPosition
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
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
& pos
) const;
73 bool operator !=(const wxPosition
& pos
) const;
74 wxPosition
& operator +=(const wxPosition
& pos
);
75 wxPosition
& operator -=(const wxPosition
& pos
);
76 wxPosition
& operator +=(const wxSize
& size
);
77 wxPosition
& operator -=(const wxSize
& size
);
78 wxPosition
operator +(const wxPosition
& pos
) const;
79 wxPosition
operator -(const wxPosition
& pos
) const;
80 wxPosition
operator +(const wxSize
& size
) const;
81 wxPosition
operator -(const wxSize
& size
) const;