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{Event table macros
}
15 \begin{twocollist
}\itemsep=
0pt
16 \twocolitem{{\bf EVT
\_QUERY\_LAYOUT\_INFO(func)
}}{Process a wxEVT
\_QUERY\_LAYOUT\_INFO event,
17 to get size, orientation and alignment from a window.
}
20 \wxheading{Data structures
}
24 enum wxLayoutOrientation
{
29 enum wxLayoutAlignment
{
41 \helpref{wxCalculateLayoutEvent
}{wxcalculatelayoutevent
},
\rtfsp
42 \helpref{wxSashLayoutWindow
}{wxsashlayoutwindow
},
\rtfsp
43 \helpref{wxLayoutAlgorithm
}{wxlayoutalgorithm
}.
45 \latexignore{\rtfignore{\wxheading{Members
}}}
47 \membersection{wxQueryLayoutInfoEvent::wxQueryLayoutInfoEvent
}
49 \func{}{wxQueryLayoutInfoEvent
}{\param{wxWindowID
}{id =
0}}
53 \membersection{wxQueryLayoutInfoEvent::GetAlignment
}\label{wxquerylayoutinfoeventgetalignment
}
55 \constfunc{void
}{GetAlignment
}{\void}
57 Specifies the alignment of the window (which side of the remaining parent client area
58 the window sticks to). One of wxLAYOUT
\_TOP, wxLAYOUT
\_LEFT, wxLAYOUT
\_RIGHT, wxLAYOUT
\_BOTTOM.
60 \membersection{wxQueryLayoutInfoEvent::GetFlags
}\label{wxquerylayoutinfoeventgetflags
}
62 \constfunc{int
}{GetFlags
}{\void}
64 Returns the flags associated with this event. Not currently used.
66 \membersection{wxQueryLayoutInfoEvent::GetOrientation
}\label{wxquerylayoutinfoeventgetorientation
}
68 \constfunc{wxLayoutOrientation
}{GetOrientation
}{\void}
70 Returns the orientation that the event handler specified to the event object. May be one of wxLAYOUT
\_HORIZONTAL,
73 \membersection{wxQueryLayoutInfoEvent::GetRequestedLength
}\label{wxquerylayoutinfoeventgetrequestedlength
}
75 \constfunc{int
}{GetRequestedLength
}{\void}
77 Returns the requested length of the window in the direction of the window orientation. This information
80 \membersection{wxQueryLayoutInfoEvent::GetSize
}\label{wxquerylayoutinfoeventgetsize
}
82 \constfunc{wxSize
}{GetSize
}{\void}
84 Returns the size that the event handler specified to the event object as being the requested size of the window.
86 \membersection{wxQueryLayoutInfoEvent::SetAlignment
}\label{wxquerylayoutinfoeventsetalignment
}
88 \func{void
}{SetAlignment
}{\param{wxLayoutAlignment
}{alignment
}}
90 Call this to specify the alignment of the window (which side of the remaining parent client area
91 the window sticks to). May be one of wxLAYOUT
\_TOP, wxLAYOUT
\_LEFT, wxLAYOUT
\_RIGHT, wxLAYOUT
\_BOTTOM.
93 \membersection{wxQueryLayoutInfoEvent::SetFlags
}\label{wxquerylayoutinfoeventsetflags
}
95 \func{void
}{SetFlags
}{\param{int
}{flags
}}
97 Sets the flags associated with this event. Not currently used.
99 \membersection{wxQueryLayoutInfoEvent::SetOrientation
}\label{wxquerylayoutinfoeventsetorientation
}
101 \func{void
}{SetOrientation
}{\param{wxLayoutOrientation
}{orientation
}}
103 Call this to specify the orientation of the window. May be one of wxLAYOUT
\_HORIZONTAL,
106 \membersection{wxQueryLayoutInfoEvent::SetRequestedLength
}\label{wxquerylayoutinfoeventsetrequestedlength
}
108 \func{void
}{SetRequestedLength
}{\param{int
}{ length
}}
110 Sets the requested length of the window in the direction of the window orientation. This information
113 \membersection{wxQueryLayoutInfoEvent::SetSize
}\label{wxquerylayoutinfoeventsetsize
}
115 \func{void
}{SetSize
}{\param{const wxSize\&
}{size
}}
117 Call this to let the calling code know what the size of the window is.