Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarImageStretchWidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/windowing/StarImageStretchWidget.cpp')
-rw-r--r--source/windowing/StarImageStretchWidget.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/windowing/StarImageStretchWidget.cpp b/source/windowing/StarImageStretchWidget.cpp
new file mode 100644
index 0000000..a511cb1
--- /dev/null
+++ b/source/windowing/StarImageStretchWidget.cpp
@@ -0,0 +1,14 @@
+#include "StarImageStretchWidget.hpp"
+
+namespace Star {
+
+ImageStretchWidget::ImageStretchWidget(ImageStretchSet const& imageStretchSet, GuiDirection direction)
+ : m_imageStretchSet(imageStretchSet), m_direction(direction) {
+
+}
+
+void ImageStretchWidget::renderImpl() {
+ context()->drawImageStretchSet(m_imageStretchSet, RectF(screenBoundRect()), m_direction);
+}
+
+}