Class: Tuile::Component::Overlay::Centered
- Inherits:
-
Data
- Object
- Data
- Tuile::Component::Overlay::Centered
- Includes:
- Placement
- Defined in:
- lib/tuile/component/overlay.rb,
sig/tuile.rbs
Overview
Centers the overlay on the screen at the size it declares (#declared_size_in) — Popup's default.
Instance Method Summary collapse
-
#anchor ⇒ Component, ...
What this placement hangs off, re-read on every pass — see the Anchors section above.
-
#rect_for(overlay, screen_size, _anchor_rect) ⇒ Rect
@param
overlay.
Instance Method Details
#anchor ⇒ Component, ...
What this placement hangs off, re-read on every pass — see the Anchors section above.
@return — nil, the default, is not anchored.
7270 |
# File 'sig/tuile.rbs', line 7270
def anchor: () -> (Component | Rect)?
|