MCPcopy Create free account
hub / github.com/apache/cloudstack / fillRect

Method fillRect

systemvm/agent/noVNC/core/display.js:316–331  ·  view source on GitHub ↗
(x, y, width, height, color, fromQueue)

Source from the content-addressed store, hash-verified

314 }
315
316 fillRect(x, y, width, height, color, fromQueue) {
317 if (this._renderQ.length !== 0 && !fromQueue) {
318 this._renderQPush({
319 'type': 'fill',
320 'x': x,
321 'y': y,
322 'width': width,
323 'height': height,
324 'color': color
325 });
326 } else {
327 this._setFillColor(color);
328 this._drawCtx.fillRect(x, y, width, height);
329 this._damage(x, y, width, height);
330 }
331 }
332
333 copyImage(oldX, oldY, newX, newY, w, h, fromQueue) {
334 if (this._renderQ.length !== 0 && !fromQueue) {

Callers 6

_scanRenderQMethod · 0.95
decodeRectMethod · 0.80
decodeRectMethod · 0.80
decodeRectMethod · 0.80
_fillRectMethod · 0.80
generateTextImageMethod · 0.80

Calls 3

_renderQPushMethod · 0.95
_setFillColorMethod · 0.95
_damageMethod · 0.95

Tested by

no test coverage detected