Wt::Pen Class Reference

#include <painter.h>

Collaboration diagram for Wt::Pen:

Collaboration graph
List of all members.

Public Member Functions

 Pen ()
 Pen (const Color &color)
 ~Pen ()
const Colorcolor () const
void setColor (const Color &color)

Private Attributes

Color color_

Detailed Description

Definition at line 36 of file painter.h.

Constructor & Destructor Documentation

Wt::Pen::Pen (  )  [inline]

Definition at line 38 of file painter.h.

00038           :
00039     color_("white") {}

Wt::Pen::Pen ( const Color color  )  [inline]

Definition at line 41 of file painter.h.

00041 : color_(color) {}

Wt::Pen::~Pen (  )  [inline]

Definition at line 43 of file painter.h.

00043 {}

Member Function Documentation

const Color& Wt::Pen::color (  )  const [inline]

Definition at line 45 of file painter.h.

References color_.

Referenced by Wt::Painter::drawHorizontalLine(), Wt::Painter::drawLine(), Wt::Painter::drawPoint(), Wt::Painter::drawPoints(), Wt::Painter::drawVerticalLine(), Wt::Widget::foregroundColor(), setColor(), Wt::Widget::setForegroundColor(), and Wt::Painter::setPen().

00045                                {
00046         return color_;
00047     }

void Wt::Pen::setColor ( const Color color  )  [inline]

Definition at line 48 of file painter.h.

References color(), and color_.

00048                                       {
00049         color_ = color;
00050     }

Here is the call graph for this function:

Member Data Documentation

Color Wt::Pen::color_ [private]

Definition at line 53 of file painter.h.

Referenced by color(), and setColor().

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

Generated Fri Jul 28 19:30:25 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.