Base Framework
Public Member Functions | List of all members
GraphicsContext::Pen Class Reference

Handle to a pen. More...

#include <base/ui/GraphicsContext.h>

Inherits GraphicsContext::GraphicsContextObject.

Public Member Functions

 Pen () noexcept
 
 Pen (Color color)
 
 Pen (PenStyle style, Color color, unsigned int width=1)
 

Detailed Description

Handle to a pen.

Constructor & Destructor Documentation

◆ Pen() [1/3]

GraphicsContext::Pen::Pen ( )
inlinenoexcept

Initializes invalid pen.

◆ Pen() [2/3]

GraphicsContext::Pen::Pen ( Color  color)

Initializes pen as solid and with 1 in width.

Parameters
colorThe desired color.

◆ Pen() [3/3]

GraphicsContext::Pen::Pen ( PenStyle  style,
Color  color,
unsigned int  width = 1 
)

Initializes pen with the specified style, color, and width.

Parameters
styleThe desired style.
colorThe desired color.
widthThe desired width.