|
Scroom 0.14-49-gb7ae7a6d
|
#include <presentationinterface.hh>


Public Types | |
| using | Ptr = std::shared_ptr< PresentationInterface > |
| using | WeakPtr = std::weak_ptr< PresentationInterface > |
Public Types inherited from Viewable | |
| using | Ptr = std::shared_ptr< Viewable > |
| using | WeakPtr = std::weak_ptr< Viewable > |
Public Types inherited from Scroom::Utils::Observable< T > | |
| using | Observer = std::shared_ptr< T > |
| using | Ptr = std::shared_ptr< Observable< T > > |
Public Member Functions | |
| virtual Scroom::Utils::Rectangle< double > | getRect ()=0 |
| virtual void | redraw (ViewInterface::Ptr const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom)=0 |
| virtual bool | getProperty (const std::string &name, std::string &value)=0 |
| virtual bool | isPropertyDefined (const std::string &name)=0 |
| virtual std::string | getTitle ()=0 |
| virtual Scroom::Utils::Context::ConstPtr | getContext () const =0 |
Public Member Functions inherited from Viewable | |
| virtual void | open (ViewInterface::WeakPtr vi)=0 |
| virtual void | close (ViewInterface::WeakPtr vi)=0 |
Public Member Functions inherited from Scroom::Utils::Observable< T > | |
| Observable () | |
| ~Observable () override | |
| Observable (const Observable &)=delete | |
| Observable (Observable &&)=delete | |
| Observable | operator= (const Observable &)=delete |
| Observable | operator= (Observable &&)=delete |
| Scroom::Bookkeeping::Token | registerStrongObserver (Observer const &observer) |
| Scroom::Bookkeeping::Token | registerObserver (ObserverWeak const &observer) |
Public Member Functions inherited from Scroom::Utils::Base | |
| Base ()=default | |
| Base (const Base &)=delete | |
| Base (Base &&)=delete | |
| Base & | operator= (const Base &)=delete |
| Base & | operator= (Base &&)=delete |
| virtual | ~Base ()=default |
| template<typename R > | |
| std::shared_ptr< R > | shared_from_this () |
| template<typename R > | |
| std::shared_ptr< R const > | shared_from_this () const |
Additional Inherited Members | |
Protected Member Functions inherited from Scroom::Utils::Observable< T > | |
| std::list< Observer > | getObservers () |
| virtual void | observerAdded (Observer const &observer, Scroom::Bookkeeping::Token const &token) |
Represent some 2D content
Anything that should be shown by Scroom in a window should implement this interface.
Objects implementing this interface are typically returned by NewPresentationInterface::createNew() and OpenPresentationInterface::open().
| using PresentationInterface::Ptr = std::shared_ptr<PresentationInterface> |
| using PresentationInterface::WeakPtr = std::weak_ptr<PresentationInterface> |
|
pure virtual |
|
pure virtual |
Return the value of the requested property
| [in] | name | The name of the requested property |
| [out] | value | The value of the requested property |
| true | if the property existed |
| false | if the property didn't exist |
Implemented in DummyPresentation, anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub, TransformPresentation, ExamplePresentation, TransparentOverlayPresentation, and anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation.
|
pure virtual |
Return the dimensions of your presentation
Implemented in TransformPresentation, anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation, ExamplePresentation, DummyPresentation, TransparentOverlayPresentation, and anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub.
|
pure virtual |
Return the title of the presentation
Implemented in TransformPresentation, anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation, ExamplePresentation, DummyPresentation, TransparentOverlayPresentation, and anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub.
|
pure virtual |
Return true if the named property exists
Implemented in anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub, TransformPresentation, ExamplePresentation, DummyPresentation, TransparentOverlayPresentation, and anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation.
|
pure virtual |
Draw the requested ara at the requested zoom level
| vi | The ViewInterface on whose behalf the request is made |
| cr | The context to draw the area on |
| presentationArea | the area that is to be drawn. The given x and y coordinates should map on 0,0 of the given context cr. |
| zoom | The requested zoom level. One pixel of your presentation should have size 2**zoom when drawn. zoom may be negative. |
Implemented in anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation, DummyPresentation, anonymous_namespace{determine-size-test.cc}::PresentationInterfaceStub, TransformPresentation, ExamplePresentation, and TransparentOverlayPresentation.