OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TMargins Struct Reference

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
 

Detailed Description

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.

Definition at line 53 of file gadget.h.

Member Enumeration Documentation

◆ TUnits

Enumerator
Pixels 
LayoutUnits 
BorderUnits 

Definition at line 55 of file gadget.h.

Constructor & Destructor Documentation

◆ TMargins() [1/2]

owl::TMargins::TMargins ( )
inline

Definition at line 64 of file gadget.h.

◆ TMargins() [2/2]

owl::TMargins::TMargins ( TUnits u,
int l,
int r,
int t,
int b )
inline

Definition at line 66 of file gadget.h.

Member Function Documentation

◆ GetPixels()

void owl::TMargins::GetPixels ( int & left,
int & right,
int & top,
int & bottom,
int fontHeight ) const

Member Data Documentation

◆ Bottom

int owl::TMargins::Bottom

Definition at line 62 of file gadget.h.

◆ Left

int owl::TMargins::Left

Definition at line 59 of file gadget.h.

◆ Right

int owl::TMargins::Right

Definition at line 60 of file gadget.h.

◆ Top

int owl::TMargins::Top

Definition at line 61 of file gadget.h.

◆ Units

TUnits owl::TMargins::Units

Definition at line 57 of file gadget.h.


The documentation for this struct was generated from the following files: