Struct gtk::WidgetPath
source · [−]#[repr(transparent)]pub struct WidgetPath { /* private fields */ }
Implementations
sourceimpl 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>
Available on crate feature
v3_20
only.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>)
Available on crate feature
v3_20
only.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
sourceimpl Clone for WidgetPath
impl Clone for WidgetPath
sourceimpl Debug for WidgetPath
impl Debug for WidgetPath
sourceimpl Default for WidgetPath
impl Default for WidgetPath
sourceimpl Display for WidgetPath
impl Display for WidgetPath
sourceimpl Hash for WidgetPath
impl Hash for WidgetPath
sourceimpl Ord for WidgetPath
impl Ord for WidgetPath
sourceimpl PartialEq<WidgetPath> for WidgetPath
impl PartialEq<WidgetPath> for WidgetPath
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &WidgetPath) -> bool
fn ne(&self, other: &WidgetPath) -> bool
This method tests for !=
.
sourceimpl PartialOrd<WidgetPath> for WidgetPath
impl PartialOrd<WidgetPath> for WidgetPath
sourcefn partial_cmp(&self, other: &WidgetPath) -> Option<Ordering>
fn partial_cmp(&self, other: &WidgetPath) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl StaticType for WidgetPath
impl StaticType for WidgetPath
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more