C# Класс Invert.Core.GraphDesigner.Unity.UnityDrawer

Наследование: IPlatformDrawer
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
WhiteLabels bool

Открытые методы

Метод Описание
BeginRender ( object sender, MouseEvent mouseEvent ) : void
CalculateImageSize ( string imageName ) : Vector2
CalculateTextHeight ( string text, object styleObject, float width ) : float
CalculateTextSize ( string text, object styleObject ) : Vector2
ClearTooltip ( ) : void
DisableInput ( ) : void
DoButton ( Rect scale, string label, object style, System.Action action, System.Action rightClick = null ) : void
DoButton ( Rect scale, string label, object style, Action action, Action rightClick = null ) : void
DoTabs ( Rect tabsRect, DesignerWindow designerWindow ) : void
DoToolbar ( Rect toolbarTopRect, DesignerWindow designerWindow, ToolbarPosition position ) : void
DrawBezier ( Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, Color color, float width ) : void
DrawColumns ( Rect rect ) : void
DrawColumns ( Rect rect, float columnWidths ) : void
DrawConnector ( float scale, ConnectorViewModel viewModel ) : void
DrawError ( Rect rect, string key ) : void
DrawExpandableBox ( Rect rect, object style, string text, RectOffset offset ) : void
DrawExpandableBox ( Rect rect, object style, string text, float offset = 12 ) : void
DrawImage ( Rect bounds, object texture, bool b ) : void
DrawImage ( Rect bounds, string texture, bool b ) : void
DrawInfo ( Rect rect, string key ) : void
DrawInspector ( PropertyFieldViewModel d, GUIStyle labelStyle ) : void
DrawInspector ( Rect rect, PropertyFieldViewModel d, GUIStyle labelStyle ) : void
DrawLabel ( Rect rect, string label, object style, DrawingAlignment alignment = DrawingAlignment.MiddleLeft ) : void
DrawLabelWithIcon ( Rect rect, string label, string iconName, object style, DrawingAlignment alignment = DrawingAlignment.MiddleLeft ) : void
DrawLine ( Vector3 lines, Color color ) : void
DrawNodeHeader ( Rect boxRect, object backgroundStyle, bool isCollapsed, float scale, object image ) : void
DrawPolyLine ( Vector2 lines, Color color ) : void
DrawPropertyField ( PropertyFieldViewModel fieldViewModel, float scale ) : void
DrawPropertyField ( Rect r, PropertyFieldViewModel fieldViewModel, float scale ) : void
DrawRect ( Rect boundsRect, Color color ) : void
DrawStretchBox ( Rect scale, object nodeBackground, Rect offset ) : void
DrawStretchBox ( Rect scale, object nodeBackground, float offset ) : void
DrawTextbox ( string id, Rect rect, string value, object itemTextEditingStyle, bool>.Action valueChangedAction ) : void
DrawWarning ( Rect rect, string key ) : void
DrawingComplete ( ) : void
DrawingStarted ( ) : void
EnableInput ( ) : void
EndRender ( ) : void
GetTooltip ( ) : string
SetTooltipForRect ( Rect rect, string tooltip ) : void

Описание методов

BeginRender() публичный Метод

public BeginRender ( object sender, MouseEvent mouseEvent ) : void
sender object
mouseEvent MouseEvent
Результат void

CalculateImageSize() публичный Метод

public CalculateImageSize ( string imageName ) : Vector2
imageName string
Результат Vector2

CalculateTextHeight() публичный Метод

public CalculateTextHeight ( string text, object styleObject, float width ) : float
text string
styleObject object
width float
Результат float

CalculateTextSize() публичный Метод

public CalculateTextSize ( string text, object styleObject ) : Vector2
text string
styleObject object
Результат Vector2

ClearTooltip() публичный Метод

public ClearTooltip ( ) : void
Результат void

DisableInput() публичный Метод

public DisableInput ( ) : void
Результат void

DoButton() публичный Метод

public DoButton ( Rect scale, string label, object style, System.Action action, System.Action rightClick = null ) : void
scale UnityEngine.Rect
label string
style object
action System.Action
rightClick System.Action
Результат void

DoButton() публичный Метод

public DoButton ( Rect scale, string label, object style, Action action, Action rightClick = null ) : void
scale UnityEngine.Rect
label string
style object
action Action
rightClick Action
Результат void

DoTabs() публичный Метод

public DoTabs ( Rect tabsRect, DesignerWindow designerWindow ) : void
tabsRect UnityEngine.Rect
designerWindow DesignerWindow
Результат void

DoToolbar() публичный Метод

public DoToolbar ( Rect toolbarTopRect, DesignerWindow designerWindow, ToolbarPosition position ) : void
toolbarTopRect UnityEngine.Rect
designerWindow DesignerWindow
position ToolbarPosition
Результат void

DrawBezier() публичный Метод

public DrawBezier ( Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, Color color, float width ) : void
startPosition Vector3
endPosition Vector3
startTangent Vector3
endTangent Vector3
color Color
width float
Результат void

DrawColumns() публичный Метод

public DrawColumns ( Rect rect ) : void
rect UnityEngine.Rect
Результат void

DrawColumns() публичный Метод

public DrawColumns ( Rect rect, float columnWidths ) : void
rect UnityEngine.Rect
columnWidths float
Результат void

DrawConnector() публичный Метод

public DrawConnector ( float scale, ConnectorViewModel viewModel ) : void
scale float
viewModel ConnectorViewModel
Результат void

DrawError() публичный Метод

public DrawError ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
Результат void

DrawExpandableBox() публичный Метод

public DrawExpandableBox ( Rect rect, object style, string text, RectOffset offset ) : void
rect UnityEngine.Rect
style object
text string
offset UnityEngine.RectOffset
Результат void

DrawExpandableBox() публичный Метод

public DrawExpandableBox ( Rect rect, object style, string text, float offset = 12 ) : void
rect UnityEngine.Rect
style object
text string
offset float
Результат void

DrawImage() публичный Метод

public DrawImage ( Rect bounds, object texture, bool b ) : void
bounds UnityEngine.Rect
texture object
b bool
Результат void

DrawImage() публичный Метод

public DrawImage ( Rect bounds, string texture, bool b ) : void
bounds UnityEngine.Rect
texture string
b bool
Результат void

DrawInfo() публичный Метод

public DrawInfo ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
Результат void

DrawInspector() публичный Метод

public DrawInspector ( PropertyFieldViewModel d, GUIStyle labelStyle ) : void
d PropertyFieldViewModel
labelStyle UnityEngine.GUIStyle
Результат void

DrawInspector() публичный Метод

public DrawInspector ( Rect rect, PropertyFieldViewModel d, GUIStyle labelStyle ) : void
rect UnityEngine.Rect
d PropertyFieldViewModel
labelStyle UnityEngine.GUIStyle
Результат void

DrawLabel() публичный Метод

public DrawLabel ( Rect rect, string label, object style, DrawingAlignment alignment = DrawingAlignment.MiddleLeft ) : void
rect UnityEngine.Rect
label string
style object
alignment DrawingAlignment
Результат void

DrawLabelWithIcon() публичный Метод

public DrawLabelWithIcon ( Rect rect, string label, string iconName, object style, DrawingAlignment alignment = DrawingAlignment.MiddleLeft ) : void
rect UnityEngine.Rect
label string
iconName string
style object
alignment DrawingAlignment
Результат void

DrawLine() публичный Метод

public DrawLine ( Vector3 lines, Color color ) : void
lines Vector3
color Color
Результат void

DrawNodeHeader() публичный Метод

public DrawNodeHeader ( Rect boxRect, object backgroundStyle, bool isCollapsed, float scale, object image ) : void
boxRect UnityEngine.Rect
backgroundStyle object
isCollapsed bool
scale float
image object
Результат void

DrawPolyLine() публичный Метод

public DrawPolyLine ( Vector2 lines, Color color ) : void
lines Vector2
color Color
Результат void

DrawPropertyField() публичный Метод

public DrawPropertyField ( PropertyFieldViewModel fieldViewModel, float scale ) : void
fieldViewModel PropertyFieldViewModel
scale float
Результат void

DrawPropertyField() публичный Метод

public DrawPropertyField ( Rect r, PropertyFieldViewModel fieldViewModel, float scale ) : void
r UnityEngine.Rect
fieldViewModel PropertyFieldViewModel
scale float
Результат void

DrawRect() публичный Метод

public DrawRect ( Rect boundsRect, Color color ) : void
boundsRect UnityEngine.Rect
color Color
Результат void

DrawStretchBox() публичный Метод

public DrawStretchBox ( Rect scale, object nodeBackground, Rect offset ) : void
scale UnityEngine.Rect
nodeBackground object
offset UnityEngine.Rect
Результат void

DrawStretchBox() публичный Метод

public DrawStretchBox ( Rect scale, object nodeBackground, float offset ) : void
scale UnityEngine.Rect
nodeBackground object
offset float
Результат void

DrawTextbox() публичный Метод

public DrawTextbox ( string id, Rect rect, string value, object itemTextEditingStyle, bool>.Action valueChangedAction ) : void
id string
rect UnityEngine.Rect
value string
itemTextEditingStyle object
valueChangedAction bool>.Action
Результат void

DrawWarning() публичный Метод

public DrawWarning ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
Результат void

DrawingComplete() публичный Метод

public DrawingComplete ( ) : void
Результат void

DrawingStarted() публичный Метод

public DrawingStarted ( ) : void
Результат void

EnableInput() публичный Метод

public EnableInput ( ) : void
Результат void

EndRender() публичный Метод

public EndRender ( ) : void
Результат void

GetTooltip() публичный Метод

public GetTooltip ( ) : string
Результат string

SetTooltipForRect() публичный Метод

public SetTooltipForRect ( Rect rect, string tooltip ) : void
rect UnityEngine.Rect
tooltip string
Результат void

Описание свойств

WhiteLabels публичное статическое свойство

public static bool WhiteLabels
Результат bool