Public Member Functions | Data Fields

DGtal::CustomFillColor Struct Reference

#include <DGtalBoard.h>

Inheritance diagram for DGtal::CustomFillColor:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CustomFillColor:
Collaboration graph
[legend]

Public Member Functions

 CustomFillColor (const DGtalBoard::Color &fillColor)
virtual void selfDraw (DGtalBoard &aboard) const

Data Fields

DGtalBoard::Color myFillColor

Detailed Description

Custom style class redefining the fill color. You may use DGtalBoard::Color::None for transparent color.

   DGtalBoard board;
   board << CustomFillColor( DGtalBoard::Color::Green );
   ...
See also:
DGtalBoard
Examples:

dgtalboard-3-custom-classes.cpp.


Constructor & Destructor Documentation

DGtal::CustomFillColor::CustomFillColor ( const DGtalBoard::Color fillColor  )  [inline]

Constructor.

Parameters:
fillColor specifies the fill color.

Member Function Documentation

virtual void DGtal::CustomFillColor::selfDraw ( DGtalBoard  )  const [inline, virtual]

Operation to override. Does nothing by default.

Parameters:
board any object of type Board.

Reimplemented from DGtal::DrawableWithDGtalBoard.

References myFillColor, and LibBoard::Board::setFillColor().


Field Documentation

Referenced by selfDraw().


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