pub struct RecentData { /* private fields */ }
Expand description
Meta-data to be passed to gtk_recent_manager_add_full() when registering a recently used resource.
GLib type: Inline allocated boxed type with stack copy semantics.
Implementations§
Source§impl RecentData
impl RecentData
pub fn as_ptr(&self) -> *mut GtkRecentData
Sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GtkRecentData) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GtkRecentData) -> &'a Self
Borrows the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut GtkRecentData,
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut GtkRecentData, ) -> &'a mut Self
Borrows the underlying C value mutably.
Source§impl RecentData
impl RecentData
pub fn new( display_name: Option<&str>, description: Option<&str>, mime_type: &str, app_name: &str, app_exec: &str, groups: &[&str], is_private: bool, ) -> Self
pub fn display_name(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
pub fn mime_type(&self) -> &str
pub fn app_name(&self) -> &str
pub fn app_exec(&self) -> &str
pub fn groups<'a>(&self) -> &'a [GStringPtr]
pub fn is_private(&self) -> bool
Trait Implementations§
Source§impl Clone for RecentData
impl Clone for RecentData
Auto Trait Implementations§
impl Freeze for RecentData
impl RefUnwindSafe for RecentData
impl !Send for RecentData
impl !Sync for RecentData
impl Unpin for RecentData
impl UnwindSafe for RecentData
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