26 lines
386 B
C++
26 lines
386 B
C++
|
#pragma once
|
|||
|
|
|||
|
#include <QPainter>
|
|||
|
|
|||
|
#include "NodeGeometry.hpp"
|
|||
|
#include "NodeDataModel.hpp"
|
|||
|
#include "Export.hpp"
|
|||
|
|
|||
|
namespace QtNodes {
|
|||
|
|
|||
|
/// Class to allow for custom painting
|
|||
|
class NodePainterDelegate
|
|||
|
{
|
|||
|
|
|||
|
public:
|
|||
|
|
|||
|
virtual
|
|||
|
~NodePainterDelegate() = default;
|
|||
|
|
|||
|
virtual void
|
|||
|
paint(QPainter* painter,
|
|||
|
NodeGeometry const& geom,
|
|||
|
NodeDataModel const* model) = 0;
|
|||
|
};
|
|||
|
}
|