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

#include <cartotype_graphics_context.h>

Public Attributes

double PenWidth = 1
 
CartoTypeCore::LineCap LineCap = CartoTypeCore::LineCap::Round
 
CartoTypeCore::LineJoin LineJoin = CartoTypeCore::LineJoin::Round
 
double MiterLimit = 2
 
std::shared_ptr< CartoTypeCore::DashArrayDashArray
 

Detailed Description

A circular pen used for stroking a path.

A line drawn using a circular pen can have various types of end caps and corners.

Member Data Documentation

◆ DashArray

std::shared_ptr<CartoTypeCore::DashArray> CartoTypeCore::CircularPen::DashArray

If non-null, an array giving the pattern of dashed and gaps used to draw strokes; not owned. The elements are the dash and gap lengths in pixels. They are used repeatedly, alternating between dashes and gaps; the first element is a dash.

◆ LineCap

CartoTypeCore::LineCap CartoTypeCore::CircularPen::LineCap = CartoTypeCore::LineCap::Round

The line cap type.

◆ LineJoin

CartoTypeCore::LineJoin CartoTypeCore::CircularPen::LineJoin = CartoTypeCore::LineJoin::Round

The line join type.

◆ MiterLimit

double CartoTypeCore::CircularPen::MiterLimit = 2

If the corners are mitered, they are cut off by a straight line if they extend more than this fraction of half the pen width from the center of the line.

◆ PenWidth

double CartoTypeCore::CircularPen::PenWidth = 1

The width of the pen in pixels.


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