postgresql: upgrade to release 13.8
[LibreOffice.git] / include / cppcanvas / basegfxfactory.hxx
blob6115230667920272b4740d7eb0b54c9cf692e799
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
21 #define INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
23 #include <cppcanvas/canvas.hxx>
24 #include <cppcanvas/polypolygon.hxx>
25 #include <cppcanvas/bitmap.hxx>
26 #include <basegfx/vector/b2isize.hxx>
28 #include <cppcanvas/cppcanvasdllapi.h>
30 namespace basegfx
32 class B2DPolygon;
36 /* Definition of BaseGfxFactory class */
38 namespace cppcanvas
40 /** The BaseGfxFactory creates Canvas objects for various basegfx
41 primitives, such as polygons and bitmaps (not yet
42 implemented).
44 Please note that the objects created for a specific Canvas can
45 only be drawn on exactly that canvas. You have to regenerate
46 them for different canvases.
48 class CPPCANVAS_DLLPUBLIC BaseGfxFactory
50 public:
51 /** Create a polygon from a ::basegfx::B2DPolygon
53 The created polygon initially has the same size in user
54 coordinate space as the source polygon
56 static PolyPolygonSharedPtr createPolyPolygon( const CanvasSharedPtr&, const ::basegfx::B2DPolygon& rPoly );
58 /** Create an uninitialized bitmap with the given size
60 static BitmapSharedPtr createBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
62 /** Create an uninitialized alpha bitmap with the given size
64 static BitmapSharedPtr createAlphaBitmap( const CanvasSharedPtr&, const ::basegfx::B2ISize& rSize );
66 private:
67 BaseGfxFactory() = delete;
68 BaseGfxFactory(const BaseGfxFactory&) = delete;
69 BaseGfxFactory& operator=( const BaseGfxFactory& ) = delete;
74 #endif // INCLUDED_CPPCANVAS_BASEGFXFACTORY_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */