get_preferred_size


Description:

public abstract bool get_preferred_size (out float width, out float height)

Retrieves the natural size of the this, if any.

The natural size of a Content is defined as the size the content would have regardless of the allocation of the actor that is painting it, for instance the size of an image data.

Parameters:

this

a Content

width

return location for the natural width of the content

height

return location for the natural height of the content

Returns:

true if the content has a preferred size, and false otherwise




2022 vala-language.org