pub struct DragAction(/* private fields */);
Implementations§
Source§impl DragAction
impl DragAction
Sourcepub fn new() -> DragAction
pub fn new() -> DragAction
Trait Implementations§
Source§impl Clone for DragAction
impl Clone for DragAction
Source§fn clone(&self) -> DragAction
fn clone(&self) -> DragAction
Returns a duplicate of the value. Read more
1.0.0 · 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 DragAction
impl Debug for DragAction
Source§impl Default for DragAction
impl Default for DragAction
Source§impl Display for DragAction
impl Display for DragAction
Source§impl Hash for DragAction
impl Hash for DragAction
Source§impl Ord for DragAction
impl Ord for DragAction
Source§fn cmp(&self, other: &DragAction) -> Ordering
fn cmp(&self, other: &DragAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for DragAction
impl<T: ObjectType> PartialEq<T> for DragAction
Source§impl<T: ObjectType> PartialOrd<T> for DragAction
impl<T: ObjectType> PartialOrd<T> for DragAction
Source§impl StaticType for DragAction
impl StaticType for DragAction
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for DragAction
impl IsA<Action> for DragAction
impl IsA<ActorMeta> for DragAction
impl IsA<InitiallyUnowned> for DragAction
Auto Trait Implementations§
impl Freeze for DragAction
impl RefUnwindSafe for DragAction
impl !Send for DragAction
impl !Sync for DragAction
impl Unpin for DragAction
impl UnwindSafe for DragAction
Blanket Implementations§
Source§impl<O> ActorMetaExt for O
impl<O> ActorMetaExt for O
Source§fn get_enabled(&self) -> bool
fn get_enabled(&self) -> bool
Retrieves whether
self
is enabled Read moreSource§fn get_name(&self) -> Option<GString>
fn get_name(&self) -> Option<GString>
Retrieves the name set using
ActorMetaExt::set_name
Read moreSource§fn set_enabled(&self, is_enabled: bool)
fn set_enabled(&self, is_enabled: bool)
Sets whether
self
should be enabled or not Read morefn connect_property_actor_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_enabled_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_name_notify<F>(&self, f: F) -> SignalHandlerId
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> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> DragActionExt for Owhere
O: IsA<DragAction>,
impl<O> DragActionExt for Owhere
O: IsA<DragAction>,
Source§fn get_drag_area(&self) -> Option<Rect>
fn get_drag_area(&self) -> Option<Rect>
Retrieves the “drag area” associated with
self
, that
is a Rect
that constrains the actor movements,
in parents coordinates. Read moreSource§fn get_drag_axis(&self) -> DragAxis
fn get_drag_axis(&self) -> DragAxis
Retrieves the axis constraint set by
DragActionExt::set_drag_axis
Read moreSource§fn get_drag_handle(&self) -> Option<Actor>
fn get_drag_handle(&self) -> Option<Actor>
Retrieves the drag handle set by
DragActionExt::set_drag_handle
Read moreSource§fn get_drag_threshold(&self) -> (u32, u32)
fn get_drag_threshold(&self) -> (u32, u32)
Retrieves the values set by
DragActionExt::set_drag_threshold
. Read moreSource§fn get_motion_coords(&self) -> (f32, f32)
fn get_motion_coords(&self) -> (f32, f32)
Retrieves the coordinates, in stage space, of the latest motion
event during the dragging Read more
Source§fn get_press_coords(&self) -> (f32, f32)
fn get_press_coords(&self) -> (f32, f32)
Retrieves the coordinates, in stage space, of the press event
that started the dragging Read more
Source§fn set_drag_area(&self, drag_area: Option<&Rect>)
fn set_drag_area(&self, drag_area: Option<&Rect>)
Sets
drag_area
to constrain the dragging of the actor associated
with self
, so that it position is always within drag_area
, expressed
in parent’s coordinates.
If drag_area
is None
, the actor is not constrained. Read moreSource§fn set_drag_axis(&self, axis: DragAxis)
fn set_drag_axis(&self, axis: DragAxis)
Restricts the dragging action to a specific axis Read more
Source§fn set_drag_handle<P>(&self, handle: Option<&P>)
fn set_drag_handle<P>(&self, handle: Option<&P>)
Sets the actor to be used as the drag handle. Read more
Source§fn set_drag_threshold(&self, x_threshold: i32, y_threshold: i32)
fn set_drag_threshold(&self, x_threshold: i32, y_threshold: i32)
Sets the horizontal and vertical drag thresholds that must be
cleared by the pointer before
self
can begin the dragging. Read moreSource§fn get_property_drag_area_set(&self) -> bool
fn get_property_drag_area_set(&self) -> bool
Whether the
DragAction:drag-area
property has been set.Source§fn get_property_x_drag_threshold(&self) -> i32
fn get_property_x_drag_threshold(&self) -> i32
The horizontal threshold, in pixels, that the cursor must travel
in order to begin a drag action. Read more
Source§fn set_property_x_drag_threshold(&self, x_drag_threshold: i32)
fn set_property_x_drag_threshold(&self, x_drag_threshold: i32)
The horizontal threshold, in pixels, that the cursor must travel
in order to begin a drag action. Read more
Source§fn get_property_y_drag_threshold(&self) -> i32
fn get_property_y_drag_threshold(&self) -> i32
The vertical threshold, in pixels, that the cursor must travel
in order to begin a drag action. Read more
Source§fn set_property_y_drag_threshold(&self, y_drag_threshold: i32)
fn set_property_y_drag_threshold(&self, y_drag_threshold: i32)
The vertical threshold, in pixels, that the cursor must travel
in order to begin a drag action. Read more
Source§fn connect_drag_begin<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_begin<F>(&self, f: F) -> SignalHandlerId
The ::drag-begin signal is emitted when the
DragAction
starts the dragging Read moreSource§fn connect_drag_end<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_end<F>(&self, f: F) -> SignalHandlerId
The ::drag-end signal is emitted at the end of the dragging,
when the pointer button’s is released Read more
Source§fn connect_drag_motion<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_motion<F>(&self, f: F) -> SignalHandlerId
The ::drag-motion signal is emitted for each motion event after
the
DragAction::drag-begin
signal has been emitted. Read moreSource§fn connect_drag_progress<F>(&self, f: F) -> SignalHandlerId
fn connect_drag_progress<F>(&self, f: F) -> SignalHandlerId
The ::drag-progress signal is emitted for each motion event after
the
DragAction::drag-begin
signal has been emitted. Read morefn connect_property_drag_area_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_drag_area_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_drag_axis_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_drag_handle_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_x_drag_threshold_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_y_drag_threshold_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.