MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / drawRoundRect

Method drawRoundRect

src/scripting/api/Display/Graphics.ts:170–180  ·  view source on GitHub ↗

* Draws a rounded rectangle * @param {number} x - x coordinate * @param {number} y - y coordinate * @param {number} w - width * @param {number} h - height * @param {number} elw - ellipse corner width * @param {number} elh - ellipse corner height

(x:number,
      y:number,
      w:number,
      h:number,
      elw:number,
      elh:number)

Source from the content-addressed store, hash-verified

168 * @param {number} elh - ellipse corner height
169 */
170 public drawRoundRect(x:number,
171 y:number,
172 w:number,
173 h:number,
174 elw:number,
175 elh:number):void {
176
177 this._evaluateBoundingBox(x,y);
178 this._evaluateBoundingBox(x+w,y+h);
179 this._callDrawMethod('drawRoundRect', [x, y, w, h, elw, elh]);
180 }
181
182 /**
183 * Executes a list of drawing commands with their data given in the data array

Callers

nothing calls this directly

Calls 2

_evaluateBoundingBoxMethod · 0.95
_callDrawMethodMethod · 0.95

Tested by

no test coverage detected