KOSMIndoorMap::LabelItem

Search for usage in LXR

KOSMIndoorMap::LabelItem Class Reference

#include <scenegraphitem.h>

Inheritance diagram for KOSMIndoorMap::LabelItem:

Public Member Functions

QRectF boundingRect () const override
 
uint8_t renderPhases () const override
 
- Public Member Functions inherited from KOSMIndoorMap::SceneGraphItemPayload
bool inHUDSpace () const
 
bool inSceneSpace () const
 

Public Attributes

double angle = 0.0
 
QColor casingColor = Qt::transparent
 
double casingWidth = 0.0
 
QColor color
 
QFont font
 
QColor frameColor = Qt::transparent
 
double frameWidth = 0.0
 
QColor haloColor = Qt::transparent
 
double haloRadius = 0.0
 
QIcon icon
 
QSizeF iconSize
 
double offset = 0.0
 
QPointF pos
 
QColor shieldColor = Qt::transparent
 
QStaticText text
 
- Public Attributes inherited from KOSMIndoorMap::SceneGraphItemPayload
int z = 0
 

Additional Inherited Members

- Public Types inherited from KOSMIndoorMap::SceneGraphItemPayload
enum  RenderPhase : uint8_t {
  NoPhase = 0, FillPhase = 1, CasingPhase = 2, StrokePhase = 4,
  LabelPhase = 8
}
 

Detailed Description

A text or item label.

Definition at line 134 of file scenegraphitem.h.

Member Function Documentation

QRectF LabelItem::boundingRect ( ) const
overridevirtual

Bounding box of this item in scene coordinates.

Performance trumps precision here, so estimating this slightly larger rather than computing it expensively makes sense.

Implements KOSMIndoorMap::SceneGraphItemPayload.

Definition at line 58 of file scenegraphitem.cpp.

uint8_t LabelItem::renderPhases ( ) const
overridevirtual

Returns in which phase this item needs to be rendered (can be multiple).

Implements KOSMIndoorMap::SceneGraphItemPayload.

Definition at line 53 of file scenegraphitem.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Oct 22 2021 23:03:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.