]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/position.h
automated ifacecheck fixes
[wxWidgets.git] / interface / wx / position.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: position.h
e54c96f1 3// Purpose: interface of wxPosition
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxPosition
7c913512 11
23324ae1 12 This class represents the position of an item in any kind of grid of rows and
b1b95a65
FM
13 columns such as wxGridBagSizer, or wxHVScrolledWindow.
14
15 @todo rename this class to wxItemPosition or such, wxPosition is too generic
7c913512 16
23324ae1 17 @library{wxbase}
b1b95a65 18 @category{data}
7c913512 19
e54c96f1 20 @see wxPoint, wxSize
23324ae1 21*/
7c913512 22class wxPosition
23324ae1
FM
23{
24public:
b1b95a65 25
23324ae1 26 /**
b1b95a65
FM
27 Construct a new wxPosition, setting the row and column to the
28 default value of (0, 0).
23324ae1
FM
29 */
30 wxPosition();
b1b95a65
FM
31
32 /**
33 Construct a new wxPosition, setting the row and column to the
34 value of (@a row, @a col).
35 */
7c913512 36 wxPosition(int row, int col);
23324ae1
FM
37
38 /**
39 A synonym for GetColumn().
40 */
328f5751 41 int GetCol() const;
23324ae1
FM
42
43 /**
44 Get the current row value.
45 */
328f5751 46 int GetColumn() const;
23324ae1
FM
47
48 /**
49 Get the current row value.
50 */
328f5751 51 int GetRow() const;
23324ae1 52
23324ae1
FM
53 /**
54 A synonym for SetColumn().
55 */
56 void SetCol(int column);
57
58 /**
59 Set a new column value.
60 */
61 void SetColumn(int column);
62
63 /**
64 Set a new row value.
65 */
66 void SetRow(int row);
b1b95a65
FM
67
68
69 /**
70 @name Miscellaneous operators
71
72 @{
73 */
74 bool operator ==(const wxPosition& p) const;
75 bool operator !=(const wxPosition& p) const;
76 wxPosition& operator +=(const wxPosition& p) const;
77 wxPosition& operator -=(const wxPosition& p) const;
78 wxPosition& operator +=(const wxSize& s) const;
79 wxPosition& operator -=(const wxSize& s) const;
80 wxPosition& operator +(const wxPosition& p) const;
81 wxPosition& operator -(const wxPosition& p) const;
82 wxPosition& operator +(const wxSize& s) const;
83 wxPosition& operator -(const wxSize& s) const;
84 //@}
23324ae1 85};
e54c96f1 86