32GUIContextMenuController::GUIContextMenuController(
GUINode* node)
40 GUIElementController::initialize();
45 GUIElementController::dispose();
54 vector<GUINode*> childControllerNodes;
56 required_dynamic_cast<GUIParentNode*>(
node)->getChildControllerNodes(childControllerNodes);
57 for (
auto i = 0; i < childControllerNodes.size(); i++) {
58 auto childControllerNode = childControllerNodes[i];
59 auto childController = childControllerNode->getController();
61 if (menuItemController !=
nullptr) {
87 auto disabledItems = 0;
110 auto disabledItems = 0;
135 GUIElementController::handleMouseEvent(
node, event);
140 GUIElementController::handleKeyboardEvent(event);
143 case GUIKeyboardEvent::KEYCODE_UP: {
144 event->setProcessed(
true);
145 if (event->
getType() == GUIKeyboardEvent::KEYBOARDEVENT_KEY_PRESSED) {
150 case GUIKeyboardEvent::KEYCODE_DOWN: {
151 event->setProcessed(
true);
152 if (event->
getType() == GUIKeyboardEvent::KEYBOARDEVENT_KEY_PRESSED) {
162 GUIElementController::tick();
GUIKeyboardEventType getType()
bool isDisabled() override
GUI parent node base class thats supporting child nodes.
MutableString & reset()
Reset.