CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::Paint Class Reference

#include <cartotype_graphics_context.h>

Public Member Functions

 Paint (uint32_t aValue)
 
 Paint (CartoTypeCore::Color aColor)
 
 Paint (std::shared_ptr< CartoTypeCore::PaintServer > aPaintServer, int32_t aAlpha=255)
 
bool IsNull () const
 
void SetBlendColor (const CartoTypeCore::Color &aBlendColor)
 

Public Attributes

CartoTypeCore::Color Color
 
std::shared_ptr< CartoTypeCore::PaintServerPaintServer
 

Detailed Description

A paint source containing a color and an optional pointer to a paint server.

Constructor & Destructor Documentation

◆ Paint() [1/3]

CartoTypeCore::Paint::Paint ( uint32_t  aValue)
inline

Creates a Paint object with a specified color.

◆ Paint() [2/3]

CartoTypeCore::Paint::Paint ( CartoTypeCore::Color  aColor)
inline

Creates a Paint object with a specified color.

◆ Paint() [3/3]

CartoTypeCore::Paint::Paint ( std::shared_ptr< CartoTypeCore::PaintServer aPaintServer,
int32_t  aAlpha = 255 
)
inline

Creates a Paint object with a specified paint server and alpha (opacity) value.

Member Function Documentation

◆ IsNull()

bool CartoTypeCore::Paint::IsNull ( ) const
inline

Return true if this paint source is null, defined as having a null paint server and a completely transparent color.

◆ SetBlendColor()

void CartoTypeCore::Paint::SetBlendColor ( const CartoTypeCore::Color aBlendColor)
inline

Converts the color to night mode or other color blend.

Member Data Documentation

◆ Color

CartoTypeCore::Color CartoTypeCore::Paint::Color

The paint color.

◆ PaintServer

std::shared_ptr<CartoTypeCore::PaintServer> CartoTypeCore::Paint::PaintServer

If non-null, the paint server.


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