Module nannou::ui::utils[][src]

Expand description

Various utility functions used throughout Conrod.

Enums

A type returned by the iter_diff function.

Functions

Find the bounding rect for the given series of points.

Clamp a value between some range.

Convert degrees to radians.

Modulo float.

Compares every element yielded by both elems and new_elems in lock-step.

Compares two iterators to see if they yield the same thing.

Map a value from a given range to a new given range.

The modulo function.

Compare to PartialOrd values and return the max.

Compare to PartialOrd values and return the min.

Get value percentage between max and min.

Convert turns to radians.

Get a suitable string from the value, its max and the pixel range.

Adjust the value to the given percentage.

Add a and b.

Subtract b from a.

Returns Borrowed elems if elems contains the same elements as yielded by new_elems.