public final class NativeWidgetHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeWidgetHelper.CheckBoxState
Enum describing the state of a checkbox.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.Image |
getCheckBoxImage(org.eclipse.swt.widgets.Control control,
NativeWidgetHelper.CheckBoxState state)
Returns the image of a checkbox.
|
static void |
initCheckBoxImages(org.eclipse.swt.widgets.Control control)
Creates screenshots of the platform's native checkbox in checked and unchecked state.
|
public static void initCheckBoxImages(org.eclipse.swt.widgets.Control control)
getCheckBoxImage(Control, CheckBoxState).control - a control which provides the Display and Shell to
create the screen shotspublic static org.eclipse.swt.graphics.Image getCheckBoxImage(org.eclipse.swt.widgets.Control control,
NativeWidgetHelper.CheckBoxState state)
initCheckBoxImages(Control) was called beforehand
this will return images resembling the platform's native widgets. Otherwise a default image (Windows 7) will be
returned.control - a control which provides the Display to create the imagestate - the state of the checkboxCopyright © 2018. All rights reserved.