EventExtensions

Collection of extension methods for Event.

namespace Sirenix.Utilities.Editor
{
[ExtensionAttribute]
public static class EventExtensions
}

Requirements

Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Extension Methods

Return Type Definition Description
bool IsHovering(this Event, Rect) Returns true when the user hovers the mouse over the specified rect.
bool OnContextClick(this Event, Rect, bool) Returns true when the user right clicks a rect.
bool OnEventType(this Event, EventType) Returns true on the specified event.
bool OnKeyDown(this Event, KeyCode, bool) Returns true when the user presses the specified key.
bool OnKeyUp(this Event, KeyCode, bool) Returns true when the user releases the specified key.
bool OnLayout(this Event) Returns true on layout events.
bool OnLeftClick(this Event, Rect, bool) Returns true when the user left clicks a rect.
bool OnMouseDown(this Event, int, bool) Returns true when the user presses the specified mouse button.
bool OnMouseDown(this Event, Rect, int, bool) Returns true when the user clicks a rect with the mouse.
bool OnMouseMoveDrag(this Event, bool) Returns true whene the user moves or drags the mouse.
bool OnMouseUp(this Event, int, bool) Returns true when the user releases the specified mouse button.
bool OnMouseUp(this Event, Rect, int, bool) Returns true when the user releases the specified mouse button over the specified rect.
bool OnRepaint(this Event) Returns true on repaint events.