GNOME Bugzilla – Bug 354331
Use LayoutManager to layout child items
Last modified: 2011-01-24 09:55:23 UTC
It would be nice to use a LayoutManager interface to arrange and resize child items.
Created attachment 77178 [details] [review] Patch against layout manager branch. Some more API.
Proposed API for CcItem: virtual void cc_item_get_children_bounds (CcItem *self, CcView *view, CcDRect *bounds) virtual void cc_item_get_natural_size (CcItem *self, gdouble *width, gdouble *height) virtual void cc_item_get_minimum_size (CcItem *self, gdouble *width, gdouble *height) virtual CcLayoutFlags cc_item_get_layout_flags (CcItem *self, gdouble *width, gdouble *height) virtual gdouble cc_item_get_height_for_width (CcItem *self, gdouble width) virtual gdouble cc_item_get_width_for_height (CcItem *self, gdouble height) virtual void cc_item_set_bounds (CcItem *self, CcView *view, CcDRect *bounds) void cc_item_mark_bounds_dirty (CcItem *self, CcView *view) void cc_item_mark_all_bounds_dirty (CcItem *self) Proposed API for CcLayout: virtual void cc_layout_get_natural_size (CcLayout *self, gdouble *width, gdouble *height) virtual void cc_layout_get_minimum_size (CcLayout *self, gdouble *width, gdouble *height) virtual CcLayoutFlags cc_layout_get_layout_flags (CcLayout *self, gdouble *width, gdouble *height) virtual gdouble cc_layout_get_height_for_width (CcLayout *self, gdouble width) virtual gdouble cc_layout_get_width_for_height (CcLayout *self, gdouble height) virtual void cc_layout_set_bounds (CcLayout *self, CcView *view) virtual void cc_layout_mark_bounds_dirty (CcLayout *self, CcItem *child, CcView *view)
I think we should work together with Matthias who's currently implementing a new size negotioation mechanism in GTK+.
Criawips development has been stalled and it has been unmaintained for a few years now. Maintainers don't have future development plan so i am closing bugs as WONTFIX. Please feel free to reopen the bugs in future if anyone takes the responsibility for active development.