We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f82869 commit 5d2c036Copy full SHA for 5d2c036
2 files changed
loader/include/Geode/ui/NineSlice.hpp
@@ -23,6 +23,7 @@ namespace geode {
23
24
/// Sets a multiplier for the slices to be scaled by
25
void setScaleMultiplier(float scaleMultiplier);
26
+ float getScaleMultiplier();
27
28
/// Sets whether the slices should repeat or scale, by default, it scales
29
void setRepeatCenter(bool repeat);
loader/src/ui/nodes/NineSlice.cpp
@@ -296,6 +296,10 @@ void NineSlice::setScaleMultiplier(float scaleMultiplier) {
296
m_impl->m_dirty = true;
297
}
298
299
+float NineSlice::getScaleMultiplier() {
300
+ return m_impl->m_scaleMultiplier;
301
+}
302
+
303
void NineSlice::setRepeatCenter(bool repeat) {
304
m_impl->m_repeatCenter = repeat;
305
0 commit comments