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

summaryrefslogtreecommitdiff
path: root/source/windowing/StarImageStretchWidget.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-03-18 06:43:28 +1100
committerGitHub <noreply@github.com>2025-03-18 06:43:28 +1100
commit2d19b1e0144f19df4be1d28453dbe0bfb95dd383 (patch)
tree5b087a73107751751d9ac377d04f6da87cd43bde /source/windowing/StarImageStretchWidget.cpp
parent472d136bdce006ac24f85cbd89440a2a6188c9ef (diff)
parent80a500afc9f92514f02a1fd2a8a9b012779f3539 (diff)
Merge pull request #212 from KrashV/main
Add widget.setImageStretchSet
Diffstat (limited to 'source/windowing/StarImageStretchWidget.cpp')
-rw-r--r--source/windowing/StarImageStretchWidget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/windowing/StarImageStretchWidget.cpp b/source/windowing/StarImageStretchWidget.cpp
index a511cb1..27edc39 100644
--- a/source/windowing/StarImageStretchWidget.cpp
+++ b/source/windowing/StarImageStretchWidget.cpp
@@ -7,6 +7,12 @@ ImageStretchWidget::ImageStretchWidget(ImageStretchSet const& imageStretchSet, G
}
+void ImageStretchWidget::setImageStretchSet(String const& beginImage, String const& innerImage, String const& endImage) {
+ m_imageStretchSet.begin = beginImage;
+ m_imageStretchSet.inner = innerImage;
+ m_imageStretchSet.end = endImage;
+}
+
void ImageStretchWidget::renderImpl() {
context()->drawImageStretchSet(m_imageStretchSet, RectF(screenBoundRect()), m_direction);
}