|
wPlot2D version: 0.1.0
A lightweight C++ library for clear and customizable 2D scientific plots.
|
ECS component representing internal padding for UI-like elements. More...
#include <wPaddingComponent.hpp>

Public Member Functions | |
| PaddingComponent (sf::Vector2f padding=sf::Vector2f(0.0f, 0.0f)) | |
| Constructs a PaddingComponent with optional initial padding. | |
| virtual | ~PaddingComponent ()=default |
| void | setPadding (sf::Vector2f padding) |
| Sets the padding vector. | |
| sf::Vector2f | getPadding () const |
| Returns the current padding values. | |
| void | debugPrint () const |
| Prints the current padding values to standard output for debugging. | |
| Public Member Functions inherited from wEngine::Component | |
| virtual | ~Component ()=default |
| virtual void | enable () |
| virtual void | disable () |
| bool | isEnabled () const |
| Checks whether the component is currently active. | |
| void | setParent (Entity *parent) |
| Sets the parent entity of this component. | |
| Entity * | getParent () const |
| Returns the parent entity of this component. | |
Additional Inherited Members | |
| Protected Member Functions inherited from wEngine::Component | |
| Component () | |
| Protected constructor to restrict instantiation to derived classes. | |
ECS component representing internal padding for UI-like elements.
This component encapsulates a 2D padding vector (horizontal and vertical) that can be used to add internal spacing between a visual element (e.g., a title or a frame) and its boundary.
| wEngine::PaddingComponent::PaddingComponent | ( | sf::Vector2f | padding = sf::Vector2f( 0.0f, 0.0f ) | ) |
Constructs a PaddingComponent with optional initial padding.
| padding | Padding vector (x, y) (default is ( 0.0f, 0.0f )). |
|
virtualdefault |
| void wEngine::PaddingComponent::setPadding | ( | sf::Vector2f | padding | ) |
Sets the padding vector.
| padding | New padding values (x, y). |
|
nodiscard |
Returns the current padding values.
| void wEngine::PaddingComponent::debugPrint | ( | ) | const |
Prints the current padding values to standard output for debugging.