The preferred size of a control is the size that it would best be displayed at. The width hint and height hint arguments allow the caller to ask a control questions such as "Given a particular width, how high does the control need to be to show all of the contents?" To indicate that the caller does not wish to constrain a particular dimension, the constant SWT.DEFAULT
is passed for the hint.
SWT.DEFAULT
)
@param hHint the height hint (can be SWT.DEFAULT
)
@return the preferred size of the control
@exception SWTException The preferred size of a CoolItem
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 SWT.DEFAULT
is passed for the hint.
SWT.DEFAULT
)
@param hHint the height hint (can be SWT.DEFAULT
)
@return the preferred size
@exception SWTException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|