osb/source/windowing/StarImageStretchWidget.cpp

15 lines
366 B
C++
Raw Normal View History

2023-06-20 04:33:09 +00:00
#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);
}
}