Uses of Class
org.eclipse.swt.graphics.Device
Packages that use Device
Package
Description
SWT Custom widgets.
SWT graphics classes.
SWT internal classes
SWT internal image loading/saving support classes.
SWT Printing support classes.
SWT widget public API classes.
-
Uses of Device in org.eclipse.swt.custom
Fields in org.eclipse.swt.custom declared as DeviceConstructors in org.eclipse.swt.custom with parameters of type DeviceModifierConstructorDescription(package private)StyledTextRenderer(Device device, StyledText styledText) -
Uses of Device in org.eclipse.swt.graphics
Fields in org.eclipse.swt.graphics declared as DeviceModifier and TypeFieldDescriptionprotected static DeviceDevice.CurrentDeviceGCData.device(package private) DeviceResource.devicethe device where this resource was created(package private) static Device[]Device.DevicesMethods in org.eclipse.swt.graphics that return DeviceModifier and TypeMethodDescription(package private) static DeviceDevice.findDevice(long xDisplay) Color.getDevice()Returns theDevicewhere this resource was created.(package private) static DeviceDevice.getDevice()Resource.getDevice()Returns theDevicewhere this resource was created.Methods in org.eclipse.swt.graphics with parameters of type DeviceModifier and TypeMethodDescription(package private) static voidDevice.deregister(Device device) (package private) static voidImageData.fillGradientRectangle(GC gc, Device device, int x, int y, int width, int height, boolean vertical, RGB fromRGB, RGB toRGB, int redBits, int greenBits, int blueBits, int zoom) Renders a gradient onto a GC.TextLayout.MetricsAdapter.getFixedLineMetrics(Device device) static ColorInvokes platform specific functionality to allocate a new color.static ColorInvokes platform specific functionality to allocate a new color.static CursorInvokes platform specific functionality to allocate a new cursor.static FontInvokes platform specific functionality to allocate a new font.static ImageInvokes platform specific functionality to allocate a new image.static RegionInvokes platform specific functionality to allocate a new region.static ImageImage.gtk_new_from_pixbuf(Device device, int type, long pixbuf) Invokes platform specific functionality to allocate a new image.(package private) static voidvoidTextLayout.MetricsAdapter.setFixedLineMetrics(Device device, FontMetrics metrics) Constructors in org.eclipse.swt.graphics with parameters of type DeviceModifierConstructorDescription(package private)Constructs a new instance of this class given a device and the desired red, green and blue values expressed as ints in the range 0 to 255 (where 0 is black and 255 is full brightness).Constructs a new instance of this class given a device and the desired red, green, blue & alpha values expressed as ints in the range 0 to 255 (where 0 is black and 255 is full brightness).Constructs a new instance of this class given a device and anRGBdescribing the desired red, green and blue values.Constructs a new instance of this class given a device and anRGBAdescribing the desired red, green, blue & alpha values.Constructs a new instance of this class given a device, anRGBdescribing the desired red, green and blue values, alpha specifying the level of transparency.(package private)Constructs a new cursor given a device and a style constant describing the desired cursor appearance.Constructs a new cursor given a device, image data describing the desired cursor appearance, and the x and y coordinates of the hotspot (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing").Cursor(Device device, ImageDataProvider imageDataProvider, int hotspotX, int hotspotY) Constructs a new cursor given a device, image describing the desired cursor appearance, and the x and y coordinates of the hotspot (that is, the point within the area covered by the cursor which is considered to be where the on-screen pointer is "pointing").Deprecated.(package private)Constructs a new font given a device, a font name, the height of the desired font in points, and a font style.Constructs a new font given a device and font data which describes the desired font's appearance.Constructs a new font given a device and an array of font data which describes the desired font's appearance.(package private)Constructs an empty instance of this class with the specified width and height.Image(Device device, InputStream stream) Constructs an instance of this class by loading its representation from the specified input stream.Constructs an instance of this class by loading its representation from the file with the specified name.Constructs an instance of this class from the givenImageData.privateImage(Device device, ImageDataProvider imageDataProvider) Constructs an instance of this class by loading its representation from the ImageData retrieved from the ImageDataProvider.Constructs an instance of this class, whose type isSWT.ICON, from the two givenImageDataobjects.Image(Device device, ImageFileNameProvider imageFileNameProvider) Constructs an instance of this class by loading its representation from the file retrieved from the ImageFileNameProvider.Image(Device device, ImageGcDrawer imageGcDrawer, int width, int height) The provided ImageGcDrawer will be called on demand whenever a new variant of the Image for an additional zoom is required.Constructs a new instance of this class based on the provided image, with an appearance that varies depending on the value of the flag.Deprecated, for removal: This API element is subject to removal in a future version.useImage(Device, int, int)insteadConstructs a new empty Path.Constructs a new Path with the specified PathData.Constructs a new Path that is a copy ofpath.Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) Constructs a new Pattern that represents a linear, two color gradient.Constructs a new Pattern that represents a linear, two color gradient.Constructs a new Pattern given an image.Constructs a new empty region.(package private)(package private)TextLayout(Device device) Constructs a new instance of this class on the given device.Constructs a new identity Transform.Constructs a new Transform given an array of elements that represent the matrix that describes the transformation.Constructs a new Transform given all of the elements that represent the matrix that describes the transformation. -
Uses of Device in org.eclipse.swt.internal
Methods in org.eclipse.swt.internal with parameters of type DeviceModifier and TypeMethodDescriptionstatic ImageDataDPIUtil.autoScaleImageData(Device device, ImageData imageData, float scaleFactor) static ImageDataDPIUtil.autoScaleImageData(Device device, ImageData imageData, int imageDataZoomFactor) Auto-scale ImageData to device zoom that are at given zoom factor.static ImageDataDPIUtil.autoScaleImageData(Device device, ImageData imageData, int targetWidth, int targetHeight) static ImageDataGtkDPIUtil.pointToPixel(Device device, ImageData imageData) Auto-scale up ImageData to device zoom that is at 100%.private static ImageDataDPIUtil.scaleImage(Device device, ImageData imageData, DPIUtil.ImageDrawFunction drawFunction, int scaledWidth, int scaledHeight) static ImageDataDPIUtil.scaleImageData(Device device, ImageData imageData, int targetZoom, int currentZoom) Auto-scale image with ImageDatastatic ImageDataDPIUtil.scaleImageData(Device device, DPIUtil.ElementAtZoom<ImageData> elementAtZoom, int targetZoom) -
Uses of Device in org.eclipse.swt.internal.image
Methods in org.eclipse.swt.internal.image with parameters of type DeviceModifier and TypeMethodDescriptionstatic ImageColorTransformerImageColorTransformer.forIntensityThreshold(Device device) -
Uses of Device in org.eclipse.swt.printing
Subclasses of Device in org.eclipse.swt.printingModifier and TypeClassDescriptionfinal classInstances of this class are used to print to a printer. -
Uses of Device in org.eclipse.swt.widgets
Subclasses of Device in org.eclipse.swt.widgetsModifier and TypeClassDescriptionclassInstances of this class are responsible for managing the connection between SWT and the underlying operating system.Methods in org.eclipse.swt.widgets with parameters of type Device
Cursor(Device, ImageDataProvider, int, int)instead.