]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/point.tex
Added periods
[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
a7af285d
VZ
26\wxheading{Library}
27
28\helpref{wxCore}{librarieslist}
29
a660d684
KB
30\wxheading{See also}
31
32\helpref{wxRealPoint}{wxrealpoint}
33
34\latexignore{\rtfignore{\wxheading{Members}}}
35
39275175 36\membersection{wxPoint::wxPoint}\label{wxpointctor}
a660d684
KB
37
38\func{}{wxPoint}{\void}
39
40\func{}{wxPoint}{\param{int}{ x}, \param{int}{ y}}
41
42Create a point.
43
39275175 44\membersection{wxPoint::x}\label{wxpointx}
a660d684
KB
45
46\member{int}{x}
47
48x member.
49
39275175 50\membersection{wxPoint::y}\label{wxpointy}
a660d684
KB
51
52\member{int}{ y}
53
54y member.
55
8efb2907 56\membersection{Operators}\label{wxpointoperators}
0f71b9da 57
8efb2907 58\func{void}{operator $=$}{\param{const wxPoint\& }{pt}}
0f71b9da 59
8efb2907 60Assignment operator.
0f71b9da
VZ
61
62
bc5e942b 63\func{bool}{operator $==$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
0f71b9da 64
bc5e942b 65\func{bool}{operator $!=$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
0f71b9da 66
bc5e942b 67\func{wxPoint}{operator $+$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
8efb2907 68
bc5e942b 69\func{wxPoint}{operator $-$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
8efb2907
WS
70
71\func{wxPoint\&}{operator $+=$}{\param{const wxPoint\& }{pt}}
72
73\func{wxPoint\&}{operator $-=$}{\param{const wxPoint\& }{pt}}
74
75Operators for comparison, sum and subtraction between \helpref{wxPoint}{wxpoint} objects.
76
77
bc5e942b 78\func{wxPoint}{operator $+$}{\param{const wxPoint\& }{pt}, \param{const wxSize\& }{sz}}
8efb2907 79
bc5e942b
VZ
80\func{wxPoint}{operator $-$}{\param{const wxPoint\& }{pt}, \param{const wxSize\& }{sz}}
81
82\func{wxPoint}{operator $+$}{\param{const wxSize\& }{sz}, \param{const wxPoint\& }{pt}}
83
84\func{wxPoint}{operator $-$}{\param{const wxSize\& }{sz}, \param{const wxPoint\& }{pt}}
8efb2907
WS
85
86\func{wxPoint\&}{operator $+=$}{\param{const wxSize\& }{sz}}
0f71b9da 87
8efb2907 88\func{wxPoint\&}{operator $-=$}{\param{const wxSize\& }{sz}}
bc5e942b 89
8efb2907
WS
90Operators for sum and subtraction between a \helpref{wxPoint}{wxpoint} object and a
91\helpref{wxSize}{wxsize} object.
b67a86d5 92