LibreOffice
LibreOffice 7.4 SDK API Reference
Loading...
Searching...
No Matches
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
30
31
32module com { module sun { module star { module rendering {
33
34interface XCanvas;
35interface XCanvasFont;
36interface XBitmap;
37interface XGraphicDevice;
38interface XPolyPolygon2D;
39
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
101
102
106
107
111
112
117
118
122
123
126 void drawPolyPolygon( [in] XPolyPolygon2D xPolyPolygon );
127
128
146 void drawText( [in] StringContext aText,
148 [in] byte nTextDirection );
149
150
159 void drawBitmap( [in] XBitmap xBitmap,
161
162
173
174
181
182
188
189
196
197
201
202
206
207
211
212
216
217
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: */
This is a generic interface to a bitmap.
Definition XBitmap.idl:41
This interface provides access to a specific, XCanvas-dependent font incarnation.
Definition XCanvasFont.idl:44
Central interface for rendering.
Definition XCanvas.idl:114
This interface provides access to a graphic device, such as a printer, or a screen device.
Definition XGraphicDevice.idl:58
Generic interface for poly-polygons in 2D.
Definition XPolyPolygon2D.idl:35
Provides the basic graphical output operations for a canvas.
Definition XSimpleCanvas.idl:53
XCanvasFont getCurrentFont()
Retrieve currently selected font.
XCanvas getCanvas()
Query the underlying XCanvas.
com::sun::star::geometry::RealRectangle2D getCurrentClipRect()
Retrieve current clip rect.
void drawPixel([in] ::com::sun::star::geometry::RealPoint2D aPoint)
Sets a single pixel on the canvas.
void drawLine([in] ::com::sun::star::geometry::RealPoint2D aStartPoint, [in] ::com::sun::star::geometry::RealPoint2D aEndPoint)
Draws a line on the canvas.
void selectFont([in] string sFontName, [in]double size, [in] boolean bold, [in] boolean italic)
Select a font.
com::sun::star::util::Color getCurrentPenColor()
Retrieve color currently used for lines.
void drawRect([in] ::com::sun::star::geometry::RealRectangle2D aRect)
Draws a rectangle on the canvas.
void setRectClip([in] ::com::sun::star::geometry::RealRectangle2D aRect)
Sets the clip to the specified rectangle.
RenderState getCurrentRenderState([in] boolean bUseFillColor)
Retrieve render state.
FontMetrics getFontMetrics()
Request the font metrics of the current font.
XGraphicDevice getDevice()
Request the associated graphic device for this canvas.
void drawPolyPolygon([in] XPolyPolygon2D xPolyPolygon)
Draws a poly-polygon on the canvas.
com::sun::star::util::Color getCurrentFillColor()
Retrieve color currently used for fills.
void setFillColor([in] com::sun::star::util::Color nsRgbaColor)
Sets the fill color.
void drawText([in] StringContext aText, [in] ::com::sun::star::geometry::RealPoint2D aOutPos, [in] byte nTextDirection)
Draws text on the canvas.
void drawBitmap([in] XBitmap xBitmap, [in] ::com::sun::star::geometry::RealPoint2D aLeftTop)
Draws the bitmap on the canvas.
void setTransformation([in] ::com::sun::star::geometry::AffineMatrix2D aTransform)
Set the current transform matrix.
ViewState getCurrentViewState()
Retrieve view state.
void setPenColor([in] com::sun::star::util::Color nsRgbaColor)
Sets the color used by line and text operations.
com::sun::star::geometry::AffineMatrix2D getCurrentTransformation()
Retrieve current transformation matrix.
base interface of all UNO interfaces
Definition XInterface.idl:48
long Color
describes an RGB color value with an optional alpha channel.
Definition Color.idl:36
Definition Ambiguous.idl:22
This structure defines a 2 by 3 affine matrix.
Definition AffineMatrix2D.idl:63
This structure defines a two-dimensional point.
Definition RealPoint2D.idl:32
This structure contains the necessary information for a two-dimensional rectangle.
Definition RealRectangle2D.idl:43
Metrics global to the font, i.e.
Definition FontMetrics.idl:47
This structure contains information passed to each XCanvas render operation.
Definition RenderState.idl:39
Collection of string-related arguments used on all canvas text interfaces.
Definition StringContext.idl:34
This structure contains information considered the view state.
Definition ViewState.idl:37