boxes: Add API to crop and scale a MetaRectangle

https://gitlab.gnome.org/GNOME/mutter/merge_requests/323
This commit is contained in:
Robert Mader
2019-01-05 16:39:55 +01:00
committed by Jonas Ådahl
parent 47402d848d
commit d574cf59f1
2 changed files with 22 additions and 0 deletions

View File

@ -274,4 +274,10 @@ void meta_rectangle_transform (const MetaRectangle *rect,
int height,
MetaRectangle *dest);
void meta_rectangle_crop_and_scale (const MetaRectangle *rect,
ClutterRect *src_rect,
int dst_width,
int dst_height,
MetaRectangle *dest);
#endif /* META_BOXES_PRIVATE_H */