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

final
class Monitor {
ptrdiff_t handle;
int x;
int y;
int width;
int height;
int clientX;
int clientY;
int clientWidth;
int clientHeight;
}

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.

Meta