Data Fields | |
struct { | |
int x | |
Horizontal position. | |
int y | |
Vertical position. | |
int w | |
Width. | |
int h | |
Height. | |
} | current |
The current size and position of an object. | |
struct { | |
int w | |
Width. | |
int h | |
Height. | |
} | preferred |
The optimal size of the object in ideal circumstances. | |
struct { | |
int w | |
Width. | |
int h | |
Height. | |
} | maximum |
The guaranteed maximum size this object will receive. | |
struct { | |
int w | |
Width. | |
int h | |
Height. | |
} | minimum |
The guaranteed minimum size this object will receive. | |
struct { | |
int l | |
Left value. | |
int r | |
Right value. | |
int t | |
Top value. | |
int b | |
Bottom value. | |
} | pad |
The space padded around the outside of the object. | |
struct { | |
int l | |
Left value. | |
int r | |
Right value. | |
int t | |
Top value. | |
int b | |
Bottom value. | |
} | insets |
The space inside where children should not be laid out. | |
unsigned int | flags |
Bitmask indicating fill policy and alignment. |
The fields of the object, while their explanations are fairly clear, can be visualized with the following diagram:
The affect of the fields when performing layout is as follows:
The opposite is true for a fill policy containing EWL_FLAG_FILL_HFILL, EWL_FLAG_FILL_VFILL or both, The Ewl_Object will now expand to fill the space up to it's maximum size in the respective direction.