C# Class Invert.Core.GraphDesigner.Unity.UnityDrawer

Inheritance: IPlatformDrawer
Show file Open project: InvertGames/uFrame.Editor

Public Properties

Property Type Description
WhiteLabels bool

Public Methods

Method Description
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

Method Details

BeginRender() public method

public BeginRender ( object sender, MouseEvent mouseEvent ) : void
sender object
mouseEvent MouseEvent
return void

CalculateImageSize() public method

public CalculateImageSize ( string imageName ) : Vector2
imageName string
return Vector2

CalculateTextHeight() public method

public CalculateTextHeight ( string text, object styleObject, float width ) : float
text string
styleObject object
width float
return float

CalculateTextSize() public method

public CalculateTextSize ( string text, object styleObject ) : Vector2
text string
styleObject object
return Vector2

ClearTooltip() public method

public ClearTooltip ( ) : void
return void

DisableInput() public method

public DisableInput ( ) : void
return void

DoButton() public method

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
return void

DoButton() public method

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
return void

DoTabs() public method

public DoTabs ( Rect tabsRect, DesignerWindow designerWindow ) : void
tabsRect UnityEngine.Rect
designerWindow DesignerWindow
return void

DoToolbar() public method

public DoToolbar ( Rect toolbarTopRect, DesignerWindow designerWindow, ToolbarPosition position ) : void
toolbarTopRect UnityEngine.Rect
designerWindow DesignerWindow
position ToolbarPosition
return void

DrawBezier() public method

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
return void

DrawColumns() public method

public DrawColumns ( Rect rect ) : void
rect UnityEngine.Rect
return void

DrawColumns() public method

public DrawColumns ( Rect rect, float columnWidths ) : void
rect UnityEngine.Rect
columnWidths float
return void

DrawConnector() public method

public DrawConnector ( float scale, ConnectorViewModel viewModel ) : void
scale float
viewModel ConnectorViewModel
return void

DrawError() public method

public DrawError ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
return void

DrawExpandableBox() public method

public DrawExpandableBox ( Rect rect, object style, string text, RectOffset offset ) : void
rect UnityEngine.Rect
style object
text string
offset UnityEngine.RectOffset
return void

DrawExpandableBox() public method

public DrawExpandableBox ( Rect rect, object style, string text, float offset = 12 ) : void
rect UnityEngine.Rect
style object
text string
offset float
return void

DrawImage() public method

public DrawImage ( Rect bounds, object texture, bool b ) : void
bounds UnityEngine.Rect
texture object
b bool
return void

DrawImage() public method

public DrawImage ( Rect bounds, string texture, bool b ) : void
bounds UnityEngine.Rect
texture string
b bool
return void

DrawInfo() public method

public DrawInfo ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
return void

DrawInspector() public method

public DrawInspector ( PropertyFieldViewModel d, GUIStyle labelStyle ) : void
d PropertyFieldViewModel
labelStyle UnityEngine.GUIStyle
return void

DrawInspector() public method

public DrawInspector ( Rect rect, PropertyFieldViewModel d, GUIStyle labelStyle ) : void
rect UnityEngine.Rect
d PropertyFieldViewModel
labelStyle UnityEngine.GUIStyle
return void

DrawLabel() public method

public DrawLabel ( Rect rect, string label, object style, DrawingAlignment alignment = DrawingAlignment.MiddleLeft ) : void
rect UnityEngine.Rect
label string
style object
alignment DrawingAlignment
return void

DrawLabelWithIcon() public method

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
return void

DrawLine() public method

public DrawLine ( Vector3 lines, Color color ) : void
lines Vector3
color Color
return void

DrawNodeHeader() public method

public DrawNodeHeader ( Rect boxRect, object backgroundStyle, bool isCollapsed, float scale, object image ) : void
boxRect UnityEngine.Rect
backgroundStyle object
isCollapsed bool
scale float
image object
return void

DrawPolyLine() public method

public DrawPolyLine ( Vector2 lines, Color color ) : void
lines Vector2
color Color
return void

DrawPropertyField() public method

public DrawPropertyField ( PropertyFieldViewModel fieldViewModel, float scale ) : void
fieldViewModel PropertyFieldViewModel
scale float
return void

DrawPropertyField() public method

public DrawPropertyField ( Rect r, PropertyFieldViewModel fieldViewModel, float scale ) : void
r UnityEngine.Rect
fieldViewModel PropertyFieldViewModel
scale float
return void

DrawRect() public method

public DrawRect ( Rect boundsRect, Color color ) : void
boundsRect UnityEngine.Rect
color Color
return void

DrawStretchBox() public method

public DrawStretchBox ( Rect scale, object nodeBackground, Rect offset ) : void
scale UnityEngine.Rect
nodeBackground object
offset UnityEngine.Rect
return void

DrawStretchBox() public method

public DrawStretchBox ( Rect scale, object nodeBackground, float offset ) : void
scale UnityEngine.Rect
nodeBackground object
offset float
return void

DrawTextbox() public method

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
return void

DrawWarning() public method

public DrawWarning ( Rect rect, string key ) : void
rect UnityEngine.Rect
key string
return void

DrawingComplete() public method

public DrawingComplete ( ) : void
return void

DrawingStarted() public method

public DrawingStarted ( ) : void
return void

EnableInput() public method

public EnableInput ( ) : void
return void

EndRender() public method

public EndRender ( ) : void
return void

GetTooltip() public method

public GetTooltip ( ) : string
return string

SetTooltipForRect() public method

public SetTooltipForRect ( Rect rect, string tooltip ) : void
rect UnityEngine.Rect
tooltip string
return void

Property Details

WhiteLabels public static property

public static bool WhiteLabels
return bool