pub struct TargetEntry { /* private fields */ }Expand description
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§
Source§impl TargetEntry
impl TargetEntry
Sourcepub fn new(target: &str, flags: TargetFlags, info: u32) -> TargetEntry
pub fn new(target: &str, flags: TargetFlags, info: u32) -> TargetEntry
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 gtk_target_entry_free()
pub fn target(&self) -> &str
pub fn flags(&self) -> TargetFlags
pub fn info(&self) -> u32
Trait Implementations§
Source§impl Clone for TargetEntry
impl Clone for TargetEntry
Source§fn clone(&self) -> TargetEntry
fn clone(&self) -> TargetEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TargetEntry
impl Debug for TargetEntry
Source§impl StaticType for TargetEntry
impl StaticType for TargetEntry
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Auto Trait Implementations§
impl Freeze for TargetEntry
impl RefUnwindSafe for TargetEntry
impl Send for TargetEntry
impl Sync for TargetEntry
impl Unpin for TargetEntry
impl UnsafeUnpin for TargetEntry
impl UnwindSafe for TargetEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.