Re: How to get sizes of widget



> Is there a function, reciprocal to gtk_widget_set_usize()?
> I have a GtkLabel and I want to know its horizontal size.

GtkWidget *label;
label->allocation.height

But remember, the label has to be realized before you can get its size.

Tim
timte878@student.liu.se






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