LibreOffice Module canvas (master) 1
Classes | Functions
vclcanvas::tools Namespace Reference

Classes

class  LocalGuard
 
class  OutDevStateKeeper
 

Functions

::BitmapEx bitmapExFromXBitmap (const uno::Reference< rendering::XBitmap > &xBitmap)
 
bool setupFontTransform (::Point &o_rPoint, vcl::Font &io_rVCLFont, const rendering::ViewState &rViewState, const rendering::RenderState &rRenderState, ::OutputDevice const &rOutDev)
 
void setupFontWidth (const css::geometry::Matrix2D &rFontMatrix, vcl::Font &rFont, OutputDevice &rOutDev)
 
bool isRectangle (const ::tools::PolyPolygon &rPolyPoly)
 Predicate, to determine whether polygon is actually an axis-aligned rectangle. More...
 
::Point mapRealPoint2D (const geometry::RealPoint2D &rPoint, const rendering::ViewState &rViewState, const rendering::RenderState &rRenderState)
 
::tools::PolyPolygon mapPolyPolygon (const ::basegfx::B2DPolyPolygon &rPoly, const rendering::ViewState &rViewState, const rendering::RenderState &rRenderState)
 
::BitmapEx transformBitmap (const BitmapEx &rBitmap, const ::basegfx::B2DHomMatrix &rTransform)
 
void SetDefaultDeviceAntiAliasing (OutputDevice *pDevice)
 
::BitmapEx bitmapExFromXBitmap (const css::uno::Reference< css::rendering::XBitmap > &)
 
bool setupFontTransform (::Point &o_rPoint, vcl::Font &io_rVCLFont, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, ::OutputDevice const &rOutDev)
 Setup VCL font and output position. More...
 
::Point mapRealPoint2D (const css::geometry::RealPoint2D &rPoint, const css::rendering::ViewState &rViewState, const css::rendering::RenderState &rRenderState)
 
::tools::PolyPolygon mapPolyPolygon (const ::basegfx::B2DPolyPolygon &rPoly, const css::rendering::ViewState &rViewState, const css::rendering::RenderState &rRenderState)
 

Function Documentation

◆ bitmapExFromXBitmap() [1/2]

::BitmapEx vclcanvas::tools::bitmapExFromXBitmap ( const css::uno::Reference< css::rendering::XBitmap > &  )

◆ bitmapExFromXBitmap() [2/2]

::BitmapEx vclcanvas::tools::bitmapExFromXBitmap ( const uno::Reference< rendering::XBitmap > &  xBitmap)

◆ isRectangle()

bool vclcanvas::tools::isRectangle ( const ::tools::PolyPolygon rPolyPoly)

Predicate, to determine whether polygon is actually an axis-aligned rectangle.

Returns
true, if the polygon is a rectangle.

Definition at line 165 of file impltools.cxx.

References isRectangle(), and nCount.

Referenced by isRectangle(), dxcanvas::SpriteHelper::redraw(), and canvas::CanvasCustomSpriteHelper::updateClipState().

◆ mapPolyPolygon() [1/2]

::tools::PolyPolygon vclcanvas::tools::mapPolyPolygon ( const ::basegfx::B2DPolyPolygon rPoly,
const css::rendering::ViewState rViewState,
const css::rendering::RenderState &  rRenderState 
)

◆ mapPolyPolygon() [2/2]

::tools::PolyPolygon vclcanvas::tools::mapPolyPolygon ( const ::basegfx::B2DPolyPolygon rPoly,
const rendering::ViewState rViewState,
const rendering::RenderState &  rRenderState 
)

◆ mapRealPoint2D() [1/2]

::Point vclcanvas::tools::mapRealPoint2D ( const css::geometry::RealPoint2D &  rPoint,
const css::rendering::ViewState rViewState,
const css::rendering::RenderState &  rRenderState 
)

◆ mapRealPoint2D() [2/2]

::Point vclcanvas::tools::mapRealPoint2D ( const geometry::RealPoint2D &  rPoint,
const rendering::ViewState rViewState,
const rendering::RenderState &  rRenderState 
)

◆ SetDefaultDeviceAntiAliasing()

void vclcanvas::tools::SetDefaultDeviceAntiAliasing ( OutputDevice pDevice)

◆ setupFontTransform() [1/2]

bool vclcanvas::tools::setupFontTransform ( ::Point o_rPoint,
vcl::Font io_rVCLFont,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState,
::OutputDevice const &  rOutDev 
)

Setup VCL font and output position.

Returns
false, if no text output should happen

◆ setupFontTransform() [2/2]

bool vclcanvas::tools::setupFontTransform ( ::Point o_rPoint,
vcl::Font io_rVCLFont,
const rendering::ViewState rViewState,
const rendering::RenderState &  rRenderState,
::OutputDevice const &  rOutDev 
)

◆ setupFontWidth()

void vclcanvas::tools::setupFontWidth ( const css::geometry::Matrix2D &  rFontMatrix,
vcl::Font rFont,
OutputDevice rOutDev 
)

◆ transformBitmap()

BitmapEx vclcanvas::tools::transformBitmap ( const BitmapEx rBitmap,
const ::basegfx::B2DHomMatrix rTransform 
)