set_load_data_async


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.0" ) ]
public void set_load_data_async (bool load_async)

Warning: set_load_data_async is deprecated since 1.12.

Sets whether this should use a worker thread to load the data from disk asynchronously.

Note:

There is no direct replacement for this function.

Use Image and platform-specific API for loading image data asynchronously, like GdkPixbuf

Setting load_async to true will make set_from_file block until the Texture has determined the width and height of the image data.

See the load_async property documentation, and set_load_async.

Parameters:

this

a Texture

load_async

true if the texture should asynchronously load data from a filename




2022 vala-language.org