How to query a Gtk::Window for its current height and width?

Hi,

I need to react on a resize event. But I also need width and height,
before, and after the resize event.

How can I find out these two values?

Thanks.

hi Marc -

how about the #size method?

win = Gtk::Window.new()

p win.size

=> [200, 200]
  • j

Hi!

Yes, exactly!

Thanks!