FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodeeditor/src/NodeState.cpp at bt · BehaviorTree/nodeeditor · GitHub
BehaviorTree
/
nodeeditor
Public
forked from
l3enQ/nodeeditor
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodeeditor
/
src
/
NodeState.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
54 lines (43 loc) · 972 Bytes
Breadcrumbs
nodeeditor
/
src
/
NodeState.cpp
Copy path
File metadata and controls
54 lines (43 loc) · 972 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#
include
"
NodeState.hpp
"
#
include
"
ConnectionGraphicsObject.hpp
"
#
include
"
NodeGraphicsObject.hpp
"
namespace
QtNodes
{
NodeState::NodeState
(NodeGraphicsObject &ngo)
: _ngo(ngo)
, _hovered(
false
)
, _locked(
false
)
, _root(
false
)
, _resizing(
false
)
, _connectionForReaction{
nullptr
}
{
Q_UNUSED
(_ngo);
}
void
NodeState::setResizing
(
bool
resizing)
{
_resizing = resizing;
}
bool
NodeState::resizing
()
const
{
return
_resizing;
}
ConnectionGraphicsObject
const
*
NodeState::connectionForReaction
()
const
{
return
_connectionForReaction.
data
();
}
void
NodeState::storeConnectionForReaction
(ConnectionGraphicsObject
const
*cgo)
{
_connectionForReaction = cgo;
}
void
NodeState::resetConnectionForReaction
()
{
_connectionForReaction.
clear
();
}
QPointF
NodeState::pressedPos
()
const
{
return
_pressedPos;
}
void
NodeState::setPressedPos
(QPointF newPressedPos)
{
_pressedPos = newPressedPos;
}
}
//
namespace QtNodes
Back
|
FazBrowse Home
|
New Git URL