buf_detect_click(X, Y)
Starts fast mode in which picture objects are not stored. Command detect_click_result returns the object which contained the point.

buf_gif()
Starts fast mode in which picture is drawn on the fly (objects are not stored). Commands output_raw_gif and file_gif allow later to output the image.

buf_gifanim(temp_directory)
Starts fats mode in wihch picture is drawn on the fly (objects are not stored). Commands output_raw_gifanim and file_gifanim allow later to output image.

buf_png()
Starts fast mode in which picture is drawn on the fly (objects are not stored). Commands output_raw_png and file_png allow later to output the picture.

buf_raw_svg()
Starts fast mode in which image is output on the fly to std. ouput. To finish writing, command finish_raw_svg has to be called.

buf_svg_to_file(filename)
Starts fast mode in which picture is drawn on the fly. Later command output_svg_file finishes file writing.

debug_objects()
Outputs all object in SWOG to std. output

detect_click(X, Y)
Returns objects which contain the point X,Y. It returns only those objects, which have a name or link associated with. Function returns a array, whose elements are in form:
(object_name, link, alt,\@childs)
And array childs elements are in the same format.

detect_click_result()
Returns objects which were detected after command buf_detect_click.
See also: detect_click

execute_command(line)
Takes for argument a line of SWOG code. The function is useful, when one needs to add some details to existing SWOG picture, for example to mark a mouse click.

file_gif(filename)
Adds suffix .gif and stores image to GIF file.

file_gifanim(temp directory, file name, keepGifs)
Outputs .gif animation to a file. To create animation temporary .png files are created and program convert joins them to animation.

file_html(filename)
Saves html clickmap to the given file.

file_png(filename)
Outputs png image to the given file, .png suffix is added to filename.

file_svg(filename)
Appends .svg suffix and stores image in SVG format in the givn file. SWOG needs Perl module XML::Writer to output SVG.

finish_raw_svg()
Finishes outputting SVG.

html_clickmap()
Returns HTML clickmap, in HTML page it has to be placed between <map name="">tags</map>

image_dimensions()
Returns dimensions of the image in pixels.

object_info(object_name)
Allowes to access object parameters. The functions returns a hash, whose entries depend on current object type. Most object types have:
alt alt text associated to the object
affine name of coordinates transformation object, which is used drawing the object
belongsToObject name of the parent object to which the object belongs.
data object attribures array (coordinates, color..)
link the link associated with the object
type object type

output_html()
Outputs HTML clickmap to std. output.
See also: html_clickmap

output_raw_gif()
Outputs gif image to std. output.

output_raw_gifanim(temp directory, keepGifs)
Outputs GIF animation to std. output.

output_raw_png()
Outputs png image to std. output.

output_raw_svg()
Outputs SVG image to std. output. SWOG uses Perl module XML::Writer to create SVG.

output_svg_file()
Finishes writing to SVG file, which was started by command buf_svg_to_file.

readObjects(file)
Reads SWOG commands from a file.

readObjectsFromBuffer(buffer)
Reads commands from text buffer. The command is needed when You are creating SWOG code from a program.

version()
Returns the SWOG version.