|
Scroom 0.14-48-ga0fee447
|
#include <viewinterface.hh>


Public Types | |
| using | Ptr = std::shared_ptr< ViewInterface > |
| using | WeakPtr = std::weak_ptr< ViewInterface > |
Public Member Functions | |
| virtual void | invalidate ()=0 |
| virtual ProgressInterface::Ptr | getProgressInterface ()=0 |
| virtual void | addSideWidget (std::string title, GtkWidget *w)=0 |
| virtual void | removeSideWidget (GtkWidget *w)=0 |
| virtual void | addToToolbar (GtkToolItem *ti)=0 |
| virtual void | removeFromToolbar (GtkToolItem *ti)=0 |
| virtual void | registerSelectionListener (SelectionListener::Ptr)=0 |
| virtual void | registerPostRenderer (PostRenderer::Ptr)=0 |
| virtual void | setStatusMessage (const std::string &)=0 |
| virtual std::shared_ptr< PresentationInterface > | getCurrentPresentation ()=0 |
| virtual void | addToolButton (GtkToggleButton *, ToolStateListener::Ptr)=0 |
Additional Inherited Members | |
Private Member Functions inherited from Interface | |
| Interface ()=default | |
| Interface (const Interface &)=delete | |
| Interface & | operator= (const Interface &)=delete |
| Interface (Interface &&)=delete | |
| Interface & | operator= (Interface &&)=delete |
| virtual | ~Interface ()=default |
Interface provided to something Viewable
Internally, scroom uses a View to represent the fact that something (typically a presentation) is visible on the screen. Being a presentation, you typically want to influence whatever is being shown. This interface allows you to do so.
| using ViewInterface::Ptr = std::shared_ptr<ViewInterface> |
| using ViewInterface::WeakPtr = std::weak_ptr<ViewInterface> |
|
pure virtual |
Request that the given widget be added to the sidebar.
Implemented in View, Detail::ViewData, ChildView, ViewInterfaceStub, DummyView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Adds a new tool button to the toolbar. The given ToolStateListener will be informed when the tool is turned on or off. Only one tool will be active at the same time.
Implemented in View, ViewInterfaceStub, DummyView, anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy, Detail::ViewData, and ChildView.
|
pure virtual |
Request that the given tool item be added to the toolbar.
Implemented in ViewInterfaceStub, DummyView, anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy, View, Detail::ViewData, and ChildView.
|
pure virtual |
Returns a shared pointer to the current presentation.
Implemented in View, Detail::ViewData, ViewInterfaceStub, DummyView, ChildView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Return a pointer to the progess interface associated with the View
Implemented in View, Detail::ViewData, ViewInterfaceStub, DummyView, ChildView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Request that the window content is redrawn.
Implemented in View, Detail::ViewData, ViewInterfaceStub, DummyView, ChildView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Register a postrenderer to be updated whenever a redraw occurs. When this happens, the 'render' function gets called on the instance that is passed to the given instance.
Note that the order in which different registered instances get updated is the order in which they register to the view. This order remains constant throughout the view's lifetime.
Implemented in Detail::ViewData, View, ChildView, ViewInterfaceStub, DummyView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Register a SelectionListener to be updated whenever the user selects a region . When the user changes the selection, various functions on the given instance are called.
Implemented in View, ChildView, Detail::ViewData, ViewInterfaceStub, DummyView, and anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy.
|
pure virtual |
Request that the given tool item be removed from the toolbar.
Implemented in ViewInterfaceStub, DummyView, anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy, View, Detail::ViewData, and ChildView.
|
pure virtual |
Request that the given widget be removed from the sidebar.
Implemented in ViewInterfaceStub, DummyView, anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy, View, Detail::ViewData, and ChildView.
|
pure virtual |
Sets the status message in the status bar of the application.
Implemented in ViewInterfaceStub, anonymous_namespace{determine-size-test.cc}::ViewInterfaceDummy, View, ChildView, DummyView, and Detail::ViewData.