[][src]Type Definition azul_core::callbacks::UpdateScreen

type UpdateScreen = Option<()>;

A callback function has to return if the screen should be updated after the function has run.

NOTE: This is currently a typedef for Option<()>, so that you can use the ? operator in callbacks (to simply not redraw if there is an error). This was an enum previously, but since Rust doesn't have a "custom try" operator, this led to a lot of usability problems. In the future, this might change back to an enum therefore the constants "Redraw" and "DontRedraw" are not capitalized, to minimize breakage.