]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/qylayevt.tex
Wrote wxMask(bitmap,colour).
[wxWidgets.git] / docs / latex / wx / qylayevt.tex
1 \section{\class{wxQueryLayoutInfoEvent}}\label{wxquerylayoutinfoevent}
2
3 This event is sent when \helpref{wxLayoutAlgorithm}{wxlayoutalgorithm} wishes to get
4 the size, orientation and alignment of a window. More precisely, the event is sent
5 by the OnCalculateLayout handler which is itself invoked by wxLayoutAlgorithm.
6
7 \wxheading{Derived from}
8
9 \helpref{wxEvent}{wxevent}\\
10 \helpref{wxObject}{wxobject}
11
12 \wxheading{Include files}
13
14 <wx/laywin.h>
15
16 \wxheading{Event table macros}
17
18 \twocolwidtha{7cm}%
19 \begin{twocollist}\itemsep=0pt
20 \twocolitem{{\bf EVT\_QUERY\_LAYOUT\_INFO(func)}}{Process a wxEVT\_QUERY\_LAYOUT\_INFO event,
21 to get size, orientation and alignment from a window.}
22 \end{twocollist}
23
24 \wxheading{Data structures}
25
26 {\small
27 \begin{verbatim}
28 enum wxLayoutOrientation {
29 wxLAYOUT_HORIZONTAL,
30 wxLAYOUT_VERTICAL
31 };
32
33 enum wxLayoutAlignment {
34 wxLAYOUT_NONE,
35 wxLAYOUT_TOP,
36 wxLAYOUT_LEFT,
37 wxLAYOUT_RIGHT,
38 wxLAYOUT_BOTTOM,
39 };
40 \end{verbatim}
41 }
42
43 \wxheading{See also}
44
45 \helpref{wxCalculateLayoutEvent}{wxcalculatelayoutevent},\rtfsp
46 \helpref{wxSashLayoutWindow}{wxsashlayoutwindow},\rtfsp
47 \helpref{wxLayoutAlgorithm}{wxlayoutalgorithm}.
48
49 \latexignore{\rtfignore{\wxheading{Members}}}
50
51 \membersection{wxQueryLayoutInfoEvent::wxQueryLayoutInfoEvent}
52
53 \func{}{wxQueryLayoutInfoEvent}{\param{wxWindowID }{id = 0}}
54
55 Constructor.
56
57 \membersection{wxQueryLayoutInfoEvent::GetAlignment}\label{wxquerylayoutinfoeventgetalignment}
58
59 \constfunc{void}{GetAlignment}{\void}
60
61 Specifies the alignment of the window (which side of the remaining parent client area
62 the window sticks to). One of wxLAYOUT\_TOP, wxLAYOUT\_LEFT, wxLAYOUT\_RIGHT, wxLAYOUT\_BOTTOM.
63
64 \membersection{wxQueryLayoutInfoEvent::GetFlags}\label{wxquerylayoutinfoeventgetflags}
65
66 \constfunc{int}{GetFlags}{\void}
67
68 Returns the flags associated with this event. Not currently used.
69
70 \membersection{wxQueryLayoutInfoEvent::GetOrientation}\label{wxquerylayoutinfoeventgetorientation}
71
72 \constfunc{wxLayoutOrientation}{GetOrientation}{\void}
73
74 Returns the orientation that the event handler specified to the event object. May be one of wxLAYOUT\_HORIZONTAL,
75 wxLAYOUT\_VERTICAL.
76
77 \membersection{wxQueryLayoutInfoEvent::GetRequestedLength}\label{wxquerylayoutinfoeventgetrequestedlength}
78
79 \constfunc{int}{GetRequestedLength}{\void}
80
81 Returns the requested length of the window in the direction of the window orientation. This information
82 is not yet used.
83
84 \membersection{wxQueryLayoutInfoEvent::GetSize}\label{wxquerylayoutinfoeventgetsize}
85
86 \constfunc{wxSize}{GetSize}{\void}
87
88 Returns the size that the event handler specified to the event object as being the requested size of the window.
89
90 \membersection{wxQueryLayoutInfoEvent::SetAlignment}\label{wxquerylayoutinfoeventsetalignment}
91
92 \func{void}{SetAlignment}{\param{wxLayoutAlignment }{alignment}}
93
94 Call this to specify the alignment of the window (which side of the remaining parent client area
95 the window sticks to). May be one of wxLAYOUT\_TOP, wxLAYOUT\_LEFT, wxLAYOUT\_RIGHT, wxLAYOUT\_BOTTOM.
96
97 \membersection{wxQueryLayoutInfoEvent::SetFlags}\label{wxquerylayoutinfoeventsetflags}
98
99 \func{void}{SetFlags}{\param{int }{flags}}
100
101 Sets the flags associated with this event. Not currently used.
102
103 \membersection{wxQueryLayoutInfoEvent::SetOrientation}\label{wxquerylayoutinfoeventsetorientation}
104
105 \func{void}{SetOrientation}{\param{wxLayoutOrientation }{orientation}}
106
107 Call this to specify the orientation of the window. May be one of wxLAYOUT\_HORIZONTAL,
108 wxLAYOUT\_VERTICAL.
109
110 \membersection{wxQueryLayoutInfoEvent::SetRequestedLength}\label{wxquerylayoutinfoeventsetrequestedlength}
111
112 \func{void}{SetRequestedLength}{\param{int}{ length}}
113
114 Sets the requested length of the window in the direction of the window orientation. This information
115 is not yet used.
116
117 \membersection{wxQueryLayoutInfoEvent::SetSize}\label{wxquerylayoutinfoeventsetsize}
118
119 \func{void}{SetSize}{\param{const wxSize\& }{size}}
120
121 Call this to let the calling code know what the size of the window is.
122