Description

The 2D position of a canvas object.

The position is absolute, in pixels, relative to the top-left corner of the window, within its border decorations (application space).

Values

  • pos - A 2D coordinate in pixel units.

Getter

Retrieves the position of the given canvas object.

Setter

Moves the given canvas object to the given location inside its canvas' viewport. If unchanged this call may be entirely skipped, but if changed this will trigger move events, as well as potential pointer,in or pointer,out events.

Signature

@property position @pure_virtual {
    get {
        values {
            pos: Eina.Position2D;
        }
    }
    set {
        values {
            pos: Eina.Position2D;
        }
    }
}

C signature

Eina_Position2D efl_gfx_position_get(const Eo *obj);
void efl_gfx_position_set(Eo *obj, Eina_Position2D pos);

Implemented by

  • Efl.Gfx.position