Namespace: | Sirenix.OdinInspector.Editor.Internal |
Assembly: | Sirenix.OdinInspector.Editor |
public class OdinGUIScrollView
public OdinGUIScrollView(int capacity, int? referenceCapacity = default(int? ), bool adjustViewForVerticalScrollBar = true)
System.Int32 | capacity | |
System.Nullable<System.Int32> | referenceCapacity | |
System.Boolean | adjustViewForVerticalScrollBar |
public Rect Bounds
public float Indentation
public Rect InteractRect
public const float SCROLL_BAR_SIZE = 12F
public Rect ViewRect
public bool IsBeyondAnyBounds { get; }
public bool IsBeyondBounds { get; }
public bool IsBeyondHorizontalBounds { get; }
public bool IsBeyondVerticalBounds { get; }
public bool IsDraggingHorizontalScrollBar { get; }
public bool IsDraggingMouse { get; }
public bool IsDraggingVerticalScrollBar { get; }
public int Length { get; }
public Vector2 Position { get; set; }
public float PositionX { get; set; }
public float PositionY { get; set; }
public int ReferencedAmount { get; }
public void AllocateRect(float height, object reference = null)
System.Single | height | |
System.Object | reference |
public void BeginAllocations()
public void BeginClip(Rect? clipRect = default(Rect? ), Vector2? offset = default(Vector2? ), bool ignoreScrollX = false, bool ignoreScrollY = false)
System.Nullable<UnityEngine.Rect> | clipRect | |
System.Nullable<UnityEngine.Vector2> | offset | |
System.Boolean | ignoreScrollX | |
System.Boolean | ignoreScrollY |
public void BeginScrollView(Vector2? offset = default(Vector2? ), Vector2? addViewSize = default(Vector2? ), float scrollSpeed = 36F)
System.Nullable<UnityEngine.Vector2> | offset | |
System.Nullable<UnityEngine.Vector2> | addViewSize | |
System.Single | scrollSpeed |
public void EndAllocations()
public void EndClip()
public void EndScrollView()
public Rect GetClipRect()
UnityEngine.Rect |
public object GetReferencedObject(int index)
System.Int32 | index |
System.Object |
public Rect GetViewClipRect()
UnityEngine.Rect |
public OdinGUIScrollView.VisibleItems GetVisibleItems()
OdinGUIScrollView.VisibleItems |
public bool HandleMiddleMouseDrag(bool inverted, bool useEvents = false, float speed = 1F)
System.Boolean | inverted | |
System.Boolean | useEvents | |
System.Single | speed |
System.Boolean |
public void ReallocateRect(int index, float height, object reference = null)
System.Int32 | index | |
System.Single | height | |
System.Object | reference |
public void Resize(int capacity, int? referenceCapacity = default(int? ))
System.Int32 | capacity | |
System.Nullable<System.Int32> | referenceCapacity |
public void ResizeToFit()
public static void ScrollBackground(Rect position, bool isVertical)
UnityEngine.Rect | position | |
System.Boolean | isVertical |
public static bool ScrollButton(Rect position, bool isDragging)
UnityEngine.Rect | position | |
System.Boolean | isDragging |
System.Boolean |
public void ScrollTo(float speed, float xPosition = NaNF, float yPosition = NaNF, Easing easing = Easing.Linear, bool waitUntilDone = true)
System.Single | speed | |
System.Single | xPosition | |
System.Single | yPosition | |
Easing | easing | |
System.Boolean | waitUntilDone |
public void ScrollTo(Vector2 position, float speed, Easing easing = Easing.Linear, bool waitUntilDone = true)
UnityEngine.Vector2 | position | |
System.Single | speed | |
Easing | easing | |
System.Boolean | waitUntilDone |
public void SetBounds(Rect bounds, float viewWidth = NaNF)
UnityEngine.Rect | bounds | |
System.Single | viewWidth |
public void SetBoundsForCurrentAllocations(Rect bounds, float viewWidth = NaNF)
UnityEngine.Rect | bounds | |
System.Single | viewWidth |
public void Space(float amount)
System.Single | amount |