pub struct ParamSpecFlagsBuilder<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> { /* private fields */ }
Implementations§
Source§impl<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> ParamSpecFlagsBuilder<'a, T>
impl<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> ParamSpecFlagsBuilder<'a, T>
Sourcepub fn default_value(self, value: T) -> Self
pub fn default_value(self, value: T) -> Self
Default: 0`
pub fn build(self) -> ParamSpec
Trait Implementations§
Source§impl<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> ParamSpecBuilderExt<'a> for ParamSpecFlagsBuilder<'a, T>
impl<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> ParamSpecBuilderExt<'a> for ParamSpecFlagsBuilder<'a, T>
Source§fn set_flags(&mut self, flags: ParamFlags)
fn set_flags(&mut self, flags: ParamFlags)
Implementation detail.
Source§fn current_flags(&self) -> ParamFlags
fn current_flags(&self) -> ParamFlags
Implementation detail.
Source§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.Source§fn flags(self, flags: ParamFlags) -> Self
fn flags(self, flags: ParamFlags) -> Self
Default:
glib::ParamFlags::READWRITE
Source§fn read_only(self) -> Self
fn read_only(self) -> Self
Mark the property as read only and drops the READWRITE flag set by default.
Source§fn write_only(self) -> Self
fn write_only(self) -> Self
Mark the property as write only and drops the READWRITE flag set by default.
Source§fn construct_only(self) -> Self
fn construct_only(self) -> Self
Mark the property as construct only
Source§fn lax_validation(self) -> Self
fn lax_validation(self) -> Self
Mark the property as lax validation
Source§fn explicit_notify(self) -> Self
fn explicit_notify(self) -> Self
Mark the property as explicit notify
Source§fn deprecated(self) -> Self
fn deprecated(self) -> Self
Mark the property as deprecated
Auto Trait Implementations§
impl<'a, T> Freeze for ParamSpecFlagsBuilder<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for ParamSpecFlagsBuilder<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ParamSpecFlagsBuilder<'a, T>where
T: Send,
impl<'a, T> Sync for ParamSpecFlagsBuilder<'a, T>where
T: Sync,
impl<'a, T> Unpin for ParamSpecFlagsBuilder<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for ParamSpecFlagsBuilder<'a, T>where
T: UnwindSafe,
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