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

#include <owl/layoutco.h>

Inheritance diagram for owl::TEdgeOrHeightConstraint:
owl::TEdgeOrSizeConstraint owl::TEdgeConstraint owl::TLayoutConstraint

Public Member Functions

void Absolute (TEdge edge, int value)
 
void PercentOf (TWindow *otherWin, TEdge edge, int percent)
 
void SameAs (TWindow *otherWin, TEdge edge)
 
void Absolute (int value)
 Setting a width/height to a fixed value.
 
void PercentOf (TWindow *otherWin, int percent, TWidthHeight otherWidthHeight=lmHeight)
 Percent of another window's width/height (defaults to being the same dimension but could be the opposite dimension, e.g.
 
void SameAs (TWindow *otherWin, TWidthHeight otherWidthHeight=lmHeight, int value=0)
 Same as another window's width/height (defaults to being the same dimension but could be the opposite dimension, e.g.
 
- Public Member Functions inherited from owl::TEdgeOrSizeConstraint
void Absolute (TEdge edge, int value)
 
void PercentOf (TWindow *otherWin, TEdge edge, int percent)
 
void SameAs (TWindow *otherWin, TEdge edge)
 
void AsIs (TEdge edge)
 
void AsIs (TWidthHeight edge)
 
- Public Member Functions inherited from owl::TEdgeConstraint
void Set (TEdge edge, TRelationship rel, TWindow *otherWin, TEdge otherEdge, int value=0)
 For setting arbitrary edge constraints.
 
void LeftOf (TWindow *sibling, int margin=0)
 Positions one window with respect to a sibling window.
 
void RightOf (TWindow *sibling, int margin=0)
 Positions one window with respect to a sibling window.
 
void Above (TWindow *sibling, int margin=0)
 Positions your window above a sibling window.
 
void Below (TWindow *sibling, int margin=0)
 Positions your window with respect to a sibling window.
 
void SameAs (TWindow *otherWin, TEdge edge)
 Sets the edge of your window indicated by edge equivalent to the corresponding edge of the window in otherWin.
 
void PercentOf (TWindow *otherWin, TEdge edge, int percent)
 Specifies that the edge of one window indicated in edge should be a percentage of the corresponding edge of another window (otherWin.
 
void Absolute (TEdge edge, int value)
 Sets an edge of your window to a fixed value.
 
void AsIs (TEdge edge)
 

Additional Inherited Members

- Public Attributes inherited from owl::TLayoutConstraint
TWindowRelWin
 RelWin is a pointer to the sibling windows or lmParent if the child is a proportion of the parent's dimensions.
 
uint MyEdge: 4
 MyEdge contains the name of the edge or size constraint (lmTop, lmBottom, lmLeft, lmRight, lmCenter, lmWidth, or lmHeight) for your window.
 
TRelationship Relationship: 4
 Relationship specifies the type of relationship that exists between the two windows (that is, lmRightOf, lmLeftOf, lmAbove, lmBelow, lmSameAs, or lmPercentOf).
 
TMeasurementUnits Units: 4
 Units enumerates the units of measurement (either pixels or layout units) used to measure the height and width of the windows.
 
uint OtherEdge: 4
 OtherEdge contains the name of the edge or size constraint (lmTop, lmBottom, lmLeft, lmRight, lmCenter, lmWidth, or lmHeight) for the other window.
 
union { 
 
   int   Margin 
 used for "lmAbove", "lmBelow", "lmLeftOf", "lmRightOf" More...
 
   int   Value 
 used for "lmSameAs" and "lmAbsolute" More...
 
   int   Percent 
 used for "lmPercentOf" More...
 
};  
 This union is included for the convenience of naming the layout constraints.
 

Detailed Description

Definition at line 252 of file layoutco.h.

Member Function Documentation

◆ Absolute() [1/2]

void owl::TEdgeOrHeightConstraint::Absolute ( int value)
inline

Setting a width/height to a fixed value.

Definition at line 456 of file layoutco.h.

References owl::lmAbsolute, owl::lmHeight, owl::TLayoutConstraint::MyEdge, owl::TLayoutConstraint::Relationship, and owl::TLayoutConstraint::Value.

◆ Absolute() [2/2]

void owl::TEdgeOrHeightConstraint::Absolute ( TEdge edge,
int value )
inline

Definition at line 438 of file layoutco.h.

References owl::TEdgeConstraint::Absolute().

◆ PercentOf() [1/2]

void owl::TEdgeOrHeightConstraint::PercentOf ( TWindow * otherWin,
int percent,
TWidthHeight otherWidthHeight = lmHeight )
inline

Percent of another window's width/height (defaults to being the same dimension but could be the opposite dimension, e.g.

make my width 50% of my parent's height)

Definition at line 464 of file layoutco.h.

References owl::lmHeight, owl::lmPercentOf, owl::TLayoutConstraint::MyEdge, owl::TLayoutConstraint::OtherEdge, owl::TLayoutConstraint::Percent, owl::TLayoutConstraint::Relationship, and owl::TLayoutConstraint::RelWin.

◆ PercentOf() [2/2]

void owl::TEdgeOrHeightConstraint::PercentOf ( TWindow * otherWin,
TEdge edge,
int percent )
inline

Definition at line 444 of file layoutco.h.

References owl::TEdgeConstraint::PercentOf().

◆ SameAs() [1/2]

void owl::TEdgeOrHeightConstraint::SameAs ( TWindow * otherWin,
TEdge edge )
inline

Definition at line 450 of file layoutco.h.

References owl::TEdgeConstraint::SameAs().

◆ SameAs() [2/2]

void owl::TEdgeOrHeightConstraint::SameAs ( TWindow * otherWin,
TWidthHeight otherWidthHeight = lmHeight,
int value = 0 )
inline

Same as another window's width/height (defaults to being the same dimension but could be the opposite dimension, e.g.

make my width the same as my height)

Definition at line 475 of file layoutco.h.

References owl::lmHeight, owl::lmSameAs, owl::TLayoutConstraint::MyEdge, owl::TLayoutConstraint::OtherEdge, owl::TLayoutConstraint::Relationship, owl::TLayoutConstraint::RelWin, and owl::TLayoutConstraint::Value.


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