module ImGui::SFML

Extended Modules

Defined in:

imgui-sfml.cr

Instance Method Summary

Instance Method Detail

def get_font_texture : SF::Texture #

[View source]
def init(window : SF::RenderWindow, load_default_font : Bool = true) #

[View source]
def init(window : SF::Window, target : SF::RenderTarget, load_default_font : Bool = true) #

[View source]
def init(window : SF::Window, display_size : SF::Vector2f, load_default_font : Bool = true) #

[View source]
def process_event(window : SF::Window, event : SF::Event) #

[View source]
def process_event(event : SF::Event) #

DEPRECATED Use #process_event(Window, Event) instead


[View source]
def render(target : SF::RenderTarget) #

[View source]
def render #

[View source]
def set_active_joystick_id(joystick_id : Int) #

[View source]
def set_current_window(window : SF::Window) #

[View source]
def set_dpad_x_axis(dpad_x_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_dpad_y_axis(dpad_y_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_joystick_dpad_threshold(threshold : Number) #

[View source]
def set_joystick_l_stick_threshold(threshold : Number) #

[View source]
def set_joystick_l_trigger_threshold(threshold : Number) #

[View source]
def set_joystick_mapping(key : Int | Enum, joystick_button : Int) #

[View source]
def set_joystick_r_stick_threshold(threshold : Number) #

[View source]
def set_joystick_r_trigger_threshold(threshold : Number) #

[View source]
def set_l_stick_x_axis(l_stick_x_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_l_stick_y_axis(l_stick_y_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_l_trigger_axis(l_trigger_axis : SF::Joystick::Axis) #

[View source]
def set_r_stick_x_axis(r_stick_x_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_r_stick_y_axis(r_stick_y_axis : SF::Joystick::Axis, inverted : Bool = false) #

[View source]
def set_r_trigger_axis(r_trigger_axis : SF::Joystick::Axis) #

[View source]
def shutdown(window : SF::Window) #

[View source]
def shutdown #

[View source]
def update(window : SF::Window, target : SF::RenderTarget, dt : SF::Time) #

[View source]
def update(mouse_pos : SF::Vector2i, display_size : SF::Vector2f, dt : SF::Time) #

[View source]
def update(window : SF::RenderWindow, dt : SF::Time) #

[View source]
def update_font_texture #

[View source]