SDLPP: can set minimal width/height on rectangle renderer

This commit is contained in:
2021-05-02 14:03:26 +02:00
parent 61e45e89a5
commit e84284e613
3 changed files with 19 additions and 1 deletions
+4
View File
@@ -76,12 +76,16 @@ public:
virtual SDL_Rect getRect() override;
virtual std::shared_ptr< RenderObject > copySelf() override;
std::string getColor() const;
void setMinWidth( uint64_t width );
void setMinHeight( uint64_t height );
void setSize( Vec2D< double > size );
protected:
virtual void copyTo( std::shared_ptr< RenderObject > other ) override;
Vec2D< double > original_size;
Vec2D< double > size;
std::string color = "";
Vec2D< uint64_t > min_size = {0, 0};
};
} // end of namespace SDLPP
#endif