Re: About buffering Cairo drawings
- From: smso graduate hku hk
- To: gtkmm-list gnome org
- Subject: Re: About buffering Cairo drawings
- Date: Thu, 13 Dec 2007 00:41:05 +0800
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]