Mercurial > dwindows
comparison template/dw.c @ 1275:0b34e2cf0706
Updated dw_draw_rect and dw_draw_polygon to accept flags the same way as dw_draw_arc.
The fill parameter has been replaced by flags which should be backwards compatible.
Also updated the source comments to reflect these changes.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 30 Oct 2011 10:14:49 +0000 |
parents | 61d0c5f84644 |
children | b99b0b2c2826 |
comparison
equal
deleted
inserted
replaced
1274:885b55c0d7d7 | 1275:0b34e2cf0706 |
---|---|
1504 | 1504 |
1505 /* Draw a polygon on a window (preferably a render window). | 1505 /* Draw a polygon on a window (preferably a render window). |
1506 * Parameters: | 1506 * Parameters: |
1507 * handle: Handle to the window. | 1507 * handle: Handle to the window. |
1508 * pixmap: Handle to the pixmap. (choose only one of these) | 1508 * pixmap: Handle to the pixmap. (choose only one of these) |
1509 * fill: Fill box TRUE or FALSE. | 1509 * flags: DW_DRAW_FILL (1) to fill the polygon or DW_DRAW_DEFAULT (0). |
1510 * npoints: Number of points passed in. | 1510 * npoints: Number of points passed in. |
1511 * x: Pointer to array of X coordinates. | 1511 * x: Pointer to array of X coordinates. |
1512 * y: Pointer to array of Y coordinates. | 1512 * y: Pointer to array of Y coordinates. |
1513 */ | 1513 */ |
1514 void API dw_draw_polygon( HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y ) | 1514 void API dw_draw_polygon( HWND handle, HPIXMAP pixmap, int flags, int npoints, int *x, int *y ) |
1515 { | 1515 { |
1516 } | 1516 } |
1517 | 1517 |
1518 /* Draw a rectangle on a window (preferably a render window). | 1518 /* Draw a rectangle on a window (preferably a render window). |
1519 * Parameters: | 1519 * Parameters: |
1520 * handle: Handle to the window. | 1520 * handle: Handle to the window. |
1521 * pixmap: Handle to the pixmap. (choose only one of these) | 1521 * pixmap: Handle to the pixmap. (choose only one of these) |
1522 * fill: Fill box TRUE or FALSE. | 1522 * flags: DW_DRAW_FILL (1) to fill the box or DW_DRAW_DEFAULT (0). |
1523 * x: X coordinate. | 1523 * x: X coordinate. |
1524 * y: Y coordinate. | 1524 * y: Y coordinate. |
1525 * width: Width of rectangle. | 1525 * width: Width of rectangle. |
1526 * height: Height of rectangle. | 1526 * height: Height of rectangle. |
1527 */ | 1527 */ |
1528 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height) | 1528 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int flags, int x, int y, int width, int height) |
1529 { | 1529 { |
1530 } | 1530 } |
1531 | 1531 |
1532 /* Draw an arc on a window (preferably a render window). | 1532 /* Draw an arc on a window (preferably a render window). |
1533 * Parameters: | 1533 * Parameters: |
1534 * handle: Handle to the window. | 1534 * handle: Handle to the window. |
1535 * pixmap: Handle to the pixmap. (choose only one of these) | 1535 * pixmap: Handle to the pixmap. (choose only one of these) |
1536 * flags: For future use. | 1536 * flags: DW_DRAW_FILL (1) to fill the arc or DW_DRAW_DEFAULT (0). |
1537 * DW_DRAW_FULL will draw a complete circle/elipse. | |
1537 * xorigin: X coordinate of center of arc. | 1538 * xorigin: X coordinate of center of arc. |
1538 * yorigin: Y coordinate of center of arc. | 1539 * yorigin: Y coordinate of center of arc. |
1539 * x1: X coordinate of first segment of arc. | 1540 * x1: X coordinate of first segment of arc. |
1540 * y1: Y coordinate of first segment of arc. | 1541 * y1: Y coordinate of first segment of arc. |
1541 * x2: X coordinate of second segment of arc. | 1542 * x2: X coordinate of second segment of arc. |