class GSF::MenuItems

Defined in:

gsf/menu_items.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(font : SF::Font, items = [] of String, size = 72, text_color = SF::Color::White, text_color_focused = SF::Color::Green, initial_focused_index = -1) #

[View source]

Instance Method Detail

def draw(window : SF::RenderWindow, x_offset = 0, y_offset = 0) #

[View source]
def focused_item #

[View source]
def focused_key #

[View source]
def focused_label #

[View source]
def joysticks? #

[View source]
def joysticks_next?(joysticks : Joysticks) #

[View source]
def joysticks_previous?(joysticks : Joysticks) #

[View source]
def joysticks_select #

[View source]
def joysticks_update(joysticks : Joysticks) #

[View source]
def keyboard? #

[View source]
def keyboard_update(keys : Keys) #

[View source]
def keys_next #

[View source]
def keys_previous #

[View source]
def keys_select #

[View source]
def menu_items : Array(GSF::MenuItem) #

[View source]
def mouse? #

[View source]
def mouse_select #

[View source]
def mouse_update(mouse : Mouse) #

[View source]
def next_item #

[View source]
def previous_item #

[View source]
def selected?(keys, mouse, joysticks) #

[View source]
def selected?(keys, joysticks) #

[View source]
def update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def update(frame_time : Float32, keys : Keys, joysticks : Joysticks) #

[View source]