16 #ifndef QGSLABELATTRIBUTES_H
17 #define QGSLABELATTRIBUTES_H
93 static QString unitsName(
int units );
94 static int unitsCode(
const QString &name );
96 static QString alignmentName(
int alignment );
97 static int alignmentCode(
const QString &name );
100 void setText(
const QString & text );
101 bool textIsSet()
const;
102 const QString text()
const;
105 void setFamily(
const QString & family );
106 bool familyIsSet()
const;
107 const QString family()
const;
109 void setBold(
bool enable );
110 bool boldIsSet()
const;
113 void setItalic(
bool enable );
114 bool italicIsSet()
const;
117 void setUnderline(
bool enable );
118 bool underlineIsSet()
const;
119 bool underline()
const;
121 void setStrikeOut(
bool enable );
122 bool strikeOutIsSet()
const;
123 bool strikeOut()
const;
125 void setSize(
double size,
int type );
126 bool sizeIsSet()
const;
127 int sizeType()
const;
130 void setColor(
const QColor &color );
131 bool colorIsSet()
const;
132 const QColor & color()
const;
135 void setOffset(
double x,
double y,
int type );
136 bool offsetIsSet()
const;
137 int offsetType()
const;
138 double xOffset()
const;
139 double yOffset()
const;
142 void setAngle(
double angle );
143 bool angleIsSet()
const;
144 double angle()
const;
146 bool angleIsAuto()
const;
147 void setAutoAngle(
bool state );
150 void setAlignment(
int alignment );
151 bool alignmentIsSet()
const;
152 int alignment()
const;
155 bool bufferEnabled()
const;
156 void setBufferEnabled(
bool useBufferFlag );
157 void setBufferSize(
double size,
int type );
158 bool bufferSizeIsSet()
const;
159 int bufferSizeType()
const;
160 double bufferSize()
const;
162 void setBufferColor(
const QColor &color );
163 bool bufferColorIsSet()
const;
164 QColor bufferColor()
const;
166 void setBufferStyle( Qt::BrushStyle style );
167 bool bufferStyleIsSet()
const;
168 Qt::BrushStyle bufferStyle()
const;
171 void setBorderColor(
const QColor &color );
172 bool borderColorIsSet()
const;
173 QColor borderColor()
const;
175 void setBorderWidth(
int width );
176 bool borderWidthIsSet()
const;
177 int borderWidth()
const;
179 void setBorderStyle( Qt::PenStyle style );
180 bool borderStyleIsSet()
const;
181 Qt::PenStyle borderStyle()
const;
183 bool multilineEnabled()
const;
184 void setMultilineEnabled(
bool useMultiline );
187 bool selectedOnly()
const;
188 void setSelectedOnly(
bool selectedonly );