Struct BindingBuilder
pub struct BindingBuilder<'a, 'f, 't> { /* private fields */ }Expand description
Builder for object property bindings.
Implementations§
§impl<'a, 'f, 't> BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> BindingBuilder<'a, 'f, 't>
pub fn transform_from_with_values<F>(
self,
func: F,
) -> BindingBuilder<'a, 'f, 't>
pub fn transform_from_with_values<F>( self, func: F, ) -> BindingBuilder<'a, 'f, 't>
Transform changed property values from the target object to the source object with the given closure.
This function operates on glib::Values.
See Self::transform_from for a version which operates on concrete argument and return types.
pub fn transform_from<S, T, F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
pub fn transform_from<S, T, F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
Transform changed property values from the target object to the source object with the given closure.
This function operates on concrete argument and return types.
See Self::transform_from_with_values for a version which operates on glib::Values.
pub fn transform_to_with_values<F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
pub fn transform_to_with_values<F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
Transform changed property values from the source object to the target object with the given closure.
This function operates on glib::Values.
See Self::transform_to for a version which operates on concrete argument and return types.
pub fn transform_to<S, T, F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
pub fn transform_to<S, T, F>(self, func: F) -> BindingBuilder<'a, 'f, 't>
Transform changed property values from the source object to the target object with the given closure.
This function operates on concrete argument and return types.
See Self::transform_to_with_values for a version which operates on glib::Values.
pub fn flags(self, flags: BindingFlags) -> BindingBuilder<'a, 'f, 't>
pub fn flags(self, flags: BindingFlags) -> BindingBuilder<'a, 'f, 't>
Bind the properties with the given flags.
pub fn bidirectional(self) -> BindingBuilder<'a, 'f, 't>
pub fn bidirectional(self) -> BindingBuilder<'a, 'f, 't>
Set the binding flags to BIDIRECTIONAL.
pub fn sync_create(self) -> BindingBuilder<'a, 'f, 't>
pub fn sync_create(self) -> BindingBuilder<'a, 'f, 't>
Set the binding flags to SYNC_CREATE.
pub fn invert_boolean(self) -> BindingBuilder<'a, 'f, 't>
pub fn invert_boolean(self) -> BindingBuilder<'a, 'f, 't>
Set the binding flags to INVERT_BOOLEAN.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'f, 't> Freeze for BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> !RefUnwindSafe for BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> !Send for BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> !Sync for BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> Unpin for BindingBuilder<'a, 'f, 't>
impl<'a, 'f, 't> !UnwindSafe for BindingBuilder<'a, 'f, 't>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more