27 using std::unordered_map;
28 using std::unique_ptr;
47 DraggingScreenController::DraggingScreenController()
64 screenNode = GUIParser::parse(
"resources/engine/gui",
"popup_dragging.xml");
69 Console::println(
"DraggingScreenController::initialize(): An error occurred: " +
string(exception.what()));
104 Console::println(
"DraggingScreenController::start(): An error occurred: " +
string(exception.what()));
106 auto scaledMouseX = Engine::getInstance()->getGUI()->getScaledX(
screenNode, mouseX);
107 auto scaledMouseY = Engine::getInstance()->getGUI()->getScaledY(
screenNode, mouseY);
119 Engine::getInstance()->getGUI()->startMouseDragging(
draggableNode);
124 Console::println(
"DraggingScreenController::start(): An error occurred: " +
string(exception.what()));
GUI node requested constraints requested constraints type enum.
virtual int getContentHeight()=0
GUINode_RequestedConstraints & getRequestsConstraints()
virtual int getContentWidth()=0
GUINodeController * getController()
GUI parent node base class thats supporting child nodes.
void replaceSubNodes(const string &xml, bool resetScrollOffsets)
Replace sub nodes with given XML.
GUI screen node that represents a screen that can be rendered via GUI system.
void setEnabled(bool enabled)
Set enabled.
void addMoveListener(GUIMoveListener *listener)
Add move listener.
void layout() override
Layout.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
Mutable utf8 aware string class.
std::exception Exception
Exception base class.
GUI node requested constraints entity.
GUINode_RequestedConstraints_RequestedConstraintsType * topType
GUINode_RequestedConstraints_RequestedConstraintsType * leftType