3
* Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef KRSCRIPTLABEL_H
19
#define KRSCRIPTLABEL_H
22
#include <krlabeldata.h>
25
@author Adam Pigg <adam@piggz.co.uk>
29
class Label : public QObject
39
void setCaption(const QString&);
41
/**Gets/sets the horizontal alignment, -1 Left, 0 Center, +1 Right*/
42
int horizontalAlignment();
43
void setHorizonalAlignment(int);
45
/**Gets/sets the vertical alignment, -1 Top, 0 Middle, +1 Bottom*/
46
int verticalAlignment();
47
void setVerticalAlignment(int);
49
QColor backgroundColor();
50
void setBackgroundColor(const QColor&);
52
QColor foregroundColor();
53
void setForegroundColor(const QColor&);
55
int backgroundOpacity();
56
void setBackgroundOpacity(int);
59
void setLineColor(const QColor&);
62
void setLineWeight(int);
64
/**Gets/sets the line style. Valid values are those from Qt::PenStyle (0-5)*/
66
void setLineStyle(int);
69
void setPosition(const QPointF&);
72
void setSize(const QSizeF&);