Get width and height of a Cairo::Context

I have a function that is run when drawing in a Gtk::DrawingArea.
draw_thing prototype:
int draw_thing(const Cairo::RefPtr<Cairo::Context> cr)
I want to get height and width of the drawing area. How can I obtain them?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]