| Criawips Reference Manual |
|---|
CriaAlignmentCriaAlignment — |
enum CriaAlignment; enum CriaVAlignment; CriaAlignment cria_alignment_from_string (char const *string); CriaVAlignment cria_valignment_from_string (char const *string);
typedef enum {
CRIA_ALIGNMENT_UNSET,
CRIA_ALIGNMENT_LEFT,
CRIA_ALIGNMENT_CENTER,
CRIA_ALIGNMENT_RIGHT,
CRIA_ALIGNMENT_JUSTIFY
} CriaAlignment;
typedef enum {
CRIA_VALIGNMENT_UNSET,
CRIA_ALIGNMENT_TOP,
CRIA_ALIGNMENT_MIDDLE,
CRIA_ALIGNMENT_BOTTOM
} CriaVAlignment;
CriaAlignment cria_alignment_from_string (char const *string);
Get an alignment from a string value. This method translates the strings "left", "center" and "right" into the equivalent CriaAlignment values. If an unknown string or NULL gets passed into this method, it returns CRIA_ALIGNMENT_UNSET.
string : |
the string to read the alignment from |
| Returns : | the alignment specified by the string |
CriaVAlignment cria_valignment_from_string (char const *string);
Get a vertical alignment from a string value. This method translates the strings "top", "middle" and "bottom" into the equivalent CriaVAlignment values. If an unknown string or NULL gets passed into this method, it returns CRIA_VALIGNMENT_UNSET.
string : |
the string to read the alignment from |
| Returns : | the vertical alignment specified by the string |
| << Part II. Criawips Foundation Classes | CriaBlock >> |