Boolean properties represent a feature whose value is a simple on/off switch.
More...
Boolean properties represent a feature whose value is a simple on/off switch.
◆ ic4_prop_boolean_get_value()
bool ic4_prop_boolean_get_value |
( |
struct IC4_PROPERTY * |
prop, |
|
|
bool * |
pValue |
|
) |
| |
Reads the current value of a boolean property.
- Parameters
-
[in] | prop | A boolean property |
[out] | pValue | Pointer to a bool to receive the current value |
- Returns
true
on success, otherwise false
.
Use ic4_get_last_error() to query error information.
◆ ic4_prop_boolean_set_value()
bool ic4_prop_boolean_set_value |
( |
struct IC4_PROPERTY * |
prop, |
|
|
bool |
value |
|
) |
| |
Changes the value of a boolean property.
- Parameters
-
[in] | prop | An boolean property |
[in] | value | The new value to set |
- Returns
true
on success, otherwise false
.
Use ic4_get_last_error() to query error information.