[]Struct gtk::TargetList

pub struct TargetList(_);

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

Implementations

impl TargetList[src]

pub fn add(&self, target: &Atom, flags: u32, info: u32)[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

pub fn add_image_targets(&self, info: u32, writable: bool)[src]

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

pub fn add_rich_text_targets<P: IsA<TextBuffer>>(
    &self,
    info: u32,
    deserializable: bool,
    buffer: &P
)
[src]

Appends the rich text targets registered with TextBuffer::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.

pub fn add_text_targets(&self, info: u32)[src]

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

pub fn add_uri_targets(&self, info: u32)[src]

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

pub fn find(&self, target: &Atom) -> Option<u32>[src]

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

pub fn remove(&self, target: &Atom)[src]

Removes a target from a target list.

target

the interned atom representing the target

impl TargetList[src]

pub fn new(targets: &[TargetEntry]) -> Self[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 Clone for TargetList

impl Debug for TargetList[src]

impl Eq for TargetList[src]

impl Hash for TargetList[src]

impl Ord for TargetList[src]

impl PartialEq<TargetList> for TargetList[src]

impl PartialOrd<TargetList> for TargetList[src]

impl StaticType for TargetList

impl StructuralEq for TargetList[src]

impl StructuralPartialEq for TargetList[src]

Auto Trait Implementations

impl RefUnwindSafe for TargetList

impl !Send for TargetList

impl !Sync for TargetList

impl Unpin for TargetList

impl UnwindSafe for TargetList

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<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

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

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.