Table of Contents

Class MouseDown

Namespace
Bonsai.Shaders.Input
Assembly
Bonsai.Shaders.dll

Represents an operator that generates a sequence of events produced whenever a mouse button is pressed over the shader window.

public class MouseDown : Source<EventPattern<INativeWindow, MouseButtonEventArgs>>
Inheritance
MouseDown
Inherited Members

Properties

Button

Gets or sets a value specifying an optional mouse button to use as a filter.

[TypeConverter(typeof(NullableEnumConverter))]
public MouseButton? Button { get; set; }

Property Value

MouseButton?

Methods

Generate()

Generates an observable sequence that produces a value whenever a mouse button is pressed over the shader window.

public override IObservable<EventPattern<INativeWindow, MouseButtonEventArgs>> Generate()

Returns

IObservable<EventPattern<INativeWindow, MouseButtonEventArgs>>

A sequence of events containing MouseButtonEventArgs event data produced whenever a mouse button is pressed over the shader window.