Alignment

Alignment — Horizontal and Vertical Alignments

Synopsis




enum        CriaAlignment;
enum        CriaVAlignment;
CriaAlignment cria_alignment_from_string    (char const	*string);
CriaVAlignment cria_valignment_from_string  (char const	*string);

Description

Details

enum CriaAlignment

typedef enum {
	CRIA_ALIGNMENT_UNSET,
	CRIA_ALIGNMENT_LEFT,
	CRIA_ALIGNMENT_CENTER,
	CRIA_ALIGNMENT_RIGHT,
	CRIA_ALIGNMENT_JUSTIFY
} CriaAlignment;


enum CriaVAlignment

typedef enum {
	CRIA_VALIGNMENT_UNSET,
	CRIA_ALIGNMENT_TOP,
	CRIA_ALIGNMENT_MIDDLE,
	CRIA_ALIGNMENT_BOTTOM
} CriaVAlignment;


cria_alignment_from_string ()

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

cria_valignment_from_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