Forum: Ruby-Gnome 2 How to query a Gtk::Window for its current height and width?

Posted by Marc Heiler (shevegen)
on 2011-12-10 20:59
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.
Posted by jake kaiden (lljk)
on 2011-12-11 14:07
hi Marc -

  how about the #size method?

    win = Gtk::Window.new()

    p win.size

    => [200, 200]

 - j
Posted by Marc Heiler (shevegen)
on 2011-12-12 22:00
Hi!

Yes, exactly!

Thanks!
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.