Skip to main content

parts

Function parts 

Source
pub fn parts<R>(
    ui: &mut Ui,
    name: &str,
    owner: Id,
    add: impl FnOnce(&mut Ui) -> R,
) -> R
Expand description

Draws add as the parts of the widget owner (a graph node’s chevron, ports and sliders), inside a roving group: Tab coming into the group lands on the widget, not on its parts.

  • Enter on owner goes into its parts, on the first.
  • Tab and Shift+Tab go round them, from the last to the first.
  • Escape goes back to owner.

Name each widget’s parts apart. It needs the focus plugin.