Struct gtk::TargetEntry
source · [−]#[repr(C)]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
sourceimpl 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
sourceimpl Clone for TargetEntry
impl Clone for TargetEntry
sourcefn clone(&self) -> TargetEntry
fn clone(&self) -> TargetEntry
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TargetEntry
impl Debug for TargetEntry
sourceimpl StaticType for TargetEntry
impl StaticType for TargetEntry
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.