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


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?


hi Marc -

how about the #size method?

win =

p win.size

=> [200, 200]
  • j


Yes, exactly!


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs