36string GUIContextMenuItemController::CONDITION_SELECTED =
"selected";
37string GUIContextMenuItemController::CONDITION_UNSELECTED =
"unselected";
39GUIContextMenuItemController::GUIContextMenuItemController(
GUINode* node)
42 this->
selected = required_dynamic_cast<GUIElementNode*>(
node)->isSelected();
52 auto& nodeConditions = required_dynamic_cast<GUIElementNode*>(
node)->getActiveConditions();
60 auto& nodeConditions = required_dynamic_cast<GUIElementNode*>(
node)->getActiveConditions();
69 while (
true ==
true) {
83 GUIElementController::initialize();
92 GUIElementController::dispose();
97 GUIElementController::handleMouseEvent(
node, event);
99 event->setProcessed(
true);
100 if (event->
getType() == GUIMouseEvent::MOUSEEVENT_PRESSED) {
108 GUIElementController::handleKeyboardEvent(event);
113 GUIElementController::tick();
void setFoccussedNode(GUIElementNode *newFoccussedNode)
Set focussed node.
GUIMouseEventType getType()
void setDisabled(bool disabled) override
Set disabled.
bool isDisabled() override
GUI element node conditions.
GUIParentNode * getParentControllerNode()
bool isEventBelongingToNode(GUIMouseEvent *event, Vector2 &position)
Is event belonging to node.
GUIScreenNode * getScreenNode()
GUINodeController * getController()
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.