Lines Matching refs:bitdim

232 	private function bitpos($bit, $bitdim, $bitmax)  argument
235 return ($inv * $bitdim) + floor($inv / 4) + 1;
247 $bitdim = $im->font_height(FONT_BITS, "01X") * 3;
287 $xmin += $bitdim;
288 $ymin += $bitdim;
292 $xmin = max($xmin, $im->font_width(FONT_LABELS, $bit->format_name()) + $bitdim);
318 $x = $register->bitpos($bitset_h, $bitdim, $bitset_h) + $xmin - 1;
320 $im->line($x, $y-$bitdim*0.2, $x, $y+$bitdim*1.2);
321 $im->line($x+1, $y-$bitdim*0.2, $x+1, $y+$bitdim*1.2);
323 $x = $register->bitpos($b, $bitdim, $bitset_h) + $xmin;
325 $im->rect($x, $y, $x+$bitdim, $y+$bitdim, $bc, "fill");
326 $im->rect($x, $y, $x+$bitdim, $y+$bitdim, $im->black);
329 $im->line($x+$bitdim, $y-$bitdim*0.2, $x+$bitdim, $y+$bitdim*1.2);
330 $im->line($x+$bitdim+1, $y-$bitdim*0.2, $x+$bitdim+1, $y+$bitdim*1.2);
335 $xoff = ($bitdim - $fw) / 2;
344 $xoff = ($bitdim - $im->font_width(FONT_BIT_LABELS, $bit_disp)) / 2;
345 $yoff = ($bitdim - $im->font_height(FONT_BIT_LABELS, $bit_disp)) / 2;
350 $x = $register->bitpos($bitset_l, $bitdim, $bitset_h) + $xmin;
356 $yoff = ($bitdim - $im->font_height(FONT_BIT_LABELS, $bit_disp)) / 2;
361 $y = $ymin + $bitdim * 1.2;
362 $xoff = $bitdim / 2;
363 $yadd = $bitdim * 3;
387 $yoff = $bitdim / 2;
398 $x = $register->bitpos($range[0], $bitdim, $bitset_h) + $xmin;
402 $cx1_l = $x + $bitdim / 4;
403 $cy1 = $y + $bitdim / 4;
405 $cx1_r = $register->bitpos($range[1], $bitdim, $bitset_h) + $xmin;
406 $cx1_r += $bitdim - $bitdim / 4;
413 $cy1 = $y + $bitdim / 4;
418 $cy2 = $cy1 + $bitdim * $num_def++ + $yoff;
421 $cx2 = $xmin + $register->bitpos($b_start, $bitdim, $bitset_h) - $bitdim / 2;
424 $cx2 = $xmin + $register->bitpos(-1, $bitdim, $bitset_h % $register->bitrange) + $bitdim / 2;
451 $yadd = max($yadd, $bitdim * ($num_def+2) + $yoff);