Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
NodeView.h
1/*
2Copyright (C) 2022,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef AEONGAMES_NODE_VIEW_H
18#define AEONGAMES_NODE_VIEW_H
19
20#include <QWidget>
21
22namespace AeonGames
23{
25 class NodeView : public QWidget
26 {
27 Q_OBJECT
28 public:
33 NodeView ( QWidget *parent = nullptr );
36 public slots:
37 protected:
39 void keyPressEvent ( QKeyEvent *event ) override;
41 void mousePressEvent ( QMouseEvent *event ) override;
43 void mouseMoveEvent ( QMouseEvent *event ) override;
45 void mouseReleaseEvent ( QMouseEvent *event ) override;
47 void paintEvent ( QPaintEvent *event ) override;
48#if QT_CONFIG(wheelevent)
49 void wheelEvent ( QWheelEvent *event ) override;
50#endif
51 private:
52 };
53}
54#endif
void mouseReleaseEvent(QMouseEvent *event) override
Handle mouse release events.
Definition NodeView.cpp:74
NodeView(QWidget *parent=nullptr)
Construct the node view widget.
Definition NodeView.cpp:27
~NodeView()
Destructor.
void keyPressEvent(QKeyEvent *event) override
Handle key press events.
Definition NodeView.cpp:44
void mousePressEvent(QMouseEvent *event) override
Handle mouse press events.
Definition NodeView.cpp:57
void paintEvent(QPaintEvent *event) override
Handle paint events.
Definition NodeView.cpp:35
void mouseMoveEvent(QMouseEvent *event) override
Handle mouse move events.
Definition NodeView.cpp:69
<- This is here just for the literals
Definition AABB.hpp:31