[]Struct gtk::TargetList

pub struct TargetList(_);

A TargetList-struct is a reference counted list of TargetPair and should be treated as opaque.

Methods

impl TargetList
[src]

Appends another target to a TargetList.

target

the interned atom representing the target

flags

the flags for this target

info

an ID that will be passed back to the application

Appends the image targets supported by SelectionData to the target list. All targets are added with the same info.

info

an ID that will be passed back to the application

writable

whether to add only targets for which GTK+ knows how to convert a pixbuf into the format

Appends the rich text targets registered with TextBufferExt::register_serialize_format or TextBufferExt::register_deserialize_format to the target list. All targets are added with the same info.

info

an ID that will be passed back to the application

deserializable

if true, then deserializable rich text formats will be added, serializable formats otherwise.

buffer

a TextBuffer.

Appends the text targets supported by SelectionData to the target list. All targets are added with the same info.

info

an ID that will be passed back to the application

Appends the URI targets supported by SelectionData to the target list. All targets are added with the same info.

info

an ID that will be passed back to the application

Looks up a given target in a TargetList.

target

an interned atom representing the target to search for

info

a pointer to the location to store application info for target, or None

Returns

true if the target was found, otherwise false

Removes a target from a target list.

target

the interned atom representing the target

impl TargetList
[src]

Creates a new TargetList from an array of TargetEntry.

targets

Pointer to an array of TargetEntry

ntargets

number of entries in targets.

Returns

the new TargetList.

Trait Implementations

impl PartialOrd<TargetList> for TargetList
[src]

impl Ord for TargetList
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq<TargetList> for TargetList
[src]

impl Clone for TargetList

Performs copy-assignment from source. Read more

impl Eq for TargetList
[src]

impl Debug for TargetList
[src]

impl Hash for TargetList
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl StaticType for TargetList

Auto Trait Implementations

impl !Send for TargetList

impl !Sync for TargetList

Blanket Implementations

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

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

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]