pub struct SelectionData(/* private fields */);
Implementations§
Source§impl SelectionData
impl SelectionData
pub fn get_data_type(&self) -> Atom
pub fn get_display(&self) -> Option<Display>
pub fn get_format(&self) -> i32
pub fn get_length(&self) -> i32
pub fn get_pixbuf(&self) -> Option<Pixbuf>
pub fn get_selection(&self) -> Atom
pub fn get_target(&self) -> Atom
pub fn get_targets(&self) -> Option<Vec<Atom>>
pub fn get_text(&self) -> Option<GString>
pub fn get_uris(&self) -> Vec<GString>
pub fn set(&self, type_: &Atom, format: i32, data: &[u8])
pub fn set_pixbuf(&self, pixbuf: &Pixbuf) -> bool
pub fn set_text(&self, str: &str) -> bool
pub fn set_uris(&self, uris: &[&str]) -> bool
pub fn targets_include_image(&self, writable: bool) -> bool
pub fn targets_include_rich_text<P: IsA<TextBuffer>>(&self, buffer: &P) -> bool
pub fn targets_include_text(&self) -> bool
pub fn targets_include_uri(&self) -> bool
Trait Implementations§
Source§impl Clone for SelectionData
impl Clone for SelectionData
Source§fn clone(&self) -> SelectionData
fn clone(&self) -> SelectionData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SelectionData
impl Debug for SelectionData
Source§impl Hash for SelectionData
impl Hash for SelectionData
Source§impl Ord for SelectionData
impl Ord for SelectionData
Source§fn cmp(&self, other: &SelectionData) -> Ordering
fn cmp(&self, other: &SelectionData) -> 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 for SelectionData
impl PartialEq for SelectionData
Source§impl PartialOrd for SelectionData
impl PartialOrd for SelectionData
Source§impl StaticType for SelectionData
impl StaticType for SelectionData
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for SelectionData
impl StructuralPartialEq for SelectionData
Auto Trait Implementations§
impl Freeze for SelectionData
impl RefUnwindSafe for SelectionData
impl !Send for SelectionData
impl !Sync for SelectionData
impl Unpin for SelectionData
impl UnwindSafe for SelectionData
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