# wxGraphicsPen Class Reference
[Graphics Device Interface (GDI)]

`#include <wx/graphics.h>`

Inheritance diagram for wxGraphicsPen:
[legend]

## Detailed Description

A wxGraphicsPen is a native representation of a pen.

The contents are specific and private to the respective renderer. Instances are ref counted and can therefore be assigned as usual. The only way to get a valid instance is via wxGraphicsContext::CreatePen() or wxGraphicsRenderer::CreatePen().

##

Library: wxCore

Category: Graphics Device Interface (GDI)

List of all members.

|  | [ top ]