gdkpixbufoverlay: add "positioning-mode" property to allow absolute positions
authorTim-Philipp Müller <tim@centricular.com>
Thu, 25 Dec 2014 14:53:09 +0000 (14:53 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 25 Dec 2014 15:38:37 +0000 (15:38 +0000)
commitb76595d67eb8c56830ab7c1cb55a45c660b3394f
tree0ae12943b291c1244533762a531c3a10a82de271
parent11d6be2dcb51878ea04dc0d2cda9ee11ace1fcd5
gdkpixbufoverlay: add "positioning-mode" property to allow absolute positions

Set positioning-mode=pixels-absolute to allow positioning with
absolute coordinates, meaning negative x/y offsets will be
interpreted as being to the left/above the video frame instead
of being interpreted as relative to the right/bottom edge of
the video frame (which is a silly default, but that's how it is).

This means we can nicely slide images into and out of the frame,
see gdkpixbufoverlay-test.

https://bugzilla.gnome.org/show_bug.cgi?id=739566
ext/gdk_pixbuf/gstgdkpixbufoverlay.c
ext/gdk_pixbuf/gstgdkpixbufoverlay.h