Trait glib::ParamSpecBuilderExt

source ·
pub trait ParamSpecBuilderExt<'a>: Sized {
Show 15 methods // Required 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; // Provided methods 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§

source

fn set_nick(&mut self, nick: Option<&'a str>)

Implementation detail.

source

fn set_blurb(&mut self, blurb: Option<&'a str>)

Implementation detail.

source

fn set_flags(&mut self, flags: ParamFlags)

Implementation detail.

source

fn current_flags(&self) -> ParamFlags

Implementation detail.

Provided Methods§

source

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 blurb(self, blurb: &'a str) -> Self

Default: None

source

fn flags(self, flags: ParamFlags) -> Self

Default: glib::ParamFlags::READWRITE

source

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

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

source

fn readwrite(self) -> Self

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

source

fn construct(self) -> Self

Mark the property as construct

source

fn construct_only(self) -> Self

Mark the property as construct only

source

fn lax_validation(self) -> Self

Mark the property as lax validation

source

fn explicit_notify(self) -> Self

Mark the property as explicit notify

source

fn deprecated(self) -> Self

Mark the property as deprecated

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecBooleanBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecCharBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecDoubleBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecFloatBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecGTypeBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecInt64Builder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecIntBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecLongBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecParamBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecPointerBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecStringBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecUCharBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecUInt64Builder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecUIntBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecULongBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecUnicharBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecValueArrayBuilder<'a>

source§

impl<'a> ParamSpecBuilderExt<'a> for ParamSpecVariantBuilder<'a>

source§

impl<'a, T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32>> ParamSpecBuilderExt<'a> for ParamSpecEnumBuilder<'a, T>

source§

impl<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>> ParamSpecBuilderExt<'a> for ParamSpecFlagsBuilder<'a, T>

source§

impl<'a, T: StaticType> ParamSpecBuilderExt<'a> for ParamSpecBoxedBuilder<'a, T>

source§

impl<'a, T: StaticType> ParamSpecBuilderExt<'a> for ParamSpecObjectBuilder<'a, T>