Mercurial > dwindows
comparison dwtest.c @ 1269:9e477efbacca
Added DW_DRAW_DEFAULT, DW_DRAW_FILL and DW_DRAW_FULL drawing flags.
Adde some more arc segments and full circle commands to test program.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 30 Oct 2011 00:40:22 +0000 |
parents | 83b0ed8c8377 |
children | 24f1dc19601d |
comparison
equal
deleted
inserted
replaced
1268:148daf522080 | 1269:9e477efbacca |
---|---|
367 dw_color_background_set(DW_CLR_DARKRED); | 367 dw_color_background_set(DW_CLR_DARKRED); |
368 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); | 368 dw_draw_text(window, pixmap, 10, 10, "This should be aligned with the edges."); |
369 dw_color_foreground_set(DW_CLR_BLUE); | 369 dw_color_foreground_set(DW_CLR_BLUE); |
370 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); | 370 dw_draw_polygon(window, pixmap, TRUE, 7, x, y); |
371 dw_color_foreground_set(DW_CLR_CYAN); | 371 dw_color_foreground_set(DW_CLR_CYAN); |
372 /* Bottom right corner */ | |
372 dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10); | 373 dw_draw_arc(window, pixmap, 0, width - 30, height - 30, width - 10, height - 30, width - 30, height - 10); |
374 /* Top right corner */ | |
375 dw_draw_arc(window, pixmap, 0, width - 30, 30, width - 30, 10, width - 10, 30); | |
376 /* Bottom left corner */ | |
377 dw_draw_arc(window, pixmap, 0, 30, height - 30, 30, height - 10, 10, height - 30); | |
378 /* Full circle in the left top area */ | |
379 dw_draw_arc(window, pixmap, 0, 100, 100, 80, 80, 120, 120); | |
373 if(image) | 380 if(image) |
374 { | 381 { |
375 if(image_stretch) | 382 if(image_stretch) |
376 dw_pixmap_stretch_bitblt(window, pixmap, 10, 10, width - 20, height - 20, 0, image, 0, 0, (int)DW_PIXMAP_WIDTH(image), (int)DW_PIXMAP_HEIGHT(image)); | 383 dw_pixmap_stretch_bitblt(window, pixmap, 10, 10, width - 20, height - 20, 0, image, 0, 0, (int)DW_PIXMAP_WIDTH(image), (int)DW_PIXMAP_HEIGHT(image)); |
377 else | 384 else |