Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2018-06-26 12:17:30 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-06-26 12:17:30 +0300
commita754de4c324518edc1ab931e01253a51b94bea99 (patch)
tree6002c066df8d10fec4b8ebe90f47e1769ef32bcc /xs
parent2fae893af2fd6e6f3e0bcc1d629dc19ee7d108a5 (diff)
Fixed panning in Layers view
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/BoundingBox.xsp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs/xsp/BoundingBox.xsp b/xs/xsp/BoundingBox.xsp
index df8e6baea..ebeb17822 100644
--- a/xs/xsp/BoundingBox.xsp
+++ b/xs/xsp/BoundingBox.xsp
@@ -29,6 +29,10 @@
int x_max() %code{% RETVAL = THIS->max.x; %};
int y_min() %code{% RETVAL = THIS->min.y; %};
int y_max() %code{% RETVAL = THIS->max.y; %};
+ void set_x_min(double val) %code{% THIS->min.x = val; %};
+ void set_x_max(double val) %code{% THIS->max.x = val; %};
+ void set_y_min(double val) %code{% THIS->min.y = val; %};
+ void set_y_max(double val) %code{% THIS->max.y = val; %};
std::string serialize() %code{% char buf[2048]; sprintf(buf, "%ld,%ld;%ld,%ld", THIS->min.x, THIS->min.y, THIS->max.x, THIS->max.y); RETVAL = buf; %};
bool defined() %code{% RETVAL = THIS->defined; %};