This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+29
View File
@@ -0,0 +1,29 @@
#ifndef GUINodePort_h__
#define GUINodePort_h__
#include <gui/GUIPlane.h>
class GUINodePort : public Video::GUIPlane
{
public:
EVENT2(PortEvent, GUINodePort*, GUINodePort*);
PortEvent Event_Link;
GUINodePort();
~GUINodePort();
void FinishDrag();
bool DragEnter(DragInfo* info);
void AcceptDrop(DragInfo* info);
void OnMouseMove(int abs_x, int abs_y, int rel_x, int rel_y);
void OnMousePress(int x, int y, int key);
void SetMode(bool isInput)
{
input_mode = isInput;
}
void* user_data;
private:
bool input_mode;
bool can_drag;
DragInfo info;
};
#endif // GUINodePort_h__