Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_utils.c File Reference


Detailed Description


Functions

void etk_accumulator_bool_or (void *return_value, const void *value_to_accum, void *data)
 Combines the returned boolean values together by performing an "OR" operation.
void etk_accumulator_bool_and (void *return_value, const void *value_to_accum, void *data)
 Combines the returned boolean values together by performing an "AND" operation.
void etk_accumulator_stopping_bool_or (void *return_value, const void *value_to_accum, void *data)
 Combines the returned boolean values together by performing an "OR" operation.
The accumulator will stop the propagation of the signal as soon as a callback returns ETK_TRUE.
void etk_accumulator_stopping_bool_and (void *return_value, const void *value_to_accum, void *data)
 Combines the returned boolean values together by performing an "AND" operation.
The accumulator will stop the propagation of the signal as soon as a callback returns ETK_FALSE.
void etk_callback_set_null (void *data)
 A utility function to use as a swapped callback. It sets to NULL the pointer located at the adress stored in data.
For example, if you want to set "pointer" to NULL when "button" is clicked, you can do:
etk_signal_connect_swapped(ETK_OBJECT(button), "clicked", ETK_CALLBACK(etk_callback_set_null), &pointer);.
unsigned int etk_current_time_get ()
 Gets the current time, in milliseconds.