Skip to main content

set_enabled

Function set_enabled 

Source
pub fn set_enabled(on: bool)
Expand description

Toggle the global snap-enable flag. Persists for the lifetime of the thread — typically wired to a UI checkbox (see the demo’s View > Window Snapping menu item) and to saved-state persistence so the user’s preference survives a relaunch.