72
* Each attribute is either se or unset.
74
* Each attribute is either set or unset.
75
class QgsLabelAttributes
77
class CORE_EXPORT QgsLabelAttributes
79
81
* @param def if true, defaults are set, if false all all attributes are unset
81
QgsLabelAttributes ( bool def = true );
83
QgsLabelAttributes( bool def = true );
83
85
~QgsLabelAttributes();
91
static QString unitsName ( int units );
92
static int unitsCode ( const QString &name );
94
static QString alignmentName ( int alignment );
95
static int alignmentCode ( const QString &name );
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 );
98
void setText ( const QString & text );
99
bool textIsSet ( void ) const;
100
const QString text ( void ) const;
101
void setText( const QString & text );
102
bool textIsSet( void ) const;
103
const QString text( void ) const;
103
void setFamily ( const QString & family );
104
bool familyIsSet ( void ) const;
105
const QString family ( void ) const;
107
void setBold ( bool enable );
108
bool boldIsSet ( void ) const;
109
bool bold ( void ) const;
111
void setItalic ( bool enable );
112
bool italicIsSet ( void ) const;
113
bool italic ( void ) const;
115
void setUnderline ( bool enable );
116
bool underlineIsSet ( void ) const;
117
bool underline ( void ) const;
119
void setSize ( double size, int type );
120
bool sizeIsSet ( void ) const;
121
int sizeType ( void ) const;
122
double size ( void ) const;
124
void setColor ( const QColor &color );
125
bool colorIsSet ( void ) const;
126
const QColor & color ( 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;
122
void setSize( double size, int type );
123
bool sizeIsSet( void ) const;
124
int sizeType( void ) const;
125
double size( void ) const;
127
void setColor( const QColor &color );
128
bool colorIsSet( void ) const;
129
const QColor & color( void ) const;
129
void setOffset ( double x, double y, int type );
130
bool offsetIsSet ( void ) const;
131
int offsetType ( void ) const;
132
double xOffset ( void ) const;
133
double yOffset ( void ) const;
132
void setOffset( double x, double y, int type );
133
bool offsetIsSet( void ) const;
134
int offsetType( void ) const;
135
double xOffset( void ) const;
136
double yOffset( void ) const;
136
void setAngle ( double angle );
137
bool angleIsSet ( void ) const;
138
double angle ( void ) const;
139
void setAngle( double angle );
140
bool angleIsSet( void ) const;
141
double angle( void ) const;
143
bool angleIsAuto( void ) const;
144
void setAutoAngle( bool state );
141
void setAlignment ( int alignment );
142
bool alignmentIsSet ( void ) const;
143
int alignment ( void ) const;
147
void setAlignment( int alignment );
148
bool alignmentIsSet( void ) const;
149
int alignment( void ) const;
146
152
bool bufferEnabled() const;
147
void setBufferEnabled(bool useBufferFlag);
148
void setBufferSize ( double size, int type );
149
bool bufferSizeIsSet ( void ) const;
150
int bufferSizeType ( void ) const;
151
double bufferSize ( void ) const;
153
void setBufferColor ( const QColor &color );
154
bool bufferColorIsSet ( void ) const;
155
QColor bufferColor ( void ) const;
157
void setBufferStyle ( Qt::BrushStyle style );
158
bool bufferStyleIsSet ( void ) const;
159
Qt::BrushStyle bufferStyle ( void ) const;
153
void setBufferEnabled( bool useBufferFlag );
154
void setBufferSize( double size, int type );
155
bool bufferSizeIsSet( void ) const;
156
int bufferSizeType( void ) const;
157
double bufferSize( void ) const;
159
void setBufferColor( const QColor &color );
160
bool bufferColorIsSet( void ) const;
161
QColor bufferColor( void ) const;
163
void setBufferStyle( Qt::BrushStyle style );
164
bool bufferStyleIsSet( void ) const;
165
Qt::BrushStyle bufferStyle( void ) const;
162
void setBorderColor ( const QColor &color );
163
bool borderColorIsSet ( void ) const;
164
QColor borderColor ( void ) const;
166
void setBorderWidth ( int width );
167
bool borderWidthIsSet ( void ) const;
168
int borderWidth ( void ) const;
170
void setBorderStyle ( Qt::PenStyle style );
171
bool borderStyleIsSet ( void ) const;
172
Qt::PenStyle borderStyle ( void ) const;
168
void setBorderColor( const QColor &color );
169
bool borderColorIsSet( void ) const;
170
QColor borderColor( void ) const;
172
void setBorderWidth( int width );
173
bool borderWidthIsSet( void ) const;
174
int borderWidth( void ) const;
176
void setBorderStyle( Qt::PenStyle style );
177
bool borderStyleIsSet( void ) const;
178
Qt::PenStyle borderStyle( void ) const;
180
bool multilineEnabled() const;
181
void setMultilineEnabled( bool useMultiline );