Class CurveEditor<T>.KeyframePoint
The single keyframe control.
Implements
System.IComparable
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
protected class KeyframePoint : Control, IComparable, IDrawable
Constructors
KeyframePoint()
Declaration
public KeyframePoint()
Fields
Component
The component index.
Declaration
public int Component
Field Value
System.Int32
|
Editor
Index
The keyframe index.
Declaration
public int Index
Field Value
System.Int32
|
IsSelected
Flag for selected keyframes.
Declaration
public bool IsSelected
Field Value
System.Boolean
|
Properties
Point
Gets the point time and value on a curve.
Declaration
public Float2 Point { get; }
Property Value
Float2
|
ShowTooltip
Gets a value indicating whether show control tooltip (control is in a proper state, tooltip text is valid, etc.). Can be used to implement custom conditions for showing tooltips (eg. based on current mouse location within the control bounds).
Declaration
protected override bool ShowTooltip { get; }
Property Value
System.Boolean
|
Overrides
Remarks
Tooltip can be only visible if mouse is over the control area (see IsMouseOver).
Time
Gets the time of the keyframe point.
Declaration
public float Time { get; }
Property Value
System.Single
|
Methods
Draw()
OnMouseDoubleClick(Float2, MouseButton)
When mouse double clicks over control's area
Declaration
public override bool OnMouseDoubleClick(Float2 location, MouseButton button)
Parameters
Float2
location
Mouse location in Control Space |
MouseButton
button
Mouse buttons state (flags) |
Returns
System.Boolean
True if event has been handled, otherwise false |
Overrides
UpdateTooltip()
Updates the tooltip.
Declaration
public void UpdateTooltip()