Skip to main content

stamped_block

Function stamped_block 

Source
pub fn stamped_block(at: Pos2) -> Rect
Expand description

The box a block dropped on the canvas takes, anchored top-left at the drop point. A drop names one corner and a block needs two, so the extent is the one the document already gives a block nobody sized (TOP_BLOCK_DEFAULT_RECT) — deliberately small and fixed.