FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::GuiElementHandler Class Reference

A class to handle highest priority selection of GUI elements. More...

#include <C_guiElement.hpp>

Inheritance diagram for fge::GuiElementHandler:
fge::Subscriber

Public Member Functions

 GuiElementHandler (fge::Event &event, fge::RenderTarget const &target)
 
void setEvent (fge::Event &event)
 
fge::EventgetEvent ()
 
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.
 

Detailed Description

A class to handle highest priority selection of GUI elements.

Member Function Documentation

◆ detach()

void fge::Subscriber::detach ( fge::Subscription * subscription)
inherited

Detach from a specific subscription.

Parameters
subscription

◆ detachAll()

void fge::Subscriber::detachAll ( )
inherited

Detach from all subscriptions.

◆ onDetach()

virtual void fge::Subscriber::onDetach ( fge::Subscription * subscription)
inlineprotectedvirtualinherited

Callback called when a subscription is detached.

Parameters
subscriptionThe subscription that was detached

The documentation for this class was generated from the following file: