1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxPoint documentation
7 %% Copyright: (c) wxTeam
8 %% License: wxWindows license
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 \section{\class{wxPoint
}}\label{wxpoint
}
13 A
{\bf wxPoint
} is a useful data structure for graphics operations.
14 It simply contains integer
{\it x
} and
{\it y
} members.
16 See also
\helpref{wxRealPoint
}{wxrealpoint
} for a floating point version.
18 \wxheading{Derived from
}
22 \wxheading{Include files
}
28 \helpref{wxCore
}{librarieslist
}
32 \helpref{wxRealPoint
}{wxrealpoint
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
36 \membersection{wxPoint::wxPoint
}\label{wxpointctor
}
38 \func{}{wxPoint
}{\void}
40 \func{}{wxPoint
}{\param{int
}{ x
},
\param{int
}{ y
}}
44 \membersection{wxPoint::x
}\label{wxpointx
}
50 \membersection{wxPoint::y
}\label{wxpointy
}
56 \membersection{Operators
}\label{wxpointoperators
}
58 \func{void
}{operator $=$
}{\param{const wxPoint\&
}{pt
}}
63 \func{bool
}{operator $==$
}{\param{const wxPoint\&
}{p1
},
\param{const wxPoint\&
}{p2
}}
65 \func{bool
}{operator $!=$
}{\param{const wxPoint\&
}{p1
},
\param{const wxPoint\&
}{p2
}}
67 \func{wxPoint
}{operator $+$
}{\param{const wxPoint\&
}{p1
},
\param{const wxPoint\&
}{p2
}}
69 \func{wxPoint
}{operator $-$
}{\param{const wxPoint\&
}{p1
},
\param{const wxPoint\&
}{p2
}}
71 \func{wxPoint\&
}{operator $+=$
}{\param{const wxPoint\&
}{pt
}}
73 \func{wxPoint\&
}{operator $-=$
}{\param{const wxPoint\&
}{pt
}}
75 Operators for comparison, sum and subtraction between
\helpref{wxPoint
}{wxpoint
} objects.
78 \func{wxPoint
}{operator $+$
}{\param{const wxPoint\&
}{pt
},
\param{const wxSize\&
}{sz
}}
80 \func{wxPoint
}{operator $-$
}{\param{const wxPoint\&
}{pt
},
\param{const wxSize\&
}{sz
}}
82 \func{wxPoint
}{operator $+$
}{\param{const wxSize\&
}{sz
},
\param{const wxPoint\&
}{pt
}}
84 \func{wxPoint
}{operator $-$
}{\param{const wxSize\&
}{sz
},
\param{const wxPoint\&
}{pt
}}
86 \func{wxPoint\&
}{operator $+=$
}{\param{const wxSize\&
}{sz
}}
88 \func{wxPoint\&
}{operator $-=$
}{\param{const wxSize\&
}{sz
}}
90 Operators for sum and subtraction between a
\helpref{wxPoint
}{wxpoint
} object and a
91 \helpref{wxSize
}{wxsize
} object.