Re: About buffering Cairo drawings



You may create a cairo context from a Gdk::Pixmap in the configure event:
	cairo_context = pixmap->create_cairo_context();

Then you could draw everything on the pixmap and 
do something like this in the expose event handler :

	get_window()->draw_drawable
	(
		get_style()->get_fg_gc(get_state()),
		pixmap,
		event->area.x, event->area.y,
		event->area.x, event->area.y,
		event->area.width, event->area.height
	);






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]