class Fullaunch::Menu::Renderer

Defined in:

fullaunch/menu/renderer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(menu_config : Array(Fullaunch::MenuConfigTuple), window : SF::RenderWindow, text_color : Fullaunch::ColorTuple, font : SF::Font, text_size : Int32, gap_size : Int32, selected_menu_item : Int32) #

[View source]

Instance Method Detail

def calculate_text_width(text : SF::Text) #

[View source]
def call #

[View source]
def draw_item(window : SF::RenderWindow, font : SF::Font, size : Int32, item : NamedTuple(text: SF::Text, icon_sprite: SF::Sprite | Nil), start_x : Float64, text_start_x : Float64, y : Float64) #

[View source]