LibreOffice Module canvas (master) 1
|
Classes | |
class | ElapsedTime |
Calculate elapsed time. More... | |
class | ValueMap |
A very simplistic map for ASCII strings and arbitrary value types. More... | |
Functions | |
geometry::RealSize2D | createInfiniteSize2D () |
Create a RealSize2D with both coordinate values set to +infinity. More... | |
rendering::RenderState & | initRenderState (rendering::RenderState &renderState) |
rendering::ViewState & | initViewState (rendering::ViewState &viewState) |
::basegfx::B2DHomMatrix & | getViewStateTransform (::basegfx::B2DHomMatrix &transform, const rendering::ViewState &viewState) |
rendering::ViewState & | setViewStateTransform (rendering::ViewState &viewState, const ::basegfx::B2DHomMatrix &transform) |
::basegfx::B2DHomMatrix & | getRenderStateTransform (::basegfx::B2DHomMatrix &transform, const rendering::RenderState &renderState) |
rendering::RenderState & | setRenderStateTransform (rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform) |
rendering::RenderState & | appendToRenderState (rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &rTransform) |
rendering::RenderState & | prependToRenderState (rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &rTransform) |
::basegfx::B2DHomMatrix & | mergeViewAndRenderTransform (::basegfx::B2DHomMatrix &combinedTransform, const rendering::ViewState &viewState, const rendering::RenderState &renderState) |
geometry::AffineMatrix2D & | setIdentityAffineMatrix2D (geometry::AffineMatrix2D &matrix) |
geometry::Matrix2D & | setIdentityMatrix2D (geometry::Matrix2D &matrix) |
uno::Reference< rendering::XIntegerBitmapColorSpace > const & | getStdColorSpace () |
Return a color space for a default RGBA integer format. More... | |
uno::Reference< rendering::XIntegerBitmapColorSpace > const & | getStdColorSpaceWithoutAlpha () |
Return a color space for a default RGB integer format. More... | |
rendering::IntegerBitmapLayout | getStdMemoryLayout (const geometry::IntegerSize2D &rBmpSize) |
uno::Sequence< sal_Int8 > | colorToStdIntSequence (const ::Color &rColor) |
Convert standard 8888 RGBA color to vcl color. More... | |
::basegfx::B2DHomMatrix & | calcRectToOriginTransform (::basegfx::B2DHomMatrix &o_transform, const ::basegfx::B2DRange &i_srcRect, const ::basegfx::B2DHomMatrix &i_transformation) |
Calc a transform that maps the upper, left corner of a rectangle to the origin. More... | |
::basegfx::B2DRange & | calcTransformedRectBounds (::basegfx::B2DRange &o_Rect, const ::basegfx::B2DRange &i_Rect, const ::basegfx::B2DHomMatrix &i_Transformation) |
Calc the bounding rectangle of a transformed rectangle. More... | |
bool | isInside (const ::basegfx::B2DRange &rContainedRect, const ::basegfx::B2DRange &rTransformRect, const ::basegfx::B2DHomMatrix &rTransformation) |
Check whether a given rectangle is within another transformed rectangle. More... | |
bool | clipScrollArea (::basegfx::B2IRange &io_rSourceArea, ::basegfx::B2IPoint &io_rDestPoint, std::vector< ::basegfx::B2IRange > &o_ClippedAreas, const ::basegfx::B2IRange &rBounds) |
::basegfx::B2IRange | spritePixelAreaFromB2DRange (const ::basegfx::B2DRange &rRange) |
Clip a blit between two differently surfaces. More... | |
uno::Sequence< uno::Any > & | getDeviceInfo (const uno::Reference< rendering::XCanvas > &i_rxCanvas, uno::Sequence< uno::Any > &o_rxParams) |
awt::Rectangle | getAbsoluteWindowRect (const awt::Rectangle &rRect, const uno::Reference< awt::XWindow2 > &xWin) |
::basegfx::B2DPolyPolygon | getBoundMarksPolyPolygon (const ::basegfx::B2DRange &rRange) |
Retrieve for small bound marks around each corner of the given rectangle. More... | |
int | calcGradientStepCount (::basegfx::B2DHomMatrix &rTotalTransform, const rendering::ViewState &viewState, const rendering::RenderState &renderState, const rendering::Texture &texture, int nColorSteps) |
void | clipOutDev (const rendering::ViewState &viewState, const rendering::RenderState &renderState, OutputDevice &rOutDev, OutputDevice *p2ndOutDev) |
void | extractExtraFontProperties (const uno::Sequence< beans::PropertyValue > &rExtraFontProperties, sal_uInt32 &rEmphasisMark) |
void | verifyInput (const geometry::RealPoint2D &rPoint, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const geometry::RealBezierSegment2D &rSegment, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const geometry::RealRectangle2D &rRect, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const geometry::AffineMatrix2D &matrix, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const geometry::Matrix2D &matrix, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const rendering::ViewState &viewState, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const rendering::RenderState &renderState, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos, sal_Int32 nMinColorComponents) |
void | verifyInput (const rendering::Texture &texture, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const rendering::StrokeAttributes &strokeAttributes, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const rendering::IntegerBitmapLayout &bitmapLayout, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyInput (const rendering::FontRequest &fontRequest, const char *pStr, const uno::Reference< uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
void | verifyIndexRange (const geometry::IntegerRectangle2D &rect, const geometry::IntegerSize2D &size) |
void | verifyIndexRange (const geometry::IntegerPoint2D &pos, const geometry::IntegerSize2D &size) |
void | verifyBitmapSize (const geometry::IntegerSize2D &size, const char *pStr, const uno::Reference< uno::XInterface > &xIf) |
void | verifySpriteSize (const geometry::RealSize2D &size, const char *pStr, const uno::Reference< uno::XInterface > &xIf) |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::geometry::AffineMatrix2D &rMatrix, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Verify that the given transformation contains valid floating point values. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::geometry::Matrix2D &rMatrix, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Verify that the given transformation contains valid floating point values. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::geometry::RealPoint2D &rPoint, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Verify that the given point contains valid floating point values. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::geometry::RealBezierSegment2D &rSegment, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Verify that the given bezier segment contains valid floating point values. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::geometry::RealRectangle2D &rRect, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Verify that the given rectangle contains valid floating point values. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::ViewState &viewState, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Basic check for view state validity. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::RenderState &renderState, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos, sal_Int32 nMinColorComponents=0) |
Basic check for render state validity. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::StrokeAttributes &strokeAttributes, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Basic check for stroke attributes validity. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::Texture &texture, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Basic check for texture validity. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::IntegerBitmapLayout &bitmapLayout, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Basic check for bitmap layout validity. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyInput (const css::rendering::FontRequest &fontRequest, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Basic check for font request validity. More... | |
template<class Interface > | |
void | verifyInput (const css::uno::Reference< Interface > &rRef, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Templatized check for uno::Reference validity. More... | |
template<typename SequenceContent > | |
void | verifyInput (const css::uno::Sequence< SequenceContent > &rSequence, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf, ::sal_Int16 nArgPos) |
Templatized check for content-of-sequence validity. More... | |
template<typename T > | |
void | verifyInput (const T &, const char *, const css::uno::Reference< css::uno::XInterface > &, ::sal_Int16) |
Catch-all, to handle cases that DON'T need input checking (i.e. the Integer geometry ones) More... | |
template<typename Arg0 > | |
void | verifyArgs (const Arg0 &rArg0, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 , typename Arg2 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const Arg2 &rArg2, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 , typename Arg2 , typename Arg3 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const Arg2 &rArg2, const Arg3 &rArg3, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 , typename Arg2 , typename Arg3 , typename Arg4 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const Arg2 &rArg2, const Arg3 &rArg3, const Arg4 &rArg4, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 , typename Arg2 , typename Arg3 , typename Arg4 , typename Arg5 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const Arg2 &rArg2, const Arg3 &rArg3, const Arg4 &rArg4, const Arg5 &rArg5, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename Arg0 , typename Arg1 , typename Arg2 , typename Arg3 , typename Arg4 , typename Arg5 , typename Arg6 > | |
void | verifyArgs (const Arg0 &rArg0, const Arg1 &rArg1, const Arg2 &rArg2, const Arg3 &rArg3, const Arg4 &rArg4, const Arg5 &rArg5, const Arg6 &rArg6, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
template<typename NumType > | |
void | verifyRange (NumType arg, NumType lowerBound, NumType upperBound) |
Range checker, which throws css::lang::IllegalArgument exception, when range is violated. More... | |
template<typename NumType > | |
void | verifyRange (NumType arg, NumType bound, bool bLowerBound=true) |
Range checker, which throws css::lang::IllegalArgument exception, when range is violated. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyIndexRange (const css::geometry::IntegerRectangle2D &rect, const css::geometry::IntegerSize2D &size) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when index range is violated. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyIndexRange (const css::geometry::IntegerPoint2D &pos, const css::geometry::IntegerSize2D &size) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when index range is violated. More... | |
CANVASTOOLS_DLLPUBLIC void | verifyBitmapSize (const css::geometry::IntegerSize2D &size, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when the size is negative or null. More... | |
CANVASTOOLS_DLLPUBLIC void | verifySpriteSize (const css::geometry::RealSize2D &size, const char *pStr, const css::uno::Reference< css::uno::XInterface > &xIf) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when the size is negative or null. More... | |
sal_uInt32 | nextPow2 (sal_uInt32 x) |
Compute the next highest power of 2 of a 32-bit value. More... | |
sal_Int32 | roundDown (const double &rVal) |
Count the number of 1-bits of a n-bit value. More... | |
sal_Int32 | roundUp (const double &rVal) |
Round given floating point value up to next integer. More... | |
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & | initRenderState (css::rendering::RenderState &renderState) |
CANVASTOOLS_DLLPUBLIC css::rendering::ViewState & | initViewState (css::rendering::ViewState &viewState) |
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & | getViewStateTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::ViewState &viewState) |
CANVASTOOLS_DLLPUBLIC css::rendering::ViewState & | setViewStateTransform (css::rendering::ViewState &viewState, const ::basegfx::B2DHomMatrix &transform) |
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & | getRenderStateTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::RenderState &renderState) |
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & | setRenderStateTransform (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform) |
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & | appendToRenderState (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform) |
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & | prependToRenderState (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform) |
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & | mergeViewAndRenderTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) |
CANVASTOOLS_DLLPUBLIC css::geometry::AffineMatrix2D & | setIdentityAffineMatrix2D (css::geometry::AffineMatrix2D &matrix) |
CANVASTOOLS_DLLPUBLIC css::geometry::Matrix2D & | setIdentityMatrix2D (css::geometry::Matrix2D &matrix) |
CANVASTOOLS_DLLPUBLIC bool | clipScrollArea (::basegfx::B2IRange &io_rSourceArea, ::basegfx::B2IPoint &io_rDestPoint, ::std::vector< ::basegfx::B2IRange > &o_ClippedAreas, const ::basegfx::B2IRange &rBounds) |
Clip a scroll to the given bound rect. More... | |
CANVASTOOLS_DLLPUBLIC css::uno::Sequence< css::uno::Any > & | getDeviceInfo (const css::uno::Reference< css::rendering::XCanvas > &i_rxCanvas, css::uno::Sequence< css::uno::Any > &o_rxParams) |
Retrieve various internal properties of the actual canvas implementation. More... | |
CANVASTOOLS_DLLPUBLIC css::rendering::IntegerBitmapLayout | getStdMemoryLayout (const css::geometry::IntegerSize2D &rBitmapSize) |
Return a memory layout for a default RGBA integer format. More... | |
template<typename Target , typename Source > | |
Target | numeric_cast (Source arg) |
Cast numeric value into another (numeric) data type. More... | |
CANVASTOOLS_DLLPUBLIC css::awt::Rectangle | getAbsoluteWindowRect (const css::awt::Rectangle &rRect, const css::uno::Reference< css::awt::XWindow2 > &xWin) |
CANVASTOOLS_DLLPUBLIC int | calcGradientStepCount (::basegfx::B2DHomMatrix &rTotalTransform, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::Texture &texture, int nColorSteps) |
Calculate number of gradient "strips" to generate (takes into account device resolution) More... | |
CANVASTOOLS_DLLPUBLIC void | clipOutDev (const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, OutputDevice &rOutDev, OutputDevice *p2ndOutDev=nullptr) |
CANVASTOOLS_DLLPUBLIC void | extractExtraFontProperties (const css::uno::Sequence< css::beans::PropertyValue > &rExtraFontProperties, sal_uInt32 &rEmphasisMark) |
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::appendToRenderState | ( | css::rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
rendering::RenderState & canvas::tools::appendToRenderState | ( | rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | rTransform | ||
) |
Definition at line 122 of file canvastools.cxx.
References getRenderStateTransform(), and setRenderStateTransform().
CANVASTOOLS_DLLPUBLIC int canvas::tools::calcGradientStepCount | ( | ::basegfx::B2DHomMatrix & | rTotalTransform, |
const css::rendering::ViewState & | viewState, | ||
const css::rendering::RenderState & | renderState, | ||
const css::rendering::Texture & | texture, | ||
int | nColorSteps | ||
) |
Calculate number of gradient "strips" to generate (takes into account device resolution)
nColorSteps | Maximal integer difference between all color stops, needed for smooth gradient color differences |
int canvas::tools::calcGradientStepCount | ( | ::basegfx::B2DHomMatrix & | rTotalTransform, |
const rendering::ViewState & | viewState, | ||
const rendering::RenderState & | renderState, | ||
const rendering::Texture & | texture, | ||
int | nColorSteps | ||
) |
Definition at line 1172 of file canvastools.cxx.
References getLength(), basegfx::B2DHomMatrix::identity(), max, and mergeViewAndRenderTransform().
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::calcRectToOriginTransform | ( | ::basegfx::B2DHomMatrix & | o_transform, |
const ::basegfx::B2DRange & | i_srcRect, | ||
const ::basegfx::B2DHomMatrix & | i_transformation | ||
) |
Calc a transform that maps the upper, left corner of a rectangle to the origin.
The method is a specialized version of calcRectToRectTransform() (Removed now), mapping the input rectangle's the upper, left corner to the origin, and leaving the size untouched.
o_transform | Output parameter, to receive the resulting transformation matrix. |
i_srcRect | Input parameter, specifies the original source rectangle. The resulting transformation will exactly map the source rectangle's upper, left corner to the origin. |
i_transformation | The original transformation matrix. This is changed with translations (if necessary), to exactly map the source rectangle to the origin. |
Definition at line 894 of file canvastools.cxx.
References calcTransformedRectBounds(), basegfx::utils::createTranslateB2DHomMatrix(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), and basegfx::Range2D< typename TYPE, typename TRAITS >::getMinY().
Referenced by vclcanvas::tools::transformBitmap().
CANVASTOOLS_DLLPUBLIC::basegfx::B2DRange & canvas::tools::calcTransformedRectBounds | ( | ::basegfx::B2DRange & | o_Rect, |
const ::basegfx::B2DRange & | i_Rect, | ||
const ::basegfx::B2DHomMatrix & | i_Transformation | ||
) |
Calc the bounding rectangle of a transformed rectangle.
The method applies the given transformation to the specified input rectangle, and returns the bounding box of the resulting output area.
o_Rect | Output rectangle |
i_Rect | Input rectangle |
i_Transformation | Transformation to apply to the input rectangle |
Definition at line 921 of file canvastools.cxx.
References basegfx::Range2D< typename TYPE, typename TRAITS >::expand(), basegfx::Range2D< typename TYPE, typename TRAITS >::reset(), basegfx::Tuple2D< typename TYPE >::setX(), and basegfx::Tuple2D< typename TYPE >::setY().
Referenced by calcRectToOriginTransform(), canvas::CanvasCustomSpriteHelper::getUpdateArea(), vclcanvas::CanvasHelper::implDrawBitmap(), vclcanvas::tools::transformBitmap(), and canvas::CanvasCustomSpriteHelper::updateClipState().
CANVASTOOLS_DLLPUBLIC void canvas::tools::clipOutDev | ( | const css::rendering::ViewState & | viewState, |
const css::rendering::RenderState & | renderState, | ||
OutputDevice & | rOutDev, | ||
OutputDevice * | p2ndOutDev = nullptr |
||
) |
void canvas::tools::clipOutDev | ( | const rendering::ViewState & | viewState, |
const rendering::RenderState & | renderState, | ||
OutputDevice & | rOutDev, | ||
OutputDevice * | p2ndOutDev | ||
) |
Definition at line 1220 of file canvastools.cxx.
References basegfx::B2DPolyPolygon::count(), vcl::Region::GetRegionFromPolyPolygon(), vcl::Region::Intersect(), vcl::Region::IsNull(), mergeViewAndRenderTransform(), OutputDevice::SetClipRegion(), vcl::Region::SetEmpty(), and basegfx::B2DPolyPolygon::transform().
Referenced by vclcanvas::CanvasHelper::setupOutDevState(), and cairocanvas::setupOutDevState().
CANVASTOOLS_DLLPUBLIC bool canvas::tools::clipScrollArea | ( | ::basegfx::B2IRange & | io_rSourceArea, |
::basegfx::B2IPoint & | io_rDestPoint, | ||
::std::vector< ::basegfx::B2IRange > & | o_ClippedAreas, | ||
const ::basegfx::B2IRange & | rBounds | ||
) |
Clip a scroll to the given bound rect.
io_rSourceArea | Source area to scroll. The resulting clipped source area is returned therein. |
io_rDestPoint | Destination point of the scroll (upper, left corner of rSourceArea after the scroll). The new, resulting destination point is returned therein.q |
o_ClippedAreas | Vector of rectangles in the destination area coordinate system, which are clipped away from the source area, and thus need extra updates (i.e. they are not correctly copy from the scroll operation, since there was no information about them in the source). |
rBounds | Bounds to clip against. |
bool canvas::tools::clipScrollArea | ( | ::basegfx::B2IRange & | io_rSourceArea, |
::basegfx::B2IPoint & | io_rDestPoint, | ||
std::vector< ::basegfx::B2IRange > & | o_ClippedAreas, | ||
const ::basegfx::B2IRange & | rBounds | ||
) |
Definition at line 1029 of file canvastools.cxx.
References basegfx::B2IRange::getRange(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), and basegfx::Range2D< typename TYPE, typename TRAITS >::intersect().
Referenced by cairocanvas::SpriteCanvasHelper::scrollUpdate(), and vclcanvas::SpriteCanvasHelper::scrollUpdate().
CANVASTOOLS_DLLPUBLIC css::uno::Sequence< sal_Int8 > canvas::tools::colorToStdIntSequence | ( | const ::Color & | rColor | ) |
Convert standard 8888 RGBA color to vcl color.
Definition at line 874 of file canvastools.cxx.
CANVASTOOLS_DLLPUBLIC css::geometry::RealSize2D canvas::tools::createInfiniteSize2D | ( | ) |
Create a RealSize2D with both coordinate values set to +infinity.
Definition at line 67 of file canvastools.cxx.
Referenced by dxcanvas::DeviceHelper::getPhysicalResolution(), oglcanvas::SpriteDeviceHelper::getPhysicalResolution(), vclcanvas::DeviceHelper::getPhysicalResolution(), cairocanvas::DeviceHelper::getPhysicalSize(), dxcanvas::DeviceHelper::getPhysicalSize(), oglcanvas::SpriteDeviceHelper::getPhysicalSize(), and vclcanvas::DeviceHelper::getPhysicalSize().
CANVASTOOLS_DLLPUBLIC void canvas::tools::extractExtraFontProperties | ( | const css::uno::Sequence< css::beans::PropertyValue > & | rExtraFontProperties, |
sal_uInt32 & | rEmphasisMark | ||
) |
void canvas::tools::extractExtraFontProperties | ( | const uno::Sequence< beans::PropertyValue > & | rExtraFontProperties, |
sal_uInt32 & | rEmphasisMark | ||
) |
Definition at line 1296 of file canvastools.cxx.
awt::Rectangle canvas::tools::getAbsoluteWindowRect | ( | const awt::Rectangle & | rRect, |
const uno::Reference< awt::XWindow2 > & | xWin | ||
) |
Definition at line 1107 of file canvastools.cxx.
References VCLUnoHelper::GetWindow(), Point::X(), and Point::Y().
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::transformBounds().
CANVASTOOLS_DLLPUBLIC css::awt::Rectangle canvas::tools::getAbsoluteWindowRect | ( | const css::awt::Rectangle & | rRect, |
const css::uno::Reference< css::awt::XWindow2 > & | xWin | ||
) |
CANVASTOOLS_DLLPUBLIC::basegfx::B2DPolyPolygon canvas::tools::getBoundMarksPolyPolygon | ( | const ::basegfx::B2DRange & | rRange | ) |
Retrieve for small bound marks around each corner of the given rectangle.
Definition at line 1127 of file canvastools.cxx.
References basegfx::B2DPolyPolygon::append(), basegfx::B2DPolygon::append(), and basegfx::B2DPolygon::clear().
Referenced by vclcanvas::SpriteHelper::redraw().
CANVASTOOLS_DLLPUBLIC css::uno::Sequence< css::uno::Any > & canvas::tools::getDeviceInfo | ( | const css::uno::Reference< css::rendering::XCanvas > & | i_rxCanvas, |
css::uno::Sequence< css::uno::Any > & | o_rxParams | ||
) |
Retrieve various internal properties of the actual canvas implementation.
This method retrieves a bunch of internal, implementation- and platform-dependent values from the canvas implementation. Among them are for example operating system window handles. The actual layout and content of the returned sequence is dependent on the component implementation, undocumented and subject to change.
i_rxCanvas | Input parameter, the canvas representation for which the device information is to be retrieved |
o_rxParams | Output parameter, the sequence of Anys that hold the device parameters. Layout is as described above |
uno::Sequence< uno::Any > & canvas::tools::getDeviceInfo | ( | const uno::Reference< rendering::XCanvas > & | i_rxCanvas, |
uno::Sequence< uno::Any > & | o_rxParams | ||
) |
Definition at line 1078 of file canvastools.cxx.
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::getRenderStateTransform | ( | ::basegfx::B2DHomMatrix & | transform, |
const css::rendering::RenderState & | renderState | ||
) |
::basegfx::B2DHomMatrix & canvas::tools::getRenderStateTransform | ( | ::basegfx::B2DHomMatrix & | transform, |
const rendering::RenderState & | renderState | ||
) |
Definition at line 108 of file canvastools.cxx.
Referenced by appendToRenderState(), and prependToRenderState().
CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace > const & canvas::tools::getStdColorSpace | ( | ) |
Return a color space for a default RGBA integer format.
Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGBA color.
Definition at line 847 of file canvastools.cxx.
References SPACE.
Referenced by oglcanvas::SpriteDeviceHelper::getColorSpace(), and getStdMemoryLayout().
CANVASTOOLS_DLLPUBLIC css::uno::Reference< css::rendering::XIntegerBitmapColorSpace > const & canvas::tools::getStdColorSpaceWithoutAlpha | ( | ) |
Return a color space for a default RGB integer format.
Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGB color (the last byte is unused).
Definition at line 853 of file canvastools.cxx.
References SPACE.
Referenced by vclcanvas::CanvasHelper::getMemoryLayout(), and vclcanvas::CanvasBitmapHelper::getMemoryLayout().
CANVASTOOLS_DLLPUBLIC css::rendering::IntegerBitmapLayout canvas::tools::getStdMemoryLayout | ( | const css::geometry::IntegerSize2D & | rBitmapSize | ) |
Return a memory layout for a default RGBA integer format.
Use this method for dead-simple bitmap implementations, that map all their formats to 8888 RGBA color.
rendering::IntegerBitmapLayout canvas::tools::getStdMemoryLayout | ( | const geometry::IntegerSize2D & | rBmpSize | ) |
Definition at line 859 of file canvastools.cxx.
References getStdColorSpace().
Referenced by dxcanvas::BitmapCanvasHelper::getMemoryLayout(), vclcanvas::CanvasHelper::getMemoryLayout(), oglcanvas::BitmapCanvasHelper::getMemoryLayout(), and vclcanvas::CanvasBitmapHelper::getMemoryLayout().
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::getViewStateTransform | ( | ::basegfx::B2DHomMatrix & | transform, |
const css::rendering::ViewState & | viewState | ||
) |
::basegfx::B2DHomMatrix & canvas::tools::getViewStateTransform | ( | ::basegfx::B2DHomMatrix & | transform, |
const rendering::ViewState & | viewState | ||
) |
Definition at line 94 of file canvastools.cxx.
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::initRenderState | ( | css::rendering::RenderState & | renderState | ) |
rendering::RenderState & canvas::tools::initRenderState | ( | rendering::RenderState & | renderState | ) |
Definition at line 74 of file canvastools.cxx.
References setIdentityAffineMatrix2D().
CANVASTOOLS_DLLPUBLIC css::rendering::ViewState & canvas::tools::initViewState | ( | css::rendering::ViewState & | viewState | ) |
rendering::ViewState & canvas::tools::initViewState | ( | rendering::ViewState & | viewState | ) |
Definition at line 85 of file canvastools.cxx.
References setIdentityAffineMatrix2D().
CANVASTOOLS_DLLPUBLIC bool canvas::tools::isInside | ( | const ::basegfx::B2DRange & | rContainedRect, |
const ::basegfx::B2DRange & | rTransformRect, | ||
const ::basegfx::B2DHomMatrix & | rTransformation | ||
) |
Check whether a given rectangle is within another transformed rectangle.
This method checks for polygonal containedness, i.e. the transformed rectangle is not represented as an axis-aligned rectangle anymore (like calcTransformedRectBounds()), but polygonal. Thus, the insideness test is based on tight bounds.
rContainedRect | This rectangle is checked, whether it is fully within the transformed rTransformRect. |
rTransformRect | This rectangle is transformed, and then checked whether it fully contains rContainedRect. |
rTransformation | This transformation is applied to rTransformRect |
Definition at line 959 of file canvastools.cxx.
References isInside(), and basegfx::B2DPolygon::transform().
Referenced by canvas::CanvasCustomSpriteHelper::checkDrawBitmap(), and isInside().
::basegfx::B2DHomMatrix & canvas::tools::mergeViewAndRenderTransform | ( | ::basegfx::B2DHomMatrix & | combinedTransform, |
const rendering::ViewState & | viewState, | ||
const rendering::RenderState & | renderState | ||
) |
Definition at line 140 of file canvastools.cxx.
Referenced by calcGradientStepCount(), canvas::CanvasCustomSpriteHelper::checkDrawBitmap(), clipOutDev(), dxcanvas::TextLayoutDrawHelper::drawText(), vclcanvas::CanvasHelper::implDrawBitmap(), vclcanvas::tools::mapPolyPolygon(), vclcanvas::tools::mapRealPoint2D(), oglcanvas::CanvasCustomSprite::move(), canvas::CanvasCustomSpriteHelper::move(), cairocanvas::setupFontTransform(), and vclcanvas::tools::setupFontTransform().
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::mergeViewAndRenderTransform | ( | ::basegfx::B2DHomMatrix & | transform, |
const css::rendering::ViewState & | viewState, | ||
const css::rendering::RenderState & | renderState | ||
) |
|
inline |
Compute the next highest power of 2 of a 32-bit value.
Code devised by Sean Anderson, in good ole HAKMEM tradition.
Definition at line 88 of file canvastools.hxx.
References x.
|
inline |
Cast numeric value into another (numeric) data type.
Apart from converting the numeric value, this template also checks if any overflow, underflow, or sign information is lost (if yes, it throws an uno::RuntimeException.
Definition at line 364 of file canvastools.hxx.
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::prependToRenderState | ( | css::rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
rendering::RenderState & canvas::tools::prependToRenderState | ( | rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | rTransform | ||
) |
Definition at line 131 of file canvastools.cxx.
References getRenderStateTransform(), and setRenderStateTransform().
|
inline |
Count the number of 1-bits of a n-bit value.
Round given floating point value down to next integer
Definition at line 108 of file canvastools.hxx.
|
inline |
Round given floating point value up to next integer.
Definition at line 115 of file canvastools.hxx.
CANVASTOOLS_DLLPUBLIC css::geometry::AffineMatrix2D & canvas::tools::setIdentityAffineMatrix2D | ( | css::geometry::AffineMatrix2D & | matrix | ) |
geometry::AffineMatrix2D & canvas::tools::setIdentityAffineMatrix2D | ( | geometry::AffineMatrix2D & | matrix | ) |
Definition at line 155 of file canvastools.cxx.
Referenced by oglcanvas::CanvasCustomSprite::CanvasCustomSprite(), initRenderState(), and initViewState().
CANVASTOOLS_DLLPUBLIC css::geometry::Matrix2D & canvas::tools::setIdentityMatrix2D | ( | css::geometry::Matrix2D & | matrix | ) |
geometry::Matrix2D & canvas::tools::setIdentityMatrix2D | ( | geometry::Matrix2D & | matrix | ) |
Definition at line 167 of file canvastools.cxx.
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::setRenderStateTransform | ( | css::rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
rendering::RenderState & canvas::tools::setRenderStateTransform | ( | rendering::RenderState & | renderState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
Definition at line 114 of file canvastools.cxx.
Referenced by appendToRenderState(), and prependToRenderState().
CANVASTOOLS_DLLPUBLIC css::rendering::ViewState & canvas::tools::setViewStateTransform | ( | css::rendering::ViewState & | viewState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
rendering::ViewState & canvas::tools::setViewStateTransform | ( | rendering::ViewState & | viewState, |
const ::basegfx::B2DHomMatrix & | transform | ||
) |
Definition at line 100 of file canvastools.cxx.
CANVASTOOLS_DLLPUBLIC::basegfx::B2IRange canvas::tools::spritePixelAreaFromB2DRange | ( | const ::basegfx::B2DRange & | rRange | ) |
Clip a blit between two differently surfaces.
This method clips source and dest rect for a clip between two differently clipped surfaces, such that the resulting blit rects are fully within both clip areas.
io_rSourceArea | Source area of the blit. Returned therein is the computed clipped source area. |
io_rDestPoint | Dest area of the blit. Returned therein is the computed clipped dest area. |
rSourceBounds | Clip bounds of the source surface |
rDestBounds | Clip bounds of the dest surface |
Definition at line 1065 of file canvastools.cxx.
Referenced by cairocanvas::SpriteCanvasHelper::scrollUpdate(), dxcanvas::SpriteCanvasHelper::scrollUpdate(), and vclcanvas::SpriteCanvasHelper::scrollUpdate().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const Arg2 & | rArg2, | ||
const Arg3 & | rArg3, | ||
const Arg4 & | rArg4, | ||
const Arg5 & | rArg5, | ||
const Arg6 & | rArg6, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 473 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const Arg2 & | rArg2, | ||
const Arg3 & | rArg3, | ||
const Arg4 & | rArg4, | ||
const Arg5 & | rArg5, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 450 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const Arg2 & | rArg2, | ||
const Arg3 & | rArg3, | ||
const Arg4 & | rArg4, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 430 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const Arg2 & | rArg2, | ||
const Arg3 & | rArg3, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 413 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const Arg2 & | rArg2, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 399 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const Arg1 & | rArg1, | ||
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 388 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyArgs | ( | const Arg0 & | rArg0, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
Definition at line 380 of file verifyinput.hxx.
References verifyInput().
Referenced by canvas::BitmapCanvasBase2< Base, CanvasHelper, Mutex, UnambiguousBase >::copyRect(), canvas::SpriteCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createClonedSprite(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createFont(), canvas::SpriteCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createSpriteFromAnimation(), canvas::SpriteCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createSpriteFromBitmaps(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawBezier(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawBitmap(), canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::drawBitmap(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawBitmapModulated(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawLine(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawPoint(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawPolyPolygon(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawText(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawTextLayout(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::fillPolyPolygon(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::fillTexturedPolyPolygon(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::fillTextureMappedPolyPolygon(), canvas::IntegerBitmapBase< Base >::getData(), canvas::IntegerBitmapBase< Base >::getPixel(), canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::move(), oglcanvas::CanvasCustomSprite::move(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::queryAvailableFonts(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::queryStrokeShapes(), canvas::IntegerBitmapBase< Base >::setData(), canvas::IntegerBitmapBase< Base >::setPixel(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::strokePolyPolygon(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::strokeTexturedPolyPolygon(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::strokeTextureMappedPolyPolygon(), and canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::transform().
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyBitmapSize | ( | const css::geometry::IntegerSize2D & | size, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
void canvas::tools::verifyBitmapSize | ( | const geometry::IntegerSize2D & | size, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf | ||
) |
Definition at line 641 of file verifyinput.cxx.
References size.
Referenced by canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleAlphaBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createCompatibleBitmap(), canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createVolatileAlphaBitmap(), and canvas::GraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createVolatileBitmap().
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyIndexRange | ( | const css::geometry::IntegerPoint2D & | pos, |
const css::geometry::IntegerSize2D & | size | ||
) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when index range is violated.
pos | Position to verify |
size | Given position must be within ((0,0), (size.Width, size.Height)) |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyIndexRange | ( | const css::geometry::IntegerRectangle2D & | rect, |
const css::geometry::IntegerSize2D & | size | ||
) |
Range checker, which throws css::lang::IndexOutOfBounds exception, when index range is violated.
rect | Rect to verify |
size | Given rectangle must be within ((0,0), (size.Width, size.Height)) |
void canvas::tools::verifyIndexRange | ( | const geometry::IntegerPoint2D & | pos, |
const geometry::IntegerSize2D & | size | ||
) |
Definition at line 629 of file verifyinput.cxx.
void canvas::tools::verifyIndexRange | ( | const geometry::IntegerRectangle2D & | rect, |
const geometry::IntegerSize2D & | size | ||
) |
Definition at line 613 of file verifyinput.cxx.
References size.
Referenced by canvas::IntegerBitmapBase< Base >::getData(), canvas::IntegerBitmapBase< Base >::getPixel(), canvas::IntegerBitmapBase< Base >::setData(), and canvas::IntegerBitmapBase< Base >::setPixel().
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::geometry::AffineMatrix2D & | rMatrix, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Verify that the given transformation contains valid floating point values.
rMatrix | Matrix to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::geometry::Matrix2D & | rMatrix, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Verify that the given transformation contains valid floating point values.
rMatrix | Matrix to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::geometry::RealBezierSegment2D & | rSegment, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Verify that the given bezier segment contains valid floating point values.
rSegment | Segment to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::geometry::RealPoint2D & | rPoint, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Verify that the given point contains valid floating point values.
rPoint | Point to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::geometry::RealRectangle2D & | rRect, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Verify that the given rectangle contains valid floating point values.
rRect | Rect to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::FontRequest & | fontRequest, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Basic check for font request validity.
fontRequest | Font request to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::IntegerBitmapLayout & | bitmapLayout, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Basic check for bitmap layout validity.
bitmapLayout | Bitmap layout to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::RenderState & | renderState, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos, | ||
sal_Int32 | nMinColorComponents = 0 |
||
) |
Basic check for render state validity.
renderState | Renderstate to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
nMinColorComponents | Minimal number of color components available in RenderState::DeviceColor |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::StrokeAttributes & | strokeAttributes, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Basic check for stroke attributes validity.
strokeAttributes | Attributes to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::Texture & | texture, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Basic check for texture validity.
texture | Texture to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifyInput | ( | const css::rendering::ViewState & | viewState, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Basic check for view state validity.
viewState | Viewstate to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
void canvas::tools::verifyInput | ( | const css::uno::Reference< Interface > & | rRef, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Templatized check for uno::Reference validity.
rRef | Reference to check against non-NILness |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
Definition at line 321 of file verifyinput.hxx.
void canvas::tools::verifyInput | ( | const css::uno::Sequence< SequenceContent > & | rSequence, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Templatized check for content-of-sequence validity.
rSequence | Sequence of things to check |
xIf | The interface that should be reported as the one generating the exception. |
nArgPos | Argument position on the call site (i.e. the position of the argument, checked here, on the UNO interface method. Counting starts at 0). |
a | lang::IllegalArgumentException, if anything is wrong |
Definition at line 357 of file verifyinput.hxx.
References verifyInput().
void canvas::tools::verifyInput | ( | const geometry::AffineMatrix2D & | matrix, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 196 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const geometry::Matrix2D & | matrix, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 232 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const geometry::RealBezierSegment2D & | rSegment, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 80 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const geometry::RealPoint2D & | rPoint, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 51 of file verifyinput.cxx.
Referenced by vclcanvas::CanvasHelper::implDrawBitmap(), vclcanvas::CanvasHelper::setupOutDevState(), cairocanvas::setupOutDevState(), verifyArgs(), and verifyInput().
void canvas::tools::verifyInput | ( | const geometry::RealRectangle2D & | rRect, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 147 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const rendering::FontRequest & | fontRequest, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 567 of file verifyinput.cxx.
References verifyInput().
void canvas::tools::verifyInput | ( | const rendering::IntegerBitmapLayout & | bitmapLayout, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 498 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const rendering::RenderState & | renderState, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos, | ||
sal_Int32 | nMinColorComponents | ||
) |
Definition at line 273 of file verifyinput.cxx.
References verifyInput().
void canvas::tools::verifyInput | ( | const rendering::StrokeAttributes & | strokeAttributes, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 411 of file verifyinput.cxx.
void canvas::tools::verifyInput | ( | const rendering::Texture & | texture, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 314 of file verifyinput.cxx.
References verifyInput().
void canvas::tools::verifyInput | ( | const rendering::ViewState & | viewState, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf, | ||
::sal_Int16 | nArgPos | ||
) |
Definition at line 264 of file verifyinput.cxx.
References verifyInput().
void canvas::tools::verifyInput | ( | const T & | , |
const char * | , | ||
const css::uno::Reference< css::uno::XInterface > & | , | ||
::sal_Int16 | |||
) |
Catch-all, to handle cases that DON'T need input checking (i.e. the Integer geometry ones)
Definition at line 370 of file verifyinput.hxx.
|
inline |
Range checker, which throws css::lang::IllegalArgument exception, when range is violated.
The checked range is half open, i.e. only bound by the specified value.
arg | Arg to check |
bound | Bound to check against |
bLowerBound | When true, given bound is the lower bound. When false, given bound is the upper bound. |
Definition at line 520 of file verifyinput.hxx.
|
inline |
Range checker, which throws css::lang::IllegalArgument exception, when range is violated.
Definition at line 496 of file verifyinput.hxx.
Referenced by canvas::BufferedGraphicDeviceBase< Base, DeviceHelper, Mutex, UnambiguousBase >::createBuffers(), canvas::SpriteCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createSpriteFromBitmaps(), canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::drawText(), dxcanvas::tools::sequenceToArgb(), canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::setAlpha(), and oglcanvas::CanvasCustomSprite::setAlpha().
CANVASTOOLS_DLLPUBLIC void canvas::tools::verifySpriteSize | ( | const css::geometry::RealSize2D & | size, |
const char * | pStr, | ||
const css::uno::Reference< css::uno::XInterface > & | xIf | ||
) |
void canvas::tools::verifySpriteSize | ( | const geometry::RealSize2D & | size, |
const char * | pStr, | ||
const uno::Reference< uno::XInterface > & | xIf | ||
) |
Definition at line 674 of file verifyinput.cxx.
References size.
Referenced by canvas::SpriteCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::createCustomSprite().