General syntax of draw functions

General syntax of draw functions

All programs which use draw functions must include the file $SCULPTOR/include/draw.h.

The general syntax of a draw function is:

function_name(window_id, ….., start_x, start_y)

The dots represent the specific parameters for the particular function to be performed. These are described in full under the documentation for each individual function.

window_id

The identifying name of the window in which the draw operation is to be performed. If the draw operation is in the current report and is to be performed on the printer, replace the window_id by NULL.

start_x, start_y

The starting x and y co-ordinates of the function to be performed. These parameters are optional, and are ignored by some of the functions (e.g. when a rectangle is drawn the necessary co-ordinates are already specified).


RELATED TOPICS

Draw functions

Drawing operations