[[TableOfContents]]
= Description = 

 * 그리기에 관련된 클래스입니다. 
 * 좀 더 많은 기능을 위해서는 GDI 를 직접 호출 해야 할 것 같습니다.
 * 그릴 수 있는 객체 
  * [WBWindow] - buffer 속성 얻어오기 
  * [WBImage]


== Window 에 그림그리기 == 

{{{#!vim php 

<?php

/** 
 * WBTableLayout, winbinder 
 * 
 * 
 *  written by easylogic
 * 
 */

class DrawWindow extends WBResizableWindow { 
	public function __construct() { 
		$options = array(
			'title' => 'Draw Example',
			'width' => 300,
			'height' => 300,				
		);

		parent::__construct($options);
	}

	public function repaint($buffer) { 
		// WBWindow는 $buffer만 그릴 수 있다(?)
		WBDraw::rect($buffer, 10, 10, 100, 100, BLACK, true);
		WBDraw::rect($buffer, 10, 10, 100, 100, WHITE);
	}

}

$window = new DrawWindow();
$window->setVisible(true);

WBApplication::start();

?>

}}}
