pub struct DropTargetBuilder { /* private fields */ }Expand description
A builder-pattern type to construct DropTarget objects.
Implementations§
Source§impl DropTargetBuilder
impl DropTargetBuilder
pub fn actions(self, actions: DragAction) -> Self
pub fn formats(self, formats: &ContentFormats) -> Self
pub fn preload(self, preload: bool) -> Self
pub fn name(self, name: impl Into<GString>) -> Self
pub fn propagation_limit(self, propagation_limit: PropagationLimit) -> Self
pub fn propagation_phase(self, propagation_phase: PropagationPhase) -> Self
Sourcepub fn build(self) -> DropTarget
pub fn build(self) -> DropTarget
Build the DropTarget.
Auto Trait Implementations§
impl Freeze for DropTargetBuilder
impl RefUnwindSafe for DropTargetBuilder
impl !Send for DropTargetBuilder
impl !Sync for DropTargetBuilder
impl Unpin for DropTargetBuilder
impl UnwindSafe for DropTargetBuilder
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