Re: (no subject)



"Jim Crafton" <jcrafton sorceron com> writes:
I'm new to GTK and I am wondering how one gets the bounding box of a
widget ?

widget->allocation.x, widget->allocation.y, 
widget->allocation.width, widget->allocation.height

Also can a widget be positioned with absolute coordinates ?


Use a GtkFixed container. (But realize that your application will be
broken in the presence of themes or internationalization or users
resizing the window in this case.)

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]