| 1584 | } |
| 1585 | |
| 1586 | void stroke_rectangle( canvas &that, float width, float height ) |
| 1587 | { |
| 1588 | that.set_color( stroke_style, 0.0f, 0.0f, 0.0f, 1.0f ); |
| 1589 | that.rotate( 0.2f ); |
| 1590 | that.begin_path(); |
| 1591 | that.move_to( 0.2f * width, 0.2f * height ); |
| 1592 | that.line_to( 0.8f * width, 0.2f * height ); |
| 1593 | that.line_to( 0.8f * width, 0.8f * height ); |
| 1594 | for ( float y = -1.0f; y <= 1.0f; y += 1.0f ) |
| 1595 | for ( float x = -1.0f; x <= 1.0f; x += 1.0f ) |
| 1596 | that.stroke_rectangle( ( 0.5f + 0.05f * x ) * width, |
| 1597 | ( 0.5f + 0.05f * y ) * height, |
| 1598 | x * 0.2f * width, y * 0.2f * height ); |
| 1599 | that.line_to( 0.2f * width, 0.8f * height ); |
| 1600 | that.close_path(); |
| 1601 | that.stroke(); |
| 1602 | } |
| 1603 | |
| 1604 | void text_align( canvas &that, float width, float height ) |
| 1605 | { |
nothing calls this directly
no test coverage detected