Struct PositionResult
The position result data structure returned in ComputePosition(VisualElement, VisualElement, Panel, PopoverPlacement, Int32, Int32, Boolean, Boolean) utility method.
Inherited Members
Namespace: UnityEngine.Dt.App.UI
Syntax
public struct PositionResult
Properties
finalPlacement
The computed placement, that may differ from the desired one.
Declaration
public PopoverPlacement finalPlacement { readonly get; set; }
Property Value
Type | Description |
---|---|
PopoverPlacement |
left
The X Position from the left, in pixels.
Declaration
public float left { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
marginLeft
The left margin, in pixels.
Declaration
public float marginLeft { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
marginTop
The top margin, in pixels.
Declaration
public float marginTop { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
tipBottom
The USS bottom value for the tip element.
Declaration
public float tipBottom { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
tipLeft
The USS left value for the tip element.
Declaration
public float tipLeft { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
tipRight
The USS right value for the tip element.
Declaration
public float tipRight { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
tipTop
The USS top value for the tip element.
Declaration
public float tipTop { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |
top
The Y Position from the top, in pixels.
Declaration
public float top { readonly get; set; }
Property Value
Type | Description |
---|---|
Single |