C# Class EnvelopeWindow.EnvelopeHandle, G-Audio

Datei anzeigen Open project: gregzo/G-Audio

Public Properties

Property Type Description
Control ControlType
HandleRadius float
LeftMargin float
MaxSamples int
TotalLength float

Public Methods

Method Description
Drag ( float xPos ) : void
DrawHandle ( ) : void
EnvelopeHandle ( ControlType control, float yPos ) : System.Collections
EvaluatePosInSamples ( float xPos ) : int
HitTest ( Vector2 pos ) : bool
SetClamps ( EnvelopeHandle leftClamp, EnvelopeHandle rightClamp ) : void
UpdatePosition ( ) : void

Method Details

Drag() public method

public Drag ( float xPos ) : void
xPos float
return void

DrawHandle() public method

public DrawHandle ( ) : void
return void

EnvelopeHandle() public method

public EnvelopeHandle ( ControlType control, float yPos ) : System.Collections
control ControlType
yPos float
return System.Collections

EvaluatePosInSamples() public method

public EvaluatePosInSamples ( float xPos ) : int
xPos float
return int

HitTest() public method

public HitTest ( Vector2 pos ) : bool
pos Vector2
return bool

SetClamps() public method

public SetClamps ( EnvelopeHandle leftClamp, EnvelopeHandle rightClamp ) : void
leftClamp EnvelopeHandle
rightClamp EnvelopeHandle
return void

UpdatePosition() public method

public UpdatePosition ( ) : void
return void

Property Details

Control public_oe property

public ControlType Control
return ControlType

HandleRadius public_oe static_oe property

public static float HandleRadius
return float

LeftMargin public_oe static_oe property

public static float LeftMargin
return float

MaxSamples public_oe static_oe property

public static int MaxSamples
return int

TotalLength public_oe static_oe property

public static float TotalLength
return float