CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::TPaint Class Reference

#include <cartotype_graphics_context.h>

Public Member Functions

 TPaint (uint32_t aValue)
 
 TPaint (TColor aColor)
 
 TPaint (std::shared_ptr< CPaintServer > aPaintServer, int32_t aAlpha=255)
 
bool IsNull () const
 
void SetBlendColor (const TColor &aBlendColor)
 

Public Attributes

TColor iColor
 
std::shared_ptr< CPaintServeriPaintServer
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TPaint() [1/3]

CartoType::TPaint::TPaint ( uint32_t  aValue)
inline

Creates a TPaint object with a specified color.

◆ TPaint() [2/3]

CartoType::TPaint::TPaint ( TColor  aColor)
inline

Creates a TPaint object with a specified color.

◆ TPaint() [3/3]

CartoType::TPaint::TPaint ( std::shared_ptr< CPaintServer aPaintServer,
int32_t  aAlpha = 255 
)
inline

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

Member Function Documentation

◆ IsNull()

bool CartoType::TPaint::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 CartoType::TPaint::SetBlendColor ( const TColor aBlendColor)
inline

Converts the color to night mode or other color blend.

Member Data Documentation

◆ iColor

TColor CartoType::TPaint::iColor

The paint color.

◆ iPaintServer

std::shared_ptr<CPaintServer> CartoType::TPaint::iPaintServer

If non-null, the paint server.


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