org.gnu.gnomevte.event

Class ResizeWindowEvent

public class ResizeWindowEvent extends GtkEvent

An event representing an action by a Terminal widget. This event is fired when the child application (the command forked) requests it.
Nested Class Summary
static classResizeWindowEvent.Type
Type of a TerminalResizeWindowEvent.
Constructor Summary
ResizeWindowEvent(Object source, EventType type, int windowWidth, int windowHeight)
Constructor for TerminalResizeWindowEvent.
Method Summary
intgetWindowHeight()
Gets the new desired window height.
intgetWindowWidth()
Gets the new desired window width.
booleanisOfType(ResizeWindowEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Constructor Detail

ResizeWindowEvent

public ResizeWindowEvent(Object source, EventType type, int windowWidth, int windowHeight)
Constructor for TerminalResizeWindowEvent.

Parameters: source the source of the event. type the event type. windowWidth windowHeight

Method Detail

getWindowHeight

public int getWindowHeight()
Gets the new desired window height.

Returns: the new desired window height.

getWindowWidth

public int getWindowWidth()
Gets the new desired window width.

Returns: the new desired window width.

isOfType

public boolean isOfType(ResizeWindowEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Parameters: aType the type to compare to.

Returns: true if the events are of same type.