OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/layoutco.h>
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 | ||
TWindow * | RelWin | |
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. | ||
Definition at line 252 of file layoutco.h.
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.
Definition at line 438 of file layoutco.h.
References owl::TEdgeConstraint::Absolute().
|
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.
Definition at line 444 of file layoutco.h.
References owl::TEdgeConstraint::PercentOf().
Definition at line 450 of file layoutco.h.
References owl::TEdgeConstraint::SameAs().
|
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.