mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 15:21:21 -06:00
Make read-only constructor parameters - private.
This commit is contained in:
parent
76738dc66b
commit
22b05cb187
6 changed files with 81 additions and 32 deletions
|
@ -9,10 +9,8 @@
|
|||
%name{Slic3r::Layer::Region} class LayerRegion {
|
||||
// owned by Layer, no constructor/destructor
|
||||
|
||||
Ref<Layer> layer()
|
||||
%code%{ RETVAL = THIS->layer; %};
|
||||
Ref<PrintRegion> region()
|
||||
%code%{ RETVAL = THIS->region; %};
|
||||
Ref<Layer> layer();
|
||||
Ref<PrintRegion> region();
|
||||
|
||||
Ref<SurfaceCollection> slices()
|
||||
%code%{ RETVAL = &THIS->slices; %};
|
||||
|
@ -33,10 +31,8 @@
|
|||
%name{Slic3r::Layer} class Layer {
|
||||
// owned by PrintObject, no constructor/destructor
|
||||
|
||||
int id()
|
||||
%code%{ RETVAL = THIS->id; %};
|
||||
Ref<PrintObject> object()
|
||||
%code%{ RETVAL = THIS->object; %};
|
||||
int id();
|
||||
Ref<PrintObject> object();
|
||||
Ref<Layer> upper_layer()
|
||||
%code%{ RETVAL = THIS->upper_layer; %};
|
||||
Ref<Layer> lower_layer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue