/usr/include/Wt/WLineF is in libwt-dev 3.3.6+dfsg-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef WLINEF_H_
#define WLINEF_H_
#include <Wt/WDllDefs.h>
namespace Wt {
class WPointF;
/*! \class WLineF Wt/WLineF Wt/WLineF
* \brief Utility class that defines a single line.
*
* \ingroup painting
*/
class WT_API WLineF
{
public:
/*! \brief Default constructor.
*
* Constructs a line from (<i>x1=0</i>,<i>y1=0</i>) to (<i>x2=0</i>,\p y2=0).
*/
WLineF();
/*! \brief Construct a line connecting two points.
*
* Constructs a line from <i>p1</i> to \p p2.
*/
WLineF(const WPointF& p1, const WPointF& p2);
/*! \brief Construct a line connecting two points.
*
* Constructs a line from (<i>x1</i>,<i>y1</i>) to (<i>x2</i>,\p y2).
*/
WLineF(double x1, double y1, double x2, double y2);
/*! \brief Returns the X coordinate of the first point.
*
* \sa y1(), p1()
*/
double x1() const { return x1_; }
/*! \brief Returns the Y coordinate of the first point.
*
* \sa x1(), p1()
*/
double y1() const { return y1_; }
/*! \brief Returns the X coordinate of the second point.
*
* \sa y2(), p2()
*/
double x2() const { return x2_; }
/*! \brief Returns the Y coordinate of the second point.
*
* \sa x2(), p2()
*/
double y2() const { return y2_; }
/*! \brief Returns the first point.
*
* \sa x1(), y1()
*/
WPointF p1() const;
/*! \brief Returns the second point.
*
* \sa x2(), y2()
*/
WPointF p2() const;
bool operator==(const WLineF& other) const;
bool operator!=(const WLineF& other) const;
private:
double x1_, y1_, x2_, y2_;
};
};
#endif // WLINEF_H_
|