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 #pragma once
21 
25 #include <memory>
26 #include "dx_winstuff.hxx"
27 
28 namespace vcl { class Window; }
29 namespace basegfx
30 {
31  class B2IRange;
32 }
33 
34 namespace dxcanvas
35 {
38  {
53  virtual bool flip( const ::basegfx::B2IRectangle& rUpdateArea,
54  const ::basegfx::B2IRectangle& rCurrWindowArea ) = 0;
55 
58  virtual void resize( const ::basegfx::B2IRange& rect ) = 0;
59 
61  virtual void screenShot() = 0;
62 
65  const ::basegfx::B2IVector& rSize ) = 0;
66 
67  virtual void disposing() = 0;
68  virtual HWND getHWND() const = 0;
69  };
70 
71  typedef std::shared_ptr< IDXRenderModule > IDXRenderModuleSharedPtr;
72 
73 
77  IDXRenderModuleSharedPtr createRenderModule( const vcl::Window& rParent );
78 }
79 
80 /* 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.