Get width and height of a Cairo::Context



I have a function that is run when drawing in a Gtk::DrawingArea.
Signal:
paintarea.signal_draw().connect(sigc::ptr_fun(draw_thing));
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]