1/*
2 * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19/**
20 \file poppler-rectangle.h
21 */
22#include "poppler-rectangle.h"
23
24#include <iostream>
25
26using namespace poppler;
27
28/**
29 \class poppler::rectangle poppler-rectangle.h "poppler/cpp/poppler-rectangle.h"
30
31 A rectangle.
32 */
33
34/**
35 \typedef poppler::rect
36
37 A rectangle with int dimensions and coordinates.
38 */
39
40/**
41 \typedef poppler::rectf
42
43 A rectangle with float (double) dimensions and coordinates.
44 */
45
46std::ostream &poppler::operator<<(std::ostream &stream, const rect &r)
47{
48 stream << "[" << r.x() << "," << r.y() << " " << r.width() << "+" << r.height() << "]";
49 return stream;
50}
51
52std::ostream &poppler::operator<<(std::ostream &stream, const rectf &r)
53{
54 stream << "[" << r.x() << "," << r.y() << " " << r.width() << "+" << r.height() << "]";
55 return stream;
56}
57

source code of poppler/cpp/poppler-rectangle.cpp