Lines Matching refs:rx
48 this->readAttr("rx");
91 if (!this->rx.read(value) || this->rx.value <= 0.0) {
92 this->rx.unset();
94 this->rx.update( em, ex, w );
125 this->rx.update(em, ex, w);
143 if (this->rx._set) {
144 sp_repr_set_svg_length(repr, "rx", this->rx);
181 double const rx = std::min(( this->rx._set
182 ? this->rx.computed
189 : ( this->rx._set
190 ? this->rx.computed
193 /* TODO: Handle negative rx or ry as per
201 if ((rx > 1e-18) && (ry > 1e-18)) {
202 c->moveto(x + rx, y);
204 if (rx < w2) {
205 c->lineto(x + w - rx, y);
208 c->curveto(x + w - rx * (1 - C1), y, x + w, y + ry * (1 - C1), x + w, y + ry);
214 c->curveto(x + w, y + h - ry * (1 - C1), x + w - rx * (1 - C1), y + h, x + w - rx, y + h);
216 if (rx < w2) {
217 c->lineto(x + rx, y + h);
220 c->curveto(x + rx * (1 - C1), y + h, x, y + h - ry * (1 - C1), x, y + h - ry);
226 c->curveto(x, y + ry * (1 - C1), x + rx * (1 - C1), y, x + rx, y);
255 this->rx._set = set;
258 this->rx = value;
304 if (this->rx._set) {
305 this->rx.scale( sw );
345 void SPRect::setVisibleRx(gdouble rx) {
346 if (rx == 0) {
347 this->rx.unset();
349 this->rx = rx / SPRect::vectorStretch(
372 if (!this->rx._set) {
376 return this->rx.computed * SPRect::vectorStretch(
401 if (this->rx.computed == 0 && this->ry.computed == 0) {
421 if ((this->rx._set && !this->ry._set) || (this->ry._set && !this->rx._set)) {
422 gdouble r = MAX(this->rx.computed, this->ry.computed);
423 this->rx = r / eX;
426 this->rx = this->rx.computed / eX;