LibreOffice
LibreOffice 6.4 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 #ifndef __com_sun_star_awt_XGraphics_idl__
20 #define __com_sun_star_awt_XGraphics_idl__
21 
28 
29 
30 module com { module sun { module star { module awt {
31 
32 published interface XRegion;
33 published interface XDisplayBitmap;
34 published interface XFont;
35 published interface XDevice;
36 
37 
41 {
45 
49 
52  void setFont( [in] XFont xNewFont );
53 
56  void selectFont( [in] FontDescriptor aDescription );
57 
61 
65 
69 
73 
79  void setRasterOp( [in] RasterOperation ROP );
80 
83  void setClipRegion( [in] XRegion Clipping );
84 
87  void intersectClipRegion( [in] XRegion xClipping );
88 
92  void push();
93 
96  void pop();
97 
100  void copy( [in] XDevice xSource,
101  [in] long nSourceX,
102  [in] long nSourceY,
103  [in] long nSourceWidth,
104  [in] long nSourceHeight,
105  [in] long nDestX,
106  [in] long nDestY,
107  [in] long nDestWidth,
108  [in] long nDestHeight );
109 
112  void draw( [in] XDisplayBitmap xBitmapHandle,
113  [in] long SourceX,
114  [in] long SourceY,
115  [in] long SourceWidth,
116  [in] long SourceHeight,
117  [in] long DestX,
118  [in] long DestY,
119  [in] long DestWidth,
120  [in] long DestHeight );
121 
124  void drawPixel( [in] long X,
125  [in] long Y );
126 
129  void drawLine( [in] long X1,
130  [in] long Y1,
131  [in] long X2,
132  [in] long Y2 );
133 
136  void drawRect( [in] long X,
137  [in] long Y,
138  [in] long Width,
139  [in] long Height );
140 
143  void drawRoundedRect( [in] long X,
144  [in] long Y,
145  [in] long Width,
146  [in] long Height,
147  [in] long nHorzRound,
148  [in] long nVertRound );
149 
152  void drawPolyLine( [in] sequence<long> DataX,
153  [in] sequence<long> DataY );
154 
157  void drawPolygon( [in] sequence<long> DataX,
158  [in] sequence<long> DataY );
159 
162  void drawPolyPolygon( [in] sequence< sequence<long> > DataX,
163  [in] sequence< sequence<long> > DataY );
164 
167  void drawEllipse( [in] long X,
168  [in] long Y,
169  [in] long Width,
170  [in] long Height );
171 
174  void drawArc( [in] long X,
175  [in] long Y,
176  [in] long Width,
177  [in] long Height,
178  [in] long X1,
179  [in] long Y1,
180  [in] long X2,
181  [in] long Y2 );
182 
185  void drawPie( [in] long X,
186  [in] long Y,
187  [in] long Width,
188  [in] long Height,
189  [in] long X1,
190  [in] long Y1,
191  [in] long X2,
192  [in] long Y2 );
193 
200  void drawChord( [in] long nX,
201  [in] long nY,
202  [in] long nWidth,
203  [in] long nHeight,
204  [in] long nX1,
205  [in] long nY1,
206  [in] long nX2,
207  [in] long nY2 );
208 
211  void drawGradient( [in] long nX,
212  [in] long nY,
213  [in] long nWidth,
214  [in] long Height,
215  [in] Gradient aGradient );
216 
219  void drawText( [in] long X,
220  [in] long Y,
221  [in] string Text );
222 
225  void drawTextArray( [in] long X,
226  [in] long Y,
227  [in] string Text,
228  [in] sequence<long> Longs );
229 };
230 
231 
232 }; }; }; };
233 
234 #endif
235 
236 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::awt::XGraphics::setLineColor
void setLineColor([in] com::sun::star::util::Color nColor)
sets the line color.
XInterface.idl
Color.idl
com::sun::star::awt::XGraphics::drawPolyLine
void drawPolyLine([in] sequence< long > DataX, [in] sequence< long > DataY)
draws multiple lines in the output device at once.
com::sun::star::awt::XGraphics::selectFont
void selectFont([in] FontDescriptor aDescription)
creates a new font and sets the font.
com::sun::star::awt::XDevice
provides information about a graphical output device and offers a factory for the graphics which prov...
Definition: XDevice.idl:42
com::sun::star::awt::XGraphics::intersectClipRegion
void intersectClipRegion([in] XRegion xClipping)
builds the intersection with the current region.
com::sun::star::awt::XGraphics::drawArc
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.
com::sun::star::awt::XGraphics::drawGradient
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.
com::sun::star::awt::XFont
describes a font on a specific device.
Definition: XFont.idl:38
com::sun::star::awt::XGraphics::setFont
void setFont([in] XFont xNewFont)
sets the font used by text operations.
com::sun::star::awt::XGraphics::drawPie
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.
com::sun::star::awt::Key::Y
const short Y
Definition: Key.idl:135
com::sun::star::awt::FontStrikeout::X
const short X
specifies to strike out the characters with X's.
Definition: FontStrikeout.idl:66
com::sun::star::awt::RasterOperation
RasterOperation
These values are used to specify the binary pixel-operation applied when pixels are written to the de...
Definition: RasterOperation.idl:31
Gradient.idl
com::sun::star::awt::XGraphics::drawText
void drawText([in] long X, [in] long Y, [in] string Text)
draws text in the output device.
com::sun::star::awt::XGraphics::drawChord
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.
com::sun::star::awt::XGraphics::setRasterOp
void setRasterOp([in] RasterOperation ROP)
sets the raster operation.
com::sun::star::awt::XRegion
manages multiple rectangles which make up a region.
Definition: XRegion.idl:34
com::sun::star::awt::XGraphics::setTextFillColor
void setTextFillColor([in] com::sun::star::util::Color nColor)
sets the fill color used by text operations.
com::sun::star::awt::XGraphics::setTextColor
void setTextColor([in] com::sun::star::util::Color nColor)
sets the text color used by text operations.
com::sun::star::awt::XGraphics::drawPolyPolygon
void drawPolyPolygon([in] sequence< sequence< long > > DataX, [in] sequence< sequence< long > > DataY)
draws multiple polygons in the output device at once.
com::sun::star::awt::XGraphics::pop
void pop()
restores all previous saved settings.
com::sun::star::awt::XGraphics::setFillColor
void setFillColor([in] com::sun::star::util::Color nColor)
sets the fill color.
com::sun::star::awt::XGraphics::copy
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.
com::sun::star::awt::FontDescriptor
describes the characteristics of a font.
Definition: FontDescriptor.idl:34
com::sun::star::awt::SimpleFontMetric
describes the general metrics of a certain font.
Definition: SimpleFontMetric.idl:30
com::sun::star::awt::XGraphics::drawTextArray
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.
com::sun::star::awt::XGraphics::setClipRegion
void setClipRegion([in] XRegion Clipping)
sets the clip region to specified clipping.
com::sun::star::awt::XGraphics
provides the basic output operation of a device.
Definition: XGraphics.idl:41
com::sun::star::awt::XDisplayBitmap
specifies an object as a bitmap for which data is formatted for a specific output device.
Definition: XDisplayBitmap.idl:35
com::sun::star::awt::XGraphics::push
void push()
saves all current settings (Font, TextColor, TextFillColor, LineColor, FillColor, RasterOp,...
com::sun::star::awt::XGraphics::getFontMetric
SimpleFontMetric getFontMetric()
returns the font metric of the current font.
com
Definition: Ambiguous.idl:22
com::sun::star::awt::XGraphics::draw
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.
com::sun::star::awt::XGraphics::drawLine
void drawLine([in] long X1, [in] long Y1, [in] long X2, [in] long Y2)
draws a line in the output device.
SimpleFontMetric.idl
com::sun::star::awt::XGraphics::drawPixel
void drawPixel([in] long X, [in] long Y)
sets a single pixel in the output device.
FontDescriptor.idl
com::sun::star::awt::XGraphics::drawRoundedRect
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.
RasterOperation.idl
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:48
com::sun::star::util::Color
long Color
describes an RGB color value with an optional alpha channel.
Definition: Color.idl:36
com::sun::star::awt::XGraphics::drawRect
void drawRect([in] long X, [in] long Y, [in] long Width, [in] long Height)
draws a rectangle in the output device.
com::sun::star::awt::Gradient
Describes a gradient between two colors.
Definition: Gradient.idl:36
com::sun::star::awt::XGraphics::getDevice
XDevice getDevice()
returns the device of this graphics.
com::sun::star::awt::XGraphics::drawEllipse
void drawEllipse([in] long X, [in] long Y, [in] long Width, [in] long Height)
draws an ellipse in the output device.
com::sun::star::awt::XGraphics::drawPolygon
void drawPolygon([in] sequence< long > DataX, [in] sequence< long > DataY)
draws a polygon line in the output device.