Struct gtk::SelectionData
source · [−]#[repr(transparent)]pub struct SelectionData { /* private fields */ }
Implementations
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
sourceimpl PartialEq<SelectionData> for SelectionData
impl PartialEq<SelectionData> for SelectionData
sourcefn eq(&self, other: &SelectionData) -> bool
fn eq(&self, other: &SelectionData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SelectionData) -> bool
fn ne(&self, other: &SelectionData) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more