bump product version to 4.1.6.2
[LibreOffice.git] / offapi / com / sun / star / awt / XRegion.idl
blob1b67d4c097ca45647781069f078ddcf381dde46d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /**
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_awt_XRegion_idl__
20 #define __com_sun_star_awt_XRegion_idl__
22 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/awt/Rectangle.idl>
28 module com { module sun { module star { module awt {
31 /** manages multiple rectangles which make up a region.
33 published interface XRegion: com::sun::star::uno::XInterface
36 /** returns the bounding box of the shape.
38 Rectangle getBounds();
41 /** makes this region an empty region.
43 void clear();
46 /** moves this region by the specified horizontal and vertical delta.
48 void move( [in] long nHorzMove,
49 [in] long nVertMove );
52 /** adds the specified rectangle to this region.
54 void unionRectangle( [in] Rectangle Rect );
57 /** intersects the specified rectangle with the current region.
59 void intersectRectangle( [in] Rectangle Region );
62 /** removes the area of the specified rectangle from this region.
64 void excludeRectangle( [in] Rectangle Rect );
67 /** applies an exclusive-or operation with the specified rectangle
68 to this region.
70 void xOrRectangle( [in] Rectangle Rect );
73 /** adds the specified region to this region.
75 void unionRegion( [in] XRegion Region );
78 /** intersects the specified region with the current region.
80 void intersectRegion( [in] XRegion Region );
83 /** removes the area of the specified region from this region.
85 void excludeRegion( [in] XRegion Region );
88 /** applies an exclusive-or operation with the specified region
89 to this region.
91 void xOrRegion( [in] XRegion Region );
94 /** returns all rectangles which are making up this region.
96 sequence<Rectangle> getRectangles();
101 }; }; }; };
103 #endif
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */