Struct nannou_conrod::Builder [−][src]
pub struct Builder<'a> { /* fields omitted */ }
Expand description
A type used for building a new Ui
.
Implementations
Specify the window on which the Ui will be instantiated.
By default, this is the currently focused window, aka the window returned via App::window_id.
Build the Ui
with the given dimensions.
By default, the Ui
will have the dimensions of the specified window.
Build the Ui
with the given theme.
By default, nannou uses conrod’s default theme.
Specify the path to the default font.
By default this is None
and the notosans::REGULAR_TTF
font will be used. If the
notosans
feature is disabled, then the default font will be the first font detected
within the assets/fonts
directory.
Fonts can also be specified manually after Ui
creation using the fonts_mut
method.
Specify the dimensions of the texture used to cache glyphs on the GPU.
By default this is equal to the framebuffer dimensions of the associated window at the time
of building the UI
.
If you notice any glitching of UI text, this may be due to exceeding the bounds of the texture used to cache glyphs. Try using this to specify a larger glyph cache size to fix this.
Build a Ui
with the specified parameters.
Returns None
if the window at the given Id
is closed or if the inner Renderer
returns
an error upon creation.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> !UnwindSafe for Builder<'a>
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more