Description

Control scrolling gravity on the scrollable

The gravity defines how the scroller will adjust its view when the size of the scroller contents increases.

The scroller will adjust the view to glue itself as follows.

x=0.0, for staying where it is relative to the left edge of the content x=1.0, for staying where it is relative to the rigth edge of the content y=0.0, for staying where it is relative to the top edge of the content y=1.0, for staying where it is relative to the bottom edge of the content

Default values for x and y are 0.0

Values

  • x - Horizontal scrolling gravity
  • y - Vertical scrolling gravity

Signature

@property gravity @pure_virtual {
    get {
        values {
            x: double;
            y: double;
        }
    }
    set {
        values {
            x: double;
            y: double;
        }
    }
}

C signature

void efl_ui_scrollable_gravity_get(const Eo *obj, double *x, double *y);
void efl_ui_scrollable_gravity_set(Eo *obj, double x, double y);

Implemented by

  • Efl.Ui.Scrollable.Interactive.gravity