
3
Procedures and Macros
This section lists the XView procedures and macros in alphabetical order. For each proce-
dure or macro, an explanation of its use is provided. Following each procedure is a synopsis
that includes the procedure’s parameters, if there are any. The parameters are described after
the synopsis.
attr_create_list( )
Takes an attribute-value list and converts it into an array of Attr_attributes, also
known as an Attr_avlist. ATTRIBUTE_STANDARD_SIZE, defined in <xview/attr.h>,
defines how big an attriubte-value list can get. This is the limit on how big an attri-
bute-value list can be created using the ATTR_LIST or attr_create_list() macros.
Attr_avlist
attr_create_list(attrs)
The return value is used as the value for the attribute ATTR_LIST.
CANVAS_EACH_PAINT_WINDOW( )
Macro providing built-in support for iteration across all the paint windows contained in
a given canvas. Allows you to perform operations on multiple paint windows for
which there are no canvas attributes.
CANVAS_END_EACH
Closes the loop started by CANVAS_EACH_PAINT_WINDOW(). These two macros are
meant to be used together.
cursor_copy()
Creates and returns a copy of src_cursor.
Xv_Cursor
cursor_copy(src_cursor)
Xv_Cursor src_cursor;
Procedures and Macros
Procedures and Macros 175