17 #ifndef QGSLABELATTRIBUTES_H
18 #define QGSLABELATTRIBUTES_H
94 static QString unitsName(
int units );
95 static int unitsCode(
const QString &name );
97 static QString alignmentName(
int alignment );
98 static int alignmentCode(
const QString &name );
101 void setText(
const QString & text );
102 bool textIsSet(
void )
const;
103 const QString text(
void )
const;
106 void setFamily(
const QString & family );
107 bool familyIsSet(
void )
const;
108 const QString family(
void )
const;
110 void setBold(
bool enable );
111 bool boldIsSet(
void )
const;
112 bool bold(
void )
const;
114 void setItalic(
bool enable );
115 bool italicIsSet(
void )
const;
116 bool italic(
void )
const;
118 void setUnderline(
bool enable );
119 bool underlineIsSet(
void )
const;
120 bool underline(
void )
const;
123 void setStrikeOut(
bool enable );
124 bool strikeOutIsSet(
void )
const;
125 bool strikeOut(
void )
const;
127 void setSize(
double size,
int type );
128 bool sizeIsSet(
void )
const;
129 int sizeType(
void )
const;
130 double size(
void )
const;
132 void setColor(
const QColor &color );
133 bool colorIsSet(
void )
const;
134 const QColor & color(
void )
const;
137 void setOffset(
double x,
double y,
int type );
138 bool offsetIsSet(
void )
const;
139 int offsetType(
void )
const;
140 double xOffset(
void )
const;
141 double yOffset(
void )
const;
144 void setAngle(
double angle );
145 bool angleIsSet(
void )
const;
146 double angle(
void )
const;
148 bool angleIsAuto(
void )
const;
149 void setAutoAngle(
bool state );
152 void setAlignment(
int alignment );
153 bool alignmentIsSet(
void )
const;
154 int alignment(
void )
const;
157 bool bufferEnabled()
const;
158 void setBufferEnabled(
bool useBufferFlag );
159 void setBufferSize(
double size,
int type );
160 bool bufferSizeIsSet(
void )
const;
161 int bufferSizeType(
void )
const;
162 double bufferSize(
void )
const;
164 void setBufferColor(
const QColor &color );
165 bool bufferColorIsSet(
void )
const;
166 QColor bufferColor(
void )
const;
168 void setBufferStyle( Qt::BrushStyle style );
169 bool bufferStyleIsSet(
void )
const;
170 Qt::BrushStyle bufferStyle(
void )
const;
173 void setBorderColor(
const QColor &color );
174 bool borderColorIsSet(
void )
const;
175 QColor borderColor(
void )
const;
177 void setBorderWidth(
int width );
178 bool borderWidthIsSet(
void )
const;
179 int borderWidth(
void )
const;
181 void setBorderStyle( Qt::PenStyle style );
182 bool borderStyleIsSet(
void )
const;
183 Qt::PenStyle borderStyle(
void )
const;
185 bool multilineEnabled()
const;
186 void setMultilineEnabled(
bool useMultiline );
191 bool selectedOnly()
const;
192 void setSelectedOnly(
bool selectedonly );