gtkmm: Gdk::Cairo Namespace Reference

Functions

void set_source_color (const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Color& color)
 Sets the specified Gdk::Color as the source color of the Cairo context. More...

 
void set_source_rgba (const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::RGBA& color)
 Sets the specified Gdk::RGBA as the source color of the Cairo context. More...

 
void set_source_pixbuf (const ::Cairo::RefPtr< ::Cairo::Context >& context, const Glib::RefPtr< Gdk::Pixbuf >& pixbuf, double pixbuf_x=0, double pixbuf_y=0)
 Sets the given pixbuf as the source pattern for the Cairo context. More...

 
void add_rectangle_to_path (const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Rectangle& rectangle)
 Adds the given rectangle to the current path of the context. More...

 
void add_region_to_path (const ::Cairo::RefPtr< ::Cairo::Context >& context, const ::Cairo::RefPtr< ::Cairo::Region >& region)
 Adds the given region to the current path of the context. More...

 

Function Documentation

void Gdk::Cairo::add_rectangle_to_path ( const ::Cairo::RefPtr< ::Cairo::Context > &  context,
const Gdk::Rectangle rectangle 
)

Adds the given rectangle to the current path of the context.

Parameters
contextA cairo context.
rectangleA rectangle to add to the path of the context.
Since gtkmm 2.10:
void Gdk::Cairo::add_region_to_path ( const ::Cairo::RefPtr< ::Cairo::Context > &  context,
const ::Cairo::RefPtr< ::Cairo::Region > &  region 
)

Adds the given region to the current path of the context.

Parameters
contextA cairo context.
regionA region to add to the path of the context.
Since gtkmm 2.10:
void Gdk::Cairo::set_source_color ( const ::Cairo::RefPtr< ::Cairo::Context > &  context,
const Gdk::Color color 
)

Sets the specified Gdk::Color as the source color of the Cairo context.

Parameters
contextThe cairo context.
colorThe color to use as the source color.
Since gtkmm 2.10:
Deprecated:
Use set_source_rgba() instead.
void Gdk::Cairo::set_source_pixbuf ( const ::Cairo::RefPtr< ::Cairo::Context > &  context,
const Glib::RefPtr< Gdk::Pixbuf >&  pixbuf,
double  pixbuf_x = 0,
double  pixbuf_y = 0 
)

Sets the given pixbuf as the source pattern for the Cairo context.

The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned so that the origin of pixbuf is pixbuf_x, pixbuf_y.

Parameters
contextThe cairo context.
pixbufA Gdk::Pixbuf
pixbuf_xX coordinate of location to place upper left corner of pixbuf.
pixbuf_yY coordinate of location to place upper left corner of pixbuf.
Since gtkmm 2.10:
void Gdk::Cairo::set_source_rgba ( const ::Cairo::RefPtr< ::Cairo::Context > &  context,
const Gdk::RGBA color 
)

Sets the specified Gdk::RGBA as the source color of the Cairo context.

Parameters
contextThe cairo context.
colorThe color to use as the source color.
Since gtkmm 3.0: