1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<HTML>
<head><title>wxSize</title></head>
<BODY BGCOLOR=#FFFFFF>
<A NAME="wxsize"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx204.htm#wxsinglechoicedialog"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx206.htm#wxsizeevent"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>
<H2>wxSize</H2>
<P>
A <B>wxSize</B> is a useful data structure for graphics operations.
It simply contains integer <I>x</I> and <I>y</I> members.<P>
<B><FONT COLOR="#0000C8">wxPython note:</FONT></B><BR>
wxPython defines aliases for the <TT>x</TT> and <TT>y</TT> members
named <TT>width</TT> and <TT>height</TT> since it makes much more sense for
sizes. There is also coresponding aliases for the <TT>GetWidth</TT> and
<TT>GetHeight</TT> methods.
<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
None<P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
<wx/gdicmn.h><P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx171.htm#wxpoint">wxPoint</A>, <A HREF="wx192.htm#wxrealpoint">wxRealPoint</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic813">wxSize::wxSize</A><BR>
<A HREF="#topic814">wxSize::x</A><BR>
<A HREF="#topic815">wxSize::y</A><BR>
<A HREF="#wxsizegetx">wxSize::GetX</A><BR>
<A HREF="#wxsizegety">wxSize::GetY</A><BR>
<A HREF="#wxsizeset">wxSize::Set</A><BR>
<A HREF="#topic816">wxSize::operator =</A><BR>
<P>
<HR>
<A NAME="topic813"></A>
<H3>wxSize::wxSize</H3>
<P>
<B></B> <B>wxSize</B>()<P>
<B></B> <B>wxSize</B>(<B>int</B><I> x</I>, <B>int</B><I> y</I>)<P>
Creates a size object.<P>
<HR>
<A NAME="topic814"></A>
<H3>wxSize::x</H3>
<P>
int x<P>
x member.<P>
<HR>
<A NAME="topic815"></A>
<H3>wxSize::y</H3>
<P>
int y<P>
y member.<P>
<HR>
<A NAME="wxsizegetx"></A>
<H3>wxSize::GetX</H3>
<P>
<B>int</B> <B>GetX</B>() <B>const</B><P>
Gets the x member.<P>
<HR>
<A NAME="wxsizegety"></A>
<H3>wxSize::GetY</H3>
<P>
<B>int</B> <B>GetY</B>() <B>const</B><P>
Gets the y member.<P>
<HR>
<A NAME="wxsizeset"></A>
<H3>wxSize::Set</H3>
<P>
<B>void</B> <B>Set</B>(<B>int</B><I> x</I>, <B>int</B><I> y</I>)<P>
Sets the x and y members.<P>
<HR>
<A NAME="topic816"></A>
<H3>wxSize::operator =</H3>
<P>
<B>void</B> <B>operator =</B>(<B>const wxSize& </B><I>sz</I>)<P>
Assignment operator.<P>
</BODY></HTML>
|