You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If `false`, the window will be locked to size and the OS will not allow it to be resized. (Default: `true`)
65
+
66
+
There is also a corresponding `getWindowResizable()`.
67
+
68
+
37
69
## Manipulating the Current View
38
70
39
71
These settings affect the 3D camera view in polyscope. It is often convenient to set them just before calling `polyscope::init()`, but they may set be anywhere.
Copy file name to clipboardExpand all lines: cpp/source/basics/program_options.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,22 @@ polyscope::init();
126
126
127
127
If this option is `true`, the scene will be redrawn on every main loop iteration no matter what, circumventing the lazy drawing features. Default: `false`.
128
128
129
+
??? func "`#!cpp float options::uiScale`"
130
+
131
+
##### ui scale
132
+
133
+
A scale factor for all UI elements (text, buttons, panels). Can be useful for increase font sizes on high DPI screens. `2.0` means make everything twice as large.
134
+
135
+
This factor should also be incorporated into any user-defined widths in custom UIs, to ensure spacing remains correct as scaling is changed, like:
If `-1`, a sensible value will be guessed at initialization time. This value is saved and restored between settings if the preferences file is enabled.
Copy file name to clipboardExpand all lines: cpp/source/structures/structure_management.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,22 @@ If no longer needed, structures can be removed by name or by pointer. Removing a
88
88
89
89
Remove all structures from the scene.
90
90
91
+
## Quantities
92
+
93
+
Quantities, like scalar functions, color fields, vector fields, and more, can be associated with structures. See the available options for each kind of structure.
94
+
95
+
Quantities can be removed from a structure by name.
Remove all quantities which have been added to the structure.
105
+
106
+
91
107
## Structure options
92
108
93
109
These basic options are shared by all structures. Structure options are managed as [persistent values]([[url.prefix]]/basics/parameters/#persistent-values), and thus will persist if a new structure is registered with the same name.
If `false`, the window will be locked to size and the OS will not allow it to be resized. (Default: `true`)
63
+
64
+
There is also a corresponding `get_window_resizable()`.
65
+
66
+
38
67
## Manipulating the Current View
39
68
40
69
These settings affect the 3D camera view in polyscope. It is often convenient to set them just before calling `ps.init()`, but they may set be anywhere.
Copy file name to clipboardExpand all lines: py/source/basics/program_options.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,25 @@ ps.init()
130
130
131
131
If this option is `True`, the scene will be redrawn on every main loop iteration no matter what, circumventing the lazy drawing features. Default: `False`.
132
132
133
+
??? func "`#!python set_ui_scale(scale)`"
134
+
135
+
##### ui scale
136
+
137
+
A scale factor for all UI elements (text, buttons, panels). Can be useful for increase font sizes on high DPI screens. `2.0` means make everything twice as large.
138
+
139
+
There is also a corresponding `get_ui_scale()`.
140
+
141
+
This factor should also be incorporated into any user-defined widths in custom UIs, to ensure spacing remains correct as scaling is changed, like:
142
+
143
+
```
144
+
psim.PushItemWidth(100 * ps.get_ui_scale());
145
+
```
146
+
147
+
If `-1`, a sensible value will be guessed at initialization time. This value is saved and restored between settings if the preferences file is enabled.
Copy file name to clipboardExpand all lines: py/source/structures/structure_management.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,23 @@ ps.remove_all_structures()
67
67
Remove all structures from the scene.
68
68
69
69
70
+
## Quantities
71
+
72
+
Quantities, like scalar functions, color fields, vector fields, and more, can be associated with structures. See the available options for each kind of structure.
73
+
74
+
Quantities can be removed from a structure by name.
Remove all quantities which have been added to the structure.
85
+
86
+
70
87
## Structure options
71
88
72
89
These basic options are shared by all structures. Structure options are managed as [persistent values]([[url.prefix]]/basics/parameters/#persistent-values), and thus will persist if a new structure is registered with the same name.
0 commit comments