1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_geometry_IntegerRectangle2D_idl__ 24#define __com_sun_star_geometry_IntegerRectangle2D_idl__ 25 26module com { module sun { module star { module geometry { 27 28/* Removed, because XCanvas is private API until further notice. 29 30 The values are stored as integers. Please note that the 31 <type>com.sun.star.rendering.XCanvas</type> defines the 32 screen representation of rectangles in such a way that the lower 33 and the rightmost line of the rectangle are not drawn on 34 screen. Thus, if for two rectangles R1 and R2, R1.x2 equals R2.x1, 35 the screen representation of these rectangles will not overlap, 36 but being exactly adjacent. That also means, that an 37 IntegerRectangle2D with X1 equal X2 or Y1 equal Y2 can be 38 considered empty.<p> 39*/ 40 41/** This structure contains the necessary information for a 42 two-dimensional rectangle.<p> 43 44 @since OpenOffice 2.0 45 */ 46struct IntegerRectangle2D 47{ 48 /// X coordinate of upper left corner. 49 long X1; 50 51 //------------------------------------------------------------------------- 52 53 /// Y coordinate of upper left corner. 54 long Y1; 55 56 //------------------------------------------------------------------------- 57 58 /** X coordinate of lower right corner.<p> 59 60 Must be greater than X1 for non-empty rectangles.<p> 61 */ 62 long X2; 63 64 //------------------------------------------------------------------------- 65 66 /** Y coordinate of lower right corner.<p> 67 68 Must be greater than y1 for non-empty rectangles.<p> 69 */ 70 long Y2; 71}; 72 73}; }; }; }; 74 75#endif 76