Flutter Engine
The Flutter Engine
Functions
RRect_empty_constructor.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (RRect_empty_constructor, 256, 60, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( RRect_empty_constructor  ,
256  ,
60  ,
false  ,
 
)

Definition at line 4 of file RRect_empty_constructor.cpp.

4 {
5void draw(SkCanvas* canvas) {
9 p.setStrokeWidth(10);
10 canvas->drawRRect(rrect, p);
11 rrect.setRect({10, 10, 100, 50});
12 canvas->drawRRect(rrect, p);
13}
14} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
Definition: SkCanvas.cpp:1705
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
void setRect(const SkRect &rect)
Definition: SkRRect.h:126
SkRRect rrect
Definition: SkRecords.h:232