diff --git a/src/Display/Sprite.cpp b/src/Display/Sprite.cpp index e602696..df2a97d 100644 --- a/src/Display/Sprite.cpp +++ b/src/Display/Sprite.cpp @@ -255,15 +255,18 @@ Sprite& Sprite::resize(uint width, uint height){ if(_created == false){ logln("Sprite not cretaed"); } + return *this; } Sprite& Sprite::setTransparent(bool transparent){ chroma = transparent; + return *this; } Sprite& Sprite::setChroma(Color color){ chromaKey = color; chroma = true; + return *this; } void Sprite::pushData(uint width, uint height, uint16_t* data){ diff --git a/src/UI/LowRamScreen.impl b/src/UI/LowRamScreen.impl index 0a12a7e..ad0e2f9 100644 --- a/src/UI/LowRamScreen.impl +++ b/src/UI/LowRamScreen.impl @@ -17,6 +17,7 @@ Screen& Screen::addChild(Element* element){ }else{ children[0] = element; } + return *this; } void Screen::draw(){ diff --git a/src/UI/ScrollLayout.cpp b/src/UI/ScrollLayout.cpp index 24d8a50..d6d53cb 100644 --- a/src/UI/ScrollLayout.cpp +++ b/src/UI/ScrollLayout.cpp @@ -35,6 +35,7 @@ ElementContainer& ScrollLayout::addChild(Element* element){ }else{ children[0] = element; } + return *this; } void ScrollLayout::setScroll(uint scrollX, uint scrollY){