Table of Contents

Class Responder

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Responder base class implemented by objects that want to participate on keyboard and mouse input.

public class Responder : IDisposable
Inheritance
Responder
Implements
Derived
Inherited Members

Properties

CanFocus

Gets or sets a value indicating whether this Responder can focus.

Enabled

Gets or sets a value indicating whether this Responder can respond to user interaction.

HasFocus

Gets or sets a value indicating whether this Responder has focus.

Visible

Gets or sets a value indicating whether this Responder and all its child controls are displayed.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resource.

Dispose(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

MouseEvent(MouseEvent)

Method invoked when a mouse event is generated

OnCanFocusChanged()

Method invoked when the CanFocus property from a view is changed.

OnEnabledChanged()

Method invoked when the Enabled property from a view is changed.

OnEnter(View)

Method invoked when a view gets focus.

OnKeyDown(KeyEvent)

Method invoked when a key is pressed.

OnKeyUp(KeyEvent)

Method invoked when a key is released.

OnLeave(View)

Method invoked when a view loses focus.

OnMouseEnter(MouseEvent)

Method invoked when a mouse event is generated for the first time.

OnMouseLeave(MouseEvent)

Method invoked when a mouse event is generated for the last time.

OnVisibleChanged()

Method invoked when the Visible property from a view is changed.

ProcessColdKey(KeyEvent)

This method can be overwritten by views that want to provide accelerator functionality (Alt-key for example), but without interefering with normal ProcessKey behavior.

ProcessHotKey(KeyEvent)

This method can be overwritten by view that want to provide accelerator functionality (Alt-key for example).

ProcessKey(KeyEvent)

If the view is focused, gives the view a chance to process the keystroke.