Struct gtk4::RecentData
source · pub struct RecentData { /* private fields */ }
Expand description
Meta-data to be passed to gtk_recent_manager_add_full() when registering a recently used resource.
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