Re: Custom CellRendererText
- From: Iker Perez de Albeniz <ialbeniz cbt es>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Custom CellRendererText
- Date: Wed, 30 Jan 2008 11:00:33 +0100
I have found draw_layout so we can draw a pango:layout... oon the
documentation apears that its posible to set text to the layout.. but when
a ida a pango.layout element to my code i have this error..
C2512: 'Pango::Layout' : no suitable contructor available
any idea?
thanks..
On Wed, 30 Jan 2008 10:34:23 +0100, Iker Perez de Albeniz <ialbeniz cbt es>
wrote:
>
> Hi,
>
> I am tring to make my own CellRendererText from a CellRenderer... i have
> made other cellrenderers drawing (windoiw->draw...) on ::render_vfunc.
>
> Now i want to add text but when i do window-> dont apear draw_string
> (window is a Gdk::Drawable[1]), i have search gtk::CellrendererText code
> to
> see how this is done but ai dont know how it do.. can somebody explain me
> how to do it or how CellrenderText do??
>
> thanks
>
>
> [1] void CellRendererTitle::render_vfunc(const
> Glib::RefPtr<Gdk::Drawable>&
> window, Gtk::Widget& widget, const Gdk::Rectangle& background_area, const
> Gdk::Rectangle& cell_area, const Gdk::Rectangle& expose_area,
> Gtk::CellRendererState flags)
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]