LibreOffice LibreOffice 25.2 SDK API Reference

XPolyPolygon2D.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
20module com { module sun { module star { module rendering {
21
26 interface XPolyPolygon2D : ::com::sun::star::uno::XInterface
27{
58 void addPolyPolygon( [in] ::com::sun::star::geometry::RealPoint2D position, [in] XPolyPolygon2D polyPolygon )
59 raises (com::sun::star::lang::IllegalArgumentException);
60
61
64 long getNumberOfPolygons();
65
66
73 long getNumberOfPolygonPoints( [in] long polygon )
74 raises (com::sun::star::lang::IndexOutOfBoundsException);
75
76
80 FillRule getFillRule();
81
82
86 void setFillRule( [in] FillRule fillRule );
87
88
91 boolean isClosed( [in] long index )
92 raises (com::sun::star::lang::IndexOutOfBoundsException);
93
94
98 void setClosed( [in] long index, [in] boolean closedState )
99 raises (com::sun::star::lang::IndexOutOfBoundsException);
100};
101
102}; }; }; };
103
104/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument.
Definition: IllegalArgumentException.idl:27
com::sun::star::lang::IndexOutOfBoundsException
This exception is thrown to indicate that a container has been accessed with an illegal index.
Definition: IndexOutOfBoundsException.idl:31
com::sun::star::rendering::XPolyPolygon2D
Generic interface for poly-polygons in 2D.
Definition: XPolyPolygon2D.idl:27
com::sun::star::rendering::XPolyPolygon2D::getFillRule
FillRule getFillRule()
Query the rule used to determine inside and outside of the poly-polygon.
com::sun::star::rendering::XPolyPolygon2D::setFillRule
void setFillRule([in] FillRule fillRule)
Set the rule used to determine inside and outside of the poly-polygon.
com::sun::star::rendering::XPolyPolygon2D::getNumberOfPolygonPoints
long getNumberOfPolygonPoints([in] long polygon)
Query number of points inside given polygon.
com::sun::star::rendering::XPolyPolygon2D::setClosed
void setClosed([in] long index, [in] boolean closedState)
Set the close state of the specified polygon outline.
com::sun::star::rendering::XPolyPolygon2D::addPolyPolygon
void addPolyPolygon([in] ::com::sun::star::geometry::RealPoint2D position, [in] XPolyPolygon2D polyPolygon)
Add the specified poly-polygon at the given position.
com::sun::star::rendering::XPolyPolygon2D::getNumberOfPolygons
long getNumberOfPolygons()
Query number of polygons inside this poly-polygon.
com::sun::star::rendering::XPolyPolygon2D::isClosed
boolean isClosed([in] long index)
Query whether the specified polygon outline is closed.
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:46
com::sun::star::rendering::FillRule
FillRule
Determines which algorithm to use when determining inside and outside of filled poly-polygons.
Definition: FillRule.idl:28
com
Definition: Ambiguous.idl:20
com::sun::star::geometry::RealPoint2D
This structure defines a two-dimensional point.
Definition: RealPoint2D.idl:30