void pset_anno_align(
const Ptext_align *align /* text alignment */
)
typedef struct {
Phor_text_align hor; /* horizontal component */
Pvert_text_align vert; /* vertical component */
} Ptext_align;
typedef enum {
PHOR_NORM,
PHOR_LEFT,
PHOR_CTR,
PHOR_RIGHT
} Phor_text_align;
typedef enum {
PVERT_NORM,
PVERT_TOP,
PVERT_CAP,
PVERT_HALF,
PVERT_BASE,
PVERT_BOTTOM
} Pvert_text_align;
A SET ANNOTATION TEXT ALIGNMENT element is inserted in the open structure after element pointer or replaces the element indicated by element pointer, depending on edit mode. Element pointer then points to the SET ANNOTATION TEXT ALIGNMENT element. The values specified by align are associated with the element.
When an element of this type is interpreted, the current annotation text alignment entry in the PHIGS traversal state list is set to align. These values are used to display the annotation text primitives which follow.
If GPHIGS is in NRS mode, the effect of this function is different from the effect described in the standard..
In NRS mode, (see OPEN PIPE), the element is not stored in a structure. It is sent to the workstation on which the pipe is opened.
annotation text relative, open structure, open pipe (ext), inquire current element content, inquire current element type and size