After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 354331 - Use LayoutManager to layout child items
Use LayoutManager to layout child items
Status: RESOLVED WONTFIX
Product: criawips
Classification: Deprecated
Component: Canvas (libccc)
unspecified
Other Linux
: Normal enhancement
: 0.0.6
Assigned To: Criawips maintainers
Criawips maintainers
gnome[unmaintained]
Depends on: 379203
Blocks:
 
 
Reported: 2006-09-04 19:32 UTC by Jan Arne Petersen
Modified: 2011-01-24 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against layout manager branch. (5.58 KB, patch)
2006-11-26 22:48 UTC, Jan Arne Petersen
none Details | Review

Description Jan Arne Petersen 2006-09-04 19:32:02 UTC
It would be nice to use a LayoutManager interface to arrange and resize child items.
Comment 1 Jan Arne Petersen 2006-11-26 22:48:43 UTC
Created attachment 77178 [details] [review]
Patch against layout manager branch.

Some more API.
Comment 2 Jan Arne Petersen 2006-11-27 09:35:09 UTC
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)
Comment 3 Sven Herzberg 2007-04-20 14:44:26 UTC
I think we should work together with Matthias who's currently implementing a new size negotioation mechanism in GTK+.
Comment 4 Akhil Laddha 2011-01-24 09:55:23 UTC
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.