DragAction
Object Hierarchy:
Clutter.DragAction
Clutter.DragAction
Clutter.DragAction
Clutter.Action
Clutter.Action
Clutter.Action->Clutter.DragAction
Clutter.ActorMeta
Clutter.ActorMeta
Clutter.ActorMeta->Clutter.Action
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Clutter.ActorMeta
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Description:
[
CCode ( type_id =
"clutter_drag_action_get_type ()" ) ]
[
Version ( since =
"1.4" ) ]
public class DragAction :
Action
The DragAction structure contains only private data and should be accessed using the provided API
Content:
Properties:
public Rect drag_area { owned get ; set ; }
Constains the dragging action (or in particular, the resulting actor
position) to the specified Rect , in parent's coordinates.
public bool drag_area_set { get ; }
public DragAxis drag_axis { get ; set ; }
Constraints the dragging action to the specified axis
public Actor drag_handle { get ; set ; }
The Actor that is
effectively being dragged
public int x_drag_threshold { get ; set ; }
The horizontal threshold, in pixels, that the cursor must travel in
order to begin a drag action.
public int y_drag_threshold { get ; set ; }
The vertical threshold, in pixels, that the cursor must travel in
order to begin a drag action.
Creation methods:
Methods:
public bool get_drag_area (out Rect drag_area)
Retrieves the "drag area" associated with
this , that is a Rect that constrains the actor movements, in parents
coordinates.
public DragAxis get_drag_axis ()
public unowned Actor get_drag_handle ()
public void get_drag_threshold (out uint x_threshold, out uint y_threshold)
public void get_motion_coords (out float motion_x, out float motion_y)
Retrieves the coordinates, in stage space, of the latest motion event
during the dragging
public void get_press_coords (out float press_x, out float press_y)
Retrieves the coordinates, in stage space, of the press event that
started the dragging
public void set_drag_area (Rect ? drag_area)
Sets drag_area
to constrain the dragging of the actor
associated with this , so that it position is always within drag_area
, expressed in
parent's coordinates.
public void set_drag_axis (DragAxis axis)
Restricts the dragging action to a specific axis
public void set_drag_handle (Actor ? handle)
Sets the actor to be used as the drag handle.
public void set_drag_threshold (int x_threshold, int y_threshold)
Sets the horizontal and vertical drag thresholds that must be cleared
by the pointer before this can begin the dragging.
Signals:
public virtual signal void drag_begin (Actor actor, float event_x, float event_y, ModifierType modifiers)
The drag_begin signal is emitted when the
DragAction starts the dragging
public virtual signal void drag_end (Actor actor, float event_x, float event_y, ModifierType modifiers)
The drag_end signal is emitted at the end
of the dragging, when the pointer button's is released
public virtual signal void drag_motion (Actor actor, float delta_x, float delta_y)
The drag_motion signal is emitted for each
motion event after the drag_begin signal has been emitted.
public virtual signal bool drag_progress (Actor actor, float delta_x, float delta_y)
The drag_progress signal is emitted for
each motion event after the drag_begin signal has been emitted.
Inherited Members:
All known members inherited from class Clutter.ActorMeta
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref