aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/gfx/size/hint/property/hint_aspect.txt
blob: fbf013cb708ebc468142eac857fdd707d8d7f382 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
~~Title: Efl.Gfx.Size.Hint.hint_aspect~~
===== Values =====

  * **mode** - %%Mode of interpretation.%%
  * **sz** - %%Base size to use for aspecting.%%
===== 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.%%
{{page>:develop:api-include:efl:gfx:size:hint:property:hint_aspect:description&nouser&nolink&nodate}}


===== Signature =====

<code>
@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;
        }
    }
}
</code>

===== C signature =====

<code c>
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);
</code>

===== Implemented by =====

  * **Efl.Gfx.Size.Hint.hint_aspect**