1 \section{\class{wxQueryLayoutInfoEvent
}}\label{wxquerylayoutinfoevent
}
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.
7 \wxheading{Derived from
}
9 \helpref{wxEvent
}{wxevent
}\\
10 \helpref{wxObject
}{wxobject
}
12 \wxheading{Include files
}
18 \helpref{wxAdv
}{librarieslist
}
20 \wxheading{Event table macros
}
23 \begin{twocollist
}\itemsep=
0pt
24 \twocolitem{{\bf EVT
\_QUERY\_LAYOUT\_INFO(func)
}}{Process a wxEVT
\_QUERY\_LAYOUT\_INFO event,
25 to get size, orientation and alignment from a window.
}
28 \wxheading{Data structures
}
32 enum wxLayoutOrientation
{
37 enum wxLayoutAlignment
{
49 \helpref{wxCalculateLayoutEvent
}{wxcalculatelayoutevent
},
\rtfsp
50 \helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\rtfsp
51 \helpref{wxLayoutAlgorithm
}{wxlayoutalgorithm
}.
53 \latexignore{\rtfignore{\wxheading{Members
}}}
55 \membersection{wxQueryLayoutInfoEvent::wxQueryLayoutInfoEvent
}\label{wxquerylayoutinfoeventctor
}
57 \func{}{wxQueryLayoutInfoEvent
}{\param{wxWindowID
}{id =
0}}
61 \membersection{wxQueryLayoutInfoEvent::GetAlignment
}\label{wxquerylayoutinfoeventgetalignment
}
63 \constfunc{void
}{GetAlignment
}{\void}
65 Specifies the alignment of the window (which side of the remaining parent client area
66 the window sticks to). One of wxLAYOUT
\_TOP, wxLAYOUT
\_LEFT, wxLAYOUT
\_RIGHT, wxLAYOUT
\_BOTTOM.
68 \membersection{wxQueryLayoutInfoEvent::GetFlags
}\label{wxquerylayoutinfoeventgetflags
}
70 \constfunc{int
}{GetFlags
}{\void}
72 Returns the flags associated with this event. Not currently used.
74 \membersection{wxQueryLayoutInfoEvent::GetOrientation
}\label{wxquerylayoutinfoeventgetorientation
}
76 \constfunc{wxLayoutOrientation
}{GetOrientation
}{\void}
78 Returns the orientation that the event handler specified to the event object. May be one of wxLAYOUT
\_HORIZONTAL,
81 \membersection{wxQueryLayoutInfoEvent::GetRequestedLength
}\label{wxquerylayoutinfoeventgetrequestedlength
}
83 \constfunc{int
}{GetRequestedLength
}{\void}
85 Returns the requested length of the window in the direction of the window orientation. This information
88 \membersection{wxQueryLayoutInfoEvent::GetSize
}\label{wxquerylayoutinfoeventgetsize
}
90 \constfunc{wxSize
}{GetSize
}{\void}
92 Returns the size that the event handler specified to the event object as being the requested size of the window.
94 \membersection{wxQueryLayoutInfoEvent::SetAlignment
}\label{wxquerylayoutinfoeventsetalignment
}
96 \func{void
}{SetAlignment
}{\param{wxLayoutAlignment
}{alignment
}}
98 Call this to specify the alignment of the window (which side of the remaining parent client area
99 the window sticks to). May be one of wxLAYOUT
\_TOP, wxLAYOUT
\_LEFT, wxLAYOUT
\_RIGHT, wxLAYOUT
\_BOTTOM.
101 \membersection{wxQueryLayoutInfoEvent::SetFlags
}\label{wxquerylayoutinfoeventsetflags
}
103 \func{void
}{SetFlags
}{\param{int
}{flags
}}
105 Sets the flags associated with this event. Not currently used.
107 \membersection{wxQueryLayoutInfoEvent::SetOrientation
}\label{wxquerylayoutinfoeventsetorientation
}
109 \func{void
}{SetOrientation
}{\param{wxLayoutOrientation
}{orientation
}}
111 Call this to specify the orientation of the window. May be one of wxLAYOUT
\_HORIZONTAL,
114 \membersection{wxQueryLayoutInfoEvent::SetRequestedLength
}\label{wxquerylayoutinfoeventsetrequestedlength
}
116 \func{void
}{SetRequestedLength
}{\param{int
}{ length
}}
118 Sets the requested length of the window in the direction of the window orientation. This information
121 \membersection{wxQueryLayoutInfoEvent::SetSize
}\label{wxquerylayoutinfoeventsetsize
}
123 \func{void
}{SetSize
}{\param{const wxSize\&
}{size
}}
125 Call this to let the calling code know what the size of the window is.