LibreOffice Module basegfx (master) 1
tools.hxx
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#pragma once
21
22#include <sal/types.h>
24
25namespace basegfx
26{
27 class B2DPoint;
28 class B2DRange;
29 class B2DPolyPolygon;
30}
31
32namespace basegfx::utils
33{
93 ::basegfx::B2DPoint& io_rLeftBottom,
94 ::basegfx::B2DPoint& io_rRightTop,
95 ::basegfx::B2DPoint& io_rRightBottom,
96 const ::basegfx::B2DRange& rFitTarget );
97
118 BASEGFX_DLLPUBLIC B2DPolyPolygon number2PolyPolygon(double fVal,
119 sal_Int32 nTotalDigits,
120 sal_Int32 nDecPlaces,
121 bool bLitSegments=true);
122}
123
124/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define BASEGFX_DLLPUBLIC
Definition: basegfxdllapi.h:35
Base Point class with two double values.
Definition: b2dpoint.hxx:42
void infiniteLineFromParallelogram(::basegfx::B2DPoint &io_rLeftTop, ::basegfx::B2DPoint &io_rLeftBottom, ::basegfx::B2DPoint &io_rRightTop, ::basegfx::B2DPoint &io_rRightBottom, const ::basegfx::B2DRange &rFitTarget)
Expand given parallelogram, such that it extends beyond bound rect in a given direction.
Definition: tools.cxx:77
B2DPolyPolygon number2PolyPolygon(double fValue, sal_Int32 nTotalDigits, sal_Int32 nDecPlaces, bool bLitSegments)
Creates polypolygon with the given number as seven-segment digits.
Definition: numbertools.cxx:20