Function panda_sys::object_property_add_bool
source · pub unsafe extern "C" fn object_property_add_bool(
obj: *mut Object,
name: *const c_char,
get: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: *mut *mut Error) -> bool>,
set: Option<unsafe extern "C" fn(arg1: *mut Object, arg2: bool, arg3: *mut *mut Error)>,
errp: *mut *mut Error
)
Expand description
object_property_add_bool: @obj: the object to add a property to @name: the name of the property @get: the getter or NULL if the property is write-only. @set: the setter or NULL if the property is read-only @errp: if an error occurs, a pointer to an area to store the error
Add a bool property using getters/setters. This function will add a property of type ‘bool’.