class Cards::MenuItem

Direct Known Subclasses

Defined in:

cards/menu_item.cr

Constant Summary

PADDING = 25
TEXT_SIZE = 21

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, x = 0, y = 0, color = Game::Color::Lime, focused : Bool = false, padding : Int32 = PADDING) #

[View source]

Instance Method Detail

def blur #

[View source]
def draw #

[View source]
def draw_focused #

[View source]
def focus #

[View source]
def focused? : Bool #

[View source]
def height #

[View source]
def name : String #

[View source]
def text(*args, **options) #

[View source]
def text(*args, **options, &) #

[View source]
def width #

[View source]
def x #

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

[View source]
def y #

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

[View source]