Lines Matching refs:y

75     private $y;
167 * @param int $y
169 public function setDimensions($x, $y)
172 $this->max_y = $y - 1;
173 $this->x = $this->y = 0;
232 $this->old_y = $this->y;
233 $this->x = $this->y = 0;
236 $this->history = array_merge($this->history, array_slice(array_splice($this->screen, $this->y + 1), 0, $this->old_y));
237 $this->screen = array_merge($this->screen, array_fill($this->y, $this->max_y, ''));
239 $this->history_attrs = array_merge($this->history_attrs, array_slice(array_splice($this->attrs, $this->y + 1), 0, $this->old_y));
240 $this->attrs = array_merge($this->attrs, array_fill($this->y, $this->max_y, $this->attr_row));
248 $this->screen[$this->y] = substr($this->screen[$this->y], 0, $this->x);
250 array_splice($this->attrs[$this->y], $this->x + 1, $this->max_x - $this->x, array_fill($this->x, $this->max_x - ($this->x - 1), $this->base_attr_cell));
253 $this->screen[$this->y] = str_repeat(' ', $this->x);
254 $this->attrs[$this->y] = $this->attr_row;
267 $this->old_y = $this->y;
268 $this->y += (int) $match[1];
272 $this->old_y = $this->y;
274 $this->y = (int) $match[1] - 1;
366 $this->attrs[$this->y][$this->x] = clone $this->base_attr_cell;
367 $this->screen[$this->y] = substr_replace(
368 $this->screen[$this->y],
385 $this->attrs[$this->y][$this->x] = clone $this->attr_cell;
386 if ($this->x > strlen($this->screen[$this->y])) {
387 $this->screen[$this->y] = str_repeat(' ', $this->x);
389 $this->screen[$this->y] = substr_replace(
390 $this->screen[$this->y],
414 //if ($this->y < $this->max_y) {
415 // $this->y++;
418 while ($this->y >= $this->max_y) {
430 $this->y--;
432 $this->y++;