Method: Miyako::TextBox#draw_text
- Defined in:
- lib/Miyako/API/textbox.rb
#draw_text(text) ⇒ Object
テキストエリアに文字を描画する
- text
-
描画する文字列
- 返却値
-
自分自身を返す
423 424 425 426 427 428 429 |
# File 'lib/Miyako/API/textbox.rb', line 423 def draw_text(text) @locate.x = @font.draw_text(@textarea, text, @locate.x, @locate.y + @margin) @max_height = [@max_height, @font.line_height].max @on_draw.call Fiber.yield if @fiber return self end |