pset_anno_align(3g) — Subroutines
Name
pset_anno_align − Sets the horizontal and vertical alignment attributes for annotation text.
Operating States: PHOP, ∗, STOP, ∗
PHIGS standard function
Creates a structure element
Syntax
void pset_anno_align (
const Ptext_align ∗text_align /∗ (I) Text alignment ∗/
)
Data Structures
typedef struct {
Phor_text_align hor; /∗ horizontal component ∗/
Pvert_text_align vert; /∗ vertical component ∗/
} Ptext_align;
typedef enum {
PHOR_NORM, /∗ Normal horizontal alignment. This is the default
value. ∗/
PHOR_LEFT, /∗ Left horizontal alignment. ∗/
PHOR_CTR, /∗ Center horizontal alignment. ∗/
PHOR_RIGHT /∗ Right horizontal alignment. ∗/
} Phor_text_align;
typedef enum {
PVERT_NORM, /∗ Normal vertical alignment. This is the default
value. ∗/
PVERT_TOP, /∗ Top vertical alignment. ∗/
PVERT_CAP, /∗ Cap vertical alignment. ∗/
PVERT_HALF, /∗ Half vertical alignment. ∗/
PVERT_BASE, /∗ Base vertical alignment. ∗/
PVERT_BOTTOM /∗ Bottom vertical alignment. ∗/
} Pvert_text_align;
Description
pset_anno_align sets the horizontal and vertical text alignment attributes. This function creates a set annotation text alignment element that uses the annotation text alignment horizontal and annotation text alignment vertical values to control the positioning of the text extent parallelogram in relation to the text position. The text string remains in the same workstation plane regardless of rotation.
Depending on the current edit mode, the function either inserts the new structure element directly after the element indicated by the pointer or replaces the element indicated by the pointer. The pointer then points to the new set annotation text alignment element.
During structure traversal, Digital PHIGS sets the current annotation text alignment entry in the PHIGS traversal state list to the values specified by the horizontal and vertical parameters. These values are associated with subsequent primitives.
If Digital PHIGS is in immediate mode, it performs this function immediately, but the function does not create a structure element.
See Also
pe_alt_anno_text_rel
pe_alt_anno_text_rel3
panno_text_rel
panno_text_rel3
pset_text_align