Lines Matching refs:style

48     var $style = array(  variable in syntax_plugin_godiag
82 $this->style['ttfont'] = dirname(__FILE__).'/Vera.ttf';
271 $dimh=($this->dgm['gridh']-1)*$this->style['line_sp']+$this->style['edge_sp']*2+1;
272 $dimv=($this->dgm['gridv']-1)*$this->style['line_sp']+$this->style['edge_sp']*2+1;
274 $dimh += $this->style['coord_sp'];
275 $dimv += $this->style['coord_sp'];
284 if($this->dgm['board_size'] > $this->style['board_max'])
285 return $this->error_box('board too large (max is ' . $this->style['board_max'] . ')');
314 $md5hash_png=md5($str_for_hash_img . '!' . serialize($this->style));
411 …$this->circ($im, $coords[0], $coords[1], $this->style['hoshi_radius'], $this->style['line_acolor']…
416 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius'], $this->style['white_rim_aco…
417 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius']-1, $this->style['white_acolo…
422 …$this->circ($im, $coords[0], $coords[1], $this->style['stone_radius'], $this->style['black_acolor'…
428 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius'], $this->style['mark_acolor']);
429 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius']-2, $this->style['white_acolor…
435 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius'], $this->style['mark_acolor']);
436 …$this->circ($im, $coords[0], $coords[1], $this->style['mark_radius']-2, $this->style['black_acolor…
442 $r=$this->style['mark_radius'];
443 $sim = $this->style['circle_mark_img']['im'];
444 $dim = $this->style['circle_mark_img']['dim'];
450 $x1=$x-($this->style['mark_sqheight']/2);
451 $x2=$x+($this->style['mark_sqheight']/2);
452 $y1=$y-($this->style['mark_sqheight']/2);
453 $y2=$y+($this->style['mark_sqheight']/2);
458 $x1=$x-($this->style['link_sqheight']/2);
459 $x2=$x+($this->style['link_sqheight']/2);
460 $y1=$y-($this->style['link_sqheight']/2);
461 $y2=$y+($this->style['link_sqheight']/2);
482 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], $str);
484 …imagettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['majusc_voffs'], $col, $th…
490 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], $str);
492 $r = $this->style['stone_radius']-3;
494 …magettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['minusc_voffs'], $this->dgm…
505 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], $str);
507 $basex=$x - $this->style['stone_radius']+($str<10?$this->style['sm_offs']:0);
511 …magettftext($im, $this->style['ttfont_sz'], 0, $basex, $y+$this->style['majusc_voffs'], $this->dgm…
516 …edrectangle($im, $x-$this->style['line_sp']/2+1, $y-$this->style['line_sp']/2+1, $x+$this->style['…
528 if(!array_key_exists('sm_offs', $this->style)) {
530 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], '1');
531 $box2 = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], '11');
532 $this->style['sm_offs'] = ($box2[2]-$box[1]) - ($box[2]-$box[0]) - 1;
534 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], 'a');
535 $this->style['minusc_voffs'] = (-$box[5])/2+1;
536 $box = imagettfbbox($this->style['ttfont_sz'], 0, $this->style['ttfont'], 'A');
537 $this->style['majusc_voffs'] = (-$box[5])/2;
539 if(!array_key_exists('circle_mark_img', $this->style)) {
540 $r=$this->style['mark_radius'];
543 $gc = $this->style['goban_acolor'];
547 $this->circ($xim, $r+1, $r+1, $r, $this->style['mark_acolor']);
548 $this->circ($xim, $r+1, $r+1, $r-2, $this->style['goban_acolor']);
549 $this->style['circle_mark_img']['im'] = $xim;
550 $this->style['circle_mark_img']['dim'] = $dim;
553 $this->dgm['line_color'] = $this->acolor2color($im, $this->style['line_acolor']);
554 $this->dgm['mark_color'] = $this->acolor2color($im, $this->style['mark_acolor']);
555 … $this->dgm['link_color'] = $this->acolor2color($im, $this->style['link_acolor_alpha'], true);
556 $this->dgm['goban_color'] = $this->acolor2color($im, $this->style['goban_acolor']);
557 $this->dgm['black_color'] = $this->acolor2color($im, $this->style['black_acolor']);
558 $this->dgm['white_color'] = $this->acolor2color($im, $this->style['white_acolor']);
559 $this->dgm['string_color'] = $this->acolor2color($im, $this->style['string_acolor']);
564 $beginv=$this->dgm['edge_top'] ? $this->style['edge_sp'] : $this->style['line_begin'];
565 $beginh=$this->dgm['edge_left'] ? $this->style['edge_sp'] : $this->style['line_begin'];
566 …$endv=$dimv - ($this->dgm['edge_bottom'] ? $this->style['edge_sp'] : $this->style['line_begin']) -…
567 …$endh=$dimh - ($this->dgm['edge_right'] ? $this->style['edge_sp'] : $this->style['line_begin']) - …
569 $beginv += $this->style['coord_sp'];
570 $beginh += $this->style['coord_sp'];
630 $additional_sp+=$this->style['coord_sp'];
631 return array($bx*$this->style['line_sp']+$this->style['edge_sp']+$additional_sp,
632 $by*$this->style['line_sp']+$this->style['edge_sp']+$additional_sp);
642 $x1=$x-$this->style['line_sp']/2;
643 $y1=$y-$this->style['line_sp']/2;
644 $x2=$x+$this->style['line_sp']/2;
645 $y2=$y+$this->style['line_sp']/2;
722 $comment = str_replace(']', '\]', $this->style['sgf_comment']);