GNOME Bugzilla – Bug 656879
ClutterTexture: allow to clip corners
Last modified: 2012-08-27 10:42:35 UTC
In some cases one wants to show a texture with rounded corners. E.g. in Empathy we have a ClutterTexture used by a ClutterGstVideoSink to display a video and we want the corners to be rounded. It would be nice if ClutterTexture (or a subclass of it) implemented this so one doesn't need to write its own actor for this simple task.
Created attachment 194202 [details] EmpathyRoundedTexture source This is a ClutterTexture subclass to do the above.
Created attachment 194203 [details] EmpathyRoundedTexture header
sadly, rounded corners in Cogl currently mean aliased borders - which do not look really nice.
ClutterTexture is deprecated, and we have bug 656877 to track the addition of a corner-radius property to ClutterActor. *** This bug has been marked as a duplicate of bug 656877 ***