9#if !defined(OWL_LAYOUTWI_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
130 virtual void Layout();
142 auto EvGetFont() ->
HFONT;
145 void RemoveChild(
TWindow*)
override;
152 enum TWhichConstraint {
159 TChildMetrics* ChildMetrics;
160 TConstraint* Constraints;
162 TVariable* Variables;
170 void AddConstraint(TChildMetrics&
metrics,
180 int LayoutUnitsToPixels(
int);
181 void GetFontHeight();
When specifying the layout metrics for a window, four layout constraints are needed.
TEdgeConstraint Y
Y contains the Y (top, center, bottom) edge constraint of the window.
TEdgeOrWidthConstraint Width
Contains the width size constraint, center edge constraint, or right edge (lmRight) constraint of the...
TEdgeOrHeightConstraint Height
Contains the height size constraint, center edge constraint, or bottom edge constraint of the window.
TEdgeConstraint X
X contains the X (left, center, right) edge constraint of the window.
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
#define DECLARE_RESPONSE_TABLE(cls)
TMeasurementUnits
Used by the TLayoutConstraint struct, TMeasurementUnits enumerates the measurement units (lmPixels or...
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
Definition of class TLayoutConstraint.
Object Windows Library (OWLNext Core)
TEdgeConstraint adds member functions that set edge (but not size) constraints.
TLayoutConstraint is a structure that defines a relationship (a layout constraint) between an edge or...
Base window class TWindow definition, including HWND encapsulation.