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 {
36 
40 
43  void setFont( [in] XFont xNewFont );
44 
47  void selectFont( [in] FontDescriptor aDescription );
48 
52 
56 
60 
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: */
provides information about a graphical output device and offers a factory for the graphics which prov...
Definition: XDevice.idl:34
specifies an object as a bitmap for which data is formatted for a specific output device.
Definition: XDisplayBitmap.idl:31
describes a font on a specific device.
Definition: XFont.idl:30
provides the basic output operation of a device.
Definition: XGraphics.idl:32
void setTextColor([in] com::sun::star::util::Color nColor)
sets the text color used by text operations.
void intersectClipRegion([in] XRegion xClipping)
builds the intersection with the current region.
void drawPolyPolygon([in] sequence< sequence< long > > DataX, [in] sequence< sequence< long > > DataY)
draws multiple polygons in the output device at once.
void setFillColor([in] com::sun::star::util::Color nColor)
sets the fill color.
void selectFont([in] FontDescriptor aDescription)
creates a new font and sets the font.
void setClipRegion([in] XRegion Clipping)
sets the clip region to specified clipping.
void pop()
restores all previous saved settings.
void drawText([in] long X, [in] long Y, [in] string Text)
draws text in the output device.
void draw([in] XDisplayBitmap xBitmapHandle, [in] long SourceX, [in] long SourceY, [in] long SourceWidth, [in] long SourceHeight, [in] long DestX, [in] long DestY, [in] long DestWidth, [in] long DestHeight)
draws a part of the specified bitmap to the output device.
void drawPolyLine([in] sequence< long > DataX, [in] sequence< long > DataY)
draws multiple lines in the output device at once.
void drawPolygon([in] sequence< long > DataX, [in] sequence< long > DataY)
draws a polygon line in the output device.
void drawTextArray([in] long X, [in] long Y, [in] string Text, [in] sequence< long > Longs)
draws texts in the output device using an explicit kerning table.
void drawPie([in] long X, [in] long Y, [in] long Width, [in] long Height, [in] long X1, [in] long Y1, [in] long X2, [in] long Y2)
draws a circular area in the output device.
XDevice getDevice()
returns the device of this graphics.
void drawGradient([in] long nX, [in] long nY, [in] long nWidth, [in] long Height, [in] Gradient aGradient)
draws a color dispersion in the output device.
void setLineColor([in] com::sun::star::util::Color nColor)
sets the line color.
void drawLine([in] long X1, [in] long Y1, [in] long X2, [in] long Y2)
draws a line in the output device.
void drawArc([in] long X, [in] long Y, [in] long Width, [in] long Height, [in] long X1, [in] long Y1, [in] long X2, [in] long Y2)
draws an arc (part of a circle) in the output device.
void push()
saves all current settings (Font, TextColor, TextFillColor, LineColor, FillColor, RasterOp,...
void setTextFillColor([in] com::sun::star::util::Color nColor)
sets the fill color used by text operations.
void setFont([in] XFont xNewFont)
sets the font used by text operations.
void setRasterOp([in] RasterOperation ROP)
sets the raster operation.
void drawRect([in] long X, [in] long Y, [in] long Width, [in] long Height)
draws a rectangle in the output device.
void drawRoundedRect([in] long X, [in] long Y, [in] long Width, [in] long Height, [in] long nHorzRound, [in] long nVertRound)
draws a rectangle with rounded corners in the output device.
void copy([in] XDevice xSource, [in] long nSourceX, [in] long nSourceY, [in] long nSourceWidth, [in] long nSourceHeight, [in] long nDestX, [in] long nDestY, [in] long nDestWidth, [in] long nDestHeight)
copies a rectangle of pixels from another device into this one.
SimpleFontMetric getFontMetric()
returns the font metric of the current font.
void drawChord([in] long nX, [in] long nY, [in] long nWidth, [in] long nHeight, [in] long nX1, [in] long nY1, [in] long nX2, [in] long nY2)
draws a chord of a circular area in the output device.
void drawEllipse([in] long X, [in] long Y, [in] long Width, [in] long Height)
draws an ellipse in the output device.
void drawPixel([in] long X, [in] long Y)
sets a single pixel in the output device.
manages multiple rectangles which make up a region.
Definition: XRegion.idl:28
base interface of all UNO interfaces
Definition: XInterface.idl:46
const short X
specifies to strike out the characters with X's.
Definition: FontStrikeout.idl:64
const short Y
Definition: Key.idl:135
RasterOperation
These values are used to specify the binary pixel-operation applied when pixels are written to the de...
Definition: RasterOperation.idl:29
long Color
describes an RGB color value with an optional alpha channel.
Definition: Color.idl:34
Definition: Ambiguous.idl:20
describes the characteristics of a font.
Definition: FontDescriptor.idl:30
Describes a gradient between two colors.
Definition: Gradient.idl:30
describes the general metrics of a certain font.
Definition: SimpleFontMetric.idl:28