| libccc Reference Manual | ||||
|---|---|---|---|---|
#include <ccc.h> gboolean cc_accumulator_boolean (GSignalInvocationHint *hint, GValue *return_accu, GValue const *handler_return, gpointer data); void cc_point_grid_align (gdouble *x, gdouble *y, gdouble *width); #define cc_return_if_unimplemented (klass, member) #define cc_return_if_unimplemented_code (klass, member, CODE)
gboolean cc_accumulator_boolean (GSignalInvocationHint *hint,
GValue *return_accu,
GValue const *handler_return,
gpointer data);
Serves as a simple accumulator for signal emission. If you set
cc_accumulator_boolean() as the accumulator for a signal, the signal will
abort execution once a signal handler returns TRUE.
hint : |
a GSignalInvocationHint |
return_accu : |
a GValue for the emission |
handler_return : |
a GValue |
data : |
unused |
| Returns : |
FALSE to stop, TRUE to continue.
|
void cc_point_grid_align (gdouble *x,
gdouble *y,
gdouble *width);
Rounds the coordinates x and y. Rounds width to the nearest integer, the
result of this conversion is needed for the other calculation.
If the rounded width is a multiple of 2.0, then x and y will be set to be
multiples of 1.0. They will be set to values of the form (x + 0.5)
otherwise.
x : |
an x coordinate |
y : |
a y coordinate |
width : |
the width of a line |
#define cc_return_if_unimplemented(klass, member) cc_return_if_unimplemented_code(klass, member, {})
klass : |
|
member : |