PEXSetATextAlignment(3) — Subroutines
Name
PEXSetATextAlignment - Set Annotation Text Alignment
Synopsis
void PEXSetATextAlignment(Display ∗display, XID resource_id, PEXOCRequestType req_type, int halignment, int valignment)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
resource_idThe resource identifier of the renderer or structure.
req_typeThe request type for the output command (PEXOCRender, PEXOCStore, PEXOCRenderSingle or PEXOCStoreSingle).
halignmentThe horizontal annotation text alignment (PEXHAlignNormal, PEXHAlignLeft, PEXHAlignCenter, PEXHAlignRight).
valignmentThe vertical annotation text alignment (PEXVAlignNormal, PEXVAlignTop, PEXVAlignCap, PEXVAlignHalf, PEXVAlignBase, PEXVAlignBottom).
Returns
None
Description
This function creates an output primitive attribute which sets the horizontal and vertical annotation text alignment attributes.
Errors
BadPEXOutputCommand
The output command contains an invalid value.
BadPEXRenderer
The specified renderer resource identifier is invalid.
BadPEXStructure
The specified structure resource identifier is invalid.