ffi/ffi

Types

pub type Color
pub type Image
pub type Rectangle
pub type Texture
pub type Vector2

Values

pub fn begin_drawing() -> Nil
pub fn clear_background(color color: Color) -> Nil
pub fn close_window() -> Nil
pub fn disable_cursor() -> Nil
pub fn disable_event_waiting() -> Nil
pub fn draw_circle(
  x x: Int,
  y y: Int,
  radius radius: Float,
  color color: Color,
) -> Nil
pub fn draw_circle_lines(
  x x: Int,
  y y: Int,
  radius radius: Float,
  color color: Color,
) -> Nil
pub fn draw_circle_sector(
  center center: Vector2,
  radius radius: Float,
  from start_angle: Float,
  to end_angle: Float,
  segments segments: Int,
  color color: Color,
) -> Nil
pub fn draw_circle_sector_lines(
  center center: Vector2,
  radius radius: Float,
  from start_angle: Float,
  to end_angle: Float,
  segments segments: Int,
  color color: Color,
) -> Nil
pub fn draw_ellipse(
  x x: Int,
  y y: Int,
  radius_h radius_h: Float,
  radius_v radius_v: Float,
  color color: Color,
) -> Nil
pub fn draw_ellipse_lines(
  x x: Int,
  y y: Int,
  radius_h radius_h: Float,
  radius_v radius_v: Float,
  color color: Color,
) -> Nil
pub fn draw_line(
  sx sx: Int,
  sy sy: Int,
  ex ex: Int,
  ey ey: Int,
  color color: Color,
) -> Nil
pub fn draw_line_bezier(
  start start: Vector2,
  end end: Vector2,
  thick thick: Float,
  color color: Color,
) -> Nil
pub fn draw_line_ex(
  start start: Vector2,
  end end: Vector2,
  thick thick: Float,
  color color: Color,
) -> Nil
pub fn draw_pixel(x x: Int, y y: Int, color color: Color) -> Nil
pub fn draw_rectangle(
  x x: Int,
  y y: Int,
  w width: Int,
  h height: Int,
  color color: Color,
) -> Nil
pub fn draw_rectangle_pro(
  rec rec: Rectangle,
  origin origin: Vector2,
  rot rotation: Float,
  color color: Color,
) -> Nil
pub fn draw_rectangle_rounded(
  rec rec: Rectangle,
  roundness roundness: Float,
  segments segments: Int,
  color color: Color,
) -> Nil
pub fn draw_rectangle_rounded_lines_ex(
  rec rec: Rectangle,
  roundness roundness: Float,
  segments segments: Int,
  thick thick: Float,
  color color: Color,
) -> Nil
pub fn draw_ring(
  center: Vector2,
  from_radius inner_radius: Float,
  to_radius outer_radius: Float,
  from_angle start_angle: Float,
  to_angle end_angle: Float,
  segments segments: Int,
  color color: Color,
) -> Nil
pub fn draw_ring_lines(
  center center: Vector2,
  from_radius inner_radius: Float,
  to_radius outer_radius: Float,
  from_angle start_angle: Float,
  to_angle end_angle: Float,
  segments segments: Float,
  color color: Color,
) -> Nil
pub fn enable_cursor() -> Nil
pub fn enable_event_waiting() -> Nil
pub fn end_drawing() -> Nil
pub fn get_char_pressed() -> Int
pub fn get_clipboard_image() -> Image
pub fn get_clipboard_text() -> String
pub fn get_color(from hex: Int) -> Color
pub fn get_current_monitor() -> Int
pub fn get_fps() -> Int
pub fn get_frame_time() -> Float
pub fn get_key_pressed() -> Int
pub fn get_monitor_count() -> Int
pub fn get_monitor_height(of monitor: Int) -> Int
pub fn get_monitor_name(of monitor: Int) -> String
pub fn get_monitor_physical_height(of monitor: Int) -> Int
pub fn get_monitor_physical_width(of monitor: Int) -> Int
pub fn get_monitor_position(of monitor: Int) -> Vector2
pub fn get_monitor_refresh_rate(of monitor: Int) -> Int
pub fn get_monitor_width(of monitor: Int) -> Int
pub fn get_mouse_delta() -> Vector2
pub fn get_mouse_position() -> Vector2
pub fn get_mouse_wheel_move() -> Float
pub fn get_mouse_wheel_move_v() -> Vector2
pub fn get_mouse_x() -> Int
pub fn get_mouse_y() -> Int
pub fn get_render_height() -> Int
pub fn get_render_width() -> Int
pub fn get_screen_height() -> Int
pub fn get_screen_width() -> Int
pub fn get_shapes_texture() -> Texture
pub fn get_shapes_texture_rectangle() -> Rectangle
pub fn get_time() -> Float
pub fn get_window_position() -> Vector2
pub fn get_window_scale_dpi() -> Vector2
pub fn get_x2(of vector: Vector2) -> Float
pub fn get_y2(of vector: Vector2) -> Float
pub fn hide_cursor() -> Nil
pub fn init_window(
  width width: Int,
  height height: Int,
  titled title: String,
) -> Nil
pub fn is_cursor_hidden() -> Bool
pub fn is_cursor_on_screen() -> Bool
pub fn is_key_down(code code: Int) -> Bool
pub fn is_key_pressed(code code: Int) -> Bool
pub fn is_key_pressed_repeat(code code: Int) -> Bool
pub fn is_key_released(code code: Int) -> Bool
pub fn is_key_up(code code: Int) -> Bool
pub fn is_mouse_button_down(code code: Int) -> Bool
pub fn is_mouse_button_pressed(code code: Int) -> Bool
pub fn is_mouse_button_released(code code: Int) -> Bool
pub fn is_mouse_button_up(code code: Int) -> Bool
pub fn is_window_focused() -> Bool
pub fn is_window_fullscreen() -> Bool
pub fn is_window_hidden() -> Bool
pub fn is_window_maximized() -> Bool
pub fn is_window_minimized() -> Bool
pub fn is_window_resized() -> Bool
pub fn maximize_window() -> Nil
pub fn minimize_window() -> Nil
pub fn restore_window() -> Nil
pub fn set_clipboard_text(to text: String) -> Nil
pub fn set_exit_key(code code: Int) -> Nil
pub fn set_mouse_position(x x: Int, y y: Int) -> Nil
pub fn set_mouse_scale(x x: Float, y y: Float) -> Nil
pub fn set_shapes_texture(
  to texture: Texture,
  source source: Rectangle,
) -> Nil
pub fn set_target_fps(to fps: Int) -> Nil
pub fn set_window_focused() -> Nil
pub fn set_window_icon(to image: Image) -> Nil
pub fn set_window_max_size(
  width width: Int,
  height height: Int,
) -> Nil
pub fn set_window_min_size(
  width width: Int,
  height height: Int,
) -> Nil
pub fn set_window_monitor(to monitor: Int) -> Nil
pub fn set_window_opacity(to opacity: Float) -> Nil
pub fn set_window_position(x x: Int, y y: Int) -> Nil
pub fn set_window_size(
  width width: Int,
  height height: Int,
) -> Nil
pub fn set_window_title(to title: String) -> Nil
pub fn show_cursor() -> Nil
pub fn take_screenshot(to file: String) -> Nil
pub fn toggle_borderless_windowed() -> Nil
pub fn toggle_fullscreen() -> Nil
pub fn vector2(x: Float, y: Float) -> Vector2
pub fn window_should_close() -> Bool
Search Document