LibreOffice Module toolkit (master) 1
Public Member Functions | Private Attributes | List of all members
VCLXRegion Class Referencefinal

#include <vclxregion.hxx>

Inheritance diagram for VCLXRegion:
[legend]
Collaboration diagram for VCLXRegion:
[legend]

Public Member Functions

 VCLXRegion ()
 
virtual ~VCLXRegion () override
 
const vcl::RegionGetRegion () const
 
css::awt::Rectangle SAL_CALL getBounds () override
 
void SAL_CALL clear () override
 
void SAL_CALL move (sal_Int32 nHorzMove, sal_Int32 nVertMove) override
 
void SAL_CALL unionRectangle (const css::awt::Rectangle &rRect) override
 
void SAL_CALL intersectRectangle (const css::awt::Rectangle &rRect) override
 
void SAL_CALL excludeRectangle (const css::awt::Rectangle &rRect) override
 
void SAL_CALL xOrRectangle (const css::awt::Rectangle &rRect) override
 
void SAL_CALL unionRegion (const css::uno::Reference< css::awt::XRegion > &rxRegion) override
 
void SAL_CALL intersectRegion (const css::uno::Reference< css::awt::XRegion > &rxRegion) override
 
void SAL_CALL excludeRegion (const css::uno::Reference< css::awt::XRegion > &rxRegion) override
 
void SAL_CALL xOrRegion (const css::uno::Reference< css::awt::XRegion > &rxRegion) override
 
css::uno::Sequence< css::awt::Rectangle > SAL_CALL getRectangles () override
 

Private Attributes

std::mutex maMutex
 
vcl::Region maRegion
 

Detailed Description

Definition at line 33 of file vclxregion.hxx.

Constructor & Destructor Documentation

◆ VCLXRegion()

VCLXRegion::VCLXRegion ( )

Definition at line 26 of file vclxregion.cxx.

◆ ~VCLXRegion()

VCLXRegion::~VCLXRegion ( )
overridevirtual

Definition at line 30 of file vclxregion.cxx.

Member Function Documentation

◆ clear()

void VCLXRegion::clear ( )
override

Definition at line 41 of file vclxregion.cxx.

References maMutex, maRegion, and vcl::Region::SetEmpty().

◆ excludeRectangle()

void VCLXRegion::excludeRectangle ( const css::awt::Rectangle &  rRect)
override

Definition at line 69 of file vclxregion.cxx.

References vcl::Region::Exclude(), maMutex, maRegion, and VCLRectangle().

◆ excludeRegion()

void VCLXRegion::excludeRegion ( const css::uno::Reference< css::awt::XRegion > &  rxRegion)
override

Definition at line 99 of file vclxregion.cxx.

References vcl::Region::Exclude(), VCLUnoHelper::GetRegion(), maMutex, and maRegion.

◆ getBounds()

css::awt::Rectangle VCLXRegion::getBounds ( )
override

Definition at line 34 of file vclxregion.cxx.

References AWTRectangle(), vcl::Region::GetBoundRect(), maMutex, and maRegion.

◆ getRectangles()

css::uno::Sequence< css::awt::Rectangle > VCLXRegion::getRectangles ( )
override

Definition at line 115 of file vclxregion.cxx.

References a, AWTRectangle(), vcl::Region::GetRegionRectangles(), maMutex, and maRegion.

◆ GetRegion()

const vcl::Region & VCLXRegion::GetRegion ( ) const
inline

Definition at line 43 of file vclxregion.hxx.

References maRegion.

Referenced by VCLUnoHelper::GetRegion().

◆ intersectRectangle()

void VCLXRegion::intersectRectangle ( const css::awt::Rectangle &  rRect)
override

Definition at line 62 of file vclxregion.cxx.

References vcl::Region::Intersect(), maMutex, maRegion, and VCLRectangle().

◆ intersectRegion()

void VCLXRegion::intersectRegion ( const css::uno::Reference< css::awt::XRegion > &  rxRegion)
override

Definition at line 91 of file vclxregion.cxx.

References VCLUnoHelper::GetRegion(), vcl::Region::Intersect(), maMutex, and maRegion.

◆ move()

void VCLXRegion::move ( sal_Int32  nHorzMove,
sal_Int32  nVertMove 
)
override

Definition at line 48 of file vclxregion.cxx.

References maMutex, maRegion, and vcl::Region::Move().

◆ unionRectangle()

void VCLXRegion::unionRectangle ( const css::awt::Rectangle &  rRect)
override

Definition at line 55 of file vclxregion.cxx.

References maMutex, maRegion, vcl::Region::Union(), and VCLRectangle().

◆ unionRegion()

void VCLXRegion::unionRegion ( const css::uno::Reference< css::awt::XRegion > &  rxRegion)
override

Definition at line 83 of file vclxregion.cxx.

References VCLUnoHelper::GetRegion(), maMutex, maRegion, and vcl::Region::Union().

◆ xOrRectangle()

void VCLXRegion::xOrRectangle ( const css::awt::Rectangle &  rRect)
override

Definition at line 76 of file vclxregion.cxx.

References maMutex, maRegion, VCLRectangle(), and vcl::Region::XOr().

◆ xOrRegion()

void VCLXRegion::xOrRegion ( const css::uno::Reference< css::awt::XRegion > &  rxRegion)
override

Definition at line 107 of file vclxregion.cxx.

References VCLUnoHelper::GetRegion(), maMutex, maRegion, and vcl::Region::XOr().

Member Data Documentation

◆ maMutex

std::mutex VCLXRegion::maMutex
private

◆ maRegion

vcl::Region VCLXRegion::maRegion
private

The documentation for this class was generated from the following files: