Class: QgsSymbolBufferSettings¶
Contains settings relating to symbol buffers, which draw a “halo” effect around the symbol.
Added in version 3.40.
Methods
Returns whether the buffer is enabled.  | 
|
Returns the fill symbol used to render the buffer.  | 
|
Returns the buffer join style.  | 
|
Reads the buffer settings from an XML element.  | 
|
Sets whether the symbol buffer will be drawn.  | 
|
Sets the fill symbol used to render the buffer.  | 
|
Sets the join style used for drawing the buffer.  | 
|
Sets the size of the buffer.  | 
|
Sets the map unit scale object for the buffer size.  | 
|
Sets the unit used for the buffer size.  | 
|
Returns the size of the buffer.  | 
|
Returns the map unit scale object for the buffer size.  | 
|
Returns the units for the buffer size.  | 
|
Writes the buffer settings to an XML element.  | 
- class qgis.core.QgsSymbolBufferSettings[source]¶
 Bases:
object- fillSymbol(self) QgsFillSymbol | None[source]¶
 Returns the fill symbol used to render the buffer.
Ownership is not transferred.
See also
- Return type:
 Optional[QgsFillSymbol]
- joinStyle(self) Qt.PenJoinStyle[source]¶
 Returns the buffer join style.
See also
- Return type:
 Qt.PenJoinStyle
- readXml(self, element: QDomElement, context: QgsReadWriteContext)[source]¶
 Reads the buffer settings from an XML
element.See also
- Parameters:
 element (QDomElement)
context (QgsReadWriteContext)
- setEnabled(self, enabled: bool)[source]¶
 Sets whether the symbol buffer will be drawn.
See also
- Parameters:
 enabled (bool)
- setFillSymbol(self, symbol: QgsFillSymbol | None)[source]¶
 Sets the fill
symbolused to render the buffer. Ownership ofsymbolis transferred to the buffer.See also
- Parameters:
 symbol (Optional[QgsFillSymbol])
- setJoinStyle(self, style: Qt.PenJoinStyle)[source]¶
 Sets the join
styleused for drawing the buffer.See also
- Parameters:
 style (Qt.PenJoinStyle)
- setSize(self, size: float)[source]¶
 Sets the
sizeof the buffer.The size units are specified using
setSizeUnit().See also
See also
- Parameters:
 size (float)
- setSizeMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
 Sets the map unit
scaleobject for the buffer size.This is only used if the buffer size is set to
QgsUnitTypes.RenderMapUnit.See also
See also
- Parameters:
 scale (QgsMapUnitScale)
- setSizeUnit(self, unit: Qgis.RenderUnit)[source]¶
 Sets the
unitused for the buffer size.See also
See also
- Parameters:
 unit (Qgis.RenderUnit)
- sizeMapUnitScale(self) QgsMapUnitScale[source]¶
 Returns the map unit scale object for the buffer size. This is only used if the buffer size is set to
QgsUnitTypes.RenderMapUnit.See also
See also
- Return type:
 
- sizeUnit(self) Qgis.RenderUnit[source]¶
 Returns the units for the buffer size.
See also
See also
- Return type:
 
- writeXml(self, element: QDomElement, context: QgsReadWriteContext)[source]¶
 Writes the buffer settings to an XML
element.See also
- Parameters:
 element (QDomElement)
context (QgsReadWriteContext)