LibreOffice
LibreOffice 24.2 SDK API Reference
XGraphics.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 
21 module com { module sun { module star { module awt {
22 
23 published interface XRegion;
24 published interface XDisplayBitmap;
25 published interface XFont;
26 published interface XDevice;
27 
28 
32 {
35  XDevice getDevice();
36 
39  SimpleFontMetric getFontMetric();
40 
43  void setFont( [in] XFont xNewFont );
44 
47  void selectFont( [in] FontDescriptor aDescription );
48 
51  void setTextColor( [in] com::sun::star::util::Color nColor );
52 
55  void setTextFillColor( [in] com::sun::star::util::Color nColor );
56 
59  void setLineColor( [in] com::sun::star::util::Color nColor );
60 
63  void setFillColor( [in] com::sun::star::util::Color nColor );
64 
70  void setRasterOp( [in] RasterOperation ROP );
71 
74  void setClipRegion( [in] XRegion Clipping );
75 
78  void intersectClipRegion( [in] XRegion xClipping );
79 
83  void push();
84 
87  void pop();
88 
91  void copy( [in] XDevice xSource,
92  [in] long nSourceX,
93  [in] long nSourceY,
94  [in] long nSourceWidth,
95  [in] long nSourceHeight,
96  [in] long nDestX,
97  [in] long nDestY,
98  [in] long nDestWidth,
99  [in] long nDestHeight );
100 
103  void draw( [in] XDisplayBitmap xBitmapHandle,
104  [in] long SourceX,
105  [in] long SourceY,
106  [in] long SourceWidth,
107  [in] long SourceHeight,
108  [in] long DestX,
109  [in] long DestY,
110  [in] long DestWidth,
111  [in] long DestHeight );
112 
115  void drawPixel( [in] long X,
116  [in] long Y );
117 
120  void drawLine( [in] long X1,
121  [in] long Y1,
122  [in] long X2,
123  [in] long Y2 );
124 
127  void drawRect( [in] long X,
128  [in] long Y,
129  [in] long Width,
130  [in] long Height );
131 
134  void drawRoundedRect( [in] long X,
135  [in] long Y,
136  [in] long Width,
137  [in] long Height,
138  [in] long nHorzRound,
139  [in] long nVertRound );
140 
143  void drawPolyLine( [in] sequence<long> DataX,
144  [in] sequence<long> DataY );
145 
148  void drawPolygon( [in] sequence<long> DataX,
149  [in] sequence<long> DataY );
150 
153  void drawPolyPolygon( [in] sequence< sequence<long> > DataX,
154  [in] sequence< sequence<long> > DataY );
155 
158  void drawEllipse( [in] long X,
159  [in] long Y,
160  [in] long Width,
161  [in] long Height );
162 
165  void drawArc( [in] long X,
166  [in] long Y,
167  [in] long Width,
168  [in] long Height,
169  [in] long X1,
170  [in] long Y1,
171  [in] long X2,
172  [in] long Y2 );
173 
176  void drawPie( [in] long X,
177  [in] long Y,
178  [in] long Width,
179  [in] long Height,
180  [in] long X1,
181  [in] long Y1,
182  [in] long X2,
183  [in] long Y2 );
184 
191  void drawChord( [in] long nX,
192  [in] long nY,
193  [in] long nWidth,
194  [in] long nHeight,
195  [in] long nX1,
196  [in] long nY1,
197  [in] long nX2,
198  [in] long nY2 );
199 
202  void drawGradient( [in] long nX,
203  [in] long nY,
204  [in] long nWidth,
205  [in] long Height,
206  [in] Gradient aGradient );
207 
210  void drawText( [in] long X,
211  [in] long Y,
212  [in] string Text );
213 
216  void drawTextArray( [in] long X,
217  [in] long Y,
218  [in] string Text,
219  [in] sequence<long> Longs );
220 };
221 
222 
223 }; }; }; };
224 
225 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RasterOperation
These values are used to specify the binary pixel-operation applied when pixels are written to the de...
Definition: RasterOperation.idl:28
describes a font on a specific device.
Definition: XFont.idl:29
provides the basic output operation of a device.
Definition: XGraphics.idl:31
provides information about a graphical output device and offers a factory for the graphics which prov...
Definition: XDevice.idl:33
Definition: Ambiguous.idl:20
const short Y
Definition: Key.idl:135
const short X
specifies to strike out the characters with X&#39;s.
Definition: FontStrikeout.idl:64
describes the general metrics of a certain font.
Definition: SimpleFontMetric.idl:27
describes the characteristics of a font.
Definition: FontDescriptor.idl:29
manages multiple rectangles which make up a region.
Definition: XRegion.idl:27
Describes a gradient between two colors.
Definition: Gradient.idl:29
long Color
describes an RGB color value with an optional alpha channel.
Definition: Color.idl:34
base interface of all UNO interfaces
Definition: XInterface.idl:45
specifies an object as a bitmap for which data is formatted for a specific output device...
Definition: XDisplayBitmap.idl:30