|
Scroom 0.14-49-gb7ae7a6d
|
#include <algorithm>#include <gtest/gtest.h>#include <scroom/gtk-helpers.hh>#include <scroom/presentationinterface.hh>#include <scroom/resizablepresentationinterface.hh>#include "sizedeterminer.hh"
Namespaces | |
| namespace | std |
| STL namespace. | |
| namespace | anonymous_namespace{determine-size-test.cc} |
Functions | |
| template<typename Iter > | |
| std::ostream & | dumpContainer (std::ostream &os, const std::string &name, Iter const &begin, Iter const &end) |
| template<typename T > | |
| std::ostream & | std::operator<< (std::ostream &os, std::list< T > const &l) |
| template<typename T > | |
| static bool | operator== (std::weak_ptr< T > const &left, std::weak_ptr< T > const &right) |
| sd | add (p) |
| EXPECT_EQ (expected, sd->getRect()) | |
| sd | add (p1) |
| sd | add (p2) |
| EXPECT_TRUE (p1->receivedVi.empty()) | |
| EXPECT_TRUE (p1->receivedRect.empty()) | |
| sd | open (p1, v1) |
| p1 | CheckAllEqual (expected) |
| EXPECT_TRUE (p1->Contains(v1)) | |
| p1 | Clear () |
| sd | open (p2, v2) |
| p1 | CheckEmpty () |
| EXPECT_TRUE (p2->Contains(v2)) | |
| EXPECT_EQ (r1, sd->getRect()) | |
| p1 | CheckAllEqual (r1) |
| EXPECT_EQ (r2, sd->getRect()) | |
| p1 | CheckAllEqual (r2) |
| sd | open (p1, vi1) |
| sd | open (p1, vi2) |
| sd | open (p1, vi3) |
| EXPECT_TRUE (p1->Contains(vi1)) | |
| EXPECT_TRUE (p1->Contains(vi2)) | |
| EXPECT_TRUE (p1->Contains(vi3)) | |
| sd | close (p1, vi3) |
| EXPECT_FALSE (p1->Contains(vi3)) | |
Variables | |
| PresentationInterfaceStub::Ptr const | p = PresentationInterfaceStub::create(expected) |
| SizeDeterminer::Ptr const | sd = SizeDeterminer::create() |
| PresentationInterfaceStub::Ptr const | p1 = PresentationInterfaceStub::create({1, 2, 3, 4}) |
| PresentationInterfaceStub::Ptr const | p2 = PresentationInterfaceStub::create({2, 1, 4, 3}) |
| ViewInterface::Ptr const | v1 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const | v2 = ViewInterfaceDummy::create() |
| Scroom::Utils::Rectangle< double > const | r1 (1, 2, 3, 4) |
| Scroom::Utils::Rectangle< double > const | r2 (2, 1, 4, 3) |
| ViewInterface::Ptr const | vi1 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const | vi2 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const | vi3 = ViewInterfaceDummy::create() |
| p1 CheckEmpty | ( | ) |
| p1 Clear | ( | ) |
| std::ostream & dumpContainer | ( | std::ostream & | os, |
| const std::string & | name, | ||
| Iter const & | begin, | ||
| Iter const & | end | ||
| ) |
Referenced by std::operator<<().

| EXPECT_FALSE | ( | p1-> | Containsvi3 | ) |
| EXPECT_TRUE | ( | p1-> | Containsv1 | ) |
| EXPECT_TRUE | ( | p1-> | Containsvi1 | ) |
| EXPECT_TRUE | ( | p1-> | Containsvi2 | ) |
| EXPECT_TRUE | ( | p1-> | Containsvi3 | ) |
| EXPECT_TRUE | ( | p1->receivedRect. | empty() | ) |
| EXPECT_TRUE | ( | p1->receivedVi. | empty() | ) |
| EXPECT_TRUE | ( | p2-> | Containsv2 | ) |
|
static |
Referenced by SizeDeterminer::add(), TransparentOverlayPresentation::addPresentation(), Detail::call_delete(), Scroom::Utils::ceil(), anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation::clearCaches(), SizeDeterminer::close(), Scroom::Utils::Segment< T >::contains(), Scroom::ColormapImpl::ColormapProvider::create(), TransparentOverlayViewInfo::createToggleToolButton(), destroy(), destroy(), anonymous_namespace{sizedeterminer.cc}::DetermineSize(), MeasureHandler::drawCross(), Scroom::Utils::anonymous_namespace{tweak-view.cc}::find_closest_corner(), find_or_create_scroom(), for(), for(), for(), fmt::formatter< Scroom::Utils::Point< T > >::format(), fmt::formatter< std::shared_ptr< T > >::format(), fmt::formatter< std::weak_ptr< T > >::format(), Scroom::MemoryBlobs::PageProvider::getFreePage(), anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation::getProperty(), TransparentOverlayPresentation::getViews(), anonymous_namespace{sizedeterminer.cc}::keys(), main(), Scroom::MemoryBlobs::PageProvider::markPageFree(), Scroom::Utils::Segment< T >::moveTo(), ScroomInterfaceImpl::newPresentation(), on_done_loading_plugins(), on_new_presentationobserver(), on_newPresentationInterfaces_update(), anonymous_namespace{view.cc}::on_newWindow_activate(), View::on_presentation_created(), on_presentation_created(), on_presentation_possibly_destroyed(), on_quit_activate(), on_view_created(), SizeDeterminer::open(), Scroom::MemoryBlobs::PageProvider::MarkPageFree::operator()(), GObjectUnref< T >::operator()(), AsyncDeleter< T >::operator()(), Scroom::Utils::operator*(), Scroom::Utils::operator*(), operator<<(), Scroom::Utils::operator<<(), Selection::operator=(), Scroom::ColormapImpl::ColormapPlugin::presentationAdded(), TransparentOverlayViewInfo::redraw(), TransparentOverlayPresentation::setOptimalColor(), Scroom::Utils::Detail::ProgressStore::setProgress(), anonymous_namespace{transparentoverlayviewinfo.cc}::setToggleButtonColor(), TileViewState::setViewData(), anonymous_namespace{progressbarmanager.cc}::ProgressBarPulser::stop(), and View::updateNewWindowMenu().
| ResizablePresentationInterfaceStub::Ptr const p1 = PresentationInterfaceStub::create({1, 2, 3, 4}) |
| PresentationInterfaceStub::Ptr const p2 = PresentationInterfaceStub::create({2, 1, 4, 3}) |
| Scroom::Utils::Rectangle< double > const r1(1, 2, 3, 4) | ( | 1 | , |
| 2 | , | ||
| 3 | , | ||
| 4 | |||
| ) |
| Scroom::Utils::Rectangle< double > const r2(2, 1, 4, 3) | ( | 2 | , |
| 1 | , | ||
| 4 | , | ||
| 3 | |||
| ) |
| SizeDeterminer::Ptr const sd = SizeDeterminer::create() |
| ViewInterface::Ptr const v1 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const v2 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const vi1 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const vi2 = ViewInterfaceDummy::create() |
| ViewInterface::Ptr const vi3 = ViewInterfaceDummy::create() |