Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
Viewable Class Referenceabstract

#include <presentationinterface.hh>

Inheritance diagram for Viewable:
Inheritance graph
Collaboration diagram for Viewable:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< Viewable >
 
using WeakPtr = std::weak_ptr< Viewable >
 

Public Member Functions

virtual void open (ViewInterface::WeakPtr vi)=0
 
virtual void close (ViewInterface::WeakPtr vi)=0
 

Additional Inherited Members

- Private Member Functions inherited from Interface
 Interface ()=default
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
 Interface (Interface &&)=delete
 
Interfaceoperator= (Interface &&)=delete
 
virtual ~Interface ()=default
 

Detailed Description

Implement Viewable if you want to be able to receive events when a View is created and/or deleted.

You'll want to receive these events if you either want to influence something on-screen (PresentationInterface, ColormapProvider), or want to store data related to a View (TiledBitmapInterface).

Member Typedef Documentation

◆ Ptr

using Viewable::Ptr = std::shared_ptr<Viewable>

◆ WeakPtr

using Viewable::WeakPtr = std::weak_ptr<Viewable>

Member Function Documentation

◆ close()

virtual void Viewable::close ( ViewInterface::WeakPtr  vi)
pure virtual

Gets called just before the View is destroyed

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implemented in PresentationBase, TransformPresentation, CompressedTile, Layer, TiledBitmap, Scroom::ColormapImpl::ColormapProvider, ExamplePresentation, DummyPresentation, and anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub.

◆ open()

virtual void Viewable::open ( ViewInterface::WeakPtr  vi)
pure virtual

Gets called just after the View is created

Precondition
Should be called from within a Gdk critical section (i.e. between gdk_threads_enter() and gdk_threads_leave() calls)

Implemented in PresentationBase, TransformPresentation, CompressedTile, Layer, Scroom::ColormapImpl::ColormapProvider, TiledBitmap, ExamplePresentation, DummyPresentation, and anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub.


The documentation for this class was generated from the following file: