LibreOffice LibreOffice 6.1 SDK API Reference

XSimpleCanvas.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_rendering_XSimpleCanvas_idl__
20 #define __com_sun_star_rendering_XSimpleCanvas_idl__
21
22 #include <com/sun/star/util/Color.idl>
23 #include <com/sun/star/geometry/RealPoint2D.idl>
24 #include <com/sun/star/geometry/RealRectangle2D.idl>
25 #include <com/sun/star/geometry/AffineMatrix2D.idl>
26 #include <com/sun/star/rendering/StringContext.idl>
27 #include <com/sun/star/rendering/ViewState.idl>
28 #include <com/sun/star/rendering/RenderState.idl>
29 #include <com/sun/star/rendering/FontMetrics.idl>
30
31
32 module com { module sun { module star { module rendering {
33
34 interface XCanvas;
35 interface XCanvasFont;
36 interface XBitmap;
37 interface XGraphicDevice;
38 interface XPolyPolygon2D;
39
52 interface XSimpleCanvas: com::sun::star::uno::XInterface
53 {
73 void selectFont( [in] string sFontName, [in]double size, [in] boolean bold, [in] boolean italic );
74
75
84 void setPenColor( [in] com::sun::star::util::Color nsRgbaColor );
85
86
95 void setFillColor( [in] com::sun::star::util::Color nsRgbaColor );
96
97
100 void setRectClip( [in] ::com::sun::star::geometry::RealRectangle2D aRect );
101
102
105 void setTransformation( [in] ::com::sun::star::geometry::AffineMatrix2D aTransform );
106
107
110 void drawPixel( [in] ::com::sun::star::geometry::RealPoint2D aPoint );
111
112
115 void drawLine( [in] ::com::sun::star::geometry::RealPoint2D aStartPoint,
116 [in] ::com::sun::star::geometry::RealPoint2D aEndPoint );
117
118
121 void drawRect( [in] ::com::sun::star::geometry::RealRectangle2D aRect );
122
123
126 void drawPolyPolygon( [in] XPolyPolygon2D xPolyPolygon );
127
128
146 void drawText( [in] StringContext aText,
147 [in] ::com::sun::star::geometry::RealPoint2D aOutPos,
148 [in] byte nTextDirection );
149
150
159 void drawBitmap( [in] XBitmap xBitmap,
160 [in] ::com::sun::star::geometry::RealPoint2D aLeftTop );
161
162
172 XGraphicDevice getDevice();
173
174
180 XCanvas getCanvas();
181
182
187 FontMetrics getFontMetrics();
188
189
195 XCanvasFont getCurrentFont();
196
197
200 com::sun::star::util::Color getCurrentPenColor();
201
202
205 com::sun::star::util::Color getCurrentFillColor();
206
207
210 com::sun::star::geometry::RealRectangle2D getCurrentClipRect();
211
212
215 com::sun::star::geometry::AffineMatrix2D getCurrentTransformation();
216
217
223 ViewState getCurrentViewState();
224
225
236 RenderState getCurrentRenderState( [in] boolean bUseFillColor );
237
238
239 };
240
241
242 }; }; }; };
243
244 #endif
245
246 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::geometry::AffineMatrix2D
This structure defines a 2 by 3 affine matrix.
Definition: AffineMatrix2D.idl:62
ViewState.idl
com::sun::star::rendering::RenderState
This structure contains information passed to each XCanvas render operation.
Definition: RenderState.idl:38
AffineMatrix2D.idl
com::sun::star::rendering::XCanvas
Central interface for rendering.
Definition: XCanvas.idl:113
com::sun::star::rendering::XCanvasFont
This interface provides access to a specific, XCanvas-dependent font incarnation. ...
Definition: XCanvasFont.idl:43
com::sun::star::rendering::ViewState
This structure contains information considered the view state.
Definition: ViewState.idl:36
com
Definition: Ambiguous.idl:22
com::sun::star::rendering::XBitmap
This is a generic interface to a bitmap.
Definition: XBitmap.idl:40
com::sun::star::geometry::RealPoint2D
This structure defines a two-dimensional point.
Definition: RealPoint2D.idl:31
com::sun::star::rendering::XSimpleCanvas
Provides the basic graphical output operations for a canvas.
Definition: XSimpleCanvas.idl:52
com::sun::star::rendering::FontMetrics
Metrics global to the font, i.e.
Definition: FontMetrics.idl:46
StringContext.idl
com::sun::star::rendering::StringContext
Collection of string-related arguments used on all canvas text interfaces.
Definition: StringContext.idl:33
com::sun::star::geometry::RealRectangle2D
This structure contains the necessary information for a two-dimensional rectangle.
Definition: RealRectangle2D.idl:42
com::sun::star::rendering::XPolyPolygon2D
Generic interface for poly-polygons in 2D.
Definition: XPolyPolygon2D.idl:34
com::sun::star::util::Color
long Color
describes an RGB color value with an optional alpha channel.
Definition: Color.idl:36
com::sun::star::rendering::XGraphicDevice
This interface provides access to a graphic device, such as a printer, or a screen device...
Definition: XGraphicDevice.idl:57
Color.idl
RenderState.idl
RealRectangle2D.idl
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:47
RealPoint2D.idl
FontMetrics.idl