// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved. using FlaxEngine; using FlaxEngine.GUI; namespace FlaxEditor.GUI { /// /// Interface for keyframes/curves editors. /// public interface IKeyframesEditor { /// /// Gets or sets the keyframes editor collection used by this editor. /// IKeyframesEditorContext KeyframesEditorContext { get; set; } /// /// Called when keyframes selection should be cleared for editor. /// /// The source editor. void OnKeyframesDeselect(IKeyframesEditor editor); /// /// Called when keyframes selection rectangle gets updated. /// /// The source editor. /// The source selection control. /// The source selection rectangle (in source control local space). void OnKeyframesSelection(IKeyframesEditor editor, ContainerControl control, Rectangle selection); /// /// Called to calculate the total amount of selected keyframes in the editor. /// /// The selected keyframes amount. int OnKeyframesSelectionCount(); /// /// Called when keyframes selection should be deleted for all editors. /// /// The source editor. void OnKeyframesDelete(IKeyframesEditor editor); /// /// Called when keyframes selection should be moved. /// /// The source editor. /// The source movement control. /// The source movement location (in source control local space). /// The movement start flag. /// The movement end flag. void OnKeyframesMove(IKeyframesEditor editor, ContainerControl control, Vector2 location, bool start, bool end); } }