ZOOM_TO_FIT_CMD

Static ZOOM_TO_FIT_CMD 

Source
pub static ZOOM_TO_FIT_CMD: Command
Expand description

Represents the zoom to fit action.

The content is scaled to fit the viewport, the equivalent to ImageFit::Contain.

§Parameter

This command accepts an optional ZoomToFitRequest parameter with configuration.

§Metadata

This command has the following default metadata:

metadatavalue
name "Zoom to Fit"
shortcut shortcut!(CTRL + '0')
shortcut_filter ShortcutFilter::FOCUSED | ShortcutFilter::CMD_ENABLED
icon wgt_fn!(|_| ICONS.get(["zoom-to-fit", "fit-screen"]))

Text metadata is localized.