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