Files
FlaxEngine/Source/Editor/Surface/IVisjectSurfaceOwner.cs
2023-01-10 15:29:37 +01:00

34 lines
886 B
C#

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using FlaxEngine;
namespace FlaxEditor.Surface
{
/// <summary>
/// Interface for Visject Surface parent objects.
/// </summary>
[HideInEditor]
public interface IVisjectSurfaceOwner : ISurfaceContext
{
/// <summary>
/// Gets the undo system for actions (can be null if not used).
/// </summary>
FlaxEditor.Undo Undo { get; }
/// <summary>
/// On surface edited state gets changed
/// </summary>
void OnSurfaceEditedChanged();
/// <summary>
/// On surface graph edited
/// </summary>
void OnSurfaceGraphEdited();
/// <summary>
/// Called when surface wants to close the tool window (due to user interaction or sth else).
/// </summary>
void OnSurfaceClose();
}
}