[ Version ( since = "0.8" ) ]
public void get_preferred_size (out float min_width_p, out float min_height_p, out float natural_width_p, out float natural_height_p)
Computes the preferred minimum and natural size of an actor, taking into account the actor's geometry management (either height-for-width or width-for-height).
The width and height used to compute the preferred height and preferred width are the actor's natural ones.
If you need to control the height for the preferred width, or the width for the preferred height, you should use get_preferred_width and get_preferred_height, and check the actor's preferred geometry management using the request_mode property.
this |
a Actor |
min_width_p |
return location for the minimum width, or |
min_height_p |
return location for the minimum height, or |
natural_width_p |
return location for the natural width, or |
natural_height_p |
return location for the natural height, or |