Board 0.9.6
Public Types | Public Member Functions | List of all members
LibBoard::ShapeWithStyleVisitor Struct Reference

Leaf visitor may be used to apply a function on each Shape with style, in back-to-front order. More...

#include <ShapeVisitor.h>

Inheritance diagram for LibBoard::ShapeWithStyleVisitor:
LibBoard::ShapeVisitor

Public Types

typedef std::function< void(ShapeWithStyle &)> Function
 

Public Member Functions

 ShapeWithStyleVisitor (Function f)
 
 ShapeWithStyleVisitor (Style)
 
 ShapeWithStyleVisitor (Color color, ColorSpecification spec)
 
 ShapeWithStyleVisitor (Color penColor, Color fillColor)
 
 ShapeWithStyleVisitor (double lineWidth)
 
 ShapeWithStyleVisitor (LineStyle lineStyle)
 
 ShapeWithStyleVisitor (LineCap lineCap)
 
 ShapeWithStyleVisitor (LineJoin lineJoin)
 
void visit (Shape &) override
 
void visit (Shape &) const override
 
void visit (ShapeWithStyle &) override
 
void visit (ShapeWithStyle &) const override
 
void visit (Dot &) override
 
void visit (Dot &) const override
 
void visit (Line &) override
 
void visit (Line &) const override
 
void visit (Arrow &) override
 
void visit (Arrow &) const override
 
void visit (Polyline &) override
 
void visit (Polyline &) const override
 
void visit (Ellipse &) override
 
void visit (Ellipse &) const override
 
void visit (Text &) override
 
void visit (Text &) const override
 
void visit (Bezier &) override
 
void visit (Bezier &) const override
 
- Public Member Functions inherited from LibBoard::ShapeVisitor
virtual void visit (Shape &shape)=0
 
virtual void visit (Shape &shape) const =0
 
virtual void visit (ShapeWithStyle &shape)
 
virtual void visit (ShapeWithStyle &shape) const
 
virtual void visit (Dot &)
 
virtual void visit (Dot &) const
 
virtual void visit (Line &)
 
virtual void visit (Line &) const
 
virtual void visit (Arrow &)
 
virtual void visit (Arrow &arrow) const
 
virtual void visit (Polyline &)
 
virtual void visit (Polyline &) const
 
virtual void visit (Ellipse &)
 
virtual void visit (Ellipse &) const
 
virtual void visit (Text &)
 
virtual void visit (Text &) const
 
virtual void visit (Bezier &)
 
virtual void visit (Bezier &) const
 
virtual ~ShapeVisitor ()
 

Detailed Description

Leaf visitor may be used to apply a function on each Shape with style, in back-to-front order.

Examples
examples/board_font_text.cpp.

Member Typedef Documentation

◆ Function

Constructor & Destructor Documentation

◆ ShapeWithStyleVisitor() [1/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( Function  f)

◆ ShapeWithStyleVisitor() [2/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( Style  style)

◆ ShapeWithStyleVisitor() [3/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( Color  color,
ColorSpecification  spec 
)

References LibBoard::PenColor.

◆ ShapeWithStyleVisitor() [4/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( Color  penColor,
Color  fillColor 
)

◆ ShapeWithStyleVisitor() [5/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( double  lineWidth)

◆ ShapeWithStyleVisitor() [6/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( LineStyle  lineStyle)

◆ ShapeWithStyleVisitor() [7/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( LineCap  lineCap)

◆ ShapeWithStyleVisitor() [8/8]

LibBoard::ShapeWithStyleVisitor::ShapeWithStyleVisitor ( LineJoin  lineJoin)

Member Function Documentation

◆ visit() [1/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Arrow &  arrow) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [2/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Arrow &  arrow)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [3/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Bezier &  bezier) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [4/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Bezier &  bezier)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [5/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Dot &  dot) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [6/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Dot &  dot)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [7/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Ellipse &  ellipse) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [8/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Ellipse &  ellipse)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [9/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Line &  line) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [10/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Line &  line)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [11/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Polyline &  polyline) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [12/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Polyline &  polyline)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [13/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Shape &  ) const
overridevirtual

◆ visit() [14/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Shape &  )
overridevirtual

◆ visit() [15/18]

void LibBoard::ShapeWithStyleVisitor::visit ( ShapeWithStyle &  shape) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [16/18]

void LibBoard::ShapeWithStyleVisitor::visit ( ShapeWithStyle &  shape)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

◆ visit() [17/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Text &  text) const
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

References text().

◆ visit() [18/18]

void LibBoard::ShapeWithStyleVisitor::visit ( Text &  text)
overridevirtual

Reimplemented from LibBoard::ShapeVisitor.

References text().


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