Class PreviewOverlayGuiTests
EditMode tests for CursorForHandle(PreviewQuad, PreviewHandle): proves the cursor now derives from
the element's own normalized local axes rather than the direction from the quad's centre to the handle
point, which used to make a wide element's corner cursors depend on its aspect ratio.
Inheritance
PreviewOverlayGuiTests
Assembly: Tests.Editor.dll
Syntax
public class PreviewOverlayGuiTests
Constructors
PreviewOverlayGuiTests()
Declaration
public PreviewOverlayGuiTests()
Methods
CursorForHandle_FortyFiveDegreeRotatedSquare_CornersAreAxisAligned(int, MouseCursor)
Declaration
public void CursorForHandle_FortyFiveDegreeRotatedSquare_CornersAreAxisAligned(int handleValue, MouseCursor expected)
Parameters
| Type |
Name |
Description |
| int |
handleValue |
|
| MouseCursor |
expected |
|
CursorForHandle_FortyFiveDegreeRotatedSquare_EdgesAreDiagonal(int, MouseCursor)
Declaration
public void CursorForHandle_FortyFiveDegreeRotatedSquare_EdgesAreDiagonal(int handleValue, MouseCursor expected)
Parameters
| Type |
Name |
Description |
| int |
handleValue |
|
| MouseCursor |
expected |
|
CursorForHandle_WideUnrotatedQuad_CornersAreDiagonal(int, MouseCursor)
Declaration
public void CursorForHandle_WideUnrotatedQuad_CornersAreDiagonal(int handleValue, MouseCursor expected)
Parameters
| Type |
Name |
Description |
| int |
handleValue |
|
| MouseCursor |
expected |
|
CursorForHandle_WideUnrotatedQuad_EdgesAreAxisAligned(int, MouseCursor)
Declaration
public void CursorForHandle_WideUnrotatedQuad_EdgesAreAxisAligned(int handleValue, MouseCursor expected)
Parameters
| Type |
Name |
Description |
| int |
handleValue |
|
| MouseCursor |
expected |
|