1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_geometry_IntegerRectangle2D_idl__
28#define __com_sun_star_geometry_IntegerRectangle2D_idl__
29
30module com {  module sun {  module star {  module geometry {
31
32/*  Removed, because XCanvas is private API until further notice.
33
34    The values are stored as integers. Please note that the
35    <type>com.sun.star.rendering.XCanvas</type> defines the
36    screen representation of rectangles in such a way that the lower
37    and the rightmost line of the rectangle are not drawn on
38    screen. Thus, if for two rectangles R1 and R2, R1.x2 equals R2.x1,
39    the screen representation of these rectangles will not overlap,
40    but being exactly adjacent. That also means, that an
41    IntegerRectangle2D with X1 equal X2 or Y1 equal Y2 can be
42    considered empty.<p>
43*/
44
45/** This structure contains the necessary information for a
46    two-dimensional rectangle.<p>
47
48    @since OOo 2.0
49 */
50struct IntegerRectangle2D
51{
52    /// X coordinate of upper left corner.
53    long X1;
54
55	//-------------------------------------------------------------------------
56
57    /// Y coordinate of upper left corner.
58    long Y1;
59
60	//-------------------------------------------------------------------------
61
62    /** X coordinate of lower right corner.<p>
63
64    	Must be greater than X1 for non-empty rectangles.<p>
65    */
66    long X2;
67
68	//-------------------------------------------------------------------------
69
70    /** Y coordinate of lower right corner.<p>
71
72    	Must be greater than y1 for non-empty rectangles.<p>
73    */
74    long Y2;
75};
76
77}; }; }; };
78
79#endif
80