LibreOffice Module canvas (master)  1
dx_rendermodule.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 #ifndef INCLUDED_CANVAS_SOURCE_DIRECTX_DX_RENDERMODULE_HXX
21 #define INCLUDED_CANVAS_SOURCE_DIRECTX_DX_RENDERMODULE_HXX
22 
26 #include <memory>
27 #include "dx_winstuff.hxx"
28 
29 namespace vcl { class Window; }
30 namespace basegfx
31 {
32  class B2IRange;
33 }
34 
35 namespace dxcanvas
36 {
39  {
54  virtual bool flip( const ::basegfx::B2IRectangle& rUpdateArea,
55  const ::basegfx::B2IRectangle& rCurrWindowArea ) = 0;
56 
59  virtual void resize( const ::basegfx::B2IRange& rect ) = 0;
60 
62  virtual void screenShot() = 0;
63 
66  const ::basegfx::B2IVector& rSize ) = 0;
67 
68  virtual void disposing() = 0;
69  virtual HWND getHWND() const = 0;
70  };
71 
72  typedef std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr;
73 
74 
78  IDXRenderModuleSharedPtr createRenderModule( const vcl::Window& rParent );
79 }
80 
81 #endif
82 
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr
Specialization of IRenderModule for DirectX.
virtual void resize(const ::basegfx::B2IRange &rect)=0
Resize backbuffer area for this render module.
virtual void disposing()=0
virtual HWND getHWND() const =0
IDXRenderModuleSharedPtr createRenderModule(const vcl::Window &rParent)
Factory method, to create an IRenderModule instance for the given VCL window instance.
Definition: dx_9rm.cxx:1207
virtual void screenShot()=0
Write a snapshot of the screen to disk.
virtual bool flip(const ::basegfx::B2IRectangle &rUpdateArea, const ::basegfx::B2IRectangle &rCurrWindowArea)=0
Flip front- and backbuffer, update only given area.
virtual COMReference< surface_type > createSystemMemorySurface(const ::basegfx::B2IVector &rSize)=0
Output module interface for backend render implementations.