org.gnu.gtk.event

Class ExposeEvent

public class ExposeEvent extends GtkEvent

This event object is used to identify how expose has changed.

See Also: ExposeListener

Nested Class Summary
static classExposeEvent.Type
Constructor Summary
ExposeEvent(Object source, EventExpose gdkEvent)
ExposeEvent(Object source, EventNoExpose gdkEvent)
Method Summary
RectanglegetArea()
Returns the bounding box of region.
intgetCount()
Returns the number of contiguous EXPOSE events following this one.
RegiongetRegion()
Returns the region that needs to be redrawn.
booleangetSendEvent()
Check if the event was sent explicitly (eg using XSendEvent).
WindowgetWindow()
The window which received the event.
booleanisOfType(ExposeEvent.Type test)
Test to compare events.

Constructor Detail

ExposeEvent

public ExposeEvent(Object source, EventExpose gdkEvent)

ExposeEvent

public ExposeEvent(Object source, EventNoExpose gdkEvent)

Method Detail

getArea

public Rectangle getArea()
Returns the bounding box of region.

Returns: the bounding box of region.

getCount

public int getCount()
Returns the number of contiguous EXPOSE events following this one. The only use for this is "exposure compression", i.e. handling all contiguous EXPOSE events in one go, though GDK performs some exposure compression so this is not normally needed.

Returns: the number of contiguous EXPOSE events following this one.

getRegion

public Region getRegion()
Returns the region that needs to be redrawn.

Returns: the region that needs to be redrawn.

getSendEvent

public boolean getSendEvent()
Check if the event was sent explicitly (eg using XSendEvent).

Returns: true if the event was sent explicitly (e.g. using XSendEvent), false otherwise.

getWindow

public Window getWindow()
The window which received the event.

Returns: the window which received the event.

isOfType

public boolean isOfType(ExposeEvent.Type test)
Test to compare events.