I have custom subclass of gtk::Box, I need to make it calculate width based on parent(50% for example) and height using aspect ratio that needs to be specified.
I tried implementing size_allocate using WidgetImpl, but when using println! inside of it nothing happened(I tried calling object.size_allocate but it is different function probably).
What you need is gtk constraints