class Cards::MenuItem
- Cards::MenuItem
- Reference
- Object
Direct Known Subclasses
Defined in:
cards/menu_item.crConstant Summary
-
PADDING =
25
-
TEXT_SIZE =
21
Constructors
Instance Method Summary
- #blur
- #draw
- #draw_focused
- #focus
- #focused? : Bool
- #height
- #name : String
- #text(*args, **options)
- #text(*args, **options, &)
- #width
- #x
- #x=(value : Int32 | Float32)
- #y
- #y=(value : Int32 | Float32)
Constructor Detail
def self.new(name : String, x = 0, y = 0, color = Game::Color::Lime, focused : Bool = false, padding : Int32 = PADDING)
#