示例#1
0
 public static Rect ClipToWindow(Rect absoluteRect)
 {
     return(GUIClip.ClipToWindow_Rect(absoluteRect));
 }
示例#2
0
 public static Vector2 GUIToScreenPoint(Vector2 guiPoint)
 {
     return(GUIClip.Unclip(guiPoint) + GUIUtility.s_EditorScreenPointOffset);
 }
示例#3
0
 // Convert a point from GUI position to screen space.
 public static Vector2 GUIToScreenPoint(Vector2 guiPoint)
 {
     return(InternalWindowToScreenPoint(GUIClip.UnclipToWindow(guiPoint)));
 }
示例#4
0
 public static Rect Unclip(Rect rect)
 {
     GUIClip.Unclip_Rect(ref rect);
     return(rect);
 }
示例#5
0
 public static Rect Clip(Rect absoluteRect)
 {
     GUIClip.Internal_Clip_Rect(ref absoluteRect);
     return(absoluteRect);
 }
示例#6
0
 internal static void Internal_PushParentClip(Matrix4x4 objectTransform, Rect clipRect)
 {
     GUIClip.INTERNAL_CALL_Internal_PushParentClip(ref objectTransform, ref clipRect);
 }
示例#7
0
 internal static void Pop()
 {
     GUIClip.Internal_Pop();
 }
示例#8
0
 public static Rect UnclipToWindow(Rect rect)
 {
     GUIClip.UnclipToWindow_Rect(ref rect);
     return(rect);
 }
示例#9
0
 public static Vector2 ClipToWindow(Vector2 absolutePos)
 {
     GUIClip.ClipToWindow_Vector2(ref absolutePos);
     return(absolutePos);
 }
示例#10
0
 // Convert a point from screen space to GUI position.
 public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
 {
     return(GUIClip.ClipToWindow(screenPoint) - s_EditorScreenPointOffset);
 }
示例#11
0
 internal static void SetTransform(Matrix4x4 clipTransform, Matrix4x4 objectTransform, Rect clipRect)
 {
     GUIClip.INTERNAL_CALL_SetTransform(ref clipTransform, ref objectTransform, ref clipRect);
 }
示例#12
0
 // Convert a point from GUI position to screen space.
 public static Vector2 GUIToScreenPoint(Vector2 guiPoint)
 {
     return(GUIClip.UnclipToWindow(guiPoint) + s_EditorScreenPointOffset);
 }
示例#13
0
 internal static void Internal_Push(Rect screenRect, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUIClip.Internal_Push_Injected(ref screenRect, ref scrollOffset, ref renderOffset, resetOffset);
 }
示例#14
0
 public static Vector2 GetAbsoluteMousePosition()
 {
     return(GUIClip.Internal_GetAbsoluteMousePosition());
 }
示例#15
0
 private static void ClipToWindow_Rect(ref Rect absoluteRect)
 {
     GUIClip.INTERNAL_CALL_ClipToWindow_Rect(ref absoluteRect);
 }
示例#16
0
 public static Rect ClipToWindow(Rect absoluteRect)
 {
     GUIClip.ClipToWindow_Rect(ref absoluteRect);
     return(absoluteRect);
 }
示例#17
0
 internal static void SetMatrix(Matrix4x4 m)
 {
     GUIClip.INTERNAL_CALL_SetMatrix(ref m);
 }
示例#18
0
 internal static void Internal_Push(Rect screenRect, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUIClip.INTERNAL_CALL_Internal_Push(ref screenRect, ref scrollOffset, ref renderOffset, resetOffset);
 }
示例#19
0
 internal static void Push(Rect screenRect, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
 {
     GUIClip.Internal_Push(screenRect, scrollOffset, renderOffset, resetOffset);
 }
示例#20
0
 private static void Internal_Clip_Rect(ref Rect absoluteRect)
 {
     GUIClip.INTERNAL_CALL_Internal_Clip_Rect(ref absoluteRect);
 }
示例#21
0
 public static Vector2 Unclip(Vector2 pos)
 {
     GUIClip.Unclip_Vector2(ref pos);
     return(pos);
 }
示例#22
0
 public ParentClipScope(Matrix4x4 objectTransform, Rect clipRect)
 {
     this.m_Disposed = false;
     GUIClip.Internal_PushParentClip(objectTransform, clipRect);
 }
示例#23
0
 public static Vector2 Clip(Vector2 absolutePos)
 {
     GUIClip.Clip_Vector2(ref absolutePos);
     return(absolutePos);
 }
示例#24
0
 private static void UnclipToWindow_Vector2(ref Vector2 pos)
 {
     GUIClip.INTERNAL_CALL_UnclipToWindow_Vector2(ref pos);
 }
示例#25
0
 public static Vector2 UnclipToWindow(Vector2 pos)
 {
     GUIClip.UnclipToWindow_Vector2(ref pos);
     return(pos);
 }
示例#26
0
 private static void UnclipToWindow_Rect(ref Rect rect)
 {
     GUIClip.INTERNAL_CALL_UnclipToWindow_Rect(ref rect);
 }
示例#27
0
 public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
 {
     return(GUIClip.Clip(screenPoint) - GUIUtility.s_EditorScreenPointOffset);
 }
示例#28
0
 private static void ClipToWindow_Vector2(ref Vector2 absolutePos)
 {
     GUIClip.INTERNAL_CALL_ClipToWindow_Vector2(ref absolutePos);
 }
示例#29
0
 // Convert a point from screen space to GUI position.
 public static Vector2 ScreenToGUIPoint(Vector2 screenPoint)
 {
     return(GUIClip.ClipToWindow(InternalScreenToWindowPoint(screenPoint)));
 }
示例#30
0
 public static Vector2 ClipToWindow(Vector2 absolutePos)
 {
     return(GUIClip.ClipToWindow_Vector2(absolutePos));
 }