get_preferred_size


Description:

[ 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.

Parameters:

this

a Actor

min_width_p

return location for the minimum width, or null

min_height_p

return location for the minimum height, or null

natural_width_p

return location for the natural width, or null

natural_height_p

return location for the natural height, or null




2022 vala-language.org