Packages
clutter-1.0
Clutter
DragAction
drag_area
drag_area_set
drag_axis
drag_handle
x_drag_threshold
y_drag_threshold
DragAction
get_drag_area
get_drag_axis
get_drag_handle
get_drag_threshold
get_motion_coords
get_press_coords
set_drag_area
set_drag_axis
set_drag_handle
set_drag_threshold
drag_begin
drag_end
drag_motion
drag_progress
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
DragAction
Object Hierarchy:
Description:
public
class
DragAction
:
Action
The
DragAction
structure contains only private data
Namespace:
Clutter
Package:
clutter-1.0
Content:
Properties:
public
Rect
drag_area
{
set
;
owned
get
; }
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
; }
Whether the
drag_area
property has been set.
public
DragAxis
drag_axis
{
set
;
get
; }
Constraints the dragging action to the specified axis
public
Actor
drag_handle
{
set
;
get
; }
The
Actor
that is effectively being dragged
public
int
x_drag_threshold
{
set
;
get
; }
The horizontal threshold, in pixels, that the cursor must travel in order to begin a drag action.
public
int
y_drag_threshold
{
set
;
get
; }
The vertical threshold, in pixels, that the cursor must travel in order to begin a drag action.
Creation methods:
public
DragAction
()
Creates a new
DragAction
instance
Methods:
public
bool
get_drag_area
(
out
Rect
drag_area)
Retrieves the "drag area" associated with
action
, that is a
Rect
that constrains the actor movements, in parents coordinates.
public
DragAxis
get_drag_axis
()
Retrieves the axis constraint set by
set_drag_axis
public
weak
Actor
get_drag_handle
()
Retrieves the drag handle set by
set_drag_handle
public
void
get_drag_threshold
(
out
uint
x_threshold,
out
uint
y_threshold)
Retrieves the values set by
set_drag_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
action
, 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
action
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
actor
enabled
name
get_actor
get_enabled
get_name
set_actor
set_enabled
set_name
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count