Re: [gtkmm] Adding more C++ power to Gtkmm



>though (I'd be interesteed to know how/why you are using on_size_allocate).

most common example: you have a bunch of private data structures for
the widget whose size depends on the size allocated for the
widget. rather than find some random point to call width() and
height() and then resize them (expose?map?etc.), just handle
on_size_allocate and get the allocation dimensions there.

--p



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