pub fn render(&mut self, state: &LayoutState, [width, height]: [u32; 2]) -> Option<(f32, f32)> {
        if width != self.frame_buffer.width() || height != self.frame_buffer.height() {
            self.frame_buffer = Pixmap::new(width, height).unwrap();
        }

        self.renderer.render(
            state,
            self.frame_buffer.data_mut(),
            [width, height],
            width,
            false,
        )
    }
/// Renders the layout state provided with the chosen resolution. It may
/// detect that the layout got resized. In that case it returns the new
/// ideal size. This is just a hint and can be ignored entirely. The image
/// is always rendered with the resolution provided.
Renders the layout state provided with the chosen resolution. It may
detect that the layout got resized. In that case it returns the new
ideal size. This is just a hint and can be ignored entirely. The image
is always rendered with the resolution provided.
Renders the layout state provided with the chosen resolution . It may detect that the layout got resized . In that case it returns the new ideal size . This is just a hint and can be ignored entirely . The image is always rendered with the resolution provided .
pub fn render(&mut self, state: &LayoutState, [width, height]: [u32; 2]) -> Option<(f32, f32)> {
        if width != self.frame_buffer.width() || height != self.frame_buffer.height() {
            self.frame_buffer = Pixmap::new(width, height).unwrap();
        }
        self.renderer.render(
            state,
            self.frame_buffer.data_mut(),
            [width, height],
            width,
            false,
        )
    }
pub fn render ( & mut self , state : & LayoutState , [ width , height ] : [ u32 ; 2 ] ) -> Option < ( f32 , f32 ) > { if width != self . frame_buffer . width ( ) || height != self . frame_buffer . height ( ) { self . frame_buffer = Pixmap :: new ( width , height ) . unwrap ( ) ; } self . renderer . render ( state , self . frame_buffer . data_mut ( ) , [ width , height ] , width , false , ) }
Renders the layout state provided with the chosen resolution.
Renders the layout state provided with the chosen resolution .
&mut self
state
[u32; 2]
&mut self
state
[u32; 2]