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

#include <cartotype_graphics_context.h>

Public Attributes

double Width = 0
 
double Padding = 0
 
double Margin = 0
 
Color BackgroundColor = KTransparentBlack
 
Color BorderColor = KTransparentBlack
 
double BorderWidth = 0
 
double BorderRadius = 0
 

Detailed Description

The style of a text box used in labels. The meanings of Padding and Margin are as in HTML.

Member Data Documentation

◆ BackgroundColor

Color CartoTypeCore::TextBoxStyle::BackgroundColor = KTransparentBlack

The background color. The background is not drawn if the background color is completely transparent.

◆ BorderColor

Color CartoTypeCore::TextBoxStyle::BorderColor = KTransparentBlack

The background color. The border is not drawn if the border color is completely transparent.

◆ BorderRadius

double CartoTypeCore::TextBoxStyle::BorderRadius = 0

The radius of curved corners on the border. If it is zero or less the corners are square.

◆ BorderWidth

double CartoTypeCore::TextBoxStyle::BorderWidth = 0

The border width in pixels. No border is drawn if the value is zero or less.

◆ Margin

double CartoTypeCore::TextBoxStyle::Margin = 0

The margin in pixels: the gap outside the border, between the border and other elements.

◆ Padding

double CartoTypeCore::TextBoxStyle::Padding = 0

The padding in pixels: the gap inside the border, between the border and the textual content.

◆ Width

double CartoTypeCore::TextBoxStyle::Width = 0

The width in pixels.


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