Skip to main content

gpu_info_default_pos

Function gpu_info_default_pos 

Source
pub(crate) fn gpu_info_default_pos(ctx: &Context) -> Pos2
Expand description

Where the GPU-info panel opens when no position was carried over.

Like the selector, it is seeded by the corner it belongs in — here the bottom-left, one overlay margin in — so that corner stays put as the content decides the panel’s size; a panel the user has dragged is carried by its whole rectangle, which a rebuild restores exactly.