OS.GetThemeMetric (OS.kThemeMetricLittleArrowsHeight, metric); height = Math.max (height, metric [0]);
public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int width = 0, height = 0;	int [] currentPort = new int [1];	short themeFont = (short) defaultThemeFont ();	if (font != null) {		themeFont = OS.kThemeCurrentPortFont;		OS.GetPort (currentPort);		OS.SetPortWindowPort (OS.GetControlOwner (textHandle));		OS.TextFont (font.id);		OS.TextFace (font.style);		OS.TextSize (font.size);	}	FontInfo info = new FontInfo ();	OS.GetFontInfo (info);	height = info.ascent + info.descent;		int max = OS.GetControl32BitMaximum (buttonHandle);	String string = String.valueOf (max);	char [] buffer = new char [string.length ()];	string.getChars (0, buffer.length, buffer, 0);	int ptr = OS.CFStringCreateWithCharacters (OS.kCFAllocatorDefault, buffer, buffer.length);	org.eclipse.swt.internal.carbon.Point ioBounds = new org.eclipse.swt.internal.carbon.Point ();	if (ptr != 0) {		OS.GetThemeTextDimensions (ptr, themeFont, OS.kThemeStateActive, false, ioBounds, null);		width = Math.max (width, ioBounds.h);		height = Math.max (height, ioBounds.v);		OS.CFRelease (ptr);	}	if (font != null) {		OS.SetPort (currentPort [0]);	}	int [] metric = new int [1];	OS.GetThemeMetric (OS.kThemeMetricLittleArrowsHeight, metric);	height = Math.max (height, metric [0]);	OS.GetThemeMetric (OS.kThemeMetricEditTextWhitespace, metric);	width += metric [0] * 2;	if (wHint != SWT.DEFAULT) width = wHint;	if (hHint != SWT.DEFAULT) height = hHint;	Rectangle trim = computeTrim (0, 0, width, height);	return new Point (trim.width, trim.height);}