LCOV - code coverage report
Current view: top level - canvas/source/opengl - ogl_bitmapcanvashelper.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #ifndef INCLUDED_CANVAS_SOURCE_OPENGL_OGL_BITMAPCANVASHELPER_HXX
      11             : #define INCLUDED_CANVAS_SOURCE_OPENGL_OGL_BITMAPCANVASHELPER_HXX
      12             : 
      13             : #include <com/sun/star/rendering/XBitmapCanvas.hpp>
      14             : #include <com/sun/star/rendering/XIntegerBitmap.hpp>
      15             : 
      16             : #include <basegfx/vector/b2isize.hxx>
      17             : #include <basegfx/vector/b2dsize.hxx>
      18             : 
      19             : #include <boost/utility.hpp>
      20             : #include <boost/shared_ptr.hpp>
      21             : #include <vector>
      22             : 
      23             : #include "ogl_canvashelper.hxx"
      24             : 
      25             : 
      26             : namespace oglcanvas
      27             : {
      28             :     /** Helper class for basic canvas functionality. */
      29           0 :     class BitmapCanvasHelper : public CanvasHelper
      30             :     {
      31             :     public:
      32             :         BitmapCanvasHelper();
      33             : 
      34             :         /// Release all references
      35             :         void disposing();
      36             : 
      37             :         /** Initialize canvas helper
      38             : 
      39             :             This method late-initializes the canvas helper, providing
      40             :             it with the necessary device and output objects. Note that
      41             :             the CanvasHelper does <em>not</em> take ownership of the
      42             :             passed rDevice reference, nor does it perform any
      43             :             reference counting. Thus, to prevent the reference counted
      44             :             SpriteCanvas object from deletion, the user of this class
      45             :             is responsible for holding ref-counted references itself!
      46             : 
      47             :             @param rDevice
      48             :             Reference device this canvas is associated with
      49             : 
      50             :          */
      51             :         void init( ::com::sun::star::rendering::XGraphicDevice&     rDevice,
      52             :                    SpriteDeviceHelper&                              rDeviceHelper,
      53             :                    const ::com::sun::star::geometry::IntegerSize2D& rSize );
      54             : 
      55             :         // BitmapCanvasHelper functionality
      56             :         // ================================
      57             : 
      58           0 :         ::com::sun::star::geometry::IntegerSize2D getSize() { return maSize; }
      59             : 
      60             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > queryBitmapCanvas();
      61             : 
      62             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap >
      63             :             getScaledBitmap( const ::com::sun::star::geometry::RealSize2D&  newSize,
      64             :                              bool                                               beFast );
      65             : 
      66             :         ::com::sun::star::uno::Sequence< sal_Int8 >
      67             :             getData( ::com::sun::star::rendering::IntegerBitmapLayout&      bitmapLayout,
      68             :                      const ::com::sun::star::geometry::IntegerRectangle2D&  rect );
      69             : 
      70             :         ::com::sun::star::uno::Sequence< sal_Int8 >
      71             :             getPixel( ::com::sun::star::rendering::IntegerBitmapLayout& bitmapLayout,
      72             :                       const ::com::sun::star::geometry::IntegerPoint2D& pos );
      73             : 
      74             :         ::com::sun::star::rendering::IntegerBitmapLayout getMemoryLayout();
      75             : 
      76             :     private:
      77             :         ::com::sun::star::geometry::IntegerSize2D maSize;
      78             :     };
      79             : }
      80             : 
      81             : #endif
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11