1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef __com_sun_star_rendering_RenderState_idl__
20 #define __com_sun_star_rendering_RenderState_idl__
22 #include
<com
/sun
/star
/geometry
/AffineMatrix2D.idl
>
23 #include
<com
/sun
/star
/rendering
/XColorSpace.idl
>
25 module com
{ module sun
{ module star
{ module rendering
{
27 interface XPolyPolygon2D
;
29 /** This structure contains information passed to each
30 XCanvas render operation.<p>
32 This structure contains information considered as the render
33 state, i.e. the common setup required to render each individual
40 /** The affine transform associated with this render
43 This is used to transform coordinates of canvas primitives
44 from user space to view space (from which they are
45 subsequently transformed to device space by the view
48 ::com
::sun
::star
::geometry
::AffineMatrix2D AffineTransform
;
51 /** The clipping area associated with this render operation.<p>
53 This clipping is interpreted in the user coordinate system,
54 i.e. subject to the render state transform followed by the
55 view transform before mapped to device coordinate space.<p>
57 Specifying an empty interface denotes no clipping,
58 i.e. everything rendered to the canvas will be visible
59 (subject to device-dependent constraints, of
60 course). Specifying an empty XPolyPolygon2D, i.e. a
61 poly-polygon containing zero polygons, or an XPolyPolygon2D
62 with any number of empty sub-polygons, denotes the NULL
63 clip. That means, nothing rendered to the canvas will be
69 /** The device color associated with this render operation.<p>
71 Note that this need not be RGB here, but depends on the active
72 device color space.<p>
77 sequence
<ColorComponent
> DeviceColor
;
80 /** The composition mode associated with this render
83 The composite mode determines in which way the primitive and
84 possibly existing background is combined. The permissible
85 values must be one out of the CompositeOperation
88 byte CompositeOperation
;
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */