Re: using cairo inside gtkmm?
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: "Xiangfei Jia" <xjianz gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: using cairo inside gtkmm?
- Date: Tue, 20 Jun 2006 08:10:22 -0500
On 6/18/06, Xiangfei Jia <xjianz gmail com> wrote:
I know that cairomm is not available on windows at the moment. But, I know
there is a way to call gtk+ functions inside gtkmm. So, Is it possible to
directly use cairo in gtkmm? Can anyone show me some short codes about how
to achieve it?
Thanks in advance!!!
Yes, you can use cairo directly from gtkmm. To create the cairo
context, you have to use a GTK+ function (GDK actually). For example:
cairo_t* cr = gdk_cairo_create(gtkmm_widget.get_window()->gobj());
// now you can use cr with regular cairo functions
Jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]