check_enabled


Description:

[ Version ( since = "3.8" ) ]
public bool check_enabled (Source source)

Determines whether source is "effectively" enabled by examining its own enabled property as well as those of its ancestors in the Source hierarchy.

If all examined enabled properties are true, then the function returns true. If any are false, then the function returns false.

Use this function instead of get_enabled to determine things like whether to display an Source in a user interface or whether to act on the data set described by the Source.

Parameters:

this

an SourceRegistry

source

an Source

Returns:

whether source is "effectively" enabled




2022 vala-language.org