GNOME Bugzilla – Bug 727081
ClutterRect structure should be hidden.
Last modified: 2014-03-26 11:44:39 UTC
ClutterRect shouldn't be accessed via its struct fields, because ClutterRects should be normalized before any operations. That's documented. So shouldn't the struct definition be hidden to avoid people from making this mistake.
no. I don't want people allocating a ton of ClutterRects when it's perfectly fine to use it on the stack. it's perfectly fine to access the fields after any operation involving ClutterRect, as any function will automatically normalize the data. the fields are also perfectly fine being accessed as read-only data. finally, there's a public method to normalize the contents of ClutterRect.