offscreen-effect: Add a method to get the target area

The target size is not always enough, there are cases where the offset
used to paint the target must also be available for developers
implementing an OffscreenEffect.

The get_target_rect() method returns the rectangle used to paint the
target, with the offsets in the ClutterRect:origin and the texture size
in the ClutterRect:size fields, respectively.

The get_target_size() method should be deprecated, given that its
replacement is generally more useful.

https://bugzilla.gnome.org/show_bug.cgi?id=670004
This commit is contained in:
Emmanuele Bassi
2013-02-21 13:01:58 +00:00
parent e72d27815b
commit 37e3ef2303
4 changed files with 50 additions and 0 deletions

View File

@ -2746,6 +2746,7 @@ clutter_offscreen_effect_get_texture
clutter_offscreen_effect_create_texture
clutter_offscreen_effect_paint_target
clutter_offscreen_effect_get_target_size
clutter_offscreen_effect_get_target_rect
<SUBSECTION Standard>
CLUTTER_TYPE_OFFSCREEN_EFFECT
CLUTTER_OFFSCREEN_EFFECT