[cairo] set/get_user_data

Jost Boekemeier jost2345 at yahoo.de
Wed Jul 7 09:59:42 PDT 2004


> I used to want this too, but I was suggested to
> maintain my own stack by
> treating each cairo_t as a state.

Each cairo_t is a state.  But sometimes you want to
attach and retrieve external graphics state which can
only be emulated by cairo.

For example the background color used in traditional
X11.  With the two functions you can attach the data
to the cairo_t and retrieve it later to translate it
into the appropriate cairo commands. 

Jost



	

	
		
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de




More information about the cairo mailing list