Uses of Class
org.eclipse.swt.graphics.Device
Packages that use Device
Package
Description
-
Uses of Device in org.eclipse.swt.graphics
Fields in org.eclipse.swt.graphics declared as DeviceMethods in org.eclipse.swt.graphics that return DeviceModifier and TypeMethodDescriptionColor.getDevice()
Returns theDevice
where this resource was created.Resource.getDevice()
Returns theDevice
where this resource was created.Methods in org.eclipse.swt.graphics with parameters of type DeviceModifier and TypeMethodDescriptionstatic Color
Invokes platform specific functionality to allocate a new color.static Color
Invokes platform specific functionality to allocate a new color.static Cursor
Invokes platform specific functionality to allocate a new cursor.static Font
Invokes platform specific functionality to allocate a new font.static Image
Invokes platform specific functionality to allocate a new image.static Region
Invokes platform specific functionality to allocate a new region.static Image
Image.gtk_new_from_pixbuf
(Device device, int type, long pixbuf) Invokes platform specific functionality to allocate a new image.Constructors in org.eclipse.swt.graphics with parameters of type DeviceModifierConstructorDescriptionConstructs 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 anRGB
describing the desired red, green and blue values.Constructs a new instance of this class given a device and anRGBA
describing the desired red, green, blue & alpha values.Constructs a new instance of this class given a device, anRGB
describing the desired red, green and blue values, alpha specifying the level of transparency.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").Constructs a new cursor given a device, image and mask 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").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.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
.Image
(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 givenImageData
objects.Image
(Device device, ImageFileNameProvider imageFileNameProvider) Constructs an instance of this class by loading its representation from the file retrieved from the ImageFileNameProvider.Constructs a new instance of this class based on the provided image, with an appearance that varies depending on the value of the flag.Constructs an empty instance of this class with the width and height of the specified rectangle.Constructs 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.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 ImageData
DPIUtil.autoScaleDown
(Device device, ImageData imageData) Auto-scale down ImageDatastatic ImageData
DPIUtil.autoScaleImageData
(Device device, ImageData imageData, int targetZoom, int currentZoom) Auto-scale image with ImageDatastatic ImageData
DPIUtil.autoScaleUp
(Device device, ImageData imageData) Auto-scale up ImageDataConstructors in org.eclipse.swt.internal with parameters of type DeviceModifierConstructorDescriptionAutoScaleImageDataProvider
(Device device, ImageData data, int zoom) -
Uses of Device in org.eclipse.swt.printing
Subclasses of Device in org.eclipse.swt.printingModifier and TypeClassDescriptionfinal class
Instances 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 TypeClassDescriptionclass
Instances of this class are responsible for managing the connection between SWT and the underlying operating system.