pub fn new(
        window: BufferWindow,
        layers: &[usize],
        names: &[&str],
        layout_columns: Option<usize>,
    ) -> Self {
        LayerView {
            window,
            layers: layers.to_vec(),
            names: names.iter().map(|n| n.to_string()).collect(),
            layout_columns,
            scale: None,
        }
    }
/// Creates a new viewer for a selection of layers, or of all layers it `layers` is empty.
Creates a new viewer for a selection of layers, or of all layers it `layers` is empty.
Creates a new viewer for a selection of layers or of all layers it ` layers ` is empty .
pub fn new(
        window: BufferWindow,
        layers: &[usize],
        names: &[&str],
        layout_columns: Option<usize>,
    ) -> Self {
        LayerView {
            window,
            layers: layers.to_vec(),
            names: names.iter().map(|n| n.to_string()).collect(),
            layout_columns,
            scale: None,
        }
    }
pub fn new ( window : BufferWindow , layers : & [ usize ] , names : & [ & str ] , layout_columns : Option < usize > , ) -> Self { LayerView { window , layers : layers . to_vec ( ) , names : names . iter ( ) . map ( | n | n . to_string ( ) ) . collect ( ) , layout_columns , scale : None , } }
Creates a new viewer for a selection of layers, or of all layers it `layers` is empty.
Creates a new viewer for a selection of layers or of all layers it ` layers ` is empty .
window
BufferWindow
layers
&[usize]
names
&[&str]
layout_columns
Option<usize>
window
BufferWindow
layers
&[usize]
names
&[&str]
layout_columns
Option<usize>