pub trait ParamSpecBuilderExt<'a>: Sized {
Show 15 methods fn set_nick(&mut self, nick: Option<&'a str>); fn set_blurb(&mut self, blurb: Option<&'a str>); fn set_flags(&mut self, flags: ParamFlags); fn current_flags(&self) -> ParamFlags; fn nick(self, nick: &'a str) -> Self { ... } fn blurb(self, blurb: &'a str) -> Self { ... } fn flags(self, flags: ParamFlags) -> Self { ... } fn read_only(self) -> Self { ... } fn write_only(self) -> Self { ... } fn readwrite(self) -> Self { ... } fn construct(self) -> Self { ... } fn construct_only(self) -> Self { ... } fn lax_validation(self) -> Self { ... } fn explicit_notify(self) -> Self { ... } fn deprecated(self) -> Self { ... }
}
Expand description

A trait implemented by the various ParamSpec builder types.

It is useful for providing a builder pattern for ParamSpec defined outside of GLib like in GStreamer or GTK 4.

Required Methods§

Implementation detail.

Implementation detail.

Implementation detail.

Implementation detail.

Provided Methods§

By default, the nickname of its redirect target will be used if it has one. Otherwise, self.name will be used.

Default: None

Default: glib::ParamFlags::READWRITE

Mark the property as read only and drops the READWRITE flag set by default.

Mark the property as write only and drops the READWRITE flag set by default.

Mark the property as readwrite, it is the default value.

Mark the property as construct

Mark the property as construct only

Mark the property as lax validation

Mark the property as explicit notify

Mark the property as deprecated

Implementors§