/usr/include/qziongroup.h is in libqzion-dev 0.4.0+lgpl-4.
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | /*
* Copyright (C) 2008 Instituto Nokia de Tecnologia. All rights reserved.
*
* This file is part of QZion.
*
* QZion is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* QZion is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with QZion. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __QZIONGROUP_H__
#define __QZIONGROUP_H__
#include "qzionobject.h"
class QZionGroupPrivate;
/*!
\class QZionGroup
\brief An item containing other items.
A QZionGroup is an QZionObject, but it is also a QZionAbstractCanvas,
so you can add children items to it. Just an inner canvas, if you prefer.
*/
class QZionGroup : public QZionObject, public QZionAbstractCanvas
{
Q_OBJECT
public:
/*! */
QZionGroup(QZionAbstractCanvas *canvas = NULL);
/*!
Destroys the QZionGroup. If the group has items, all the items will
be deleted.
*/
virtual ~QZionGroup();
/*! */
virtual void changed();
/*! */
virtual void paint(QPainter *p);
/*!
Returns the bouding rect of all children.
*/
virtual QRect rect() const;
virtual QSize size() const;
virtual void setSize(const QSize &size);
/*! */
virtual void ensurePendingUpdate();
/*! */
virtual void invalidate(const QRect &r, bool translate = true);
/*! */
virtual void invalidate(const QRegion &r, bool translate = true);
inline virtual QColor color() const;
virtual void setColor(const QColor &color);
virtual void setClipper(QZionRectangle *rect);
virtual int canvasWidth() const;
virtual int canvasHeight() const;
virtual QPoint mapToLocal(const QPoint &pt) const;
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mousePressEvent(QMouseEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *e);
virtual void wheelEvent(QWheelEvent *e);
bool contains(const QPoint &point) const;
/*!
Returns the cummulative color top-down from parents.
*/
virtual QColor effectiveColor();
public Q_SLOTS:
/*! */
virtual void updateChanges();
protected:
QZionGroupPrivate *_QZionGroup_data;
QSize _size;
mutable QRect _lastChildRect;
mutable bool _childRectChanged;
/*! */
virtual void paintInternal(QPainter *p, const QRect &prect, const QRegion &preg,
const QPoint &delta, double cumulativeOpacity);
friend class QZionGroupPrivate;
};
inline QColor QZionGroup::color() const
{
return QColor(255, 255, 255);
}
#endif
|