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
}
16 \wxheading{Event table macros
}
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.
}
24 \wxheading{Data structures
}
28 enum wxLayoutOrientation
{
33 enum wxLayoutAlignment
{
45 \helpref{wxCalculateLayoutEvent
}{wxcalculatelayoutevent
},
\rtfsp
46 \helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\rtfsp
47 \helpref{wxLayoutAlgorithm
}{wxlayoutalgorithm
}.
49 \latexignore{\rtfignore{\wxheading{Members
}}}
51 \membersection{wxQueryLayoutInfoEvent::wxQueryLayoutInfoEvent
}
53 \func{}{wxQueryLayoutInfoEvent
}{\param{wxWindowID
}{id =
0}}
57 \membersection{wxQueryLayoutInfoEvent::GetAlignment
}\label{wxquerylayoutinfoeventgetalignment
}
59 \constfunc{void
}{GetAlignment
}{\void}
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.
64 \membersection{wxQueryLayoutInfoEvent::GetFlags
}\label{wxquerylayoutinfoeventgetflags
}
66 \constfunc{int
}{GetFlags
}{\void}
68 Returns the flags associated with this event. Not currently used.
70 \membersection{wxQueryLayoutInfoEvent::GetOrientation
}\label{wxquerylayoutinfoeventgetorientation
}
72 \constfunc{wxLayoutOrientation
}{GetOrientation
}{\void}
74 Returns the orientation that the event handler specified to the event object. May be one of wxLAYOUT
\_HORIZONTAL,
77 \membersection{wxQueryLayoutInfoEvent::GetRequestedLength
}\label{wxquerylayoutinfoeventgetrequestedlength
}
79 \constfunc{int
}{GetRequestedLength
}{\void}
81 Returns the requested length of the window in the direction of the window orientation. This information
84 \membersection{wxQueryLayoutInfoEvent::GetSize
}\label{wxquerylayoutinfoeventgetsize
}
86 \constfunc{wxSize
}{GetSize
}{\void}
88 Returns the size that the event handler specified to the event object as being the requested size of the window.
90 \membersection{wxQueryLayoutInfoEvent::SetAlignment
}\label{wxquerylayoutinfoeventsetalignment
}
92 \func{void
}{SetAlignment
}{\param{wxLayoutAlignment
}{alignment
}}
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.
97 \membersection{wxQueryLayoutInfoEvent::SetFlags
}\label{wxquerylayoutinfoeventsetflags
}
99 \func{void
}{SetFlags
}{\param{int
}{flags
}}
101 Sets the flags associated with this event. Not currently used.
103 \membersection{wxQueryLayoutInfoEvent::SetOrientation
}\label{wxquerylayoutinfoeventsetorientation
}
105 \func{void
}{SetOrientation
}{\param{wxLayoutOrientation
}{orientation
}}
107 Call this to specify the orientation of the window. May be one of wxLAYOUT
\_HORIZONTAL,
110 \membersection{wxQueryLayoutInfoEvent::SetRequestedLength
}\label{wxquerylayoutinfoeventsetrequestedlength
}
112 \func{void
}{SetRequestedLength
}{\param{int
}{ length
}}
114 Sets the requested length of the window in the direction of the window orientation. This information
117 \membersection{wxQueryLayoutInfoEvent::SetSize
}\label{wxquerylayoutinfoeventsetsize
}
119 \func{void
}{SetSize
}{\param{const wxSize\&
}{size
}}
121 Call this to let the calling code know what the size of the window is.