LibreOffice Module canvas (master) 1
Classes | Namespaces | Functions
canvastools.hxx File Reference
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
#include <sal/log.hxx>
#include <math.h>
#include <string.h>
#include <vector>
#include <limits>
#include <canvas/canvastoolsdllapi.h>
Include dependency graph for canvastools.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  canvas::tools::ValueMap< ValueType >
 A very simplistic map for ASCII strings and arbitrary value types. More...
 
struct  canvas::tools::ValueMap< ValueType >::MapEntry
 

Namespaces

namespace  basegfx
 
namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::geometry
 
namespace  com::sun::star::rendering
 
namespace  com::sun::star::awt
 
namespace  com::sun::star::beans
 
namespace  canvas
 
namespace  canvas::tools
 

Functions

sal_uInt32 canvas::tools::nextPow2 (sal_uInt32 x)
 Compute the next highest power of 2 of a 32-bit value. More...
 
sal_Int32 canvas::tools::roundDown (const double &rVal)
 Count the number of 1-bits of a n-bit value. More...
 
sal_Int32 canvas::tools::roundUp (const double &rVal)
 Round given floating point value up to next integer. More...
 
geometry::RealSize2D canvas::tools::createInfiniteSize2D ()
 Create a RealSize2D with both coordinate values set to +infinity. More...
 
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::initRenderState (css::rendering::RenderState &renderState)
 
CANVASTOOLS_DLLPUBLIC css::rendering::ViewStatecanvas::tools::initViewState (css::rendering::ViewState &viewState)
 
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::getViewStateTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::ViewState &viewState)
 
CANVASTOOLS_DLLPUBLIC css::rendering::ViewStatecanvas::tools::setViewStateTransform (css::rendering::ViewState &viewState, const ::basegfx::B2DHomMatrix &transform)
 
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::getRenderStateTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::RenderState &renderState)
 
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::setRenderStateTransform (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform)
 
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::appendToRenderState (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform)
 
CANVASTOOLS_DLLPUBLIC css::rendering::RenderState & canvas::tools::prependToRenderState (css::rendering::RenderState &renderState, const ::basegfx::B2DHomMatrix &transform)
 
CANVASTOOLS_DLLPUBLIC::basegfx::B2DHomMatrix & canvas::tools::mergeViewAndRenderTransform (::basegfx::B2DHomMatrix &transform, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState)
 
CANVASTOOLS_DLLPUBLIC css::geometry::AffineMatrix2D & canvas::tools::setIdentityAffineMatrix2D (css::geometry::AffineMatrix2D &matrix)
 
CANVASTOOLS_DLLPUBLIC css::geometry::Matrix2D & canvas::tools::setIdentityMatrix2D (css::geometry::Matrix2D &matrix)
 
::basegfx::B2DRangecanvas::tools::calcTransformedRectBounds (::basegfx::B2DRange &o_Rect, const ::basegfx::B2DRange &i_Rect, const ::basegfx::B2DHomMatrix &i_Transformation)
 Calc the bounding rectangle of a transformed rectangle. More...
 
::basegfx::B2DHomMatrixcanvas::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. More...
 
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. More...
 
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. More...
 
::basegfx::B2IRange canvas::tools::spritePixelAreaFromB2DRange (const ::basegfx::B2DRange &rRange)
 Clip a blit between two differently surfaces. More...
 
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. More...
 
uno::Reference< rendering::XIntegerBitmapColorSpace > const & canvas::tools::getStdColorSpace ()
 Return a color space for a default RGBA integer format. More...
 
uno::Reference< rendering::XIntegerBitmapColorSpace > const & canvas::tools::getStdColorSpaceWithoutAlpha ()
 Return a color space for a default RGB integer format. More...
 
CANVASTOOLS_DLLPUBLIC css::rendering::IntegerBitmapLayout canvas::tools::getStdMemoryLayout (const css::geometry::IntegerSize2D &rBitmapSize)
 Return a memory layout for a default RGBA integer format. More...
 
uno::Sequence< sal_Int8canvas::tools::colorToStdIntSequence (const ::Color &rColor)
 Convert standard 8888 RGBA color to vcl color. More...
 
template<typename Target , typename Source >
Target canvas::tools::numeric_cast (Source arg)
 Cast numeric value into another (numeric) data type. More...
 
CANVASTOOLS_DLLPUBLIC css::awt::Rectangle canvas::tools::getAbsoluteWindowRect (const css::awt::Rectangle &rRect, const css::uno::Reference< css::awt::XWindow2 > &xWin)
 
::basegfx::B2DPolyPolygon canvas::tools::getBoundMarksPolyPolygon (const ::basegfx::B2DRange &rRange)
 Retrieve for small bound marks around each corner of the given rectangle. More...
 
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) More...
 
CANVASTOOLS_DLLPUBLIC void canvas::tools::clipOutDev (const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, OutputDevice &rOutDev, OutputDevice *p2ndOutDev=nullptr)
 
CANVASTOOLS_DLLPUBLIC void canvas::tools::extractExtraFontProperties (const css::uno::Sequence< css::beans::PropertyValue > &rExtraFontProperties, sal_uInt32 &rEmphasisMark)