class CYOAdventure::Text

Defined in:

cyo_adventure/text.cr

Constructors

Instance Method Summary

Instance methods inherited from class CYOAdventure::Content

draw(offset : Int32, height : Int32) draw, height : Int32 height, new_line : Bool new_line, next : Content | Nil next, node : Node node, node? : Node | Nil node?

Constructor methods inherited from class CYOAdventure::Content

new(node : Node, line : String, dir : String) : Content new

Constructor Detail

def self.new(node : Node, text : String) #

[View source]

Instance Method Detail

def draw(offset : Int32 = 0, height = 0) #

[View source]
def height : Int32 #

Very basic version

TODO Add proper spacing around words for #draw


[View source]
def new_line : Bool #

[View source]