Class AnchorPopup<T>
Base class for Popup that can be anchored to another UI Element.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class AnchorPopup<T> : Popup<T> where T : AnchorPopup<T>
Type Parameters
| Name | Description |
|---|---|
| T | The sealed anchor popup class type. |
Constructors
| Name | Description |
|---|---|
| AnchorPopup(VisualElement, ApplicationContext, VisualElement, VisualElement) | Default constructor. |
Properties
| Name | Description |
|---|---|
| anchor | The popup's anchor. |
| arrowVisible |
|
| containerPadding | The padding in pixels, inside the popup panel's container. |
| crossOffset | The offset in pixels, in the direction of the secondary placement vector. |
| currentPlacement | The current placement.
|
| offset | The offset in pixels, in the direction of the primary placement vector. |
| outsideClickDismissEnabled |
|
| outsideClickStrategy | The strategy used to determine if the click is outside of the popup. |
| outsideScrollEnabled |
|
| placement | The desired placement.
|
| shouldFlip |
|
Methods
| Name | Description |
|---|---|
| AnimateViewIn() | Start the animation for this popup. |
| AnimateViewOut(DismissType) | Start the hide animation for this popup. |
| GetMovableElement() | Method which must return the visual element that needs to be moved, based on the anchor position and size. |
| HideView(DismissType) | Called when the popup's Handler has received a k_PopupDismiss message. |
| InvokeDismissedEventHandlers(DismissType) | Called when the popup has been dismissed. This method will invoke any handlers attached to the dismissed event. |
| RefreshPosition() | Recompute the position of the popup based on the anchor's position and size, but also others properties such as the offset, crossOffset, shouldFlip and placement. |
| SetAnchor(VisualElement) | Set a new value for the anchor property.
|
| SetArrowVisible(bool) | Set a new value for the arrowVisible property.
|
| SetContainerPadding(int) | Set a new value for the containerPadding property.
|
| SetCrossOffset(int) | Set a new value for the crossOffset property. |
| SetOffset(int) | Set a new value for the offset property. |
| SetOutsideClickDismiss(bool) | Activate the possibility to dismiss the popup by clicking outside of it. |
| SetOutsideClickStrategy(OutsideClickStrategy) | Set the strategy used to determine if the click is outside of the popup. |
| SetOutsideScrollEnabled(bool) | Activate the possibility to scroll outside of the popup. |
| SetPlacement(PopoverPlacement) | Set the preferred placement value.
|
| SetShouldFlip(bool) | Set a new value for the shouldFlip property.
|
| ShouldDismiss(DismissType) | Returns |
| ShowView() | Called when the popup's Handler has received a k_PopupShow message.
|