R-Type  2
Doom but in better
Loading...
Searching...
No Matches
GUI::ECS::Components::ButtonComponent Class Reference

Manages button functionalities, including appearance, position, and callbacks. More...

#include <ButtonComponent.hpp>

Inheritance diagram for GUI::ECS::Components::ButtonComponent:
Inheritance graph
Collaboration diagram for GUI::ECS::Components::ButtonComponent:
Collaboration graph

Public Member Functions

 ButtonComponent (const std::uint32_t entityId=0)
 Default constructor for ButtonComponent.
 
 ButtonComponent (const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem)
 Constructor initializing with shape and text components.
 
 ButtonComponent (const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, std::function< void()> callback)
 Constructor initializing with shape, text components, and a callback function.
 
 ButtonComponent (const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, const GUI::ECS::Systems::Collision &collisionItem, const std::uint32_t textSize=40)
 Constructor initializing with shape, text, collision components, and text size.
 
 ButtonComponent (const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, std::function< void()> callback, const GUI::ECS::Systems::Collision &collisionItem, const std::uint32_t textSize=40)
 Constructor initializing with all button components.
 
 ButtonComponent (const std::uint32_t entityId, const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem)
 Constructor initializing with shape and text components.
 
 ButtonComponent (const std::uint32_t entityId, const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, std::function< void()> callback)
 Constructor initializing with shape, text components, and a callback function.
 
 ButtonComponent (const std::uint32_t entityId, const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, const GUI::ECS::Systems::Collision &collisionItem, const std::uint32_t textSize=40)
 Constructor initializing with shape, text, collision components, and text size.
 
 ButtonComponent (const std::uint32_t entityId, const GUI::ECS::Components::ShapeComponent &shapeItem, const GUI::ECS::Components::TextComponent &textItem, std::function< void()> callback, const GUI::ECS::Systems::Collision &collisionItem, const std::uint32_t textSize=40)
 Constructor initializing with all button components.
 
 ~ButtonComponent ()
 Destructor for ButtonComponent.
 
void setHoverColor (const GUI::ECS::Systems::Colour &hoverColor)
 Set the Hover Color of the button for the child components.
 
void setNormalColor (const GUI::ECS::Systems::Colour &normalColor)
 Set the Normal Color of the button for the child objects.
 
void setClickedColor (const GUI::ECS::Systems::Colour &clickedColor)
 Set the Clicked Color of the button for the child objects.
 
void setTextHoverColor (const GUI::ECS::Systems::Colour &hoverColor)
 Set the Text Hover Color.
 
void setTextNormalColor (const GUI::ECS::Systems::Colour &normalColor)
 Set the Text Normal Color.
 
void setTextClickedColor (const GUI::ECS::Systems::Colour &clickedColor)
 Set the Text Clicked Color.
 
void setTextString (const std::string &text)
 Set the text contained in the Text component.
 
void setPosition (const std::pair< float, float > &position)
 Set the Position of all objects contained in the button.
 
void setDimension (const std::pair< float, float > &dimension, const std::uint32_t textSize=40)
 Set the Dimension of all objects contained in the button.
 
void setTextPosition (const std::pair< float, float > &position)
 Set the Text Position.
 
void setTextSize (const std::uint32_t textSize)
 Set the Text Size.
 
void setShapePosition (const std::pair< float, float > &position)
 Set the Shape Position.
 
void setShapeDimension (const std::pair< float, float > &dimension)
 Set the Shape Dimensions.
 
void setCollision (const GUI::ECS::Systems::Collision &collision, const std::uint32_t textSize=40)
 Set the Collision for all objects of the Button class.
 
void setCallback (std::function< void()> callback, const std::string &callbackName="Callback Function")
 Set the Callback function for the the button is clicked.
 
void setVisible (const bool visible)
 Set the visibility of the element.
 
void setName (const std::string &name)
 Set the Name of the button.
 
void setApplication (const std::string &application)
 Set the Application context of the button.
 
std::function< void()> callback ()
 Get the callback function.
 
const bool isVisible () const
 Get the information about if the element is visible.
 
void toggleVisibility ()
 Toggle the visibility of the component.
 
const GUI::ECS::Systems::Colour getClickedColor () const
 Get the Clicked Color.
 
const GUI::ECS::Systems::Colour getNormalColor () const
 Get the Normal Color.
 
const GUI::ECS::Systems::Colour getHoverColor () const
 Get the Hover Color.
 
const GUI::ECS::Systems::Colour getTextClickedColor () const
 Get the Text Clicked Color.
 
const GUI::ECS::Systems::Colour getTextNormalColor () const
 Get the Text Normal Color.
 
const GUI::ECS::Systems::Colour getTextHoverColor () const
 Get the Text Hover Color.
 
const std::uint32_t getTextSize () const
 Get the Text Size.
 
const std::pair< float, float > getPosition () const
 Get the Position of the button.
 
const std::pair< float, float > getDimension () const
 Get the Dimensions of the button.
 
const std::pair< float, float > getTextPosition () const
 Get the Text Position.
 
const std::pair< float, float > getShapePosition () const
 Get the Shape Position.
 
const std::pair< float, float > getShapeDimension () const
 Get the Shape's Dimensions.
 
const GUI::ECS::Systems::Collision getCollision () const
 Get the button collision object.
 
const std::string getCallbackName () const
 Get the Callback Name of the callback function.
 
const std::function< void()> getCallback () const
 Get the Callback object.
 
const bool getVisible () const
 Get the information about if the Button is visible or hidden.
 
const std::string getName () const
 Get the Name button component.
 
const std::string getApplication () const
 Get the Application of the button component.
 
const GUI::ECS::Components::TextComponent getTextComponent () const
 Get the Text Component.
 
const GUI::ECS::Components::ShapeComponentgetShapeComponent () const
 Get the Shape Component.
 
const std::string getInfo (const unsigned int indent=0) const
 This is a function meant for debugging purposes It will dump the current state of the variables upon call. It will dump them for itself and any of it's underlying classes.
 
void update (const GUI::ECS::Systems::MouseInfo &mouse)
 Update the mouse position information for all the entities in the button.
 
void update (const GUI::ECS::Components::TextComponent &copy)
 Update the textComponent instance located in the button.
 
void update (const GUI::ECS::Components::ShapeComponent &copy)
 Update the ShapeComponent instance located in the button.
 
void update (const GUI::ECS::Components::ButtonComponent &copy)
 Update the Button component using another Button Component.
 
std::unordered_map< std::type_index, std::any > render () const
 Get the components that need rendering.
 
ButtonComponentoperator= (const GUI::ECS::Components::ButtonComponent &copy)
 A operator to allow seemless updating/asining from one button class to another.
 
- Public Member Functions inherited from GUI::ECS::EntityNode
 EntityNode (const size_t entityId=0)
 
virtual ~EntityNode ()=default
 
virtual size_t getEntityNodeId () const
 

Additional Inherited Members

- Protected Attributes inherited from GUI::ECS::EntityNode
size_t _entityID
 

Detailed Description

Manages button functionalities, including appearance, position, and callbacks.

Definition at line 41 of file ButtonComponent.hpp.

Constructor & Destructor Documentation

◆ ButtonComponent() [1/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const std::uint32_t entityId = 0)

Default constructor for ButtonComponent.

Parameters
entityIdThe unique ID of the entity. Default is 0.

Definition at line 16 of file ButtonComponent.cpp.

◆ ButtonComponent() [2/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem )

Constructor initializing with shape and text components.

Parameters
shapeItemThe shape component of the button.
textItemThe text component of the button.

Definition at line 23 of file ButtonComponent.cpp.

◆ ButtonComponent() [3/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
std::function< void()> callback )

Constructor initializing with shape, text components, and a callback function.

Parameters
shapeItemThe shape component of the button.
textItemThe text component of the button.
callbackThe function to be called when the button is triggered.

Definition at line 32 of file ButtonComponent.cpp.

◆ ButtonComponent() [4/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
const GUI::ECS::Systems::Collision & collisionItem,
const std::uint32_t textSize = 40 )

Constructor initializing with shape, text, collision components, and text size.

Parameters
shapeItemThe shape component of the button.
textItemThe text component of the button.
collisionItemThe collision component of the button.
textSizeThe size of the text. Default is 40.

Definition at line 41 of file ButtonComponent.cpp.

◆ ButtonComponent() [5/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
std::function< void()> callback,
const GUI::ECS::Systems::Collision & collisionItem,
const std::uint32_t textSize = 40 )

Constructor initializing with all button components.

Parameters
shapeItemThe shape component of the button.
textItemThe text component of the button.
callbackThe function to be called when the button is triggered.
collisionItemThe collision component of the button.
textSizeThe size of the text. Default is 40.

Definition at line 49 of file ButtonComponent.cpp.

◆ ButtonComponent() [6/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const std::uint32_t entityId,
const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem )

Constructor initializing with shape and text components.

Parameters
entityIdThe entity identification for the class
shapeItemThe shape component of the button.
textItemThe text component of the button.

Definition at line 58 of file ButtonComponent.cpp.

◆ ButtonComponent() [7/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const std::uint32_t entityId,
const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
std::function< void()> callback )

Constructor initializing with shape, text components, and a callback function.

Parameters
entityIdThe entity identification for the class
shapeItemThe shape component of the button.
textItemThe text component of the button.
callbackThe function to be called when the button is triggered.

Definition at line 67 of file ButtonComponent.cpp.

◆ ButtonComponent() [8/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const std::uint32_t entityId,
const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
const GUI::ECS::Systems::Collision & collisionItem,
const std::uint32_t textSize = 40 )

Constructor initializing with shape, text, collision components, and text size.

Parameters
entityIdThe entity identification for the class
shapeItemThe shape component of the button.
textItemThe text component of the button.
collisionItemThe collision component of the button.
textSizeThe size of the text. Default is 40.

Definition at line 76 of file ButtonComponent.cpp.

◆ ButtonComponent() [9/9]

GUI::ECS::Components::ButtonComponent::ButtonComponent ( const std::uint32_t entityId,
const GUI::ECS::Components::ShapeComponent & shapeItem,
const GUI::ECS::Components::TextComponent & textItem,
std::function< void()> callback,
const GUI::ECS::Systems::Collision & collisionItem,
const std::uint32_t textSize = 40 )

Constructor initializing with all button components.

Parameters
entityIdThe entity identification for the class
shapeItemThe shape component of the button.
textItemThe text component of the button.
callbackThe function to be called when the button is triggered.
collisionItemThe collision component of the button.
textSizeThe size of the text. Default is 40.

Definition at line 84 of file ButtonComponent.cpp.

◆ ~ButtonComponent()

GUI::ECS::Components::ButtonComponent::~ButtonComponent ( )

Destructor for ButtonComponent.

Definition at line 92 of file ButtonComponent.cpp.

Member Function Documentation

◆ callback()

std::function< void()> GUI::ECS::Components::ButtonComponent::callback ( )

Get the callback function.

Returns
std::function<void()>

Definition at line 198 of file ButtonComponent.cpp.

◆ getApplication()

const std::string GUI::ECS::Components::ButtonComponent::getApplication ( ) const

Get the Application of the button component.

Returns
const std::string

Definition at line 305 of file ButtonComponent.cpp.

◆ getCallback()

const std::function< void()> GUI::ECS::Components::ButtonComponent::getCallback ( ) const

Get the Callback object.

Returns
const std::function<void()>

Definition at line 290 of file ButtonComponent.cpp.

◆ getCallbackName()

const std::string GUI::ECS::Components::ButtonComponent::getCallbackName ( ) const

Get the Callback Name of the callback function.

Returns
const std::string

Definition at line 285 of file ButtonComponent.cpp.

◆ getClickedColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getClickedColor ( ) const

Get the Clicked Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 221 of file ButtonComponent.cpp.

◆ getCollision()

const GUI::ECS::Systems::Collision GUI::ECS::Components::ButtonComponent::getCollision ( ) const

Get the button collision object.

Returns
const GUI::ECS::Systems::Collision

Definition at line 280 of file ButtonComponent.cpp.

◆ getDimension()

const std::pair< float, float > GUI::ECS::Components::ButtonComponent::getDimension ( ) const

Get the Dimensions of the button.

Returns
const std::pair<float, float>

Definition at line 260 of file ButtonComponent.cpp.

◆ getHoverColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getHoverColor ( ) const

Get the Hover Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 231 of file ButtonComponent.cpp.

◆ getInfo()

const std::string GUI::ECS::Components::ButtonComponent::getInfo ( const unsigned int indent = 0) const

This is a function meant for debugging purposes It will dump the current state of the variables upon call. It will dump them for itself and any of it's underlying classes.

Parameters
indentThe level to which the class should be indented in the dump.
Returns
const std::string The formatted output.

Definition at line 321 of file ButtonComponent.cpp.

◆ getName()

const std::string GUI::ECS::Components::ButtonComponent::getName ( ) const

Get the Name button component.

Returns
const std::string

Definition at line 300 of file ButtonComponent.cpp.

◆ getNormalColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getNormalColor ( ) const

Get the Normal Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 226 of file ButtonComponent.cpp.

◆ getPosition()

const std::pair< float, float > GUI::ECS::Components::ButtonComponent::getPosition ( ) const

Get the Position of the button.

Returns
const std::pair<float, float>

Definition at line 255 of file ButtonComponent.cpp.

◆ getShapeComponent()

const GUI::ECS::Components::ShapeComponent & GUI::ECS::Components::ButtonComponent::getShapeComponent ( ) const

Get the Shape Component.

Returns
const GUI::ECS::Components::ShapeComponent&

Definition at line 315 of file ButtonComponent.cpp.

◆ getShapeDimension()

const std::pair< float, float > GUI::ECS::Components::ButtonComponent::getShapeDimension ( ) const

Get the Shape's Dimensions.

Returns
const std::pair<float, float>

Definition at line 275 of file ButtonComponent.cpp.

◆ getShapePosition()

const std::pair< float, float > GUI::ECS::Components::ButtonComponent::getShapePosition ( ) const

Get the Shape Position.

Returns
const std::pair<float, float>

Definition at line 270 of file ButtonComponent.cpp.

◆ getTextClickedColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getTextClickedColor ( ) const

Get the Text Clicked Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 235 of file ButtonComponent.cpp.

◆ getTextComponent()

const GUI::ECS::Components::TextComponent GUI::ECS::Components::ButtonComponent::getTextComponent ( ) const

Get the Text Component.

Returns
The text component instance

Definition at line 310 of file ButtonComponent.cpp.

◆ getTextHoverColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getTextHoverColor ( ) const

Get the Text Hover Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 245 of file ButtonComponent.cpp.

◆ getTextNormalColor()

const GUI::ECS::Systems::Colour GUI::ECS::Components::ButtonComponent::getTextNormalColor ( ) const

Get the Text Normal Color.

Returns
const GUI::ECS::Systems::Colour

Definition at line 240 of file ButtonComponent.cpp.

◆ getTextPosition()

const std::pair< float, float > GUI::ECS::Components::ButtonComponent::getTextPosition ( ) const

Get the Text Position.

Returns
const std::pair<float, float>

Definition at line 265 of file ButtonComponent.cpp.

◆ getTextSize()

const std::uint32_t GUI::ECS::Components::ButtonComponent::getTextSize ( ) const

Get the Text Size.

Returns
const std::uint32_t

Definition at line 250 of file ButtonComponent.cpp.

◆ getVisible()

const bool GUI::ECS::Components::ButtonComponent::getVisible ( ) const

Get the information about if the Button is visible or hidden.

Returns
true The button is visible
false The button is hidden
Note
This is an internal function used for the update function, please use the isVisible function.

Definition at line 295 of file ButtonComponent.cpp.

◆ isVisible()

const bool GUI::ECS::Components::ButtonComponent::isVisible ( ) const

Get the information about if the element is visible.

Returns
true The component is visible
false The component is hidden

Definition at line 203 of file ButtonComponent.cpp.

◆ operator=()

GUI::ECS::Components::ButtonComponent & GUI::ECS::Components::ButtonComponent::operator= ( const GUI::ECS::Components::ButtonComponent & copy)

A operator to allow seemless updating/asining from one button class to another.

Parameters
copy
Returns
ButtonComponent&

Definition at line 380 of file ButtonComponent.cpp.

◆ render()

std::unordered_map< std::type_index, std::any > GUI::ECS::Components::ButtonComponent::render ( ) const

Get the components that need rendering.

Returns
std::unordered_map<std::type_index, std::any>
Note
this is a function called by the window draw function, you do not need to call it.

Definition at line 372 of file ButtonComponent.cpp.

◆ setApplication()

void GUI::ECS::Components::ButtonComponent::setApplication ( const std::string & application)

Set the Application context of the button.

Parameters
applicationA string instance representing the context of the application.

Definition at line 193 of file ButtonComponent.cpp.

◆ setCallback()

void GUI::ECS::Components::ButtonComponent::setCallback ( std::function< void()> callback,
const std::string & callbackName = "Callback Function" )

Set the Callback function for the the button is clicked.

Parameters
callbackThe function
callbackNameThe name of the function (for debugging purposes)

Definition at line 175 of file ButtonComponent.cpp.

◆ setClickedColor()

void GUI::ECS::Components::ButtonComponent::setClickedColor ( const GUI::ECS::Systems::Colour & clickedColor)

Set the Clicked Color of the button for the child objects.

Parameters
clickedColor

Definition at line 104 of file ButtonComponent.cpp.

◆ setCollision()

void GUI::ECS::Components::ButtonComponent::setCollision ( const GUI::ECS::Systems::Collision & collision,
const std::uint32_t textSize = 40 )

Set the Collision for all objects of the Button class.

Parameters
collisionThe collision information
textSizeThe size of the text

Definition at line 166 of file ButtonComponent.cpp.

◆ setDimension()

void GUI::ECS::Components::ButtonComponent::setDimension ( const std::pair< float, float > & dimension,
const std::uint32_t textSize = 40 )

Set the Dimension of all objects contained in the button.

Parameters
dimensionThe dimension of the button
textSizeThe size of the text

Definition at line 135 of file ButtonComponent.cpp.

◆ setHoverColor()

void GUI::ECS::Components::ButtonComponent::setHoverColor ( const GUI::ECS::Systems::Colour & hoverColor)

Set the Hover Color of the button for the child components.

Parameters
hoverColor

Definition at line 94 of file ButtonComponent.cpp.

◆ setName()

void GUI::ECS::Components::ButtonComponent::setName ( const std::string & name)

Set the Name of the button.

Parameters
nameA string instance representing the name of the button.

Definition at line 188 of file ButtonComponent.cpp.

◆ setNormalColor()

void GUI::ECS::Components::ButtonComponent::setNormalColor ( const GUI::ECS::Systems::Colour & normalColor)

Set the Normal Color of the button for the child objects.

Parameters
normalColor

Definition at line 99 of file ButtonComponent.cpp.

◆ setPosition()

void GUI::ECS::Components::ButtonComponent::setPosition ( const std::pair< float, float > & position)

Set the Position of all objects contained in the button.

Parameters
position

Definition at line 128 of file ButtonComponent.cpp.

◆ setShapeDimension()

void GUI::ECS::Components::ButtonComponent::setShapeDimension ( const std::pair< float, float > & dimension)

Set the Shape Dimensions.

Parameters
dimension

Definition at line 161 of file ButtonComponent.cpp.

◆ setShapePosition()

void GUI::ECS::Components::ButtonComponent::setShapePosition ( const std::pair< float, float > & position)

Set the Shape Position.

Parameters
position

Definition at line 156 of file ButtonComponent.cpp.

◆ setTextClickedColor()

void GUI::ECS::Components::ButtonComponent::setTextClickedColor ( const GUI::ECS::Systems::Colour & clickedColor)

Set the Text Clicked Color.

Parameters
clickedColor

Definition at line 118 of file ButtonComponent.cpp.

◆ setTextHoverColor()

void GUI::ECS::Components::ButtonComponent::setTextHoverColor ( const GUI::ECS::Systems::Colour & hoverColor)

Set the Text Hover Color.

Parameters
hoverColor

Definition at line 108 of file ButtonComponent.cpp.

◆ setTextNormalColor()

void GUI::ECS::Components::ButtonComponent::setTextNormalColor ( const GUI::ECS::Systems::Colour & normalColor)

Set the Text Normal Color.

Parameters
normalColor

Definition at line 113 of file ButtonComponent.cpp.

◆ setTextPosition()

void GUI::ECS::Components::ButtonComponent::setTextPosition ( const std::pair< float, float > & position)

Set the Text Position.

Parameters
position

Definition at line 141 of file ButtonComponent.cpp.

◆ setTextSize()

void GUI::ECS::Components::ButtonComponent::setTextSize ( const std::uint32_t textSize)

Set the Text Size.

Parameters
textSize

Definition at line 147 of file ButtonComponent.cpp.

◆ setTextString()

void GUI::ECS::Components::ButtonComponent::setTextString ( const std::string & text)

Set the text contained in the Text component.

Parameters
text

Definition at line 123 of file ButtonComponent.cpp.

◆ setVisible()

void GUI::ECS::Components::ButtonComponent::setVisible ( const bool visible)

Set the visibility of the element.

Parameters
visibleA boolean instance informing if (true) to be visible, (false) hidden.

Definition at line 181 of file ButtonComponent.cpp.

◆ toggleVisibility()

void GUI::ECS::Components::ButtonComponent::toggleVisibility ( )

Toggle the visibility of the component.

Definition at line 208 of file ButtonComponent.cpp.

◆ update() [1/4]

void GUI::ECS::Components::ButtonComponent::update ( const GUI::ECS::Components::ButtonComponent & copy)

Update the Button component using another Button Component.

Parameters
copy

Definition at line 361 of file ButtonComponent.cpp.

◆ update() [2/4]

void GUI::ECS::Components::ButtonComponent::update ( const GUI::ECS::Components::ShapeComponent & copy)

Update the ShapeComponent instance located in the button.

Parameters
copy

Definition at line 356 of file ButtonComponent.cpp.

◆ update() [3/4]

void GUI::ECS::Components::ButtonComponent::update ( const GUI::ECS::Components::TextComponent & copy)

Update the textComponent instance located in the button.

Parameters
copy

Definition at line 351 of file ButtonComponent.cpp.

◆ update() [4/4]

void GUI::ECS::Components::ButtonComponent::update ( const GUI::ECS::Systems::MouseInfo & mouse)

Update the mouse position information for all the entities in the button.

Parameters
mouse

Definition at line 341 of file ButtonComponent.cpp.


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