Re: Cairo::Context CTM and DrawingArea::on_draw()
- From: Kjell Ahlstedt <kjell ahlstedt bredband net>
- To: jody <jody xha gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Cairo::Context CTM and DrawingArea::on_draw()
- Date: Fri, 22 Feb 2013 16:08:28 +0100
2013-02-22 15:24, jody skrev:
Hi
Does anybody know what the Current Transformation Matrix (CTM) is for
the Cairo::Context i get from
virtual bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr);
Is there a way to look at the elements of a Cairo::Matrix?
Thank You
Jody
Cairo::Context contains the methods
void get_matrix(Matrix& matrix);
void get_matrix(cairo_matrix_t& matrix);
Matrix get_matrix() const;
Cairo::Matrix derives from cairo_matrix_t,
class Matrix : public cairo_matrix_t
{
............
};
and cairo_matrix_t is an open struct,
typedef struct _cairo_matrix {
double xx; double yx;
double xy; double yy;
double x0; double y0;
} cairo_matrix_t;
Kjell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]