Scroom  0.14
resizablepresentationinterface.hh
Go to the documentation of this file.
1 /*
2  * Scroom - Generic viewer for 2D data
3  * Copyright (C) 2009-2022 Kees-Jan Dijkzeul
4  *
5  * SPDX-License-Identifier: LGPL-2.1
6  */
7 
8 #pragma once
9 
10 #include <set>
11 
12 #include <boost/shared_ptr.hpp>
13 #include <boost/weak_ptr.hpp>
14 
15 #include <gdk/gdk.h>
16 
17 #include <cairo.h>
18 
19 #include <scroom/interface.hh>
20 #include <scroom/observable.hh>
21 #include <scroom/viewinterface.hh>
22 
27 {
28 public:
29  using Ptr = boost::shared_ptr<ResizablePresentationInterface>;
30  using WeakPtr = boost::weak_ptr<ResizablePresentationInterface>;
31 
32  virtual void setRect(ViewInterface::WeakPtr const& vi, Scroom::Utils::Rectangle<double> const& rect) = 0;
33 };
ResizablePresentationInterface::Ptr
boost::shared_ptr< ResizablePresentationInterface > Ptr
Definition: resizablepresentationinterface.hh:29
observable.hh
ResizablePresentationInterface
Definition: resizablepresentationinterface.hh:26
ViewInterface::WeakPtr
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
viewinterface.hh
ResizablePresentationInterface::setRect
virtual void setRect(ViewInterface::WeakPtr const &vi, Scroom::Utils::Rectangle< double > const &rect)=0
Interface
Definition: interface.hh:10
ResizablePresentationInterface::WeakPtr
boost::weak_ptr< ResizablePresentationInterface > WeakPtr
Definition: resizablepresentationinterface.hh:30
Scroom::Utils::Rectangle< double >
interface.hh