]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/point.tex
escape more underscores (we need a pre-commit check for those...)
[wxWidgets.git] / docs / latex / wx / point.tex
CommitLineData
8efb2907
WS
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: point.tex
3%% Purpose: wxPoint documentation
4%% Author: wxTeam
5%% Created:
6%% RCS-ID: $Id$
7%% Copyright: (c) wxTeam
8%% License: wxWindows license
9%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10
a660d684
KB
11\section{\class{wxPoint}}\label{wxpoint}
12
13A {\bf wxPoint} is a useful data structure for graphics operations.
14It simply contains integer {\it x} and {\it y} members.
15
16See also \helpref{wxRealPoint}{wxrealpoint} for a floating point version.
17
954b8ae6 18\wxheading{Derived from}
a660d684 19
9838df2c 20None
a660d684 21
954b8ae6
JS
22\wxheading{Include files}
23
24<wx/gdicmn.h>
25
a660d684
KB
26\wxheading{See also}
27
28\helpref{wxRealPoint}{wxrealpoint}
29
30\latexignore{\rtfignore{\wxheading{Members}}}
31
39275175 32\membersection{wxPoint::wxPoint}\label{wxpointctor}
a660d684
KB
33
34\func{}{wxPoint}{\void}
35
36\func{}{wxPoint}{\param{int}{ x}, \param{int}{ y}}
37
38Create a point.
39
39275175 40\membersection{wxPoint::x}\label{wxpointx}
a660d684
KB
41
42\member{int}{x}
43
44x member.
45
39275175 46\membersection{wxPoint::y}\label{wxpointy}
a660d684
KB
47
48\member{int}{ y}
49
50y member.
51
8efb2907 52\membersection{Operators}\label{wxpointoperators}
0f71b9da 53
8efb2907 54\func{void}{operator $=$}{\param{const wxPoint\& }{pt}}
0f71b9da 55
8efb2907 56Assignment operator.
0f71b9da
VZ
57
58
8efb2907 59\func{bool}{operator $==$}{\param{const wxPoint\& }{pt}}
0f71b9da
VZ
60
61\func{bool}{operator $!=$}{\param{const wxPoint\& }{pt}}
62
8efb2907
WS
63\func{wxPoint}{operator $+$}{\param{const wxPoint\& }{pt}}
64
65\func{wxPoint}{operator $-$}{\param{const wxPoint\& }{pt}}
66
67\func{wxPoint\&}{operator $+=$}{\param{const wxPoint\& }{pt}}
68
69\func{wxPoint\&}{operator $-=$}{\param{const wxPoint\& }{pt}}
70
71Operators for comparison, sum and subtraction between \helpref{wxPoint}{wxpoint} objects.
72
73
74\func{wxPoint}{operator $+$}{\param{const wxSize\& }{sz}}
75
76\func{wxPoint}{operator $-$}{\param{const wxSize\& }{sz}}
77
78\func{wxPoint\&}{operator $+=$}{\param{const wxSize\& }{sz}}
0f71b9da 79
8efb2907
WS
80\func{wxPoint\&}{operator $-=$}{\param{const wxSize\& }{sz}}
81
82Operators for sum and subtraction between a \helpref{wxPoint}{wxpoint} object and a
83\helpref{wxSize}{wxsize} object.