1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxSizeEvent documentation
4 %% Author: wxWidgets team
8 %% Copyright: (c) wxWidgets team
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxSizeEvent
}}\label{wxsizeevent
}
14 A size event holds information about size change events.
16 The EVT
\_SIZE handler function will be called when the window has been resized.
18 You may wish to use this for frames to resize their child windows as appropriate.
20 Note that the size passed is of
21 the whole window: call
\helpref{wxWindow::GetClientSize
}{wxwindowgetclientsize
} for the area which may be
22 used by the application.
24 When a window is resized, usually only a small part of the window is damaged and you
25 may only need to repaint that area. However, if your drawing depends on the size of the window,
26 you may need to clear the DC explicitly and repaint the whole window. In which case, you
27 may need to call
\helpref{wxWindow::Refresh
}{wxwindowrefresh
} to invalidate the entire window.
29 \wxheading{Derived from
}
31 \helpref{wxEvent
}{wxevent
}\\
32 \helpref{wxObject
}{wxobject
}
34 \wxheading{Include files
}
40 \helpref{wxCore
}{librarieslist
}
42 \wxheading{Event table macros
}
44 To process a size event, use this event handler macro to direct input to a member
45 function that takes a wxSizeEvent argument.
48 \begin{twocollist
}\itemsep=
0pt
49 \twocolitem{{\bf EVT
\_SIZE(func)
}}{Process a wxEVT
\_SIZE event.
}
54 \helpref{wxSize
}{wxsize
},
\rtfsp
55 \helpref{Event handling overview
}{eventhandlingoverview
}
57 \latexignore{\rtfignore{\wxheading{Members
}}}
59 \membersection{wxSizeEvent::wxSizeEvent
}\label{wxsizeeventctor
}
61 \func{}{wxSizeEvent
}{\param{const wxSize\&
}{sz
},
\param{int
}{id =
0}}
65 \membersection{wxSizeEvent::GetSize
}\label{wxsizeeventgetsize
}
67 \constfunc{wxSize
}{GetSize
}{\void}
69 Returns the entire size of the window generating the size change event.