File: NodePainterDelegate.hpp

package info (click to toggle)
qnodeeditor 2.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,144 kB
  • sloc: cpp: 8,823; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "Export.hpp"
#include "NodeGeometry.hpp"

#include <QPainter>
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;
    };
} // namespace QtNodes