class Works::HUDText

Defined in:

works/hud_text.cr

Constant Summary

BackgroundColor = LibAllegro.premul_rgba_f(0, 0, 0, 0.69)
Margin = 5 * Screen.scale_factor
Padding = 3 * Screen.scale_factor
TextColor = LibAllegro.premul_rgba_f(0, 1, 0, 0.69)

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String = "") #

[View source]

Instance Method Detail

def draw(x, y) #

[View source]
def draw_background(x, y) #

[View source]
def draw_from_bottom(x, y) #

[View source]
def draw_from_right(x, y) #

[View source]
def draw_text(x, y) #

[View source]
def inner_height #

[View source]
def inner_width #

[View source]
def outer_height #

[View source]
def outer_width #

[View source]
def text : String #

[View source]
def text_height : Int32 #

[View source]
def text_width : Int32 #

[View source]