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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more