]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/position.h
Ensure that the overall table border doesn't get overdrawn by cell borders with a...
[wxWidgets.git] / interface / wx / position.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: position.h
e54c96f1 3// Purpose: interface of wxPosition
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxPosition
7c913512 10
23324ae1 11 This class represents the position of an item in any kind of grid of rows and
b1b95a65
FM
12 columns such as wxGridBagSizer, or wxHVScrolledWindow.
13
23324ae1 14 @library{wxbase}
b1b95a65 15 @category{data}
7c913512 16
e54c96f1 17 @see wxPoint, wxSize
23324ae1 18*/
7c913512 19class wxPosition
23324ae1
FM
20{
21public:
b1b95a65 22
23324ae1 23 /**
b1b95a65
FM
24 Construct a new wxPosition, setting the row and column to the
25 default value of (0, 0).
23324ae1
FM
26 */
27 wxPosition();
b1b95a65
FM
28
29 /**
30 Construct a new wxPosition, setting the row and column to the
31 value of (@a row, @a col).
32 */
7c913512 33 wxPosition(int row, int col);
23324ae1
FM
34
35 /**
36 A synonym for GetColumn().
37 */
328f5751 38 int GetCol() const;
23324ae1
FM
39
40 /**
41 Get the current row value.
42 */
328f5751 43 int GetColumn() const;
23324ae1
FM
44
45 /**
46 Get the current row value.
47 */
328f5751 48 int GetRow() const;
23324ae1 49
23324ae1
FM
50 /**
51 A synonym for SetColumn().
52 */
53 void SetCol(int column);
54
55 /**
56 Set a new column value.
57 */
58 void SetColumn(int column);
59
60 /**
61 Set a new row value.
62 */
63 void SetRow(int row);
b1b95a65
FM
64
65
66 /**
67 @name Miscellaneous operators
68
69 @{
70 */
bb6eb694
RD
71 bool operator ==(const wxPosition& pos) const;
72 bool operator !=(const wxPosition& pos) const;
c66a675a
VZ
73 wxPosition& operator +=(const wxPosition& pos);
74 wxPosition& operator -=(const wxPosition& pos);
75 wxPosition& operator +=(const wxSize& size);
76 wxPosition& operator -=(const wxSize& size);
bb6eb694
RD
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;
b1b95a65 81 //@}
23324ae1 82};
e54c96f1 83