.. index:: pair: class; EE::UI::UIEventDispatcher .. _doxid-class_e_e_1_1_u_i_1_1_u_i_event_dispatcher: class EE::UI::UIEventDispatcher =============================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UIEventDispatcher: public :ref:`EE::Scene::EventDispatcher` { public: // construction :target:`UIEventDispatcher`(:ref:`SceneNode`* sceneNode); // methods static UIEventDispatcher* :target:`New`(:ref:`SceneNode`* sceneNode); bool :target:`justGainedFocus`() const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::function`&cbId, :ref:`Node`*focus, :ref:`Node`*focusLoss)> :ref:`FocusCallback`; // methods static :ref:`EventDispatcher`* :ref:`New`(:ref:`SceneNode`* sceneNode); virtual void :ref:`update`(const :ref:`Time`& elapsed); :ref:`Input`* :ref:`getInput`() const; :ref:`Node`* :ref:`getFocusNode`() const; void :ref:`setFocusNode`(:ref:`Node`* node); :ref:`Node`* :ref:`getMouseOverNode`() const; void :ref:`setMouseOverNode`(:ref:`Node`* node); :ref:`Node`* :ref:`getMouseDownNode`() const; void :ref:`resetMouseDownNode`(); :ref:`Node`* :ref:`getLossFocusNode`() const; void :ref:`sendMsg`(:ref:`Node`* node, const :ref:`Uint32`& Msg, const :ref:`Uint32`& Flags = 0); void :ref:`sendTextInput`(const :ref:`Uint32`& textChar, const :ref:`Uint32`& timestamp); void :ref:`sendTextEditing`(const :ref:`String`& text, const :ref:`Int32`& start, const :ref:`Int32`& length); void :ref:`sendKeyUp`(const :ref:`Keycode`& keyCode, const :ref:`Scancode`& scancode, const :ref:`Uint32`& chr, const :ref:`Uint32`& mod); void :ref:`sendKeyDown`(const :ref:`Keycode`& keyCode, const :ref:`Scancode`& scancode, const :ref:`Uint32`& chr, const :ref:`Uint32`& mod); void :ref:`sendMouseClick`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :ref:`sendMouseUp`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :ref:`sendMouseDown`(:ref:`Node`* toNode, const :ref:`Vector2i`& pos, const :ref:`Uint32` flags); void :ref:`sendMouseWheel`(const :ref:`Vector2f`& offset, bool flipped); const :ref:`Uint32`& :ref:`getPressTrigger`() const; const :ref:`Uint32`& :ref:`getLastPressTrigger`() const; const :ref:`Uint32`& :ref:`getClickTrigger`() const; const :ref:`Uint32`& :ref:`getDoubleClickTrigger`() const; const :ref:`Uint32`& :ref:`getReleaseTrigger`() const; void :ref:`setNodeDragging`(:ref:`Node`* dragging); bool :ref:`isNodeDragging`() const; bool :ref:`wasNodeDragging`() const; bool :ref:`isOrWasNodeDragging`() const; :ref:`Vector2i` :ref:`getMousePos`(); :ref:`Vector2f` :ref:`getMousePosf`(); :ref:`Vector2i` :ref:`getMouseDownPos`(); :ref:`Vector2f` :ref:`getLastMousePos`(); :ref:`SceneNode`* :ref:`getSceneNode`() const; const :ref:`Time`& :ref:`getLastFrameTime`() const; :ref:`Node`* :ref:`getNodeDragging`() const; :ref:`Node`* :ref:`getNodeWasDragging`() const; bool :ref:`getDisableMousePress`() const; void :ref:`setDisableMousePress`(bool disableMousePress); :ref:`Uint32` :ref:`addFocusEventCallback`(const :ref:`FocusCallback`& cb); bool :ref:`removeFocusEventCallback`(const :ref:`Uint32`& cbId); :ref:`Node`* :ref:`getLastFocusNode`() const; void :ref:`setLastFocusNode`(:ref:`Node`* lastFocusNode);