LibreCAD
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
linepatternpainter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QPainter>
4 
5 #include <cad/meta/dxflinepattern.h>
6 
11  public:
18  LinePatternPainter(QPaintDevice* device, lc::DxfLinePatternByValue_CSPtr linePattern, int width = 1);
19 
26  LinePatternPainter(QPaintDevice* device, double width, lc::DxfLinePatternByValue_CSPtr linePattern = nullptr);
30  void drawLinePattern();
31 
32  private:
33  QPaintDevice* _device;
34  lc::DxfLinePatternByValue_CSPtr _linePattern;
35  int _width;
36 };
QPaintDevice * _device
lc::DxfLinePatternByValue_CSPtr _linePattern
LinePatternPainter(QPaintDevice *device, lc::DxfLinePatternByValue_CSPtr linePattern, int width=1)
Constructor used to paint DxfLinePatterns.
Painting line patterns on a QPaintDevice.
void drawLinePattern()
Paint line.