Logo Search packages:      
Sourcecode: ardour version File versions

void Gdk::Drawable::draw_layout ( const Glib::RefPtr< const GC > &  gc,
int  x,
int  y,
const Glib::RefPtr< const Pango::Layout > &  layout 
) [inherited]

Render a Pango::Layout onto a GDK drawable

If the layout's Pango::Context has a transformation matrix set, then x and y specify the position of the top left corner of the bounding box (in device space) of the transformed layout.

If you're using GTK+, the usual way to obtain a Pango::Layout is gtk_widget_create_pango_layout().

gc Base graphics context to use.
x The X position of the left of the layout (in pixels).
y The Y position of the top of the layout (in pixels).
layout A Pango::Layout.

Definition at line 266 of file drawable.cc.

References Gdk::Drawable::gobj().

  gdk_draw_layout(gobj(), const_cast<GdkGC*>(Glib::unwrap<GC>(gc)), x, y, const_cast<PangoLayout*>(Glib::unwrap<Pango::Layout>(layout)));

Generated by  Doxygen 1.6.0   Back to index