Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
examplepresentation.hh
Go to the documentation of this file.
1/*
2 * Scroom - Generic viewer for 2D data
3 * Copyright (C) 2009-2026 Kees-Jan Dijkzeul
4 *
5 * SPDX-License-Identifier: LGPL-2.1
6 */
7
8#pragma once
9
10#include <string>
11
12#include <cairo.h>
13
15#include <scroom/rectangle.hh>
17
19{
20private:
22
23private:
24 cairo_pattern_t* pattern{nullptr};
25
26 void fillPattern();
27
28public:
30 ~ExamplePresentation() override;
36
38 void open(ViewInterface::WeakPtr viewInterface) override;
39 void redraw(ViewInterface::Ptr const& vi, cairo_t* cr, Scroom::Utils::Rectangle<double> presentationArea, int zoom) override;
40 void close(ViewInterface::WeakPtr vi) override;
41 bool getProperty(const std::string& name, std::string& value) override;
42 bool isPropertyDefined(const std::string& name) override;
43 std::string getTitle() override;
44};
const uint8_t value
Definition blob-tests.cc:114
Definition examplepresentation.hh:19
cairo_pattern_t * pattern
Definition examplepresentation.hh:24
ExamplePresentation & operator=(const ExamplePresentation &)=delete
Scroom::Utils::Context::Ptr context
Definition examplepresentation.hh:21
ExamplePresentation()
Definition examplepresentation.cc:17
void redraw(ViewInterface::Ptr const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > presentationArea, int zoom) override
Definition examplepresentation.cc:59
bool isPropertyDefined(const std::string &name) override
Definition examplepresentation.cc:84
Scroom::Utils::Rectangle< double > getRect() override
Definition examplepresentation.cc:53
ExamplePresentation(const ExamplePresentation &)=delete
void close(ViewInterface::WeakPtr vi) override
Definition examplepresentation.cc:57
void fillPattern()
Definition examplepresentation.cc:25
ExamplePresentation operator=(ExamplePresentation &&)=delete
std::string getTitle() override
Definition examplepresentation.cc:86
Scroom::Utils::Context::ConstPtr getContext() const override
Definition examplepresentation.cc:87
bool getProperty(const std::string &name, std::string &value) override
Definition examplepresentation.cc:82
void open(ViewInterface::WeakPtr viewInterface) override
Definition examplepresentation.cc:55
ExamplePresentation(ExamplePresentation &&)=delete
~ExamplePresentation() override
Definition examplepresentation.cc:23
Definition presentationinterface.hh:71
std::shared_ptr< const Context > ConstPtr
Definition context.hh:27
std::shared_ptr< Context > Ptr
Definition context.hh:26
Definition rectangle.hh:29
std::weak_ptr< ViewInterface > WeakPtr
Definition viewinterface.hh:194
std::shared_ptr< ViewInterface > Ptr
Definition viewinterface.hh:193
ViewInterface::Ptr const vi
Definition pipette-tests.cc:186
cairo_t * cr
Definition transformpresentation_test.cc:72