diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-29 12:29:01 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-29 12:29:13 +0200 |
commit | 607b15dbc2e1dfa8633e7ae679b709fe21c94599 (patch) | |
tree | 6e323ec65de8c5f362a08abf8fef5c12b8398d4f /include/Gif.hpp | |
parent | e7caed2208893723181892d5e197b924311373fb (diff) |
Fix image ratio, implement scroll locking (cant scroll outside messages)
Diffstat (limited to 'include/Gif.hpp')
-rw-r--r-- | include/Gif.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Gif.hpp b/include/Gif.hpp index 87e6956..84299e9 100644 --- a/include/Gif.hpp +++ b/include/Gif.hpp @@ -28,8 +28,10 @@ namespace dchat Gif(StringView &&fileContent); ~Gif(); + sf::Vector2u getSize() const; + void setPosition(const sf::Vector2f &position); - void setSize(const sf::Vector2f &size); + void setScale(const sf::Vector2f &scale); void draw(sf::RenderTarget &target); static bool isDataGif(const StringView &data); |