aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt
diff options
context:
space:
mode:
Diffstat (limited to 'pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt')
-rw-r--r--pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt b/pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt
index 0855c9564..23ecf45b7 100644
--- a/pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt
+++ b/pages/develop/api/efl/gfx/size/hint/property/hint_weight.txt
@@ -1,4 +1,22 @@
~~Title: Efl.Gfx.Size.Hint.hint_weight~~
+===== Values =====
+
+ * **x** - %%Non-negative double value to use as horizontal weight hint.%%
+ * **y** - %%Non-negative double value to use as vertical weight hint.%%
+===== Description =====
+
+%%Hints for an object's weight.%%
+
+%%This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the %%[[:develop:api:efl:gfx:size:hint:expand|Efl.Gfx.Size.Hint.Expand]]%% helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.%%
+
+%%Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.%%
+
+<note>
+%%Default weight hint values are 0.0, for both axis.%%
+</note>
+{{page>:develop:api-include:efl:gfx:size:hint:property:hint_weight:description&nouser&nolink&nodate}}
+
+
===== Signature =====
<code>
@@ -25,24 +43,6 @@ void efl_gfx_size_hint_weight_get(const Eo *obj, double *x, double *y);
void efl_gfx_size_hint_weight_set(Eo *obj, double x, double y);
</code>
-===== Values =====
-
- * **x** - %%Non-negative double value to use as horizontal weight hint.%%
- * **y** - %%Non-negative double value to use as vertical weight hint.%%
-===== Description =====
-
-%%Hints for an object's weight.%%
-
-%%This is a hint on how a container object should resize a given child within its area. Containers may adhere to the simpler logic of just expanding the child object's dimensions to fit its own (see the %%[[:develop:api:efl:gfx:size:hint:expand|Efl.Gfx.Size.Hint.Expand]]%% helper weight macro) or the complete one of taking each child's weight hint as real weights to how much of its size to allocate for them in each axis. A container is supposed to, after normalizing the weights of its children (with weight hints), distribut the space it has to layout them by those factors -- most weighted children get larger in this process than the least ones.%%
-
-%%Accepted values are zero or positive values. Some containers might use this hint as a boolean, but some others might consider it as a proportion, see documentation of each container.%%
-
-<note>
-%%Default weight hint values are 0.0, for both axis.%%
-</note>
-{{page>:develop:api-include:efl:gfx:size:hint:property:hint_weight:description&nouser&nolink&nodate}}
-
-
===== Implemented by =====
* **Efl.Gfx.Size.Hint.hint_weight**