Skip to content

OverlayHostAware

Interface for widgets that dynamically calculate their position and layout within an overlay host bounds.

Overview

OverlayHostAware is a functional contract implemented by floating widgets (such as tooltips, context menus, popups, and windows) to dynamically arrange and constrain their layout inside an overlay host's boundaries.

Primary method: - arrangeInHost(RectView hostBounds): Recalculates position, offsets, and dimensions to prevent clipping off-screen.

API

OverlayHostAware::arrangeInHost(RectView)

Positions and arranges this floating widget within the given host boundaries.

Parameter Type Description
hostBounds RectView Available host rectangular boundary.