LuciadCPillar 2023.1.04
luciad::IconPainterContext Class Referencefinal

Contains context information for painting the icon. More...

#include <luciad/drawing/IIcon.h>

Public Member Functions

 IconPainterContext (double displayScale)
 Creates a new context using the given display scale. More...
 
double getDisplayScale () const
 Returns the display scale of the screen on which the icon is displayed. More...
 

Detailed Description

Contains context information for painting the icon.

Since
2022.0

Constructor & Destructor Documentation

◆ IconPainterContext()

luciad::IconPainterContext::IconPainterContext ( double  displayScale)
explicit

Creates a new context using the given display scale.

Parameters
displayScalethe display scale.

Member Function Documentation

◆ getDisplayScale()

double luciad::IconPainterContext::getDisplayScale ( ) const

Returns the display scale of the screen on which the icon is displayed.

See Map::setDisplayScale for more information on the concept of display scale.

Returns
the display scale of the screen on which the icon is displayed.