PopupFrame.anchor

Set a new rectangular anchor.

The popup is used to specify the popup's position. The popup may appear below the anchor, above, next to it, or it may cover the anchor. The exact behavior depends on the OverlayIO system drawing the frame. Usually the direction is covered by the layout node property.

For backwards compatibility, to getting the rectangular anchor is currently done using getAnchor.

  1. inout(Vector2) anchor()
  2. Rectangle anchor(Rectangle value)
    class PopupFrame
    nothrow
    Rectangle
    anchor
    (
    Rectangle value
    )

Parameters

value Rectangle

Anchor to set.

Return Value

Type: Rectangle

Newly set anchor; same as passed in.

See Also

getAnchor to get the current anchor value. fluid.io.overlay for information about how overlays and popups work in Fluid.

Meta