Changeset 422
- Timestamp:
- 07/29/08 14:34:09 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/WKAL/Skeletons/Graphics/GraphicsContext.t
r420 r422 71 71 const int cTextStroke = 2; 72 72 const int cTextClip = 4; 73 73 74 74 enum StrokeStyle { 75 75 NoStroke, … … 97 97 */ 98 98 ~GraphicsContext(); 99 99 100 100 /** 101 101 * get platform graphic context … … 108 108 109 109 /** 110 * get font 110 * get font 111 111 * @param[out] : font 112 112 * @code … … 117 117 118 118 /** 119 * set font 119 * set font 120 120 * @param[in] : font 121 121 * @code … … 124 124 */ 125 125 void setFont(const Font&); 126 126 127 127 /** 128 128 * get stroke thickness … … 196 196 */ 197 197 void setFillColor(const Color&); 198 198 199 199 /** 200 200 * save context … … 212 212 */ 213 213 void restore(); 214 214 215 215 // These draw methods will do both stroking and filling. 216 216 /** … … 224 224 225 225 /** 226 * draw line 226 * draw line 227 227 * @param[in] : start point 228 228 * @param[in] : end point … … 264 264 */ 265 265 void strokeArc(const IntRect&, int startAngle, int angleSpan); 266 266 267 267 /** 268 268 * fill rect … … 308 308 */ 309 309 void fillRoundedRect(const IntRect&, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight, const Color&); 310 310 311 311 /** 312 312 * clear rect … … 340 340 341 341 /** 342 * draw image 342 * draw image 343 343 * @param[in] : image 344 344 * @param[in] : rect … … 391 391 392 392 /** 393 * draw tiled image 393 * draw tiled image 394 394 * @param[in] : image 395 395 * @param[in] : destination rect … … 416 416 * @endcode 417 417 */ 418 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 418 void drawTiledImage(Image*, const IntRect& destRect, const IntRect& srcRect, 419 419 Image::TileRule hRule = Image::StretchTile, Image::TileRule vRule = Image::StretchTile, 420 420 CompositeOperator = CompositeSourceOver); … … 433 433 434 434 /** 435 * imageInterpolationQuality description 436 * @param[in] : description 437 * @param[out] : description 435 * Get the image interpolation quality. 436 * @return InterpolationQuality the interpolation quality 438 437 * @code 439 438 * @endcode … … 444 443 445 444 /** 446 * clip description447 * @param[in] : description448 * @ param[out] : description449 * @code445 * Clip context: no graphics outside the rect will be drawn. 446 * @param[in] FloatRect the rect setting the clip. 447 * @code 448 * gc->clip(r); 450 449 * @endcode 451 450 */ … … 453 452 454 453 /** 455 * addRoundedRectClip description 456 * @param[in] : description 457 * @param[out] : description 458 * @code 459 * @endcode 460 */ 461 454 * add rounded rect clip 455 * @param[in] : rect 456 * @param[in] : top left size 457 * @param[in] : top right size 458 * @param[in] : bottom left size 459 * @param[in] : bottom right size 460 * @code 461 * gc->addRoundedRectClip(r, tl, tr, bk, br); 462 * @endcode 463 */ 462 464 void addRoundedRectClip(const IntRect&, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight); 463 465 464 466 /** 465 * add InnerRoundedRectClip description466 * @param[in] : description467 * @param[ out] : description468 * @code 469 * @endcode470 * /471 467 * add inner rounded rect clip 468 * @param[in] : rect 469 * @param[in] : thickness 470 * @code 471 * gc->addInnerRoundedRectClip(r, t); 472 * @endcode 473 */ 472 474 void addInnerRoundedRectClip(const IntRect&, int thickness); 473 475 … … 576 578 */ 577 579 FloatRect roundToDevicePixels(const FloatRect&); 578 580 579 581 /** 580 582 * draw line for text … … 598 600 */ 599 601 void drawLineForMisspellingOrBadGrammar(const IntPoint&, int width, bool grammar); 600 602 601 603 /** 602 604 * test if the painting is disabled … … 609 611 610 612 /** 611 * set painting disabled 613 * set painting disabled 612 614 * @param[in] : status 613 615 * @code … … 616 618 */ 617 619 void setPaintingDisabled(bool); 618 620 619 621 /** 620 622 * updating control tints … … 645 647 646 648 /** 647 * end transparency layer 649 * end transparency layer 648 650 * @code 649 651 * gc->endTransparencyLayer(); … … 694 696 695 697 /** 696 * add focus ring rect 698 * add focus ring rect 697 699 * @param[in] : rect 698 700 * @code … … 738 740 739 741 /** 740 * set lineJoin 742 * set lineJoin 741 743 * @param[in] : lineJoin 742 744 * @code … … 843 845 */ 844 846 IntPoint origin(); 845 846 /** 847 * set URL for rect 847 848 /** 849 * set URL for rect 848 850 * @param[in] : url 849 851 * @param[in] : rect … … 873 875 874 876 /** 875 * set use antialiasing 877 * set use antialiasing 876 878 * @param[in] : status 877 879 * @code … … 909 911 910 912 /** 911 * translate point 913 * translate point 912 914 * @param[in] : point 913 915 * @param[out] : point translated
