QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Public Attributes | List of all members
QgsLabelFeature::VisualMargin Struct Reference

Stores visual margins for labels (left, right, top and bottom) More...

#include <qgslabelfeature.h>

Public Member Functions

 VisualMargin ()
 Default constructor, all margins are set to 0.0. More...
 
 VisualMargin (double top, double right, double bottom, double left)
 Constructor allowing margins to be specified. More...
 
VisualMarginoperator*= (double value)
 

Public Attributes

double bottom
 Bottom margin. More...
 
double left
 Left margin. More...
 
double right
 Right margin. More...
 
double top
 Top margin. More...
 

Detailed Description

Stores visual margins for labels (left, right, top and bottom)

Note
not available in Python bindings

Definition at line 40 of file qgslabelfeature.h.

Constructor & Destructor Documentation

◆ VisualMargin() [1/2]

QgsLabelFeature::VisualMargin::VisualMargin ( )
inline

Default constructor, all margins are set to 0.0.

Definition at line 44 of file qgslabelfeature.h.

◆ VisualMargin() [2/2]

QgsLabelFeature::VisualMargin::VisualMargin ( double  top,
double  right,
double  bottom,
double  left 
)
inline

Constructor allowing margins to be specified.

Parameters
toptop margin
rightright margin
bottombottom margin
leftleft margin

Definition at line 57 of file qgslabelfeature.h.

Member Function Documentation

◆ operator*=()

VisualMargin& QgsLabelFeature::VisualMargin::operator*= ( double  value)
inline

Definition at line 73 of file qgslabelfeature.h.

Member Data Documentation

◆ bottom

double QgsLabelFeature::VisualMargin::bottom

Bottom margin.

Definition at line 71 of file qgslabelfeature.h.

◆ left

double QgsLabelFeature::VisualMargin::left

Left margin.

Definition at line 65 of file qgslabelfeature.h.

◆ right

double QgsLabelFeature::VisualMargin::right

Right margin.

Definition at line 67 of file qgslabelfeature.h.

◆ top

double QgsLabelFeature::VisualMargin::top

Top margin.

Definition at line 69 of file qgslabelfeature.h.


The documentation for this struct was generated from the following file: