PaintEvent

Instances of this class are sent as a result of visible areas of controls requiring re-painting.

@see PaintListener @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>

Constructors

this
this(Event e)

Constructs a new instance of this class based on the information in the given untyped event.

Members

Functions

toString
String toString()

Returns a string containing a concise, human-readable description of the receiver.

Variables

count
int count;

the number of following paint events which are pending which may always be zero on some platforms

gc
GC gc;

the graphics context to use when painting that is configured to use the colors, font and damaged region of the control. It is valid only during the paint and must not be disposed

height
int height;

the height of the bounding rectangle of the region that requires painting

width
int width;

the width of the bounding rectangle of the region that requires painting

x
int x;

the x offset of the bounding rectangle of the region that requires painting

y
int y;

the y offset of the bounding rectangle of the region that requires painting

Inherited Members

From TypedEvent

display
Display display;

the display where the event occurred

widget
Widget widget;

the widget that issued the event

time
int time;

the time that the event occurred.

data
Object data;

a field for application use

getName
String getName()

Returns the name of the event. This is the name of the class without the module name.

toString
String toString()

Returns a string containing a concise, human-readable description of the receiver.

Meta