class

Egui::Areas

Inherits Reference < Object

egui Areas (memory/area.rs + layers): where floating windows sit and in which order they stack. Positions persist across frames even when the window is not shown (that's what makes windows draggable).

Constructors

Instance methods

bring_to_top(layer : LayerId) : Nil
Source
move_by(id : Id, delta : Vec2) : Nil
Source
order
Source
pos_for(id : Id, default : Pos2) : Pos2
Source
set_pos(id : Id, pos : Pos2) : Nil
Source
user_moved?(id : Id) : Bool

Has the user ever dragged this window away? Until then the owner may keep re-centering it (embedded windows re-center on their measured size); after a drag the stored position wins.

Source