class GSF::MenuItem
- GSF::MenuItem
- Reference
- Object
Defined in:
gsf/menu_item.crConstructors
Instance Method Summary
- #blur
- #draw(window : SF::RenderWindow, x_offset = 0, y_offset = 0)
- #focus
- #focused? : Bool
-
#hover?(mouse : Mouse)
TODO this is probably broken if draw x_offset or y_offset is used
- #key : String
- #label : String
- #text : SF::Text
- #text_color : SF::Color
- #text_color_focused : SF::Color
- #update(frame_time : Float32)
- #x : Int32 | Float32
- #y : Int32 | Float32
Constructor Detail
def self.new(x : Float32 | Int32, y : Float32 | Int32, label : String, key : String, font : SF::Font, size = 72, text_color : SF::Color = SF::Color::White, text_color_focused : SF::Color = SF::Color::Green, focused : Bool = false, centered = true)
#
Instance Method Detail
TODO this is probably broken if draw x_offset or y_offset is used