#include <iostream>
#include <boost/assign/list_of.hpp>
#include <scroom/cairo-helpers.hh>
|
| const Color | Colors::OUT_OF_BOUNDS (0.75, 0.75, 1) |
| |
| void | traceRectangleContour (cairo_t *cr, Rectangle< double > const &viewArea) |
| |
| void | drawRectangleContour (cairo_t *cr, Rectangle< double > const &viewArea) |
| |
| void | drawRectangleContour (cairo_t *cr, Color const &c, Rectangle< double > const &viewArea) |
| |
| void | setClip (cairo_t *cr, double x, double y, double width, double height) |
| |
| void | setClip (cairo_t *cr, const Rectangle< double > &area) |
| |
| void | drawRectangle (cairo_t *cr, Color const &c, Rectangle< double > const &viewArea) |
| |
| void | drawOutOfBoundsWithBackground (cairo_t *cr, Rectangle< double > const &requestedPresentationArea, Rectangle< double > const &actualPresentationArea, double pixelSize) |
| |
| void | drawOutOfBoundsWithBackgroundColor (cairo_t *cr, const Color &background, Rectangle< double > const &requestedPresentationArea, Rectangle< double > const &actualPresentationArea, double pixelSize) |
| |
| void | drawOutOfBoundsWithoutBackground (cairo_t *cr, Rectangle< double > const &requestedPresentationArea, Rectangle< double > const &actualPresentationArea, double pixelSize) |
| |
| double | pixelSizeFromZoom (int zoom) |
| |
◆ drawOutOfBoundsWithBackground()
| void drawOutOfBoundsWithBackground |
( |
cairo_t * |
cr, |
|
|
Rectangle< double > const & |
requestedPresentationArea, |
|
|
Rectangle< double > const & |
actualPresentationArea, |
|
|
double |
pixelSize |
|
) |
| |
◆ drawOutOfBoundsWithBackgroundColor()
| void drawOutOfBoundsWithBackgroundColor |
( |
cairo_t * |
cr, |
|
|
const Color & |
background, |
|
|
Rectangle< double > const & |
requestedPresentationArea, |
|
|
Rectangle< double > const & |
actualPresentationArea, |
|
|
double |
pixelSize |
|
) |
| |
◆ drawOutOfBoundsWithoutBackground()
| void drawOutOfBoundsWithoutBackground |
( |
cairo_t * |
cr, |
|
|
Rectangle< double > const & |
requestedPresentationArea, |
|
|
Rectangle< double > const & |
actualPresentationArea, |
|
|
double |
pixelSize |
|
) |
| |
◆ drawRectangle()
| void drawRectangle |
( |
cairo_t * |
cr, |
|
|
Color const & |
c, |
|
|
Rectangle< double > const & |
viewArea |
|
) |
| |
◆ drawRectangleContour() [1/2]
| void drawRectangleContour |
( |
cairo_t * |
cr, |
|
|
Color const & |
c, |
|
|
Rectangle< double > const & |
viewArea |
|
) |
| |
◆ drawRectangleContour() [2/2]
| void drawRectangleContour |
( |
cairo_t * |
cr, |
|
|
Rectangle< double > const & |
viewArea |
|
) |
| |
◆ pixelSizeFromZoom()
| double pixelSizeFromZoom |
( |
int |
zoom | ) |
|
114 double pixelSize = 1.0;
117 pixelSize *= 1 << zoom;
121 pixelSize /= 1 << (-zoom);
Referenced by TweakPositionTextBox::display(), View::on_motion_notify(), View::on_window_size_changed(), View::on_zoombox_changed(), TweakPositionTextBox::parse(), View::presentationPointToWindowPoint(), ExamplePresentation::redraw(), TestData::redraw(), TiledBitmap::redraw(), anonymous_namespace{tiledbitmappresentation.cc}::TiledBitmapPresentation::redraw(), TransformPresentation::redraw(), View::redraw(), MeasureHandler::render(), PipetteHandler::render(), View::setPresentation(), TweakPresentationPosition::tweakPosition(), TweakRulers::tweakRulers(), View::updateScrollbar(), and View::windowPointToPresentationPoint().
◆ setClip() [1/2]
| void setClip |
( |
cairo_t * |
cr, |
|
|
const Rectangle< double > & |
area |
|
) |
| |
◆ setClip() [2/2]
| void setClip |
( |
cairo_t * |
cr, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
width, |
|
|
double |
height |
|
) |
| |
49 cairo_move_to(cr, x, y);
50 cairo_line_to(cr, x + width, y);
51 cairo_line_to(cr, x + width, y + height);
52 cairo_line_to(cr, x, y + height);
53 cairo_line_to(cr, x, y);
Referenced by CommonOperations::draw(), drawRectangle(), and setClip().
◆ traceRectangleContour()
| void traceRectangleContour |
( |
cairo_t * |
cr, |
|
|
Rectangle< double > const & |
viewArea |
|
) |
| |
24 cairo_move_to(cr, viewArea.
x(), viewArea.
y());
25 cairo_line_to(cr, viewArea.
x() + viewArea.
width(), viewArea.
y());
26 cairo_line_to(cr, viewArea.
x() + viewArea.
width(), viewArea.
y() + viewArea.
height());
27 cairo_line_to(cr, viewArea.
x(), viewArea.
y() + viewArea.
height());
28 cairo_line_to(cr, viewArea.
x(), viewArea.
y());
Referenced by drawRectangleContour().
const Color OUT_OF_BOUNDS
xy_type getTopLeft() const
Definition: rectangle.hh:133
value_type x() const
Definition: rectangle.hh:125
Rectangle< value_type > rightOf(value_type v) const
Definition: rectangle.hh:148
value_type width() const
Definition: rectangle.hh:129
void drawOutOfBoundsWithoutBackground(cairo_t *cr, Rectangle< double > const &requestedPresentationArea, Rectangle< double > const &actualPresentationArea, double pixelSize)
Definition: cairo-helpers.cc:93
void drawRectangleContour(cairo_t *cr, Rectangle< double > const &viewArea)
Definition: cairo-helpers.cc:31
value_type getBottom() const
Definition: rectangle.hh:112
value_type getHeight() const
Definition: rectangle.hh:123
const Color IN_BOUNDS(1, 1, 1)
void drawRectangle(cairo_t *cr, Color const &c, Rectangle< double > const &viewArea)
Definition: cairo-helpers.cc:62
Rectangle moveTo(xy_type const &other) const
Definition: rectangle.hh:67
Rectangle< value_type > below(value_type v) const
Definition: rectangle.hh:158
value_type getWidth() const
Definition: rectangle.hh:121
value_type getRight() const
Definition: rectangle.hh:114
value_type getLeft() const
Definition: rectangle.hh:110
value_type height() const
Definition: rectangle.hh:131
Rectangle< value_type > above(value_type v) const
Definition: rectangle.hh:153
void traceRectangleContour(cairo_t *cr, Rectangle< double > const &viewArea)
Definition: cairo-helpers.cc:22
void setClip(cairo_t *cr, double x, double y, double width, double height)
Definition: cairo-helpers.cc:47
value_type y() const
Definition: rectangle.hh:127
Definition: rectangle.hh:22
value_type getTop() const
Definition: rectangle.hh:108
Rectangle< value_type > leftOf(value_type v) const
Definition: rectangle.hh:143