size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = 0; lg += common.str(buffer + lg, sz - lg, true); lg += snprintf(buffer + lg, sz - lg, "polygoncb(xStart=%d yStart=%d bRop2=0x%02X fillMode=%d " "backColor=%.6x foreColor=%.6x " "brush.org_x=%d brush.org_y=%d " "brush.style=%d brush.hatch=%d " "NumDeltaEntries=%d DeltaEntries=(", this->xStart, this->yStart, unsigned(this->bRop2), this->fillMode, this->backColor.as_bgr().to_u32(), this->foreColor.as_bgr().to_u32(), this->brush.org_x, this->brush.org_y, this->brush.style, this->brush.hatch, this->NumDeltaEntries); for (uint8_t i = 0; i < this->NumDeltaEntries; i++) { if (i) { lg += snprintf(buffer + lg, sz - lg, " "); } lg += snprintf(buffer + lg, sz - lg, "(%d, %d)", this->deltaPoints[i].xDelta, this->deltaPoints[i].yDelta); } lg += snprintf(buffer + lg, sz - lg, "))"); if (lg >= sz) { return sz; } return lg; }
size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = common.str(buffer, sz, true); lg += snprintf( buffer+lg, sz-lg, "lineto(back_mode=%.2x " "startx=%d starty=%d endx=%d endy=%d " "rop2=%d back_color=%.6x" "pen.style=%d pen.width=%d pen.color=%.6x " "\n", unsigned(this->back_mode), this->startx, this->starty, this->endx, this->endy, this->rop2, this->back_color.as_bgr().to_u32(), this->pen.style, this->pen.width, this->pen.color.as_bgr().to_u32() ); if (lg >= sz){ return sz; } return lg; }
size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = 0; lg += common.str(buffer + lg, sz - lg, true); lg += snprintf(buffer + lg, sz - lg, "ellipseSC(leftRect=%d topRect=%d rightRect=%d bottomRect=%d bRop2=0x%02X " "fillMode=%d Color=%.6x)", this->el.left(), this->el.top(), this->el.right(), this->el.bottom(), unsigned(this->bRop2), this->fillMode, this->color.as_bgr().to_u32()); if (lg >= sz) { return sz; } return lg; }
size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = common.str(buffer, sz); lg += snprintf( buffer+lg, sz-lg, "scrblt(rect(%d,%d,%d,%d) rop=%x srcx=%d srcy=%d)\n", this->rect.x, this->rect.y, this->rect.cx, this->rect.cy, this->rop, this->srcx, this->srcy); if (lg >= sz){ return sz; } return lg; }
size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = common.str(buffer, sz, !common.clip.contains(this->rect)); lg += snprintf( buffer+lg, sz-lg, "destblt(rect(%d,%d,%d,%d) rop=%x)\n", this->rect.x, this->rect.y, this->rect.cx, this->rect.cy, this->rop); if (lg >= sz){ return sz; } return lg; }
size_t str(char * buffer, size_t sz, const RDPOrderCommon & common) const { size_t lg = 0; lg += common.str(buffer + lg, sz - lg, true); lg += snprintf(buffer + lg, sz - lg, "MultiDstBlt(nLeftRect=%d nTopRect=%d nWidth=%d nHeight=%d bRop=0x%02X nDeltaEntries=%d " "CodedDeltaList=(", this->nLeftRect, this->nTopRect, this->nWidth, this->nHeight, this->bRop, this->nDeltaEntries); for (uint8_t i = 0; i < this->nDeltaEntries; i++) { if (i) { lg += snprintf(buffer + lg, sz - lg, " "); } lg += snprintf(buffer + lg, sz - lg, "(%d, %d, %d, %d)", this->deltaEncodedRectangles[i].leftDelta, this->deltaEncodedRectangles[i].topDelta, this->deltaEncodedRectangles[i].width, this->deltaEncodedRectangles[i].height); } lg += snprintf(buffer + lg, sz - lg, "))"); if (lg >= sz) { return sz; } return lg; }