MCPcopy Index your code
hub / github.com/benfry/processing4 / zoom

Method zoom

app/src/processing/app/ui/Toolkit.java:1061–1068  ·  view source on GitHub ↗

Calculate the desired size in pixels of an element using preferences or system zoom if preferences set to auto. @param pixels The size in pixels to scale. @return The scaled size.

(int pixels)

Source from the content-addressed store, hash-verified

1059 * @return The scaled size.
1060 */
1061 static public int zoom(int pixels) {
1062 if (zoom == 0) {
1063 zoom = parseZoom();
1064 }
1065 // Deal with 125% scaling badness
1066 // https://github.com/processing/processing/issues/4902
1067 return (int) Math.ceil(zoom * pixels);
1068 }
1069
1070
1071 static public Dimension zoom(int w, int h) {

Callers 15

getFontMethod · 0.95
StatusPanelClass · 0.95
ListPanelMethod · 0.95
ManagerTabsClass · 0.95
updateThemeMethod · 0.95
initLayoutMethod · 0.95
ManagerFrameClass · 0.95
makeFrameMethod · 0.95
scaleDefaultFontMethod · 0.95
ModeSelectorClass · 0.95
paintComponentMethod · 0.95
ExamplesFrameMethod · 0.95

Calls 2

parseZoomMethod · 0.95
ceilMethod · 0.80

Tested by

no test coverage detected