Scroom  0.14
measure-framerate-callbacks.hh
Go to the documentation of this file.
1 /*
2  * Scroom - Generic viewer for 2D data
3  * Copyright (C) 2009-2022 Kees-Jan Dijkzeul
4  *
5  * SPDX-License-Identifier: LGPL-2.1
6  */
7 
8 #pragma once
9 
10 #include <vector>
11 
12 #include <boost/function.hpp>
13 
14 #include <gtk/gtk.h>
15 
16 extern std::vector<boost::function<bool()>> functions;
17 
18 GtkWidget* create_window();
19 void init();
20 void invalidate();
create_window
GtkWidget * create_window()
Definition: measure-framerate-callbacks.cc:79
createTiledBitmap
TiledBitmapInterface::Ptr createTiledBitmap(int bitmapWidth, int bitmapHeight, LayerSpec const &ls)
Definition: tiled-bitmap.cc:28
DummyLayerOperations::drawState
void drawState(cairo_t *, TileState, Scroom::Utils::Rectangle< double >) override
Definition: tiledbitmap-tests.cc:31
DummyLayerOperations::reduce
void reduce(Tile::Ptr, const ConstTile::Ptr, int, int) override
Definition: tiledbitmap-tests.cc:32
DummyLayerOperations::create
static Ptr create()
Definition: tiledbitmap-tests.cc:19
init
void init()
Definition: measure-framerate-callbacks.cc:98
invalidate
void invalidate()
Definition: measure-framerate-callbacks.cc:100
functions
std::vector< boost::function< bool()> > functions
Definition: measure-framerate-callbacks.cc:16
Scroom::Bitmap::SampleIterator
Definition: bitmap-helpers.hh:61
DummyLayerOperations::draw
void draw(cairo_t *, const ConstTile::Ptr &, Scroom::Utils::Rectangle< double >, Scroom::Utils::Rectangle< double >, int, Scroom::Utils::Stuff) override
Definition: tiledbitmap-tests.cc:23
ConstTile::Ptr
boost::shared_ptr< ConstTile > Ptr
Definition: tile.hh:47
create_window
GtkWidget * create_window()
Definition: measure-framerate-callbacks.cc:79
LayerSpec
std::vector< LayerOperations::Ptr > LayerSpec
Definition: tiledbitmapinterface.hh:190
drawingAreaHeight
int drawingAreaHeight
Definition: test-helpers.cc:23
DummyLayerOperations::getBpp
int getBpp() override
Definition: tiledbitmap-tests.cc:21
anonymous_namespace{sampleiterator-tests.cc}::initial_offsets
const int initial_offsets[]
Definition: sampleiterator-tests.cc:22
bitmap-helpers.hh
LayerOperations
Definition: tiledbitmapinterface.hh:50
current
static unsigned int current
Definition: measure-framerate-callbacks.cc:17
anonymous_namespace{sampleiterator-tests.cc}::bit_depths
const int bit_depths[]
Definition: sampleiterator-tests.cc:21
measure-framerate-callbacks.hh
anonymous_namespace{sampleiterator-tests.cc}::deltas
const int deltas[]
Definition: sampleiterator-tests.cc:23
TileState
TileState
Definition: tiledbitmapinterface.hh:32
drawingArea
static GtkWidget * drawingArea
Definition: measure-framerate-callbacks.cc:18
on_configure
static gboolean on_configure(GtkWidget *, GdkEventConfigure *, gpointer)
Definition: measure-framerate-callbacks.cc:23
Scroom::Bitmap::SampleIterator::bps
const int bps
Definition: bitmap-helpers.hh:68
invalidate
void invalidate()
Definition: measure-framerate-callbacks.cc:100
tiledbitmapinterface.hh
anonymous_namespace{sampleiterator-tests.cc}::testData
const uint8_t testData[]
Definition: sampleiterator-tests.cc:20
Scroom::Bitmap::operator<<
std::ostream & operator<<(std::ostream &os, const SampleIterator< T > &it)
Definition: sampleiterator-tests.cc:29
output
uint8_t output[]
Definition: sampleiterator-tests.cc:41
Tile::Ptr
boost::shared_ptr< Tile > Ptr
Definition: tile.hh:21
functions
std::vector< boost::function< bool()> > functions
Definition: measure-framerate-callbacks.cc:16
Scroom::Utils::Stuff
boost::shared_ptr< void > Stuff
Definition: stuff.hh:18
DummyLayerOperations::initializeCairo
void initializeCairo(cairo_t *) override
Definition: tiledbitmap-tests.cc:22
drawingAreaWidth
int drawingAreaWidth
Definition: test-helpers.cc:22
Scroom::Bitmap::SampleIterator::currentOffset
int currentOffset
Definition: bitmap-helpers.hh:74
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(equality)
Definition: sampleiterator-tests.cc:61
DummyLayerOperations
Definition: tiledbitmap-tests.cc:16
init
void init()
Definition: measure-framerate-callbacks.cc:98
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(tiledbitmap_can_be_deleted)
Definition: tiledbitmap-tests.cc:39
BOOST_CHECK_EQUAL
BOOST_CHECK_EQUAL(0, memcmp(testData, output, 2))
on_expose
static gboolean on_expose(GtkWidget *widget, GdkEventExpose *, gpointer)
Definition: measure-framerate-callbacks.cc:40
LayerOperations::Ptr
boost::shared_ptr< LayerOperations > Ptr
Definition: tiledbitmapinterface.hh:53
Scroom::Bitmap
Definition: bitmap-helpers.hh:20
test-helpers.hh
TiledBitmapInterface::Ptr
boost::shared_ptr< TiledBitmapInterface > Ptr
Definition: tiledbitmapinterface.hh:239
on_hide
static void on_hide(GtkWidget *, gpointer)
Definition: measure-framerate-callbacks.cc:38
out
SampleIterator< uint8_t > out(output, 0, bps)
unused.hh
mask
const unsigned int mask
Definition: sampleiterator-tests.cc:43
Scroom::Utils::Rectangle< double >
on_idle
static gboolean on_idle(gpointer)
Definition: measure-framerate-callbacks.cc:61
rectangle.hh
BOOST_DATA_TEST_CASE
BOOST_DATA_TEST_CASE(arithmetic, data::make(bit_depths) *data::make(initial_offsets) *data::make(deltas), bps, initial_offset, delta)
Definition: sampleiterator-tests.cc:69
Scroom::Bitmap::SampleIterator::currentBase
ConstBase * currentBase
Definition: bitmap-helpers.hh:73