Monitor

Instances of this class are descriptions of monitors.

@see Display @see <a href="http://www.eclipse.org/swt/snippets/#monitor">Monitor snippets</a> @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

@since 3.0

Constructors

this
this()

Prevents uninitialized instances from being created outside the package.

Members

Functions

getBounds
Rectangle getBounds()

Returns a rectangle describing the receiver's size and location relative to its device. Note that on multi-monitor systems the origin can be negative.

getClientArea
Rectangle getClientArea()

Returns a rectangle which describes the area of the receiver which is capable of displaying data.

opEquals
equals_t opEquals(Object object)

Compares the argument to the receiver, and returns true if they represent the <em>same</em> object using a class specific comparison.

toHash
hash_t toHash()

Returns an integer hash code for the receiver. Any two objects that return <code>true</code> when passed to <code>equals</code> must return the same value for this method.

Variables

clientHeight
int clientHeight;
clientWidth
int clientWidth;
Undocumented in source.
clientX
int clientX;
clientY
int clientY;
Undocumented in source.
handle
ptrdiff_t handle;
height
int height;
width
int width;
Undocumented in source.
x
int x;
y
int y;
Undocumented in source.

Meta