Method: Miyako::TextBox#clear
- Defined in:
- lib/Miyako/API/textbox.rb
#clear ⇒ Object
テキストエリアに描画している文字を消去する
透明色で消去したあと、描画開始位置を左上(0,0)に移動する
- 返却値
-
自分自身を返す
746 747 748 749 750 751 752 |
# File 'lib/Miyako/API/textbox.rb', line 746 def clear @textarea.bitmap.fillRect(0, 0, @size[0], @size[1], [0, 0, 0, 0]) @locate = Point.new(0, 0) @max_height = @font.line_height Fiber.yield if @fiber return self end |