Package | Description |
---|---|
org.eclipse.swt.graphics | |
org.eclipse.swt.widgets |
Modifier and Type | Method and Description |
---|---|
Device |
Resource.getDevice()
Returns the
Device where this resource was
created. |
Constructor and Description |
---|
Color(Device device,
int red,
int green,
int blue)
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).
|
Color(Device device,
RGB rgb)
Constructs a new instance of this class given a device and an
RGB describing the desired red, green and blue values. |
Cursor(Device device,
int style)
Constructs a new cursor given a device and a style
constant describing the desired cursor appearance.
|
Font(Device device,
FontData fontData)
Constructs a new font given a device and font data
which describes the desired font's appearance.
|
Font(Device device,
FontData[] fontData)
Constructs a new font given a device and an array
of font data which describes the desired font's
appearance.
|
Font(Device device,
java.lang.String name,
int height,
int style)
Constructs a new font given a device, a font name,
the height of the desired font in points, and a font
style.
|
Image(Device device,
Image srcImage,
int flag)
Constructs a new instance of this class based on the
provided image, with an appearance that varies depending
on the value of the flag.
|
Image(Device device,
int width,
int height)
Constructs an empty instance of this class with the
specified width and height.
|
Path(Device device)
Constructs a new empty Path.
|
Path(Device device,
PathData data)
Constructs a new Path with the specified PathData.
|
Modifier and Type | Class and Description |
---|---|
class |
Display
Instances of this class are responsible for managing the
connection between SWT and the underlying operating
system.
|
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0