pub struct HingeConfigBuilder { /* private fields */ }Expand description
Builder for HingeConfig.
Implementations§
Source§impl HingeConfigBuilder
impl HingeConfigBuilder
Sourcepub fn rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
pub fn rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
A rectangle represent hinge
Sourcepub fn content_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
pub fn content_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
The content box highlight fill color (default: a dark color).
Sourcepub fn outline_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
pub fn outline_color<VALUE: Into<Rgba>>(&mut self, value: VALUE) -> &mut Self
The content box highlight outline color (default: transparent).
Sourcepub fn build(&self) -> Result<HingeConfig, HingeConfigBuilderError>
pub fn build(&self) -> Result<HingeConfig, HingeConfigBuilderError>
Trait Implementations§
Source§impl Clone for HingeConfigBuilder
impl Clone for HingeConfigBuilder
Source§fn clone(&self) -> HingeConfigBuilder
fn clone(&self) -> HingeConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HingeConfigBuilder
impl RefUnwindSafe for HingeConfigBuilder
impl Send for HingeConfigBuilder
impl Sync for HingeConfigBuilder
impl Unpin for HingeConfigBuilder
impl UnsafeUnpin for HingeConfigBuilder
impl UnwindSafe for HingeConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more