[][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.

Implementations

impl TargetEntry[src]

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

Makes a new TargetEntry.

target

String identifier for target

flags

Set of flags, see TargetFlags

info

an ID that will be passed back to the application

Returns

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.