LibreOffice Module svx (master) 1
|
#include <tools/gen.hxx>
Go to the source code of this file.
Functions | |
Point | centerImage (const tools::Rectangle &rBoundingRect, const Image &rImg) |
Given a bounding rectangle and an image, determine the top-left position of the image so that the image would look centered both horizontally and vertically. More... | |
Point centerImage | ( | const tools::Rectangle & | rBoundingRect, |
const Image & | rImg | ||
) |
Given a bounding rectangle and an image, determine the top-left position of the image so that the image would look centered both horizontally and vertically.
rBoundingRect | bounding rectangle |
rImg | image |
Definition at line 127 of file modctrl.cxx.
References Size::getHeight(), tools::Rectangle::GetSize(), Image::GetSizePixel(), Size::getWidth(), and tools::Rectangle::TopLeft().
Referenced by SvxZoomPageStatusBarControl::Paint(), and SvxModifyControl::Paint().