Lines Matching refs:args

17 void Path2DBuilder::ConstructPath(const v8::FunctionCallbackInfo<v8::Value>& args) {  in ConstructPath()  argument
20 args.This()->SetInternalField( in ConstructPath()
64 Path2DBuilder* Path2DBuilder::Unwrap(const v8::FunctionCallbackInfo<v8::Value>& args) { in Unwrap() argument
66 args.This()->GetInternalField(0)); in Unwrap()
71 void Path2DBuilder::ClosePath(const v8::FunctionCallbackInfo<v8::Value>& args) { in ClosePath() argument
72 Path2DBuilder* path = Unwrap(args); in ClosePath()
76 void Path2DBuilder::MoveTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in MoveTo() argument
77 if (args.Length() != 2) { in MoveTo()
78 args.GetIsolate()->ThrowException( in MoveTo()
80 args.GetIsolate(), "Error: 2 arguments required.")); in MoveTo()
83 double x = args[0]->NumberValue(); in MoveTo()
84 double y = args[1]->NumberValue(); in MoveTo()
85 Path2DBuilder* path = Unwrap(args); in MoveTo()
89 void Path2DBuilder::LineTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in LineTo() argument
90 if (args.Length() != 2) { in LineTo()
91 args.GetIsolate()->ThrowException( in LineTo()
93 args.GetIsolate(), "Error: 2 arguments required.")); in LineTo()
96 double x = args[0]->NumberValue(); in LineTo()
97 double y = args[1]->NumberValue(); in LineTo()
98 Path2DBuilder* path = Unwrap(args); in LineTo()
102 void Path2DBuilder::QuadraticCurveTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in QuadraticCurveTo() argument
103 if (args.Length() != 4) { in QuadraticCurveTo()
104 args.GetIsolate()->ThrowException( in QuadraticCurveTo()
106 args.GetIsolate(), "Error: 4 arguments required.")); in QuadraticCurveTo()
109 double cpx = args[0]->NumberValue(); in QuadraticCurveTo()
110 double cpy = args[1]->NumberValue(); in QuadraticCurveTo()
111 double x = args[2]->NumberValue(); in QuadraticCurveTo()
112 double y = args[3]->NumberValue(); in QuadraticCurveTo()
113 Path2DBuilder* path = Unwrap(args); in QuadraticCurveTo()
121 void Path2DBuilder::BezierCurveTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in BezierCurveTo() argument
122 if (args.Length() != 6) { in BezierCurveTo()
123 args.GetIsolate()->ThrowException( in BezierCurveTo()
125 args.GetIsolate(), "Error: 6 arguments required.")); in BezierCurveTo()
128 double cp1x = args[0]->NumberValue(); in BezierCurveTo()
129 double cp1y = args[1]->NumberValue(); in BezierCurveTo()
130 double cp2x = args[2]->NumberValue(); in BezierCurveTo()
131 double cp2y = args[3]->NumberValue(); in BezierCurveTo()
132 double x = args[4]->NumberValue(); in BezierCurveTo()
133 double y = args[5]->NumberValue(); in BezierCurveTo()
134 Path2DBuilder* path = Unwrap(args); in BezierCurveTo()
143 void Path2DBuilder::Arc(const v8::FunctionCallbackInfo<v8::Value>& args) { in Arc() argument
144 if (args.Length() != 5 && args.Length() != 6) { in Arc()
145 args.GetIsolate()->ThrowException( in Arc()
147 args.GetIsolate(), "Error: 5 or 6 args required.")); in Arc()
150 double x = args[0]->NumberValue(); in Arc()
151 double y = args[1]->NumberValue(); in Arc()
152 double radius = args[2]->NumberValue(); in Arc()
153 double startAngle = args[3]->NumberValue(); in Arc()
154 double endAngle = args[4]->NumberValue(); in Arc()
156 if (args.Length() == 6) { in Arc()
157 antiClockwise = args[5]->BooleanValue(); in Arc()
167 Path2DBuilder* path = Unwrap(args); in Arc()
179 void Path2DBuilder::Rect(const v8::FunctionCallbackInfo<v8::Value>& args) { in Rect() argument
180 if (args.Length() != 4) { in Rect()
181 args.GetIsolate()->ThrowException( in Rect()
183 args.GetIsolate(), "Error: 4 arguments required.")); in Rect()
186 double x = args[0]->NumberValue(); in Rect()
187 double y = args[1]->NumberValue(); in Rect()
188 double w = args[2]->NumberValue(); in Rect()
189 double h = args[3]->NumberValue(); in Rect()
197 Path2DBuilder* path = Unwrap(args); in Rect()
201 void Path2DBuilder::Oval(const v8::FunctionCallbackInfo<v8::Value>& args) { in Oval() argument
202 if (args.Length() != 4 && args.Length() != 5) { in Oval()
203 args.GetIsolate()->ThrowException( in Oval()
205 args.GetIsolate(), "Error: 4 or 5 args required.")); in Oval()
208 double x = args[0]->NumberValue(); in Oval()
209 double y = args[1]->NumberValue(); in Oval()
210 double radiusX = args[2]->NumberValue(); in Oval()
211 double radiusY = args[3]->NumberValue(); in Oval()
213 if (args.Length() == 5 && !args[4]->BooleanValue()) { in Oval()
216 Path2DBuilder* path = Unwrap(args); in Oval()
227 void Path2DBuilder::ConicTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in ConicTo() argument
228 if (args.Length() != 5) { in ConicTo()
229 args.GetIsolate()->ThrowException( in ConicTo()
231 args.GetIsolate(), "Error: 5 args required.")); in ConicTo()
234 double x1 = args[0]->NumberValue(); in ConicTo()
235 double y1 = args[1]->NumberValue(); in ConicTo()
236 double x2 = args[2]->NumberValue(); in ConicTo()
237 double y2 = args[3]->NumberValue(); in ConicTo()
238 double w = args[4]->NumberValue(); in ConicTo()
239 Path2DBuilder* path = Unwrap(args); in ConicTo()
250 void Path2DBuilder::Finalize(const v8::FunctionCallbackInfo<v8::Value>& args) { in Finalize() argument
251 Path2DBuilder* path = Unwrap(args); in Finalize()
260 args.GetReturnValue().Set(pathWrap->persistent()); in Finalize()