Struct PositionResult
The position result data structure returned in ComputePosition(VisualElement, VisualElement, VisualElement, PositionOptions) utility method.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
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 |
---|---|
float |
marginLeft
The left margin, in pixels.
Declaration
public float marginLeft { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
marginTop
The top margin, in pixels.
Declaration
public float marginTop { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
tipBottom
The USS bottom value for the tip element.
Declaration
public float tipBottom { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
tipLeft
The USS left value for the tip element.
Declaration
public float tipLeft { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
tipRight
The USS right value for the tip element.
Declaration
public float tipRight { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
tipTop
The USS top value for the tip element.
Declaration
public float tipTop { readonly get; set; }
Property Value
Type | Description |
---|---|
float |
top
The Y Position from the top, in pixels.
Declaration
public float top { readonly get; set; }
Property Value
Type | Description |
---|---|
float |