class Tetryst::Label

Defined in:

tetryst/label.cr

Constant Summary

DEFAULT_COLOR = LibRay::WHITE
FONT_SIZE = 20
PADDING = 15
SPACING = 3

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0, text : String = "") #

[View source]

Instance Method Detail

def draw #

[View source]
def height : Int32 #

[View source]
def resize_to_text #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]
def width : Int32 #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]