Description

Defines the aspect ratio to respect when scaling this object.

The aspect ratio is defined as the width / height ratio of the object. Depending on the object and its container, this hint may or may not be fully respected.

If any of the given aspect ratio terms are 0, the object's container will ignore the aspect and scale this object to occupy the whole available area, for any given policy.

Values

  • mode - Mode of interpretation.
  • sz - Base size to use for aspecting.

Overridden from Efl.Gfx.Size.Hint.hint_aspect (set).

Signature

@property hint_aspect @pure_virtual {
    get {
        values {
            mode: Efl.Gfx.Size.Hint.Aspect;
            sz: Eina.Size2D;
        }
    }
    set {
        values {
            mode: Efl.Gfx.Size.Hint.Aspect;
            sz: Eina.Size2D;
        }
    }
}

C signature

void efl_gfx_size_hint_aspect_get(const Eo *obj, Efl_Gfx_Size_Hint_Aspect *mode, Eina_Size2D *sz);
void efl_gfx_size_hint_aspect_set(Eo *obj, Efl_Gfx_Size_Hint_Aspect mode, Eina_Size2D sz);

Implemented by