- public int TextToInteger (string text)
Get integer value from text (negative values not supported)
- public void begin_drawing ()
Setup canvas (framebuffer) to start drawing
- public void begin_scissor_mode (int x, int y, int width, int height)
Begin scissor mode (define screen area for following drawing)
- public void clear_background (Color color)
Set background color (framebuffer clear color)
- public void disable_cursor ()
Disables cursor (lock cursor)
- public void draw_circle (int centerX, int centerY, float radius, Color color)
Draw a color-filled circle
- public void draw_circle_gradient (int centerX, int centerY, float radius, Color color1, Color color2)
Draw a gradient-filled circle
- public void draw_circle_lines (int centerX, int centerY, float radius, Color color)
Draw circle outline
- public void draw_circle_v (Vector2 center, float radius, Color color)
Draw a color-filled circle (Vector version)
- public void draw_fps (int posX, int posY)
Shows current FPS
- public void draw_line (int startPosX, int startPosY, int endPosX, int endPosY, Color color)
Draw a line
- public void draw_poly (Vector2 center, int sides, float radius, float rotation, Color color)
Draw a regular polygon (Vector version)
- public void draw_rectangle (int posX, int posY, int width, int height, Color color)
Draw a color-filled rectangle
- public void draw_rectangle_gradient_h (int posX, int posY, int width, int height, Color color1, Color color2)
Draw a horizontal-gradient-filled rectangle
- public void draw_rectangle_gradient_v (int posX, int posY, int width, int height, Color color1, Color color2)
Draw a vertical-gradient-filled rectangle
- public void draw_rectangle_lines (int posX, int posY, int width, int height, Color color)
Draw rectangle outline
- public void draw_rectangle_rounded (Rectangle rec, float roundness, int segments, Color color)
Draw rectangle with rounded edges
- public void draw_text (string text, int posX, int posY, int fontSize, Color color)
Draw text (using default font)
- public void draw_texture (Texture2D texture, int posX, int posY, Color tint)
- public void draw_triangle (Vector2 v1, Vector2 v2, Vector2 v3, Color color)
Draw a color-filled triangle (vertex in counter-clockwise order!)
- public void draw_triangle_lines (Vector2 v1, Vector2 v2, Vector2 v3, Color color)
Draw triangle outline (vertex in counter-clockwise order!)
- public void enable_cursor ()
Enables cursor (unlock cursor)
- public void end_drawing ()
End canvas drawing and swap buffers (double buffering)
- public void end_mode_2D ()
Ends 2D mode with custom camera
- public void end_mode_3D ()
Ends 3D mode and returns to default 2D orthographic mode
- public void end_scissor_mode ()
End scissor mode
- public void end_texture_mode ()
Ends drawing to render texture
- public string get_clipboard_text ()
Get clipboard text content
- public int get_fps ()
Returns current FPS
- public float get_frame_time ()
Returns time in seconds for last frame drawn
- public int get_key_pressed ()
Get key pressed, call it multiple times for chars queued
- public int get_monitor_count ()
Get number of connected monitors
- public int get_monitor_height (int monitor)
Get primary monitor height
- public string get_monitor_name (int monitor)
Get the human-readable, UTF-8 encoded name of the primary monitor
- public int get_monitor_physical_height (int monitor)
Get primary monitor physical height in millimetres
- public int get_monitor_physical_width (int monitor)
Get primary monitor physical width in millimetres
- public int get_monitor_width (int monitor)
Get primary monitor width
- public Vector2 get_mouse_position ()
Returns mouse position XY
- public int get_mouse_wheel_move ()
Returns mouse wheel movement Y
- public int get_screen_height ()
Get current screen height
- public int get_screen_width ()
Get current screen width
- public double get_time ()
Returns elapsed time in seconds since InitWindow()
- public void hide_cursor ()
Hides cursor
- public void image_flip_vertical (out Image image)
- public void image_resize (out Image image, int new_width, int new_height)
- public bool is_cursor_hidden ()
Check if cursor is not visible
- public bool is_key_down (int key)
Detect if a key is being pressed
- public bool is_key_pressed (int key)
Detect if a key has been pressed once
- public bool is_key_released (int key)
Detect if a key has been released once
- public bool is_key_up (int key)
Detect if a key is NOT being pressed
- public Texture2D load_texture_from_image (Image image)
- public void set_clipboard_text (unowned string* text)
Set clipboard text content
- public void set_exit_key (int key)
Set a custom key to exit program (default is ESC)
- public void set_target_fps (int fps)
Set target FPS (maximum)
- public void show_cursor ()
Shows cursor
- public unowned string text_format (string text, ...)
Text formatting with variables (sprintf style)
- public unowned string text_to_lower (string text)
Get lower case version of provided string
- public unowned string text_to_pascal (string text)
Get Pascal case notation version of provided string
- public unowned string text_to_upper (string text)
Get upper case version of provided string