LibreOffice: com/sun/star/rendering/XSimpleCanvas.idl Source File

LibreOffice LibreOffice 24.8 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
20
21module com { module sun { module star { module rendering {
22
23interface XCanvas;
24interface XCanvasFont;
25interface XBitmap;
26interface XGraphicDevice;
27interface XPolyPolygon2D;
28
41 interface XSimpleCanvas: com::sun::star::uno::XInterface
42{
62 void selectFont( [in] string sFontName, [in]double size, [in] boolean bold, [in] boolean italic );
63
64
73 void setPenColor( [in] com::sun::star::util::Color nsRgbaColor );
74
75
84 void setFillColor( [in] com::sun::star::util::Color nsRgbaColor );
85
86
89 void setRectClip( [in] ::com::sun::star::geometry::RealRectangle2D aRect );
90
91
94 void setTransformation( [in] ::com::sun::star::geometry::AffineMatrix2D aTransform );
95
96
99 void drawPixel( [in] ::com::sun::star::geometry::RealPoint2D aPoint );
100
101
104 void drawLine( [in] ::com::sun::star::geometry::RealPoint2D aStartPoint,
105 [in] ::com::sun::star::geometry::RealPoint2D aEndPoint );
106
107
110 void drawRect( [in] ::com::sun::star::geometry::RealRectangle2D aRect );
111
112
115 void drawPolyPolygon( [in] XPolyPolygon2D xPolyPolygon );
116
117
135 void drawText( [in] StringContext aText,
136 [in] ::com::sun::star::geometry::RealPoint2D aOutPos,
137 [in] byte nTextDirection );
138
139
148 void drawBitmap( [in] XBitmap xBitmap,
149 [in] ::com::sun::star::geometry::RealPoint2D aLeftTop );
150
151
161 XGraphicDevice getDevice();
162
163
169 XCanvas getCanvas();
170
171
176 FontMetrics getFontMetrics();
177
178
184 XCanvasFont getCurrentFont();
185
186
189 com::sun::star::util::Color getCurrentPenColor();
190
191
194 com::sun::star::util::Color getCurrentFillColor();
195
196
199 com::sun::star::geometry::RealRectangle2D getCurrentClipRect();
200
201
204 com::sun::star::geometry::AffineMatrix2D getCurrentTransformation();
205
206
212 ViewState getCurrentViewState();
213
214
225 RenderState getCurrentRenderState( [in] boolean bUseFillColor );
226
227
228};
229
230
231}; }; }; };
232
233/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::rendering::XBitmap
This is a generic interface to a bitmap.
Definition XBitmap.idl:33
com::sun::star::rendering::XCanvasFont
This interface provides access to a specific, XCanvas-dependent font incarnation.
Definition XCanvasFont.idl:32
com::sun::star::rendering::XCanvas
Central interface for rendering.
Definition XCanvas.idl:96
com::sun::star::rendering::XGraphicDevice
This interface provides access to a graphic device, such as a printer, or a screen device.
Definition XGraphicDevice.idl:47
com::sun::star::rendering::XPolyPolygon2D
Generic interface for poly-polygons in 2D.
Definition XPolyPolygon2D.idl:27
com::sun::star::rendering::XSimpleCanvas
Provides the basic graphical output operations for a canvas.
Definition XSimpleCanvas.idl:42
com::sun::star::rendering::XSimpleCanvas::getCurrentFont
XCanvasFont getCurrentFont()
Retrieve currently selected font.
com::sun::star::rendering::XSimpleCanvas::getCanvas
XCanvas getCanvas()
Query the underlying XCanvas.
com::sun::star::rendering::XSimpleCanvas::getCurrentClipRect
com::sun::star::geometry::RealRectangle2D getCurrentClipRect()
Retrieve current clip rect.
com::sun::star::rendering::XSimpleCanvas::drawPixel
void drawPixel([in] ::com::sun::star::geometry::RealPoint2D aPoint)
Sets a single pixel on the canvas.
com::sun::star::rendering::XSimpleCanvas::drawLine
void drawLine([in] ::com::sun::star::geometry::RealPoint2D aStartPoint, [in] ::com::sun::star::geometry::RealPoint2D aEndPoint)
Draws a line on the canvas.
com::sun::star::rendering::XSimpleCanvas::selectFont
void selectFont([in] string sFontName, [in]double size, [in] boolean bold, [in] boolean italic)
Select a font.
com::sun::star::rendering::XSimpleCanvas::getCurrentPenColor
com::sun::star::util::Color getCurrentPenColor()
Retrieve color currently used for lines.
com::sun::star::rendering::XSimpleCanvas::drawRect
void drawRect([in] ::com::sun::star::geometry::RealRectangle2D aRect)
Draws a rectangle on the canvas.
com::sun::star::rendering::XSimpleCanvas::setRectClip
void setRectClip([in] ::com::sun::star::geometry::RealRectangle2D aRect)
Sets the clip to the specified rectangle.
com::sun::star::rendering::XSimpleCanvas::getCurrentRenderState
RenderState getCurrentRenderState([in] boolean bUseFillColor)
Retrieve render state.
com::sun::star::rendering::XSimpleCanvas::getFontMetrics
FontMetrics getFontMetrics()
Request the font metrics of the current font.
com::sun::star::rendering::XSimpleCanvas::getDevice
XGraphicDevice getDevice()
Request the associated graphic device for this canvas.
com::sun::star::rendering::XSimpleCanvas::drawPolyPolygon
void drawPolyPolygon([in] XPolyPolygon2D xPolyPolygon)
Draws a poly-polygon on the canvas.
com::sun::star::rendering::XSimpleCanvas::getCurrentFillColor
com::sun::star::util::Color getCurrentFillColor()
Retrieve color currently used for fills.
com::sun::star::rendering::XSimpleCanvas::setFillColor
void setFillColor([in] com::sun::star::util::Color nsRgbaColor)
Sets the fill color.
com::sun::star::rendering::XSimpleCanvas::drawText
void drawText([in] StringContext aText, [in] ::com::sun::star::geometry::RealPoint2D aOutPos, [in] byte nTextDirection)
Draws text on the canvas.
com::sun::star::rendering::XSimpleCanvas::drawBitmap
void drawBitmap([in] XBitmap xBitmap, [in] ::com::sun::star::geometry::RealPoint2D aLeftTop)
Draws the bitmap on the canvas.
com::sun::star::rendering::XSimpleCanvas::setTransformation
void setTransformation([in] ::com::sun::star::geometry::AffineMatrix2D aTransform)
Set the current transform matrix.
com::sun::star::rendering::XSimpleCanvas::getCurrentViewState
ViewState getCurrentViewState()
Retrieve view state.
com::sun::star::rendering::XSimpleCanvas::setPenColor
void setPenColor([in] com::sun::star::util::Color nsRgbaColor)
Sets the color used by line and text operations.
com::sun::star::rendering::XSimpleCanvas::getCurrentTransformation
com::sun::star::geometry::AffineMatrix2D getCurrentTransformation()
Retrieve current transformation matrix.
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition generated_idl_chapter_refs.idl:452
com::sun::star::util::Color
long Color
describes an RGB color value with an optional alpha channel.
Definition Color.idl:34
com
Definition Ambiguous.idl:20
com::sun::star::geometry::AffineMatrix2D
This structure defines a 2 by 3 affine matrix.
Definition AffineMatrix2D.idl:61
com::sun::star::geometry::RealPoint2D
This structure defines a two-dimensional point.
Definition RealPoint2D.idl:30
com::sun::star::geometry::RealRectangle2D
This structure contains the necessary information for a two-dimensional rectangle.
Definition RealRectangle2D.idl:41
com::sun::star::rendering::FontMetrics
Metrics global to the font, i.e.
Definition FontMetrics.idl:45
com::sun::star::rendering::RenderState
This structure contains information passed to each XCanvas render operation.
Definition RenderState.idl:34
com::sun::star::rendering::StringContext
Collection of string-related arguments used on all canvas text interfaces.
Definition StringContext.idl:32
com::sun::star::rendering::ViewState
This structure contains information considered the view state.
Definition ViewState.idl:33