Raylib-FFI
view release on metacpan or search on metacpan
Revision history for Raylib-FFI
0.02 2024-11-20 Added support for raylib 5.5
- Updated validation function names from "Ready" to "Valid" to match
raylib 5.5
- Added new window management functions (ToggleBorderlessWindowed,
SetWindowIcons, SetWindowFocused, GetWindowScaleDPI)
- Added new clipboard function (GetClipboardImage)
- Added event waiting functions (EnableEventWaiting, DisableEventWaiting)
0.01 2024-06-26
First release
GetWindowScaleDPI() : Raylib::FFI::Vector2D
Get window scale factor on HiDPI monitors.
GetMonitorName( $monitor ) : string
Get the human-readable, UTF-8 encoded name of the monitor.
SetClipboardText( $text )
Set clipboard text content.
GetClipboardText() : string
Get clipboard text content.
GetClipboardImage() : Raylib::FFI::Image
Get clipboard image content.
EnableEventWaiting()
Enable waiting for events on EndDrawing, automatic event polling.
DisableEventWaiting()
Disable waiting for events on EndDrawing, manual event polling.
ShowCursor()
docs/raylib.h view on Meta::CPAN
RLAPI int GetCurrentMonitor(void); // Get current monitor where window is placed
RLAPI Vector2 GetMonitorPosition(int monitor); // Get specified monitor position
RLAPI int GetMonitorWidth(int monitor); // Get specified monitor width (current video mode used by monitor)
RLAPI int GetMonitorHeight(int monitor); // Get specified monitor height (current video mode used by monitor)
RLAPI int GetMonitorPhysicalWidth(int monitor); // Get specified monitor physical width in millimetres
RLAPI int GetMonitorPhysicalHeight(int monitor); // Get specified monitor physical height in millimetres
RLAPI int GetMonitorRefreshRate(int monitor); // Get specified monitor refresh rate
RLAPI Vector2 GetWindowPosition(void); // Get window position XY on monitor
RLAPI Vector2 GetWindowScaleDPI(void); // Get window scale DPI factor
RLAPI const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the specified monitor
RLAPI void SetClipboardText(const char *text); // Set clipboard text content
RLAPI const char *GetClipboardText(void); // Get clipboard text content
RLAPI Image GetClipboardImage(void); // Get clipboard image content
RLAPI void EnableEventWaiting(void); // Enable waiting for events on EndDrawing(), no automatic event polling
RLAPI void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling
// Cursor-related functions
RLAPI void ShowCursor(void); // Shows cursor
RLAPI void HideCursor(void); // Hides cursor
RLAPI bool IsCursorHidden(void); // Check if cursor is not visible
RLAPI void EnableCursor(void); // Enables cursor (unlock cursor)
RLAPI void DisableCursor(void); // Disables cursor (lock cursor)
RLAPI bool IsCursorOnScreen(void); // Check if cursor is on the screen
lib/Raylib/FFI.pm view on Meta::CPAN
=head2 GetWindowScaleDPI() : Raylib::FFI::Vector2D
Get window scale factor on HiDPI monitors.
=head2 GetMonitorName( $monitor ) : string
Get the human-readable, UTF-8 encoded name of the monitor.
=head2 SetClipboardText( $text )
Set clipboard text content.
=head2 GetClipboardText() : string
Get clipboard text content.
=head2 GetClipboardImage() : Raylib::FFI::Image
Get clipboard image content.
=head2 EnableEventWaiting()
Enable waiting for events on EndDrawing, automatic event polling.
=head2 DisableEventWaiting()
Disable waiting for events on EndDrawing, manual event polling.
=head2 ShowCursor()
( run in 1.129 second using v1.01-cache-2.11-cpan-2398b32b56e )