action: Add DragAction, an action implementing drag capabilities
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 12 May 2010 11:00:33 +0000 (12:00 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 17 May 2010 15:42:11 +0000 (16:42 +0100)
commit4fd74e71e640b0762f883a7f7c2f996c54379fee
tree44101594d3c691415f615c2a5e8ca4a4d81c4d29
parent0e0db0d6242f84c8fb44ba57ec46d6dff5f265b3
action: Add DragAction, an action implementing drag capabilities

DragAction is an Action sub-class that provides dragging capabilities to
any actor. DragAction has:

  • drag-begin, drag-motion and drag-end signals, relaying the event
    information like coordinates, button and modifiers to user code;

  • drag-threshold property, for delaying the drag start by a given
    amount of pixels;

  • drag-handle property, to allow using other actors as the drag
    handle.

  • drag-axis property, to allow constraining the dragging to a specific
    axis.

An interactive test demonstrating the various features is also provided.
.gitignore
clutter/Makefile.am
clutter/clutter-drag-action.c [new file with mode: 0644]
clutter/clutter-drag-action.h [new file with mode: 0644]
clutter/clutter-marshal.list
clutter/clutter.h
tests/interactive/Makefile.am
tests/interactive/test-drag.c [new file with mode: 0644]