paint something and then erase it with cairo
- From: Jie Bao <tzlfjz yahoo com cn>
- To: gtk-app-devel-list gnome org
- Subject: paint something and then erase it with cairo
- Date: Tue, 2 Jan 2007 21:59:26 +0800 (CST)
My application need to draw a line on a widget when mouse button is down, and then erase it and restore when
mouse button is up. Previously I use GC to do all the work, I just call m_gc->set_function( Gdk::XOR), paint
the line when mouse button is down, and paint it again when mouse button is up. Currently I try to port every
thing to cairo, seems the cairo xor is not a bitwise XOR operator, so I need to do the work in some other
way. So, with cairo, how can I paint something on a background, and then erase it and restore the background ?
__________________________________________________
赶快注册雅虎超大容量免费邮箱?
http://cn.mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]