Wt::Brush Class Reference

#include <painter.h>

Collaboration diagram for Wt::Brush:

Collaboration graph
[legend]
List of all members.

Public Types

 NoBrush
 SolidPattern
enum  Style { NoBrush, SolidPattern }

Public Member Functions

 Brush ()
 Brush (const Color &color, Style style=SolidPattern)
 ~Brush ()
Style style () const
void setStyle (Style style)
const Colorcolor () const
void setColor (const Color &color)

Private Attributes

Style style_
Color color_

Detailed Description

Definition at line 57 of file painter.h.


Member Enumeration Documentation

enum Wt::Brush::Style

Enumerator:
NoBrush 
SolidPattern 

Definition at line 59 of file painter.h.

00059                  {
00060         NoBrush,
00061         SolidPattern
00062     } Style;


Constructor & Destructor Documentation

Wt::Brush::Brush (  )  [inline]

Definition at line 64 of file painter.h.

00065             : style_(NoBrush), color_("black") {}

Wt::Brush::Brush ( const Color color,
Style  style = SolidPattern 
) [inline]

Definition at line 67 of file painter.h.

00068             : style_(style), color_(color) {}

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

Definition at line 70 of file painter.h.

00070 {}


Member Function Documentation

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

Definition at line 80 of file painter.h.

References color_.

Referenced by Wt::Painter::blendRect(), Wt::Painter::blendRegion(), Wt::Painter::fillRect(), Wt::Painter::fillRegion(), and setColor().

00080                                {
00081         return color_;
00082     }

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

Definition at line 84 of file painter.h.

References color(), and color_.

00084                                       {
00085         color_ = color;
00086     }

Here is the call graph for this function:

void Wt::Brush::setStyle ( Style  style  )  [inline]

Definition at line 76 of file painter.h.

References style_.

00076                                {
00077         style_ = style;
00078     }

Style Wt::Brush::style (  )  const [inline]

Definition at line 72 of file painter.h.

References style_.

Referenced by Wt::Painter::blendRect(), Wt::Painter::blendRegion(), Wt::Painter::drawPolygon(), Wt::Painter::drawRect(), Wt::Painter::fillRect(), and Wt::Painter::fillRegion().

00072                         {
00073         return style_;
00074     }


Member Data Documentation

Color Wt::Brush::color_ [private]

Definition at line 90 of file painter.h.

Referenced by color(), and setColor().

Style Wt::Brush::style_ [private]

Definition at line 89 of file painter.h.

Referenced by setStyle(), and style().


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

Generated Fri Jul 28 19:30:26 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.