1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: position.tex (moved from gbposition.tex)
3 %% Purpose: wxPosition Documentation
4 %% Author: Robin Dunn, Bryan Petty
6 %% Created: 2003-11-06, modified 2007-04-05
8 %% Copyright: (c) 2003, 2007 wxWidgets Team
9 %% License: wxWindows Licence
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxPosition
}}\label{wxposition
}
14 This class represents the position of an item in any kind of grid of rows and
15 columns such as
\helpref{wxGridBagSizer
}{wxgridbagsizer
}, or
16 \helpref{wxHVScrolledWindow
}{wxhvscrolledwindow
}.
18 \wxheading{Derived from
}
22 \wxheading{Include files
}
28 \helpref{wxPoint
}{wxpoint
},
\helpref{wxSize
}{wxsize
}
30 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxPosition::wxPosition
}\label{wxpositionwxposition
}
35 \func{}{wxPosition
}{\void}
37 \func{}{wxPosition
}{\param{int
}{row
},
\param{int
}{col
}}
39 Construct a new wxPosition, optionally setting the row and column. The
40 default value is $(
0,
0)$.
43 \membersection{wxPosition::GetCol
}\label{wxpositiongetcol
}
45 \constfunc{int
}{GetCol
}{\void}
47 A synonym for
\helpref{GetColumn()
}{wxpositiongetcolumn
}.
50 \membersection{wxPosition::GetColumn
}\label{wxpositiongetcolumn
}
52 \constfunc{int
}{GetColumn
}{\void}
54 Get the current row value.
57 \membersection{wxPosition::GetRow
}\label{wxpositiongetrow
}
59 \constfunc{int
}{GetRow
}{\void}
61 Get the current row value.
64 \membersection{wxPosition::SetCol
}\label{wxpositionsetcol
}
66 \func{void
}{SetCol
}{\param{int
}{column
}}
68 A synonym for
\helpref{SetColumn()
}{wxpositionsetcolumn
}.
71 \membersection{wxPosition::SetColumn
}\label{wxpositionsetcolumn
}
73 \func{void
}{SetColumn
}{\param{int
}{column
}}
75 Set a new column value.
78 \membersection{wxPosition::SetRow
}\label{wxpositionsetrow
}
80 \func{void
}{SetRow
}{\param{int
}{row
}}
85 \membersection{Operators
}\label{wxpositionoperators
}
87 \constfunc{bool
}{operator $==$
}{\param{const wxPosition\&
}{p
}}
89 \constfunc{bool
}{operator $!=$
}{\param{const wxPosition\&
}{p
}}
91 Compare equality of two wxPositions.
93 \func{wxPosition\&
}{operator $+=$
}{\param{const wxPosition\&
}{p
}}
95 \func{wxPosition\&
}{operator $-=$
}{\param{const wxPosition\&
}{p
}}
97 \func{wxPosition\&
}{operator $+=$
}{\param{const wxSize\&
}{s
}}
99 \func{wxPosition\&
}{operator $-=$
}{\param{const wxSize\&
}{s
}}
101 \constfunc{wxPosition
}{operator $+$
}{\param{const wxPosition\&
}{p
}}
103 \constfunc{wxPosition
}{operator $-$
}{\param{const wxPosition\&
}{p
}}
105 \constfunc{wxPosition
}{operator $+$
}{\param{const wxSize\&
}{s
}}
107 \constfunc{wxPosition
}{operator $-$
}{\param{const wxSize\&
}{s
}}