MCPcopy Index your code
hub / github.com/processing/processing / getButtonWidth

Method getButtonWidth

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

Standardized width for buttons. Mac OS X 10.3 wants 70 as its default, Windows XP needs 66, and my Ubuntu machine needs 80+, so 80 seems proper. This is now stored in the languages file since this may need to be larger for languages that are consistently wider than English.

()

Source from the content-addressed store, hash-verified

113 * for languages that are consistently wider than English.
114 */
115 static public int getButtonWidth() {
116 // Made into a method so that calling Toolkit methods doesn't require
117 // the languages to be loaded, and with that, Base initialized completely
118 return zoom(Integer.parseInt(Language.text("preferences.button.width")));
119 }
120
121
122 /**

Callers 2

PreferencesFrameMethod · 0.95
paintMethod · 0.95

Calls 3

zoomMethod · 0.95
textMethod · 0.95
parseIntMethod · 0.80

Tested by

no test coverage detected