API ReferenceEditor
GraphicsViewclass
Constructors1
Showing 1 constructors
public GraphicsView(Editor.Widget parent = null)
| Parameter | Type | Description |
|---|---|---|
| parent = null | Widget | — |
No results match this filter.
Methods15
Showing 15 methods
public bool Capture(string path)
| Parameter | Type | Description |
|---|---|---|
| path | string | — |
Returns:
bool—public void DeleteAllItems()
Returns:
void—public Editor.GraphicsItem GetItemAt(Vector2 scenePosition)
| Parameter | Type | Description |
|---|---|---|
| scenePosition | Vector2 | — |
No results match this filter.
Properties17
Showing 17 properties
public bool Editor.GraphicsView.Antialiasing { get; set; }
Returns:
bool—public bool Editor.GraphicsView.BilinearFiltering { get; set; }
Returns:
bool—public Vector2 Editor.GraphicsView.Center { get; set; }
Where in the scene is the view currently centered.
public Editor.GraphicsView.DragTypes Editor.GraphicsView.DragType { get; set; }
What happens when the user drags the mouse. You generally want to toggle this in OnMouseDown to switch what happens with different mouse buttons.
public Editor.ScrollbarMode Editor.GraphicsView.HorizontalScrollbar { get; set; }
public System.Collections.Generic.IEnumerable`1<Editor.GraphicsItem> Editor.GraphicsView.Items { get; set; }
public float Editor.GraphicsView.MaxZoom { get; set; }
Returns:
float—public float Editor.GraphicsView.MinZoom { get; set; }
Returns:
float—public System.Action Editor.GraphicsView.OnSelectionChanged { get; set; }
Returns:
Action—public float Editor.GraphicsView.Rotation { get; set; }
Returns:
float—public Vector2 Editor.GraphicsView.Scale { get; set; }
public Sandbox.Rect Editor.GraphicsView.SceneRect { get; set; }
public System.Collections.Generic.IEnumerable`1<Editor.GraphicsItem> Editor.GraphicsView.SelectedItems { get; set; }
public Sandbox.Rect Editor.GraphicsView.SelectionRect { get; set; }
All items inside this rect will be selected
public bool Editor.GraphicsView.TextAntialiasing { get; set; }
Returns:
bool—public Editor.GraphicsView.ViewportAnchorType Editor.GraphicsView.TransformAnchor { get; set; }
public Editor.ScrollbarMode Editor.GraphicsView.VerticalScrollbar { get; set; }
No results match this filter.