![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
A class to handle highest priority selection of GUI elements. More...
#include <C_guiElement.hpp>
Public Member Functions | |
GuiElementHandler (fge::Event &event, fge::RenderTarget const &target) | |
void | setEvent (fge::Event &event) |
fge::Event & | getEvent () |
fge::Event const & | getEvent () const |
void | setRenderTarget (fge::RenderTarget const &target) |
fge::RenderTarget const & | getRenderTarget () const |
void | setEventCallback () |
void | onMouseWheelScrolled (fge::Event const &evt, SDL_MouseWheelEvent const &arg) |
void | onMouseButtonPressed (fge::Event const &evt, SDL_MouseButtonEvent const &arg) |
void | onMouseButtonReleased (fge::Event const &evt, SDL_MouseButtonEvent const &arg) |
void | onMouseMoved (fge::Event const &evt, SDL_MouseMotionEvent const &arg) |
void | checkViewSize () |
void | detachAll () |
Detach from all subscriptions. | |
void | detach (fge::Subscription *subscription) |
Detach from a specific subscription. | |
Public Attributes | |
fge::CallbackHandler< fge::Event const &, SDL_EventType, fge::GuiElementContext & > | _onGuiVerify |
fge::CallbackHandler< fge::GuiElementHandler const &, fge::Vector2f const & > | _onGuiResized |
fge::Vector2f | _lastSize {0.0f, 0.0f} |
Protected Member Functions | |
virtual void | onDetach (fge::Subscription *subscription) |
Callback called when a subscription is detached. | |
A class to handle highest priority selection of GUI elements.
|
inherited |
Detach from a specific subscription.
subscription |
|
inherited |
Detach from all subscriptions.
|
inlineprotectedvirtualinherited |
Callback called when a subscription is detached.
subscription | The subscription that was detached |