1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
| #include <stdlib.h> | #include <libaosd/aosd-text.h> | int main(int argc, char *argv[]) | { | //preamble | g_type_init(); | | cairo_rectangle_t extents [] = { | (cairo_rectangle_t) { | .x = 1.5, | .y = 2.5, | .width = 3.5, | .height = 4.5}, | (cairo_rectangle_t) { | .x = 5.5, | .y = 6.5, | .width = 7.5, | .height = 8.5}, | (cairo_rectangle_t) { | .x = 9.5, | .y = 10.5, | .width = 11.5, | .height = 12.5}, | (cairo_rectangle_t) { | .x = 13.5, | .y = 14.5, | .width = 15.5, | .height = 16.5}, | (cairo_rectangle_t) {0}}; | cairo_surface_t* target = cairo_recording_surface_create(CAIRO_CONTENT_COLOR, extents); | cairo_t* cr = cairo_create(target); | void* TextRenderData_ptr = malloc(256); | aosd_text_renderer(cr, TextRenderData_ptr); //target call | return 0; | } |
|