23#include "guillaume/components/clip.hpp"
34 if (_margin == margin) {
49 if (_enabled == enabled) {
Clip & setEnabled(bool enabled)
Turn clipping on or off without removing the component.
float getMargin(void) const
Get the inset between the bound and the clip rectangle.
const Rect & getRect(void) const
Get the rectangle computed by systems::Clip.
bool isEnabled(void) const
Check whether systems::Clip processes this entity.
Clip & setMargin(float margin)
Set the inset between the bound and the clip rectangle.
Clip & setRect(const Rect &rect)
Store the computed rectangle. Called by systems::Clip; a value set by hand is replaced on the next fr...
Clip(void)=default
Default constructor for the Clip component.
void setHasChanged(bool hasChanged)
Raise or lower the changed flag.
State. Every class here is plain data attached to an entity.
The clip rectangle, in the same coordinates as the position of a components::Transform.