QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
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)

not available in Python bindings

Definition at line 40 of file qgslabelfeature.h.

Constructor & Destructor Documentation

QgsLabelFeature::VisualMargin::VisualMargin ( )

Default constructor, all margins are set to 0.0.

Definition at line 44 of file qgslabelfeature.h.

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

Constructor allowing margins to be specified.

toptop margin
rightright margin
bottombottom margin
leftleft margin

Definition at line 57 of file qgslabelfeature.h.

Member Function Documentation

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

Definition at line 73 of file qgslabelfeature.h.

Member Data Documentation

double QgsLabelFeature::VisualMargin::bottom

Bottom margin.

Definition at line 71 of file qgslabelfeature.h.

double QgsLabelFeature::VisualMargin::left

Left margin.

Definition at line 65 of file qgslabelfeature.h.

double QgsLabelFeature::VisualMargin::right

Right margin.

Definition at line 67 of file qgslabelfeature.h.

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: