OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Used by the TGadgetWindow and TGadget classes, TMargins contains the measurements of the margins for the gadget. More...
#include <owl/gadget.h>
Public Types | |
enum | TUnits { Pixels , LayoutUnits , BorderUnits } |
Public Member Functions | |
TMargins () | |
TMargins (TUnits u, int l, int r, int t, int b) | |
void | GetPixels (int &left, int &right, int &top, int &bottom, int fontHeight) const |
Public Attributes | |
TUnits | Units |
int | Left: 8 |
int | Right: 8 |
int | Top: 8 |
int | Bottom: 8 |
Used by the TGadgetWindow and TGadget classes, TMargins contains the measurements of the margins for the gadget.
The constructor initializes Units to LayoutUnits and sets Left, Right, Top, and Bottom equal to 0.
void owl::TMargins::GetPixels | ( | int & | left, |
int & | right, | ||
int & | top, | ||
int & | bottom, | ||
int | fontHeight ) const |
Definition at line 55 of file gadget.cpp.
References BorderUnits, Bottom, owl::TUIMetric::CxBorder, owl::TUIMetric::CyBorder, LayoutUnits, Left, Pixels, Right, Top, and Units.