mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
shaped-texture: Mark set the clip and return value nullable
As per the code definition the clip can be a null rectangle, and we can also return a null surface, so mark them as nullable in the introspection. https://gitlab.gnome.org/GNOME/mutter/merge_requests/796
This commit is contained in:
parent
c9c53cb55f
commit
82901f89d5
@ -1204,7 +1204,7 @@ get_image_via_offscreen (MetaShapedTexture *stex,
|
||||
/**
|
||||
* meta_shaped_texture_get_image:
|
||||
* @stex: A #MetaShapedTexture
|
||||
* @clip: A clipping rectangle, to help prevent extra processing.
|
||||
* @clip: (nullable): A clipping rectangle, to help prevent extra processing.
|
||||
* In the case that the clipping rectangle is partially or fully
|
||||
* outside the bounds of the texture, the rectangle will be clipped.
|
||||
*
|
||||
@ -1212,7 +1212,7 @@ get_image_via_offscreen (MetaShapedTexture *stex,
|
||||
* image by alpha blending the two images, and returns the flattened
|
||||
* image.
|
||||
*
|
||||
* Returns: (transfer full): a new cairo surface to be freed with
|
||||
* Returns: (nullable) (transfer full): a new cairo surface to be freed with
|
||||
* cairo_surface_destroy().
|
||||
*/
|
||||
cairo_surface_t *
|
||||
|
Loading…
Reference in New Issue
Block a user