Ejemplo n.º 1
0
 public void EndDrop(Vector2 end, EventModifiers modifiers = EventModifiers.None)
 {
     end = EventUtility.ConvertEditorWindowCoordsToGuiViewCoords(end);
     HandleMouseAutomationVisibility(end, true);
     if (EventUtility.EndDragAndDrop(window, end, modifiers))
     {
         window.RepaintImmediately();
     }
 }
Ejemplo n.º 2
0
 public void BeginDrag(Vector2 start, EventModifiers modifiers = EventModifiers.None)
 {
     start = EventUtility.ConvertEditorWindowCoordsToGuiViewCoords(start);
     HandleMouseAutomationVisibility(start);
     if (EventUtility.BeginDragAndDrop(window, start, modifiers))
     {
         window.RepaintImmediately();
     }
 }
Ejemplo n.º 3
0
        public void Click(Vector2 editorWindowPosition, EventModifiers modifiers = EventModifiers.None)
        {
            var GUIViewPosition = EventUtility.ConvertEditorWindowCoordsToGuiViewCoords(editorWindowPosition);

            HandleMouseAutomationVisibility(GUIViewPosition);
            if (EventUtility.Click(window, GUIViewPosition, modifiers))
            {
                window.RepaintImmediately();
            }
        }
Ejemplo n.º 4
0
 public void UpdateDragAndDrop(Vector2 pos, EventModifiers modifiers = EventModifiers.None)
 {
     pos = EventUtility.ConvertEditorWindowCoordsToGuiViewCoords(pos);
     HandleMouseAutomationVisibility(pos, true);
     if (EventUtility.UpdateDragAndDrop(window, pos, modifiers))
     {
         window.RepaintImmediately();
     }
     window.RepaintImmediately();
 }