2006-07-24 04:26:38 -04:00
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Name: point.tex
|
|
|
|
%% Purpose: wxPoint documentation
|
|
|
|
%% Author: wxTeam
|
|
|
|
%% Created:
|
|
|
|
%% RCS-ID: $Id$
|
|
|
|
%% Copyright: (c) wxTeam
|
|
|
|
%% License: wxWindows license
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxPoint}}\label{wxpoint}
|
|
|
|
|
|
|
|
A {\bf wxPoint} is a useful data structure for graphics operations.
|
|
|
|
It simply contains integer {\it x} and {\it y} members.
|
|
|
|
|
|
|
|
See also \helpref{wxRealPoint}{wxrealpoint} for a floating point version.
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Derived from}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-01-24 09:57:09 -05:00
|
|
|
None
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/gdicmn.h>
|
|
|
|
|
2007-07-28 08:21:03 -04:00
|
|
|
\wxheading{Library}
|
|
|
|
|
|
|
|
\helpref{wxCore}{librarieslist}
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxRealPoint}{wxrealpoint}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxPoint::wxPoint}\label{wxpointctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxPoint}{\void}
|
|
|
|
|
|
|
|
\func{}{wxPoint}{\param{int}{ x}, \param{int}{ y}}
|
|
|
|
|
|
|
|
Create a point.
|
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxPoint::x}\label{wxpointx}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{int}{x}
|
|
|
|
|
|
|
|
x member.
|
|
|
|
|
2004-09-24 06:57:56 -04:00
|
|
|
\membersection{wxPoint::y}\label{wxpointy}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\member{int}{ y}
|
|
|
|
|
|
|
|
y member.
|
|
|
|
|
2006-07-24 04:26:38 -04:00
|
|
|
\membersection{Operators}\label{wxpointoperators}
|
2005-08-27 15:29:06 -04:00
|
|
|
|
2006-07-24 04:26:38 -04:00
|
|
|
\func{void}{operator $=$}{\param{const wxPoint\& }{pt}}
|
2005-08-27 15:29:06 -04:00
|
|
|
|
2006-07-24 04:26:38 -04:00
|
|
|
Assignment operator.
|
2005-08-27 15:29:06 -04:00
|
|
|
|
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{bool}{operator $==$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
|
2005-08-27 15:29:06 -04:00
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{bool}{operator $!=$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
|
2005-08-27 15:29:06 -04:00
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{wxPoint}{operator $+$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
|
2006-07-24 04:26:38 -04:00
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{wxPoint}{operator $-$}{\param{const wxPoint\& }{p1}, \param{const wxPoint\& }{p2}}
|
2006-07-24 04:26:38 -04:00
|
|
|
|
|
|
|
\func{wxPoint\&}{operator $+=$}{\param{const wxPoint\& }{pt}}
|
|
|
|
|
|
|
|
\func{wxPoint\&}{operator $-=$}{\param{const wxPoint\& }{pt}}
|
|
|
|
|
|
|
|
Operators for comparison, sum and subtraction between \helpref{wxPoint}{wxpoint} objects.
|
|
|
|
|
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{wxPoint}{operator $+$}{\param{const wxPoint\& }{pt}, \param{const wxSize\& }{sz}}
|
2006-07-24 04:26:38 -04:00
|
|
|
|
2007-05-23 21:47:29 -04:00
|
|
|
\func{wxPoint}{operator $-$}{\param{const wxPoint\& }{pt}, \param{const wxSize\& }{sz}}
|
|
|
|
|
|
|
|
\func{wxPoint}{operator $+$}{\param{const wxSize\& }{sz}, \param{const wxPoint\& }{pt}}
|
|
|
|
|
|
|
|
\func{wxPoint}{operator $-$}{\param{const wxSize\& }{sz}, \param{const wxPoint\& }{pt}}
|
2006-07-24 04:26:38 -04:00
|
|
|
|
|
|
|
\func{wxPoint\&}{operator $+=$}{\param{const wxSize\& }{sz}}
|
2005-08-27 15:29:06 -04:00
|
|
|
|
2006-07-24 04:26:38 -04:00
|
|
|
\func{wxPoint\&}{operator $-=$}{\param{const wxSize\& }{sz}}
|
2007-05-23 21:47:29 -04:00
|
|
|
|
2006-07-24 04:26:38 -04:00
|
|
|
Operators for sum and subtraction between a \helpref{wxPoint}{wxpoint} object and a
|
|
|
|
\helpref{wxSize}{wxsize} object.
|
2006-10-10 13:46:49 -04:00
|
|
|
|