Starbound/source/windowing/StarImageStretchWidget.cpp
2025-03-21 22:23:30 +11:00

14 lines
366 B
C++

#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);
}
}