SDLPP: can set minimal width/height on rectangle renderer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user