Struct gtk::WidgetPath
source · #[repr(transparent)]pub struct WidgetPath { /* private fields */ }
Implementations§
source§impl WidgetPath
impl WidgetPath
sourcepub fn as_ptr(&self) -> *mut GtkWidgetPath
pub fn as_ptr(&self) -> *mut GtkWidgetPath
Return the inner pointer to the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow<'a>(
ptr: *const *const GtkWidgetPath
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GtkWidgetPath ) -> &'a Self
Borrows the underlying C value.
source§impl WidgetPath
impl WidgetPath
pub fn new() -> WidgetPath
pub fn append_for_widget(&self, widget: &impl IsA<Widget>) -> i32
pub fn append_type(&self, type_: Type) -> i32
pub fn append_with_siblings( &self, siblings: &WidgetPath, sibling_index: u32 ) -> i32
pub fn copy(&self) -> Option<WidgetPath>
pub fn object_type(&self) -> Type
pub fn has_parent(&self, type_: Type) -> bool
pub fn is_type(&self, type_: Type) -> bool
pub fn iter_add_class(&self, pos: i32, name: &str)
pub fn iter_clear_classes(&self, pos: i32)
pub fn iter_get_name(&self, pos: i32) -> Option<GString>
pub fn iter_get_object_name(&self, pos: i32) -> Option<GString>
pub fn iter_get_object_type(&self, pos: i32) -> Type
pub fn iter_get_sibling_index(&self, pos: i32) -> u32
pub fn iter_get_siblings(&self, pos: i32) -> Option<WidgetPath>
pub fn iter_get_state(&self, pos: i32) -> StateFlags
pub fn iter_has_class(&self, pos: i32, name: &str) -> bool
pub fn iter_has_name(&self, pos: i32, name: &str) -> bool
pub fn iter_has_qclass(&self, pos: i32, qname: Quark) -> bool
pub fn iter_has_qname(&self, pos: i32, qname: Quark) -> bool
pub fn iter_list_classes(&self, pos: i32) -> Vec<GString>
pub fn iter_remove_class(&self, pos: i32, name: &str)
pub fn iter_set_name(&self, pos: i32, name: &str)
pub fn iter_set_object_name(&self, pos: i32, name: Option<&str>)
pub fn iter_set_object_type(&self, pos: i32, type_: Type)
pub fn iter_set_state(&self, pos: i32, state: StateFlags)
pub fn length(&self) -> i32
pub fn prepend_type(&self, type_: Type)
pub fn to_str(&self) -> GString
Trait Implementations§
source§impl Clone for WidgetPath
impl Clone for WidgetPath
source§impl Debug for WidgetPath
impl Debug for WidgetPath
source§impl Default for WidgetPath
impl Default for WidgetPath
source§impl Display for WidgetPath
impl Display for WidgetPath
source§impl From<WidgetPath> for Value
impl From<WidgetPath> for Value
source§fn from(s: WidgetPath) -> Self
fn from(s: WidgetPath) -> Self
Converts to this type from the input type.
source§impl HasParamSpec for WidgetPath
impl HasParamSpec for WidgetPath
type ParamSpec = ParamSpecBoxed
§type SetValue = WidgetPath
type SetValue = WidgetPath
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str) -> ParamSpecBoxedBuilder<'_, WidgetPath>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for WidgetPath
impl Hash for WidgetPath
source§impl Ord for WidgetPath
impl Ord for WidgetPath
source§fn cmp(&self, other: &WidgetPath) -> Ordering
fn cmp(&self, other: &WidgetPath) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq<WidgetPath> for WidgetPath
impl PartialEq<WidgetPath> for WidgetPath
source§fn eq(&self, other: &WidgetPath) -> bool
fn eq(&self, other: &WidgetPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WidgetPath> for WidgetPath
impl PartialOrd<WidgetPath> for WidgetPath
source§fn partial_cmp(&self, other: &WidgetPath) -> Option<Ordering>
fn partial_cmp(&self, other: &WidgetPath) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl StaticType for WidgetPath
impl StaticType for WidgetPath
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for WidgetPath
impl StructuralEq for WidgetPath
impl StructuralPartialEq for WidgetPath
Auto Trait Implementations§
impl RefUnwindSafe for WidgetPath
impl !Send for WidgetPath
impl !Sync for WidgetPath
impl Unpin for WidgetPath
impl UnwindSafe for WidgetPath
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
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.