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!

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