[][src]Struct gtk::TargetEntry

#[repr(C)]pub struct TargetEntry { /* fields omitted */ }

A TargetEntry represents a single type of data than can be supplied for by a widget for a selection or for supplied or received during drag-and-drop.


impl TargetEntry[src]

pub fn new(target: &str, flags: TargetFlags, info: u32) -> TargetEntry[src]

Makes a new TargetEntry.


String identifier for target


Set of flags, see TargetFlags


an ID that will be passed back to the application


a pointer to a new TargetEntry. Free with TargetEntry::free

pub fn get_target(&self) -> &str[src]

pub fn get_flags(&self) -> TargetFlags[src]

pub fn get_info(&self) -> u32[src]

Trait Implementations

impl Clone for TargetEntry[src]

impl Debug for TargetEntry[src]

impl StaticType for TargetEntry[src]

Auto Trait Implementations

impl RefUnwindSafe for TargetEntry

impl Send for TargetEntry

impl Sync for TargetEntry

impl Unpin for TargetEntry

impl UnwindSafe for TargetEntry

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.