Struct gtk::SelectionData
source · #[repr(transparent)]pub struct SelectionData { /* private fields */ }
Implementations
sourceimpl SelectionData
impl SelectionData
pub fn as_ptr(&self) -> *mut GtkSelectionData
sourceimpl SelectionData
impl SelectionData
pub fn data_type(&self) -> Atom
pub fn display(&self) -> Option<Display>
pub fn format(&self) -> i32
pub fn length(&self) -> i32
pub fn pixbuf(&self) -> Option<Pixbuf>
pub fn selection(&self) -> Atom
pub fn target(&self) -> Atom
pub fn targets(&self) -> Option<Vec<Atom>>
pub fn text(&self) -> Option<GString>
pub fn 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(&self, buffer: &impl IsA<TextBuffer>) -> bool
pub fn targets_include_text(&self) -> bool
pub fn targets_include_uri(&self) -> bool
Trait Implementations
sourceimpl Clone for SelectionData
impl Clone for SelectionData
sourceimpl Debug for SelectionData
impl Debug for SelectionData
sourceimpl Hash for SelectionData
impl Hash for SelectionData
sourceimpl Ord for SelectionData
impl Ord for SelectionData
sourcefn cmp(&self, other: &SelectionData) -> Ordering
fn cmp(&self, other: &SelectionData) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SelectionData> for SelectionData
impl PartialEq<SelectionData> for SelectionData
sourcefn eq(&self, other: &SelectionData) -> bool
fn eq(&self, other: &SelectionData) -> bool
sourceimpl PartialOrd<SelectionData> for SelectionData
impl PartialOrd<SelectionData> for SelectionData
sourcefn partial_cmp(&self, other: &SelectionData) -> Option<Ordering>
fn partial_cmp(&self, other: &SelectionData) -> 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 SelectionData
impl StaticType for SelectionData
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for SelectionData
impl StructuralEq for SelectionData
impl StructuralPartialEq for SelectionData
Auto Trait Implementations
impl RefUnwindSafe for SelectionData
impl !Send for SelectionData
impl !Sync for SelectionData
impl Unpin for SelectionData
impl UnwindSafe for SelectionData
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> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.