Context.tagBegin

Marks the beginning of the tag_name structure. Call cairo.context.Context.tagEnd with the same tag_name to mark the end of the structure.

The attributes string is of the form "key1=value2 key2=value2 ...". Values may be boolean (true/false or 1/0), integer, float, string, or an array.

String values are enclosed in single quotes ('). Single quotes and backslashes inside the string should be escaped with a backslash.

Boolean values may be set to true by only specifying the key. eg the attribute string "key" is the equivalent to "key=true".

Arrays are enclosed in '[]'. eg "rect=[1.2 4.3 2.0 3.0]".

If no attributes are required, attributes can be an empty string or NULL.

See [Tags and Links Description][cairo-Tags-and-Links.description] for the list of tags and attributes.

Invalid nesting of tags or invalid attributes will cause cr to shutdown with a status of CAIRO_STATUS_TAG_ERROR.

See cairo.context.Context.tagEnd.

class Context
void
tagBegin
(
string tagName
,
string attributes
)

Parameters

tagName string

tag name

attributes string

tag attributes