pub struct Pad(_, _);
Implementations
sourceimpl Pad
impl Pad
pub fn new<'a, P: Into<Option<&'a str>>>(name: P, direction: PadDirection) -> Pad
pub fn new_from_template<'a, P: Into<Option<&'a str>>>(
templ: &PadTemplate,
name: P
) -> Pad
sourceimpl Pad
impl Pad
pub fn new_from_static_template<'a, P: Into<Option<&'a str>>>(
templ: &StaticPadTemplate,
name: P
) -> Pad
Trait Implementations
sourceimpl Ord for Pad
impl Ord for Pad
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: IsA<Object>> PartialOrd<T> for Pad
impl<T: IsA<Object>> PartialOrd<T> for Pad
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl StaticType for Pad
impl StaticType for Pad
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Pad
impl IsA<Object> for Pad
impl IsA<Object> for Pad
impl IsA<Pad> for GhostPad
impl IsA<Pad> for ProxyPad
impl Send for Pad
impl Sync for Pad
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: IsA<Object>,
impl<T> Cast for Twhere
T: IsA<Object>,
sourcefn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
fn downcast<T>(self) -> Result<T, Self>where
Self: Sized + Downcast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
Self: Sized + Downcast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moresourcefn is<T>(&self) -> boolwhere
T: StaticType,
fn is<T>(&self) -> boolwhere
T: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.sourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: StaticType + UnsafeFrom<ObjectRef> + Wrapper,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresourceimpl<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
impl<Super, Sub> Downcast<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
sourcefn can_downcast(&self) -> bool
fn can_downcast(&self) -> bool
Checks if it’s possible to downcast to
T
. Read moresourcefn downcast_ref(&self) -> Option<&Sub>
fn downcast_ref(&self) -> Option<&Sub>
Tries to downcast to
&T
. Read moresourceunsafe fn downcast_unchecked(self) -> Sub
unsafe fn downcast_unchecked(self) -> Sub
Downcasts to
T
unconditionally. Read moresourceunsafe fn downcast_ref_unchecked(&self) -> &Sub
unsafe fn downcast_ref_unchecked(&self) -> &Sub
Downcasts to
&T
unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
impl<T> ObjectExt for Twhere
T: IsA<Object> + SetValue,
fn get_type(&self) -> Type
fn set_property<'a, N>(
&self,
property_name: N,
value: &dyn ToValue
) -> Result<(), BoolError>where
N: Into<&'a str>,
fn get_property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>where
N: Into<&'a str>,
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn disconnect(&self, handler_id: SignalHandlerId)
fn connect_notify<'a, P, F>(&self, name: P, f: F) -> SignalHandlerIdwhere
P: Into<Option<&'a str>>,
F: 'static + Fn(&T, &ParamSpec) + Send + Sync,
fn notify<'a, N>(&self, property_name: N)where
N: Into<&'a str>,
fn notify_by_pspec(&self, pspec: &ParamSpec)
fn has_property<'a, N>(
&self,
property_name: N,
type_: Option<Type>
) -> Result<(), BoolError>where
N: Into<&'a str>,
fn get_property_type<'a, N>(&self, property_name: N) -> Option<Type>where
N: Into<&'a str>,
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>where
N: Into<&'a str>,
fn list_properties(&self) -> Vec<ParamSpec, Global>
fn connect<'a, N, F>(
&self,
signal_name: N,
after: bool,
callback: F
) -> Result<SignalHandlerId, BoolError>where
N: Into<&'a str>,
F: 'static + Fn(&[Value]) -> Option<Value> + Send + Sync,
fn emit<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue]
) -> Result<Option<Value>, BoolError>where
N: Into<&'a str>,
fn downgrade(&self) -> WeakRef<T>
fn bind_property<'a, O, N, M>(
&'a self,
source_property: N,
target: &'a O,
target_property: M
) -> BindingBuilder<'a, T, O>where
O: IsA<Object>,
N: Into<&'a str>,
M: Into<&'a str>,
fn ref_count(&self) -> u32
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.