Guide API
Skip to main content

ov_set_state

Function ov_set_state 

Source
pub fn ov_set_state<L: OutlineViewer + ?Sized>(
    this: &mut L,
    flag: StateFlag,
    enable: bool,
    ctx: &mut Context<'_>,
)
Expand description

Apply a view-state flag change to an outline viewer.

Delegates to the concrete widget’s View method. In addition to flipping the flag, this function:

Concrete widgets that delegate View::set_state to this function (as Outline does) get the scroller-compatible show/hide behavior for free without duplicating it.