Files
eepp/include/eepp/scene/nodemessage.hpp
Martín Lucas Golini c92e048021 Minor optimizations for the StyleSheetParser.
Added more menus for the Code Editor.
Code Editor now saves the basic configuration.
Renamed NodeMessage::Click to NodeMessage::MouseClick and NodeMessage::DoubleClick to NodeMessage::MouseDoubleClick to maintain consistency.
Optimized String::split.
And also some other minor improvements.
2020-06-24 16:42:19 -03:00

62 lines
956 B
C++

#ifndef EE_SCENENODEMESSAGE_HPP
#define EE_SCENENODEMESSAGE_HPP
#include <eepp/config.hpp>
namespace EE { namespace Scene {
class Node;
class EE_API NodeMessage {
public:
enum Message {
MouseClick = 0,
MouseDoubleClick,
MouseOver,
MouseLeave,
MouseDown,
MouseUp,
MouseMove,
WindowResize,
Focus,
FocusLoss,
CellClicked,
Selected,
DragStart,
DragStop,
Drop,
LayoutAttributeChange,
UserMessage,
NoMessage = eeINDEX_NOT_FOUND
};
NodeMessage( Node* node, const Uint32& msg, const Uint32& flags = NoMessage );
~NodeMessage();
Node* getSender() const;
const Uint32& getMsg() const;
const Uint32& getFlags() const;
private:
Node* mNode;
Uint32 mMsg;
Uint32 mFlags;
};
class EE_API NodeDropMessage : public NodeMessage {
public:
NodeDropMessage( Node* node, const Uint32& msg, Node* droppedNode );
Node* getDroppedNode() const;
private:
Node* mDroppedNode;
};
}} // namespace EE::Scene
#endif