cosmic::widget::button

Function layout

source
pub fn layout<Renderer>(
    renderer: &Renderer,
    limits: &Limits,
    width: Length,
    height: Length,
    padding: Padding,
    layout_content: impl FnOnce(&Renderer, &Limits) -> Node,
) -> Node
Expand description

Computes the layout of a Button.