aboutsummaryrefslogtreecommitdiff
path: root/include/Gif.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-29 12:29:01 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-29 12:29:13 +0200
commit607b15dbc2e1dfa8633e7ae679b709fe21c94599 (patch)
tree6e323ec65de8c5f362a08abf8fef5c12b8398d4f /include/Gif.hpp
parente7caed2208893723181892d5e197b924311373fb (diff)
Fix image ratio, implement scroll locking (cant scroll outside messages)
Diffstat (limited to 'include/Gif.hpp')
-rw-r--r--include/Gif.hpp4
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);