LibreOffice Module canvas (master) 1
ogl_canvasbitmap.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
10#pragma once
11
13
14#include <com/sun/star/rendering/XBitmapCanvas.hpp>
15#include <com/sun/star/rendering/XIntegerBitmap.hpp>
16
20
22#include "ogl_spritecanvas.hxx"
23
24
25/* Definition of CanvasBitmap class */
26
27namespace oglcanvas
28{
29 typedef ::cppu::WeakComponentImplHelper< css::rendering::XBitmapCanvas,
30 css::rendering::XIntegerBitmap > CanvasBitmapBase_Base;
35 ::osl::MutexGuard,
37
39 {
40 public:
49 CanvasBitmap( const css::geometry::IntegerSize2D& rSize,
50 SpriteCanvasRef rDevice,
51 SpriteDeviceHelper& rDeviceHelper );
52
55 CanvasBitmap( const CanvasBitmap& rSrc );
56
58 virtual void disposeThis() override;
59
62 bool renderRecordedActions() const;
63
64 private:
69 };
70}
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Helper template to handle XIntegerBitmap method forwarding to BitmapCanvasHelper.
Helper class for basic canvas functionality.
CanvasBitmap(const css::geometry::IntegerSize2D &rSize, SpriteCanvasRef rDevice, SpriteDeviceHelper &rDeviceHelper)
Create a canvas bitmap for the given surface.
virtual void disposeThis() override
Dispose all internal references.
SpriteCanvasRef mpDevice
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)
bool renderRecordedActions() const
Write out recorded actions.
::cppu::WeakComponentImplHelper< css::rendering::XBitmapCanvas, css::rendering::XIntegerBitmap > CanvasBitmapBase_Base
::canvas::IntegerBitmapBase< canvas::BitmapCanvasBase2< ::canvas::BaseMutexHelper< CanvasBitmapBase_Base >, BitmapCanvasHelper, ::osl::MutexGuard, ::cppu::OWeakObject > > CanvasBitmapBaseT