Files
2019-12-01 02:06:51 +01:00

26 lines
402 B
C++

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