Skip to content
Brom Bresenham edited this page Jan 30, 2026 · 1 revision

Android.rogue

class Android [singleton]

extends Object

Methods

Signature Return Type Description
dpi() Real
is_tablet() Logical

Apple.rogue

class Apple [singleton]

extends Object

Methods

Signature Return Type Description
application_data_folder() File
cache_folder() File
current_language_code() String E.g. "en" or "es" (not "es-MX" etc.).
find_system_folder( type:RogueNSSearchPathDirectory ) File
is_ios_app_on_mac() Logical
open_url_in_external_browser( url:String )
user_data_folder() File

class RogueNSSearchPathDirectory [compound]

incorporates CommonCompoundMethods

Properties

Name Type Description
@native20 RogueCNativeProperty

Methods

Signature Return Type Description
description() String
operator==( other:RogueNSSearchPathDirectory ) Logical
print_to( buffer:PrintWriter )
to<<Object>>() Boxed<<RogueNSSearchPathDirectory>>
to<<String>>() String
to<<Variant>>() Variant
type_info() TypeInfo

iOS.rogue

class iOS [singleton]

extends Apple

Methods

Signature Return Type Description
induce_memory_warning()

MacOS.rogue

class MacOS [singleton]

extends Object

Methods

Signature Return Type Description
decode_bitmap( encoded_bytes:Byte[] ) Bitmap
encode_bitmap( bitmap:Bitmap, type:BitmapEncodingType ) Byte[]
to_bmp_bytes( bitmap:Bitmap ) Byte[]
to_gif_bytes( bitmap:Bitmap ) Byte[]
to_jpeg2000_bytes( bitmap:Bitmap ) Byte[]
to_jpeg_bytes( bitmap:Bitmap ) Byte[]
to_png_bytes( bitmap:Bitmap ) Byte[]
to_tiff_bytes( bitmap:Bitmap ) Byte[]

System.rogue

class System

extends Object

Global Properties

Name Type Description
command_line_arguments String[]
executable_filepath String
execution_start_ms Int64 Minus 1 so that initial time is not 0

Global Methods

Signature Return Type Description
breakpoint()
executable_filepath() String
execution_time() Real Execution time in seconds.
execution_time_ms() Int64 Execution time in milliseconds.
exit( [result_code=0:Int32] )
find_executable( name:String ) File? Returns the executable filepath of the given program or else null. Uses 'where' on Windows and 'which' on other platforms.
home_folder() String
int_bits() Int
is_android() Logical
is_apple() Logical
is_cygwin() Logical
is_ios() Logical
is_linux() Logical
is_macos() Logical
is_mobile() Logical
is_native_byte_order_low_high() Logical true is returned if the native byte order is low-high (0x11223344 stored as [44,33,22,11]) false is returned if the native byte order is high-low (0x11223344 stored as [11,22,33,44])
is_tablet() Logical
is_web() Logical
is_windows() Logical
open_url_in_external_browser( url:String )
os() String Returns one of:
  macOS
  Windows
  iOS
  Android
  Cygwin
  Web
  Linux (includes Unix and Posix)
preferred_language_codes() String[] Returns a list of preferred languages (e.g. "en", "pt-BR").
preferred_language_code( [supported_languages=null:String[]] ) String Returns the the fully qualified language code ("en-US") of the first language the system prefers that also appears in the supported_languages list (if provided). If there are no matches (or the system does not provide any language preferences) then null is returned.

'supported_languages' can include general languages such as "en" and/or specialized languages such as "en-US".
real_bits() Int
request_gc()
run( command:String ) Int32
sleep( seconds:Real ) Suspends execution of this program for the specified number of seconds.
sleep_ms( ms:Int32 )
sync_storage()
ticks() Int32 Execution time in 1/60th second ticks, +1 to avoid potential logic bugs with 0.
time() Real64
time_ms() Int64

class SystemEnvironment [singleton]

extends Object

Properties

Name Type Description
definitions [String:String]
names String[]

Methods

Signature Return Type Description
contains( name:String ) Logical
count() Int32
definitions() [String:String]
get( index:Int32 ) String
get( name:String ) String
names() String[]
set( name:String, value:String )
to<<String>>() String

Windows.rogue

class Windows [singleton]

extends Object

Methods

Signature Return Type Description
is_windows_10_or_greater() Logical

Clone this wiki locally