interface XRegion in module com::sun::star::awt::

(Global Index)

Syntax

interface XRegion : com::sun::star::uno::XInterface ;

Description

manages multiple rectangles which make up a region.

Method Summary

getBounds

clear makes this region an empty region.

move moves this region by the specified horizontal and vertical delta.

unionRectangle adds the specified rectangle to this region.

intersectRectangle intersects the specified rectangle with the current region.

excludeRectangle removes the area of the specified rectangle from this region.

xOrRectangle applies an exclusive-or operation with the specified rectangle to this region.

unionRegion adds the specified region to this region.

intersectRegion intersects the specified region with the current region.

excludeRegion removes the area of the specified region from this region.

xOrRegion applies an exclusive-or operation with the specified region to this region.

getRectangles

Method Details



getBounds

Syntax

com::sun::star::awt::Rectangle getBounds ();

Returns

the bounding box of the shape.

clear

Syntax

oneway void clear ();

Description

makes this region an empty region.


move

Syntax

oneway void move (
long nHorzMove,
long nVertMove );

Description

moves this region by the specified horizontal and vertical delta.


unionRectangle

Syntax

oneway void unionRectangle (
com::sun::star::awt::Rectangle Rect );

Description

adds the specified rectangle to this region.


intersectRectangle

Syntax

oneway void intersectRectangle (
com::sun::star::awt::Rectangle Region );

Description

intersects the specified rectangle with the current region.


excludeRectangle

Syntax

oneway void excludeRectangle (
com::sun::star::awt::Rectangle Rect );

Description

removes the area of the specified rectangle from this region.


xOrRectangle

Syntax

oneway void xOrRectangle (
com::sun::star::awt::Rectangle Rect );

Description

applies an exclusive-or operation with the specified rectangle to this region.


unionRegion

Syntax

oneway void unionRegion (
com::sun::star::awt::XRegion Region );

Description

adds the specified region to this region.


intersectRegion

Syntax

oneway void intersectRegion (
com::sun::star::awt::XRegion Region );

Description

intersects the specified region with the current region.


excludeRegion

Syntax

oneway void excludeRegion (
com::sun::star::awt::XRegion Region );

Description

removes the area of the specified region from this region.


xOrRegion

Syntax

oneway void xOrRegion (
com::sun::star::awt::XRegion Region );

Description

applies an exclusive-or operation with the specified region to this region.


getRectangles

Syntax

sequence< com::sun::star::awt::Rectangle > getRectangles ();

Returns

all rectangles which are making up this region.
Top of Page