Struct gtk::PlacesSidebar
source · [−]pub struct PlacesSidebar(_, _);Implementations
sourceimpl PlacesSidebar
impl PlacesSidebar
pub fn new() -> PlacesSidebar
pub fn add_shortcut<P: IsA<File>>(&self, location: &P)
pub fn get_local_only(&self) -> bool
pub fn get_location(&self) -> Option<File>
pub fn get_nth_bookmark(&self, n: i32) -> Option<File>
pub fn get_open_flags(&self) -> PlacesOpenFlags
pub fn get_show_connect_to_server(&self) -> bool
👎Deprecated
pub fn get_show_desktop(&self) -> bool
pub fn get_show_enter_location(&self) -> bool
pub fn get_show_other_locations(&self) -> bool
pub fn get_show_recent(&self) -> bool
pub fn get_show_trash(&self) -> bool
pub fn list_shortcuts(&self) -> Vec<File>
pub fn remove_shortcut<P: IsA<File>>(&self, location: &P)
pub fn set_drop_targets_visible(&self, visible: bool, context: &DragContext)
pub fn set_local_only(&self, local_only: bool)
pub fn set_location<P: IsA<File>>(&self, location: Option<&P>)
pub fn set_open_flags(&self, flags: PlacesOpenFlags)
pub fn set_show_connect_to_server(&self, show_connect_to_server: bool)
👎Deprecated
pub fn set_show_desktop(&self, show_desktop: bool)
pub fn set_show_enter_location(&self, show_enter_location: bool)
pub fn set_show_other_locations(&self, show_other_locations: bool)
pub fn set_show_recent(&self, show_recent: bool)
pub fn set_show_trash(&self, show_trash: bool)
pub fn get_property_populate_all(&self) -> bool
pub fn set_property_populate_all(&self, populate_all: bool)
pub fn get_property_show_other_locations(&self) -> bool
pub fn set_property_show_other_locations(&self, show_other_locations: bool)
pub fn get_property_show_recent(&self) -> bool
pub fn set_property_show_recent(&self, show_recent: bool)
pub fn get_property_show_trash(&self) -> bool
pub fn set_property_show_trash(&self, show_trash: bool)
pub fn connect_drag_action_ask<F: Fn(&PlacesSidebar, i32) -> i32 + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_mount<F: Fn(&PlacesSidebar, &MountOperation) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_open_location<F: Fn(&PlacesSidebar, &File, PlacesOpenFlags) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_show_connect_to_server<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated
pub fn connect_show_enter_location<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_show_error_message<F: Fn(&PlacesSidebar, &str, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_show_other_locations<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated
pub fn connect_show_other_locations_with_flags<F: Fn(&PlacesSidebar, PlacesOpenFlags) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_unmount<F: Fn(&PlacesSidebar, &MountOperation) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_local_only_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_location_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_open_flags_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_populate_all_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_connect_to_server_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_desktop_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_enter_location_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_other_locations_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_recent_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_property_show_trash_notify<F: Fn(&PlacesSidebar) + 'static>(
&self,
f: F
) -> SignalHandlerId
Trait Implementations
sourceimpl Clone for PlacesSidebar
impl Clone for PlacesSidebar
sourcefn clone(&self) -> PlacesSidebar
fn clone(&self) -> PlacesSidebar
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PlacesSidebar
impl Debug for PlacesSidebar
sourceimpl Default for PlacesSidebar
impl Default for PlacesSidebar
sourceimpl Display for PlacesSidebar
impl Display for PlacesSidebar
sourceimpl Hash for PlacesSidebar
impl Hash for PlacesSidebar
sourceimpl Ord for PlacesSidebar
impl Ord for PlacesSidebar
sourcefn cmp(&self, other: &PlacesSidebar) -> Ordering
fn cmp(&self, other: &PlacesSidebar) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialEq<T> for PlacesSidebar
impl<T: ObjectType> PartialEq<T> for PlacesSidebar
sourceimpl<T: ObjectType> PartialOrd<T> for PlacesSidebar
impl<T: ObjectType> PartialOrd<T> for PlacesSidebar
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 PlacesSidebar
impl StaticType for PlacesSidebar
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for PlacesSidebar
impl IsA<Bin> for PlacesSidebar
impl IsA<Buildable> for PlacesSidebar
impl IsA<Container> for PlacesSidebar
impl IsA<ScrolledWindow> for PlacesSidebar
impl IsA<Widget> for PlacesSidebar
Auto Trait Implementations
impl RefUnwindSafe for PlacesSidebar
impl !Send for PlacesSidebar
impl !Sync for PlacesSidebar
impl Unpin for PlacesSidebar
impl UnwindSafe for PlacesSidebar
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: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moresourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
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: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
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 moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true if the object is an instance of (can be cast to) T.