Skip to main content

draw

Function draw 

Source
fn draw(widget: &Box, cr: &Context, state: &Rc<RefCell<SurfaceState>>)
Expand description

Draw the current frame, if there is one.

Runs before the children, which is what puts the picture behind the webview. Deliberately forgiving: no frame, no GL, or a borrowed state all mean “draw nothing this pass” rather than an error — the webview then paints over an untouched background, which is exactly the pre-native appearance.