clutter-util

clutter-util — Misc utility functions.

Synopsis




void                clutter_util_trap_x_errors          (void);
int                 clutter_util_untrap_x_errors        (void);
int                 clutter_util_next_p2                (int a);

Description

Various misc utilility functions.

Details

clutter_util_trap_x_errors ()

void                clutter_util_trap_x_errors          (void);

Trap X errors so they don't cause an abort.


clutter_util_untrap_x_errors ()

int                 clutter_util_untrap_x_errors        (void);

Stop trapping X errors.

Returns : 0 if there was no error, or the last X error that occurred.

clutter_util_next_p2 ()

int                 clutter_util_next_p2                (int a);

Calculates the next power greater than a.

a : Value to get the next power
Returns : The next power after a.