CoolItem.computeSize

Returns the preferred size of the receiver. <p> The <em>preferred size</em> of a <code>CoolItem</code> is the size that it would best be displayed at. The width hint and height hint arguments allow the caller to ask the instance questions such as "Given a particular width, how high does it need to be to show all of the contents?" To indicate that the caller does not wish to constrain a particular dimension, the constant <code>SWT.DEFAULT</code> is passed for the hint. </p>

@param wHint the width hint (can be <code>SWT.DEFAULT</code>) @param hHint the height hint (can be <code>SWT.DEFAULT</code>) @return the preferred size

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@see Layout @see #getBounds @see #getSize @see Control#getBorderWidth @see Scrollable#computeTrim @see Scrollable#getClientArea

class CoolItem
computeSize
(
int wHint
,
int hHint
)

Meta