Class GraphElementEditor<TGraphContext>
Inheritance
GraphElementEditor<TGraphContext>
Syntax
[Editor(typeof(IGraphElement))]
public class GraphElementEditor<TGraphContext> : GraphInspector<TGraphContext>, IDisposable where TGraphContext : class, IGraphContext
Type Parameters
Name |
Description |
TGraphContext |
|
Constructors
Declaration
public GraphElementEditor(Metadata metadata)
Parameters
Properties
analysis
Declaration
protected IGraphElementAnalysis analysis { get; }
Property Value
description
Declaration
protected IGraphElementDescription description { get; }
Property Value
Declaration
protected virtual bool editableHeader { get; }
Property Value
element
Declaration
protected IGraphElement element { get; }
Property Value
exception
Declaration
protected Exception exception { get; }
Property Value
exceptionMessage
Declaration
protected string exceptionMessage { get; }
Property Value
Declaration
protected GUIContent headerContent { get; }
Property Value
Declaration
protected IGraphContext headerContext { get; }
Property Value
Declaration
protected virtual GraphReference headerReference { get; }
Property Value
Declaration
protected virtual Metadata headerSummaryMetadata { get; }
Property Value
Declaration
protected virtual Metadata headerTitleMetadata { get; }
Property Value
Methods
GetExceptionHeight(Single)
Declaration
protected float GetExceptionHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Declaration
protected float GetHeaderHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
GetHeight(Single, GUIContent)
Declaration
protected override float GetHeight(float width, GUIContent label)
Parameters
Returns
Overrides
GetInspectorHeight(Single)
Declaration
protected virtual float GetInspectorHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
GetInspectorInnerWidth(Single)
Declaration
protected float GetInspectorInnerWidth(float totalWidth)
Parameters
Type |
Name |
Description |
Single |
totalWidth |
|
Returns
GetWrappedInspectorHeight(Single)
Declaration
protected float GetWrappedInspectorHeight(float totalWidth)
Parameters
Type |
Name |
Description |
Single |
totalWidth |
|
Returns
OnExceptionGUI(Rect)
Declaration
protected void OnExceptionGUI(Rect exceptionPosition)
Parameters
Type |
Name |
Description |
Rect |
exceptionPosition |
|
OnGUI(Rect, GUIContent)
Declaration
protected override void OnGUI(Rect position, GUIContent label)
Parameters
Overrides
Declaration
protected void OnHeaderGUI(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
OnInspectorGUI(Rect)
Declaration
protected virtual void OnInspectorGUI(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
OnWrappedInspectorGUI(Rect)
Declaration
protected void OnWrappedInspectorGUI(Rect position)
Parameters
Type |
Name |
Description |
Rect |
position |
|
Extension Methods