Struct druid::piet::cairo::glib::ParamSpecFloatBuilder
pub struct ParamSpecFloatBuilder<'a> { /* private fields */ }
Implementations§
§impl<'a> ParamSpecFloatBuilder<'a>
impl<'a> ParamSpecFloatBuilder<'a>
pub fn minimum(self, value: f32) -> ParamSpecFloatBuilder<'a>
pub fn minimum(self, value: f32) -> ParamSpecFloatBuilder<'a>
Default: <f32>::MIN
pub fn maximum(self, value: f32) -> ParamSpecFloatBuilder<'a>
pub fn maximum(self, value: f32) -> ParamSpecFloatBuilder<'a>
Default: <f32>::MAX
pub fn default_value(self, value: f32) -> ParamSpecFloatBuilder<'a>
pub fn default_value(self, value: f32) -> ParamSpecFloatBuilder<'a>
Default: <f32 as Default>::default()
pub fn build(self) -> ParamSpec
Trait Implementations§
§impl<'a> Default for ParamSpecFloatBuilder<'a>
impl<'a> Default for ParamSpecFloatBuilder<'a>
§fn default() -> ParamSpecFloatBuilder<'a>
fn default() -> ParamSpecFloatBuilder<'a>
Returns the “default value” for a type. Read more
§impl<'a> ParamSpecBuilderExt<'a> for ParamSpecFloatBuilder<'a>
impl<'a> ParamSpecBuilderExt<'a> for ParamSpecFloatBuilder<'a>
§fn set_flags(&mut self, flags: ParamFlags)
fn set_flags(&mut self, flags: ParamFlags)
Implementation detail.
§fn current_flags(&self) -> ParamFlags
fn current_flags(&self) -> ParamFlags
Implementation detail.
§fn nick(self, nick: &'a str) -> Self
fn nick(self, nick: &'a str) -> Self
By default, the nickname of its redirect target will be used if it has one.
Otherwise,
self.name
will be used.§fn flags(self, flags: ParamFlags) -> Self
fn flags(self, flags: ParamFlags) -> Self
Default:
glib::ParamFlags::READWRITE
§fn read_only(self) -> Self
fn read_only(self) -> Self
Mark the property as read only and drops the READWRITE flag set by default.
§fn write_only(self) -> Self
fn write_only(self) -> Self
Mark the property as write only and drops the READWRITE flag set by default.
§fn construct_only(self) -> Self
fn construct_only(self) -> Self
Mark the property as construct only
§fn lax_validation(self) -> Self
fn lax_validation(self) -> Self
Mark the property as lax validation
§fn explicit_notify(self) -> Self
fn explicit_notify(self) -> Self
Mark the property as explicit notify
§fn deprecated(self) -> Self
fn deprecated(self) -> Self
Mark the property as deprecated
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ParamSpecFloatBuilder<'a>
impl<'a> Send for ParamSpecFloatBuilder<'a>
impl<'a> Sync for ParamSpecFloatBuilder<'a>
impl<'a> Unpin for ParamSpecFloatBuilder<'a>
impl<'a> UnwindSafe for ParamSpecFloatBuilder<'a>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.