Skip to main content

EN_setcontrolenabled

Function EN_setcontrolenabled 

Source
pub unsafe extern "C" fn EN_setcontrolenabled(
    ph: EN_Project,
    index: c_int,
    enabled: c_int,
) -> c_int
Expand description

@brief Sets the enabled status of a simple control. @param ph an EPANET project handle. @param index the control’s index (starting from 1). @param enabled EN_TRUE (= 1) sets the control to enabled, EN_FALSE (= 0) sets it to disabled. @return an error code.