Description

The draggable object relative location.

Some parts in Edje can be dragged along the X/Y axes, if the part contains a "draggable" section (in EDC). For instance, scroll bars can be draggable objects.

dx and dy are real numbers that range from 0 to 1, representing the relative position to the draggable area on that axis.

This value means, for the vertical axis, that 0.0 will be at the top if the first parameter of y in the draggable part theme is 1 and at the bottom if it is -1.

For the horizontal axis, 0.0 means left if the first parameter of x in the draggable part theme is 1, and right if it is -1.

Since 1.20

Values

  • dx - The x relative position, from 0 to 1.
  • dy - The y relative position, from 0 to 1.

Getter

Gets the draggable object location.

Since 1.20

Setter

Sets the draggable object location.

This places the draggable object at the given location.

Since 1.20

Overridden from Efl.Ui.Drag.drag_value (get, set).

Signature

@property drag_value @pure_virtual {
    get {
        values {
            dx: double;
            dy: double;
        }
        return: bool;
    }
    set {
        values {
            dx: double;
            dy: double;
        }
        return: bool;
    }
}

C signature

Eina_Bool efl_ui_drag_value_get(const Eo *obj, double *dx, double *dy);
Eina_Bool efl_ui_drag_value_set(Eo *obj, double dx, double dy);

Implemented by