SlideShare a Scribd company logo
Ring Documentation, Release 1.4
• bool al_install_keyboard(void)
• bool al_is_keyboard_installed(void)
• void al_uninstall_keyboard(void)
• void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state)
• bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode)
• const char *al_keycode_to_name(int keycode)
• bool al_set_keyboard_leds(int leds)
• ALLEGRO_EVENT_SOURCE *al_get_keyboard_event_source(void)
• void *al_malloc_with_context(size_t n,int line, const char *file, const char *func)
• void al_free_with_context(void *ptr, int line, const char *file, const char *func)
• void *al_realloc_with_context(void *ptr, size_t n,int line, const char *file, const char *func)
• void *al_calloc_with_context(size_t count, size_t n,int line, const char *file, const char *func)
• void al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE *memory_interface)
• int al_get_new_display_adapter(void)
• void al_set_new_display_adapter(int adapter)
• bool al_get_monitor_info(int adapter, ALLEGRO_MONITOR_INFO *info)
• int al_get_num_video_adapters(void)
• bool al_install_mouse(void)
• bool al_is_mouse_installed(void)
• void al_uninstall_mouse(void)
• unsigned int al_get_mouse_num_axes(void)
• unsigned int al_get_mouse_num_buttons(void)
• void al_get_mouse_state(ALLEGRO_MOUSE_STATE *ret_state)
• int al_get_mouse_state_axis(const ALLEGRO_MOUSE_STATE *state, int axis)
• bool al_mouse_button_down(const ALLEGRO_MOUSE_STATE *state, int button)
• bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)
• bool al_set_mouse_z(int z)
• bool al_set_mouse_w(int w)
• bool al_set_mouse_axis(int which, int value)
• ALLEGRO_EVENT_SOURCE *al_get_mouse_event_source(void)
• ALLEGRO_MOUSE_CURSOR *al_create_mouse_cursor(ALLEGRO_BITMAP *bmp,int x_focus, int
y_focus)
• void al_destroy_mouse_cursor(ALLEGRO_MOUSE_CURSOR *cursor)
• bool al_set_mouse_cursor(ALLEGRO_DISPLAY *display, ALLEGRO_MOUSE_CURSOR *cursor)
• bool al_set_system_mouse_cursor(ALLEGRO_DISPLAY *display,ALLEGRO_SYSTEM_MOUSE_CURSOR
cursor_id)
• bool al_get_mouse_cursor_position(int *ret_x, int *ret_y)
638
Ring Documentation, Release 1.4
• bool al_hide_mouse_cursor(ALLEGRO_DISPLAY *display)
• bool al_show_mouse_cursor(ALLEGRO_DISPLAY *display)
• bool al_grab_mouse(ALLEGRO_DISPLAY *display)
• bool al_ungrab_mouse(void)
• ALLEGRO_PATH *al_create_path(const char *str)
• ALLEGRO_PATH *al_create_path_for_directory(const char *str)
• void al_destroy_path(ALLEGRO_PATH *path)
• ALLEGRO_PATH *al_clone_path(const ALLEGRO_PATH *path)
• bool al_join_paths(ALLEGRO_PATH *path, const ALLEGRO_PATH *tail)
• bool al_rebase_path(const ALLEGRO_PATH *head, ALLEGRO_PATH *tail)
• const char *al_get_path_drive(const ALLEGRO_PATH *path)
• int al_get_path_num_components(const ALLEGRO_PATH *path)
• const char *al_get_path_component(const ALLEGRO_PATH *path, int i)
• const char *al_get_path_tail(const ALLEGRO_PATH *path)
• const char *al_get_path_filename(const ALLEGRO_PATH *path)
• const char *al_get_path_basename(const ALLEGRO_PATH *path)
• const char *al_get_path_extension(const ALLEGRO_PATH *path)
• void al_set_path_drive(ALLEGRO_PATH *path, const char *drive)
• void al_append_path_component(ALLEGRO_PATH *path, const char *s)
• void al_insert_path_component(ALLEGRO_PATH *path, int i, const char *s)
• void al_replace_path_component(ALLEGRO_PATH *path, int i, const char *s)
• void al_remove_path_component(ALLEGRO_PATH *path, int i)
• void al_drop_path_tail(ALLEGRO_PATH *path)
• void al_set_path_filename(ALLEGRO_PATH *path, const char *filename)
• bool al_set_path_extension(ALLEGRO_PATH *path, char const *extension)
• const char *al_path_cstr(const ALLEGRO_PATH *path, char delim)
• bool al_make_path_canonical(ALLEGRO_PATH *path)
• void al_restore_state(ALLEGRO_STATE const *state)
• void al_store_state(ALLEGRO_STATE *state, int flags
• int al_get_errno(void)
• void al_set_errno(int errnum)
• void al_uninstall_system(void)
• bool al_is_system_installed(void)
• uint32_t al_get_allegro_version(void)
• ALLEGRO_PATH *al_get_standard_path(int id)
• void al_set_exe_name(char const *path)
639
Ring Documentation, Release 1.4
• void al_set_app_name(const char *app_name)
• void al_set_org_name(const char *org_name)
• const char *al_get_app_name(void)
• const char *al_get_org_name(void)
• ALLEGRO_CONFIG *al_get_system_config(void)
• ALLEGRO_THREAD *al_create_thread(void)
• void al_run_detached_thread(void)
• void al_start_thread(ALLEGRO_THREAD *thread)
• void al_join_thread(ALLEGRO_THREAD *thread, void **ret_value)
• void al_set_thread_should_stop(ALLEGRO_THREAD *thread)
• bool al_get_thread_should_stop(ALLEGRO_THREAD *thread)
• void al_destroy_thread(ALLEGRO_THREAD *thread)
• ALLEGRO_MUTEX *al_create_mutex(void)
• ALLEGRO_MUTEX *al_create_mutex_recursive(void)
• void al_lock_mutex(ALLEGRO_MUTEX *mutex)
• void al_unlock_mutex(ALLEGRO_MUTEX *mutex)
• void al_destroy_mutex(ALLEGRO_MUTEX *mutex)
• ALLEGRO_COND *al_create_cond(void)
• void al_destroy_cond(ALLEGRO_COND *cond)
• void al_wait_cond(ALLEGRO_COND *cond, ALLEGRO_MUTEX *mutex)
• int al_wait_cond_until(ALLEGRO_COND *cond, ALLEGRO_MUTEX *mutex,const ALLEGRO_TIMEOUT
*timeout)
• void al_broadcast_cond(ALLEGRO_COND *cond)
• void al_signal_cond(ALLEGRO_COND *cond)
• double al_get_time(void)
• void al_init_timeout(ALLEGRO_TIMEOUT *timeout, double seconds)
• void al_rest(double seconds)
• ALLEGRO_TIMER *al_create_timer(double speed_secs)
• void al_start_timer(ALLEGRO_TIMER *timer)
• void al_stop_timer(ALLEGRO_TIMER *timer)
• bool al_get_timer_started(const ALLEGRO_TIMER *timer)
• void al_destroy_timer(ALLEGRO_TIMER *timer)
• int64_t al_get_timer_count(const ALLEGRO_TIMER *timer)
• void al_set_timer_count(ALLEGRO_TIMER *timer, int64_t new_count)
• void al_add_timer_count(ALLEGRO_TIMER *timer, int64_t diff)
• double al_get_timer_speed(const ALLEGRO_TIMER *timer)
640
Ring Documentation, Release 1.4
• void al_set_timer_speed(ALLEGRO_TIMER *timer, double new_speed_secs)
• ALLEGRO_EVENT_SOURCE *al_get_timer_event_source(ALLEGRO_TIMER *timer)
• void al_copy_transform(ALLEGRO_TRANSFORM *dest, const ALLEGRO_TRANSFORM *src)
• void al_use_transform(const ALLEGRO_TRANSFORM *trans)
• const ALLEGRO_TRANSFORM *al_get_current_transform(void)
• void al_invert_transform(ALLEGRO_TRANSFORM *trans)
• int al_check_inverse(const ALLEGRO_TRANSFORM *trans, float tol)
• void al_identity_transform(ALLEGRO_TRANSFORM *trans)
• void al_build_transform(ALLEGRO_TRANSFORM *trans, float x, float y,float sx, float sy, float theta)
• void al_translate_transform(ALLEGRO_TRANSFORM *trans, float x, float y)
• void al_rotate_transform(ALLEGRO_TRANSFORM *trans, float theta)
• void al_scale_transform(ALLEGRO_TRANSFORM *trans, float sx, float sy)
• void al_transform_coordinates(const ALLEGRO_TRANSFORM *trans, float *x, float *y)
• void al_compose_transform(ALLEGRO_TRANSFORM *trans, const ALLEGRO_TRANSFORM *other)
• ALLEGRO_USTR *al_ustr_new(const char *s)
• ALLEGRO_USTR *al_ustr_new_from_buffer(const char *s, size_t size)
• void al_ustr_free(ALLEGRO_USTR *us)
• const char *al_cstr(const ALLEGRO_USTR *us)
• void al_ustr_to_buffer(const ALLEGRO_USTR *us, char *buffer, int size)
• char *al_cstr_dup(const ALLEGRO_USTR *us)
• ALLEGRO_USTR *al_ustr_dup(const ALLEGRO_USTR *us)
• ALLEGRO_USTR *al_ustr_dup_substr(const ALLEGRO_USTR *us, int start_pos,int end_pos)
• const ALLEGRO_USTR *al_ustr_empty_string(void)
• const ALLEGRO_USTR *al_ref_cstr(ALLEGRO_USTR_INFO *info, const char *s)
• const ALLEGRO_USTR *al_ref_buffer(ALLEGRO_USTR_INFO *info, const char *s, size_t size)
• const ALLEGRO_USTR *al_ref_ustr(ALLEGRO_USTR_INFO *info, const ALLEGRO_USTR *us,int
start_pos, int end_pos)
• size_t al_ustr_size(const ALLEGRO_USTR *us)
• size_t al_ustr_length(const ALLEGRO_USTR *us)
• int al_ustr_offset(const ALLEGRO_USTR *us, int index)
• bool al_ustr_next(const ALLEGRO_USTR *us, int *pos)
• bool al_ustr_prev(const ALLEGRO_USTR *us, int *pos)
• int32_t al_ustr_get(const ALLEGRO_USTR *ub, int pos)
• int32_t al_ustr_get_next(const ALLEGRO_USTR *us, int *pos)
• int32_t al_ustr_prev_get(const ALLEGRO_USTR *us, int *pos)
• bool al_ustr_insert(ALLEGRO_USTR *us1, int pos, const ALLEGRO_USTR *us2)
641
Ring Documentation, Release 1.4
• bool al_ustr_insert_cstr(ALLEGRO_USTR *us, int pos, const char *s)
• size_t al_ustr_insert_chr(ALLEGRO_USTR *us, int pos, int32_t c)
• bool al_ustr_append(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• bool al_ustr_append_cstr(ALLEGRO_USTR *us, const char *s)
• size_t al_ustr_append_chr(ALLEGRO_USTR *us, int32_t c)
• bool al_ustr_remove_chr(ALLEGRO_USTR *us, int pos)
• bool al_ustr_remove_range(ALLEGRO_USTR *us, int start_pos, int end_pos)
• bool al_ustr_truncate(ALLEGRO_USTR *us, int start_pos)
• bool al_ustr_ltrim_ws(ALLEGRO_USTR *us)
• bool al_ustr_rtrim_ws(ALLEGRO_USTR *us)
• bool al_ustr_trim_ws(ALLEGRO_USTR *us)
• bool al_ustr_assign(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• bool al_ustr_assign_substr(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2,int start_pos, int end_pos)
• bool al_ustr_assign_cstr(ALLEGRO_USTR *us1, const char *s)
• size_t al_ustr_set_chr(ALLEGRO_USTR *us, int start_pos, int32_t c)
• bool al_ustr_replace_range(ALLEGRO_USTR *us1, int start_pos1, int end_pos1,const ALLEGRO_USTR
*us2)
• int al_ustr_find_chr(const ALLEGRO_USTR *us, int start_pos, int32_t c)
• int al_ustr_rfind_chr(const ALLEGRO_USTR *us, int end_pos, int32_t c)
• int al_ustr_find_set(const ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *accept)
• int al_ustr_find_set_cstr(const ALLEGRO_USTR *us, int start_pos,const char *accept)
• int al_ustr_find_cset(const ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *reject)
• int al_ustr_find_cset_cstr(const ALLEGRO_USTR *us, int start_pos,const char *reject)
• int al_ustr_find_str(const ALLEGRO_USTR *haystack, int start_pos,const ALLEGRO_USTR *needle)
• int al_ustr_find_cstr(const ALLEGRO_USTR *haystack, int start_pos,const char *needle)
• int al_ustr_rfind_str(const ALLEGRO_USTR *haystack, int end_pos,const ALLEGRO_USTR *needle)
• int al_ustr_rfind_cstr(const ALLEGRO_USTR *haystack, int end_pos,const char *needle)
• bool al_ustr_find_replace(ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *find, const ALLE-
GRO_USTR *replace)
• bool al_ustr_find_replace_cstr(ALLEGRO_USTR *us, int start_pos,const char *find, const char *replace)
• int al_ustr_compare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• int al_ustr_ncompare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2, int n)
• bool al_ustr_equal(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• bool al_ustr_has_prefix(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• bool al_ustr_has_prefix_cstr(const ALLEGRO_USTR *us1, const char *s2)
• bool al_ustr_has_suffix(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2)
• bool al_ustr_has_suffix_cstr(const ALLEGRO_USTR *us1, const char *s2)
642
Ring Documentation, Release 1.4
• ALLEGRO_USTR *al_ustr_new_from_utf16(uint16_t const *s)
• size_t al_ustr_size_utf16(const ALLEGRO_USTR *us)
• size_t al_ustr_encode_utf16(const ALLEGRO_USTR *us, uint16_t *s,size_t n)
• size_t al_utf8_width(int c)
• size_t al_utf8_encode(char s[], int32_t c)
• size_t al_utf16_width(int c)
• LPDIRECT3DDEVICE9 al_get_d3d_device(ALLEGRO_DISPLAY *display)
• LPDIRECT3DTEXTURE9 al_get_d3d_system_texture(ALLEGRO_BITMAP *bitmap)
• LPDIRECT3DTEXTURE9 al_get_d3d_video_texture(ALLEGRO_BITMAP *bitmap)
• bool al_have_d3d_non_pow2_texture_support(void)
• bool al_have_d3d_non_square_texture_support(void)
• void al_get_d3d_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v)
• bool al_is_d3d_device_lost(ALLEGRO_DISPLAY *display)
• ALLEGRO_OGL_EXT_LIST *al_get_opengl_extension_list(void)
• void *al_get_opengl_proc_address(const char *name)
• GLuint al_get_opengl_texture(ALLEGRO_BITMAP *bitmap)
• void al_get_opengl_texture_size(ALLEGRO_BITMAP *bitmap, int *w, int *h)
• void al_get_opengl_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v)
• GLuint al_get_opengl_fbo(ALLEGRO_BITMAP *bitmap)
• void al_remove_opengl_fbo(ALLEGRO_BITMAP *bitmap)
• bool al_have_opengl_extension(const char *extension);
• uint32_t al_get_opengl_version(void)
• int al_get_opengl_variant(void)
• void al_set_current_opengl_context(ALLEGRO_DISPLAY *display)
• bool al_install_audio(void)
• void al_uninstall_audio(void)
• bool al_is_audio_installed(void)
• bool al_reserve_samples(int reserve_samples)
• uint32_t al_get_allegro_audio_version(void)
• size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)
• size_t al_get_channel_count(ALLEGRO_CHANNEL_CONF conf)
• ALLEGRO_VOICE *al_create_voice(unsigned int freq,ALLEGRO_AUDIO_DEPTH depth, ALLE-
GRO_CHANNEL_CONF chan_conf)
• void al_destroy_voice(ALLEGRO_VOICE *voice)
• void al_detach_voice(ALLEGRO_VOICE *voice)
• bool al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM *stream,ALLEGRO_VOICE *voice)
643
Ring Documentation, Release 1.4
• bool al_attach_mixer_to_voice(ALLEGRO_MIXER *mixer, ALLEGRO_VOICE *voice)
• bool al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_VOICE
*voice)
• unsigned int al_get_voice_frequency(const ALLEGRO_VOICE *voice)
• ALLEGRO_CHANNEL_CONF al_get_voice_channels(const ALLEGRO_VOICE *voice)
• ALLEGRO_AUDIO_DEPTH al_get_voice_depth(const ALLEGRO_VOICE *voice)
• bool al_get_voice_playing(const ALLEGRO_VOICE *voice)
• bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val)
• unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice)
• bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val)
• ALLEGRO_SAMPLE *al_create_sample(void *buf, unsigned int samples,unsigned int freq, ALLE-
GRO_AUDIO_DEPTH depth,ALLEGRO_CHANNEL_CONF chan_conf, bool free_buf)
• void al_destroy_sample(ALLEGRO_SAMPLE *spl)
• bool al_play_sample(ALLEGRO_SAMPLE *spl, float gain, float pan, float speed,int loop, ALLE-
GRO_SAMPLE_ID *ret_id)
• void al_stop_sample(ALLEGRO_SAMPLE_ID *spl_id)
• void al_stop_samples(void)
• ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl)
• ALLEGRO_AUDIO_DEPTH al_get_sample_depth(const ALLEGRO_SAMPLE *spl)
• unsigned int al_get_sample_frequency(const ALLEGRO_SAMPLE *spl)
• unsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl)
• void *al_get_sample_data(const ALLEGRO_SAMPLE *spl)
• ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data)
• void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_CHANNEL_CONF al_get_sample_instance_channels(const ALLEGRO_SAMPLE_INSTANCE
*spl)
• ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth(const ALLEGRO_SAMPLE_INSTANCE *spl)
• unsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl)
• unsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val)
• unsigned int al_get_sample_instance_position(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val)
• float al_get_sample_instance_speed(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
• float al_get_sample_instance_gain(const ALLEGRO_SAMPLE_INSTANCE *spl)
644
Ring Documentation, Release 1.4
• bool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
• float al_get_sample_instance_pan(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val)
• float al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_PLAYMODE al_get_sample_instance_playmode(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_PLAYMODE
val)
• bool al_get_sample_instance_playing(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE *spl, bool val)
• bool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl)
• ALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl)
• bool al_set_sample(ALLEGRO_SAMPLE_INSTANCE *spl, ALLEGRO_SAMPLE *data)
• ALLEGRO_MIXER *al_create_mixer(unsigned int freq,ALLEGRO_AUDIO_DEPTH depth, ALLE-
GRO_CHANNEL_CONF chan_conf)
• void al_destroy_mixer(ALLEGRO_MIXER *mixer)
• ALLEGRO_MIXER *al_get_default_mixer(void)
• bool al_set_default_mixer(ALLEGRO_MIXER *mixer)
• bool al_restore_default_mixer(void)
• bool al_attach_mixer_to_mixer(ALLEGRO_MIXER *stream, ALLEGRO_MIXER *mixer)
• bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_MIXER
*mixer)
• bool al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM *stream, ALLEGRO_MIXER *mixer)
• unsigned int al_get_mixer_frequency(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val)
• ALLEGRO_CHANNEL_CONF al_get_mixer_channels(const ALLEGRO_MIXER *mixer)
• ALLEGRO_AUDIO_DEPTH al_get_mixer_depth(const ALLEGRO_MIXER *mixer)
• float al_get_mixer_gain(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain)
• ALLEGRO_MIXER_QUALITY al_get_mixer_quality(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_quality(ALLEGRO_MIXER *mixer, ALLEGRO_MIXER_QUALITY new_quality)
• bool al_get_mixer_playing(const ALLEGRO_MIXER *mixer)
• bool al_set_mixer_playing(ALLEGRO_MIXER *mixer, bool val)
• bool al_get_mixer_attached(const ALLEGRO_MIXER *mixer)
• bool al_detach_mixer(ALLEGRO_MIXER *mixer)
• void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
645
Ring Documentation, Release 1.4
• ALLEGRO_EVENT_SOURCE *al_get_audio_stream_event_source(ALLEGRO_AUDIO_STREAM
*stream)
• void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
• bool al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
• unsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream)
• ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels(const ALLEGRO_AUDIO_STREAM
*stream)
• ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth(const ALLEGRO_AUDIO_STREAM *stream)
• unsigned int al_get_audio_stream_length(const ALLEGRO_AUDIO_STREAM *stream)
• float al_get_audio_stream_speed(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM *stream, float val)
• float al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val)
• float al_get_audio_stream_pan(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val)
• bool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM *stream, bool val)
• ALLEGRO_PLAYMODE al_get_audio_stream_playmode(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM *stream,ALLEGRO_PLAYMODE val)
• bool al_get_audio_stream_attached(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_detach_audio_stream(ALLEGRO_AUDIO_STREAM *stream)
• void *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val)
• unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
• unsigned int al_get_available_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream)
• bool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time)
• double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream)
• double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream)
• bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,double start, double end)
• ALLEGRO_SAMPLE *al_load_sample(const char *filename)
• ALLEGRO_SAMPLE al_load_sample_f(ALLEGRO_FILE fp, const char *ident)
• ALLEGRO_AUDIO_STREAM *al_load_audio_stream(const char *filename,size_t buffer_count, unsigned int
samples)
• ALLEGRO_AUDIO_STREAM al_load_audio_stream_f(ALLEGRO_FILE fp, const char *ident,size_t
buffer_count, unsigned int samples)
• bool al_save_sample(const char *filename, ALLEGRO_SAMPLE *spl)
• bool al_save_sample_f(ALLEGRO_FILE *fp, const char *ident, ALLEGRO_SAMPLE *spl)
646
Ring Documentation, Release 1.4
• bool al_init_acodec_addon(void)
• uint32_t al_get_allegro_acodec_version(void)
• ALLEGRO_COLOR al_color_cmyk(float c, float m, float y, float k)
• void al_color_cmyk_to_rgb(float cyan, float magenta, float yellow,float key, float *red, float *green, float *blue)
• ALLEGRO_COLOR al_color_hsl(float h, float s, float l)
• void al_color_hsl_to_rgb(float hue, float saturation, float lightness,float *red, float *green, float *blue)
• ALLEGRO_COLOR al_color_hsv(float h, float s, float v)
• void al_color_hsv_to_rgb(float hue, float saturation, float value,float *red, float *green, float *blue)
• ALLEGRO_COLOR al_color_html(char const *string)
• void al_color_html_to_rgb(char const *string,float *red, float *green, float *blue)
• void al_color_rgb_to_html(float red, float green, float blue,char *string)
• ALLEGRO_COLOR al_color_name(char const *name)
• bool al_color_name_to_rgb(char const *name, float *r, float *g, float *b)
• void al_color_rgb_to_cmyk(float red, float green, float blue,float *cyan, float *magenta, float *yellow, float
*key)
• void al_color_rgb_to_hsl(float red, float green, float blue,float *hue, float *saturation, float *lightness)
• void al_color_rgb_to_hsv(float red, float green, float blue,float *hue, float *saturation, float *value)
• char const *al_color_rgb_to_name(float r, float g, float b)
• void al_color_rgb_to_yuv(float red, float green, float blue,float *y, float *u, float *v)
• ALLEGRO_COLOR al_color_yuv(float y, float u, float v)
• void al_color_yuv_to_rgb(float y, float u, float v,float *red, float *green, float *blue)
• uint32_t al_get_allegro_color_version(void)
• void al_init_font_addon(void)
• void al_shutdown_font_addon(void)
• ALLEGRO_FONT *al_load_font(char const *filename, int size, int flags)
• void al_destroy_font(ALLEGRO_FONT *f)
• int al_get_font_ascent(const ALLEGRO_FONT *f)
• int al_get_font_descent(const ALLEGRO_FONT *f)
• int al_get_text_width(const ALLEGRO_FONT *f, const char *str)
• int al_get_ustr_width(const ALLEGRO_FONT *f, ALLEGRO_USTR const *ustr)
• void al_draw_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,char const
*text)
• void al_draw_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,const
ALLEGRO_USTR *ustr)
• void al_draw_justified_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float
y, float diff, int flags, const char *text)
• void al_draw_justified_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float
y, float diff, int flags, const ALLEGRO_USTR *ustr)
647
Ring Documentation, Release 1.4
• void al_get_text_dimensions(const ALLEGRO_FONT *f,char const *text,int *bbx, int *bby, int *bbw, int *bbh)
• void al_get_ustr_dimensions(const ALLEGRO_FONT *f,ALLEGRO_USTR const *ustr,int *bbx, int *bby, int
*bbw, int *bbh)
• uint32_t al_get_allegro_font_version(void)
• ALLEGRO_FONT *al_grab_font_from_bitmap(ALLEGRO_BITMAP *bmp,int ranges_n, const int ranges[])
• ALLEGRO_FONT *al_load_bitmap_font(const char *fname)
• ALLEGRO_FONT *al_create_builtin_font(void)
• bool al_init_ttf_addon(void)
• void al_shutdown_ttf_addon(void)
• ALLEGRO_FONT *al_load_ttf_font(char const *filename, int size, int flags)
• ALLEGRO_FONT *al_load_ttf_font_f(ALLEGRO_FILE *file,char const *filename, int size, int flags)
• ALLEGRO_FONT *al_load_ttf_font_stretch(char const *filename, int w, int h,int flags)
• ALLEGRO_FONT *al_load_ttf_font_stretch_f(ALLEGRO_FILE *file,char const *filename, int w, int h, int
flags)
• uint32_t al_get_allegro_ttf_version(void)
• bool al_init_image_addon(void)
• void al_shutdown_image_addon(void)
• uint32_t al_get_allegro_image_version(void)
• ALLEGRO_FILE *al_open_memfile(void *mem, int64_t size, const char *mode)
• uint32_t al_get_allegro_memfile_version(void)
• bool al_init_native_dialog_addon(void)
• void al_shutdown_native_dialog_addon(void)
• ALLEGRO_FILECHOOSER *al_create_native_file_dialog(char const *initial_path,char const *title,char const
*patterns,int mode)
• bool al_show_native_file_dialog(ALLEGRO_DISPLAY *display,ALLEGRO_FILECHOOSER *dialog)
• int al_get_native_file_dialog_count(const ALLEGRO_FILECHOOSER *dialog)
• const char *al_get_native_file_dialog_path(const ALLEGRO_FILECHOOSER *dialog, size_t i)
• void al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER *dialog)
• int al_show_native_message_box(ALLEGRO_DISPLAY *display,char const *title, char const *heading, char
const *text,char const *buttons, int flags)
• ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags)
• void al_close_native_text_log(ALLEGRO_TEXTLOG *textlog)
• uint32_t al_get_allegro_native_dialog_version(void)
• void al_set_physfs_file_interface(void)
• uint32_t al_get_allegro_physfs_version(void)
• uint32_t al_get_allegro_primitives_version(void)
• bool al_init_primitives_addon(void)
648
Ring Documentation, Release 1.4
• void al_shutdown_primitives_addon(void)
• void al_draw_line(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness)
• void al_draw_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color, float
thickness)
• void al_draw_filled_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color)
• void al_draw_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness)
• void al_draw_filled_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color)
• void al_draw_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR color,
float thickness)
• void al_draw_filled_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR
color)
• void al_calculate_arc(float* dest, int stride, float cx, float cy,float rx, float ry, float start_theta, float delta_theta,
float thickness,int num_points)
• void al_draw_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color,
float thickness)
• void al_draw_filled_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR
color)
• void al_draw_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color, float thickness)
• void al_draw_filled_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color)
• void al_draw_circle(float cx, float cy, float r, ALLEGRO_COLOR color,float thickness)
• void al_draw_filled_circle(float cx, float cy, float r, ALLEGRO_COLOR color)
• void al_draw_arc(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color, float
thickness)
• void al_draw_elliptical_arc(float cx, float cy, float rx, float ry, float start_theta,float delta_theta, ALLE-
GRO_COLOR color, float thickness)
• void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,float thickness, int
num_segments)
• int al_draw_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP* texture,
int start, int end, int type)
• int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP*
texture, const int* indices, int num_vtx, int type)
• ALLEGRO_VERTEX_DECL* al_create_vertex_decl(const ALLEGRO_VERTEX_ELEMENT* elements, int
stride)
• void al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL* decl)
649
CHAPTER
SIXTYEIGHT
RINGLIBSDL FUNCTIONS REFERENCE
• void SDL_RenderCopy2(SDL_Renderer *,SDL_Texture *)
• void SDL_Delay(int)
• void SDL_Init(int)
• int SDL_InitSubSystem(Uint32 flags)
• void SDL_Quit(void)
• void SDL_QuitSubSystem(Uint32 flags)
• void SDL_SetMainReady(void)
• Uint32 SDL_WasInit(Uint32 flags)
• SDL_bool SDL_SetHint(const char *name,const char *value)
• SDL_bool SDL_SetHintWithPriority(const char *name,const char *value,SDL_HintPriority priority)
• void SDL_ClearError(void)
• const char *SDL_GetError(void)
• SDL_LogPriority SDL_LogGetPriority(int category)
• void SDL_LogResetPriorities(void)
• void SDL_LogSetAllPriority(SDL_LogPriority priority)
• SDL_AssertionHandler SDL_GetDefaultAssertionHandler(void)
• void SDL_ResetAssertionReport(void)
• void SDL_SetAssertionHandler(SDL_AssertionHandler handler,void *userdata)
• void SDL_TriggerBreakpoint(void)
• void SDL_assert(int)
• void SDL_assert_paranoid(int)
• void SDL_assert_release(int)
• const char * SDL_GetRevision(void)
• int SDL_GetRevisionNumber(void)
• void SDL_GetVersion(SDL_version *ver)
• SDL_Window *SDL_CreateWindow(const char * title,int x, int y,int w,int h,Uint32 flags)
• void SDL_DestroyWindow(SDL_Window *window)
650
Ring Documentation, Release 1.4
• void SDL_DisableScreenSaver(void)
• void SDL_EnableScreenSaver(void)
• SDL_GLContext SDL_GL_CreateContext(SDL_Window *window)
• void SDL_GL_DeleteContext(SDL_GLContext context)
• SDL_bool SDL_GL_ExtensionSupported(const char *extension)
• int SDL_GL_GetAttribute(SDL_GLattr attr,int *value)
• SDL_GLContext SDL_GL_GetCurrentContext(void)
• SDL_Window *SDL_GL_GetCurrentWindow(void)
• void SDL_GL_GetDrawableSize(SDL_Window *window,int *w,int *h)
• void *SDL_GL_GetProcAddress(const char *proc)
• int SDL_GL_GetSwapInterval(void)
• int SDL_GL_LoadLibrary(const char *path)
• int SDL_GL_MakeCurrent(SDL_Window *window,SDL_GLContext context)
• void SDL_GL_ResetAttributes(void)
• int SDL_GL_SetAttribute(SDL_GLattr attr,int value)
• int SDL_GL_SetSwapInterval(int interval)
• void SDL_GL_SwapWindow(SDL_Window *window)
• void SDL_GL_UnloadLibrary(void)
• SDL_DisplayMode *SDL_GetClosestDisplayMode(int displayIndex,SDL_DisplayMode
*mode,SDL_DisplayMode *closest)
• int SDL_GetCurrentDisplayMode(int displayIndex,SDL_DisplayMode *mode)
• const char *SDL_GetCurrentVideoDriver(void)
• int SDL_GetDesktopDisplayMode(int displayIndex,SDL_DisplayMode *mode)
• int SDL_GetDisplayBounds(int displayIndex,SDL_Rect *rect)
• int SDL_GetNumVideoDisplays(void)
• int SDL_GetNumVideoDrivers(void)
• const char * SDL_GetVideoDriver(int index)
• void *SDL_GetWindowData(SDL_Window *window,const char *name)
• int SDL_GetWindowDisplayIndex(SDL_Window *window)
• int SDL_GetWindowDisplayMode(SDL_Window *window,SDL_DisplayMode *mode)
• Uint32 SDL_GetWindowFlags(SDL_Window *window)
• SDL_Window *SDL_GetWindowFromID(Uint32 id)
• int SDL_GetWindowGammaRamp(SDL_Window *window,Uint16 *red,Uint16 *green,Uint16 *blue)
• SDL_bool SDL_GetWindowGrab(SDL_Window *window)
• Uint32 SDL_GetWindowID(SDL_Window* window)
• void SDL_GetWindowMaximumSize(SDL_Window *window,int *w,int *h)
651
Ring Documentation, Release 1.4
• void SDL_GetWindowMinimumSize(SDL_Window *window,int *w,int *h)
• void SDL_GetWindowPosition(SDL_Window *window,int *x,int *y)
• void SDL_GetWindowSize(SDL_Window *window,int *w,int *h)
• SDL_Surface *SDL_GetWindowSurface(SDL_Window *window)
• const char *SDL_GetWindowTitle(SDL_Window *window)
• SDL_bool SDL_IsScreenSaverEnabled(void)
• void SDL_MaximizeWindow(SDL_Window *window)
• void SDL_MinimizeWindow(SDL_Window *window)
• void SDL_RaiseWindow(SDL_Window *window)
• void SDL_RestoreWindow(SDL_Window *window)
• void SDL_SetWindowBordered(SDL_Window *window,SDL_bool bordered)
• int SDL_SetWindowBrightness(SDL_Window *window,float brightness)
• void *SDL_SetWindowData(SDL_Window *window,const char *name,void *userdata)
• int SDL_SetWindowDisplayMode(SDL_Window *window,const SDL_DisplayMode *mode)
• int SDL_SetWindowFullscreen(SDL_Window *window,Uint32 flags)
• int SDL_SetWindowGammaRamp(SDL_Window window,const Uint16 *red,const Uint16 *green,const Uint16
blue)
• void SDL_SetWindowGrab(SDL_Window *window,SDL_bool grabbed)
• void SDL_SetWindowMinimumSize(SDL_Window* window,int min_w,int min_h)
• void SDL_SetWindowSize(SDL_Window *window,int w,int h)
• void SDL_SetWindowTitle(SDL_Window *window,const char *title)
• int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata,int *buttonid)
• int SDL_ShowSimpleMessageBox(Uint32 flags,const char *title,const char *message,SDL_Window *window)
• void SDL_ShowWindow(SDL_Window *window)
• int SDL_UpdateWindowSurface(SDL_Window *window)
• int SDL_UpdateWindowSurfaceRects(SDL_Window *window,const SDL_Rect *rects,int numrects)
• int SDL_VideoInit(const char *driver_name)
• void SDL_VideoQuit(void)
• SDL_Renderer *SDL_CreateRenderer(SDL_Window *window,int index,Uint32 flags)
• SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface)
• SDL_Texture *SDL_CreateTexture(SDL_Renderer *renderer,Uint32 format,int access,int w,int h)
• SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer,SDL_Surface *surface)
• void SDL_DestroyTexture(SDL_Texture *texture)
• int SDL_GL_BindTexture(SDL_Texture *texture,float *texw,float *texh)
• int SDL_GL_UnbindTexture(SDL_Texture *texture)
• int SDL_GetNumRenderDrivers(void)
652
Ring Documentation, Release 1.4
• int SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode *blendMode)
• int SDL_GetRenderDrawColor(SDL_Renderer *renderer,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a)
• int SDL_GetRenderDriverInfo(int index,SDL_RendererInfo *info)
• SDL_Texture *SDL_GetRenderTarget(SDL_Renderer *renderer)
• SDL_Renderer *SDL_GetRenderer(SDL_Window *window)
• int SDL_GetRendererInfo(SDL_Renderer *renderer,SDL_RendererInfo *info)
• int SDL_GetRendererOutputSize(SDL_Renderer *renderer,int *w,int *h)
• int SDL_GetTextureAlphaMod(SDL_Texture *texture,Uint8 *alpha)
• int SDL_GetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode *blendMode)
• int SDL_GetTextureColorMod(SDL_Texture *texture,Uint8 *r,Uint8 *g,Uint8 *b)
• int SDL_LockTexture(SDL_Texture *texture,const SDL_Rect *rect,void **pixels,int *pitch)
• int SDL_QueryTexture(SDL_Texture *texture,int *format,int *access,int *w,int *h)
• int SDL_RenderClear(SDL_Renderer *renderer)
• int SDL_RenderCopy(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const
SDL_Rect *dstrect)
• int SDL_RenderCopyEx(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const
SDL_Rect *dstrect,const double angle,const SDL_Point *center,const SDL_RendererFlip flip)
• int SDL_RenderDrawLine(SDL_Renderer *renderer,int x1,int y1,int x2,int y2)
• int SDL_RenderDrawLines(SDL_Renderer *renderer,const SDL_Point *points,int count)
• int SDL_RenderDrawPoint(SDL_Renderer *renderer,int x, int y)
• int SDL_RenderDrawPoints(SDL_Renderer *renderer,const SDL_Point *points,int count)
• int SDL_RenderDrawRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderDrawRects(SDL_Renderer *renderer,const SDL_Rect *rects,int count)
• int SDL_RenderFillRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderFillRects(SDL_Renderer renderer,const SDL_Rect rects,int count)
• void SDL_RenderGetClipRect(SDL_Renderer *renderer,SDL_Rect *rect)
• void SDL_RenderGetScale(SDL_Renderer *renderer,float *scaleX,float *scaleY)
• void SDL_RenderGetViewport(SDL_Renderer *renderer,SDL_Rect *rect)
• int SDL_RenderReadPixels(SDL_Renderer *renderer,const SDL_Rect *rect,Uint32 format,void *pixels,int
pitch)
• int SDL_RenderSetClipRect(SDL_Renderer *renderer,const SDL_Rect *rect)
• int SDL_RenderSetScale(SDL_Renderer *renderer,float scaleX,float scaleY)
• int SDL_RenderSetViewport(SDL_Renderer *renderer,const SDL_Rect *rect)
• SDL_bool SDL_RenderTargetSupported(SDL_Renderer *renderer)
• int SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode blendMode)
• int SDL_SetRenderDrawColor(SDL_Renderer *renderer,Uint8 r,Uint8 g,Uint8 b,Uint8 a)
• int SDL_SetRenderTarget(SDL_Renderer *renderer,SDL_Texture *texture)
653
Ring Documentation, Release 1.4
• int SDL_SetTextureAlphaMod(SDL_Texture *texture,Uint8 alpha)
• int SDL_SetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode blendMode)
• int SDL_SetTextureColorMod(SDL_Texture *texture,Uint8 r,Uint8 g,Uint8 b)
• void SDL_UnlockTexture(SDL_Texture *texture)
• int SDL_UpdateTexture(SDL_Texture *texture,const SDL_Rect *rect,const void*pixels,int pitch)
• int SDL_UpdateYUVTexture(SDL_Texture *texture,const SDL_Rect *rect,const Uint8 *Yplane,int Yp-
itch,const Uint8 *Uplane,int Upitch,const Uint8 *Vplane,int Vpitch)
• SDL_PixelFormat *SDL_AllocFormat(Uint32 pixel_format)
• SDL_Palette *SDL_AllocPalette(int ncolors)
• void SDL_CalculateGammaRamp(float gamma,Uint16 *ramp)
• void SDL_FreeFormat(SDL_PixelFormat *format)
• void SDL_FreePalette(SDL_Palette *palette)
• const char *SDL_GetPixelFormatName(Uint32 format)
• void SDL_GetRGB(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b)
• void SDL_GetRGBA(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a)
• Uint32 SDL_MapRGB(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b)
• Uint32 SDL_MapRGBA(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b, Uint8 a)
• Uint32 SDL_MasksToPixelFormatEnum(int bpp,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask)
• SDL_bool SDL_PixelFormatEnumToMasks(Uint32 format,int *bpp,Uint32 *Rmask,Uint32 *Gmask,Uint32
*Bmask,Uint32 *Amask)
• int SDL_SetPaletteColors(SDL_Palette *palette,const SDL_Color *colors,int firstcolor,int ncolors)
• int SDL_SetPixelFormatPalette(SDL_PixelFormat *format,SDL_Palette *palette)
• SDL_bool SDL_EnclosePoints(const SDL_Point* points,int count,const SDL_Rect *clip,SDL_Rect *result)
• SDL_bool SDL_HasIntersection(const SDL_Rect *A,const SDL_Rect *B)
• SDL_bool SDL_IntersectRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result)
• SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect,int *X1,int *Y1,int *X2,int *Y2)
• SDL_bool SDL_RectEquals(const SDL_Rect *a,const SDL_Rect *b)
• void SDL_UnionRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result)
• int SDL_BlitScaled(SDL_Surface *src,const SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_BlitSurface(SDL_Surface src,const SDL_Rect srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_ConvertPixels(int width,int height,Uint32 src_format,const void *src,int src_pitch,Uint32
dst_format,void *dst,int dst_pitch)
• SDL_Surface *SDL_ConvertSurface(SDL_Surface *src,const SDL_PixelFormat *fmt,Uint32 flags)
• SDL_Surface *SDL_ConvertSurfaceFormat(SDL_Surface *src,Uint32 pixel_format,Uint32 flags)
• SDL_Surface *SDL_CreateRGBSurface(Uint32 flags,int width,int height,int depth,Uint32 Rmask,Uint32
Gmask,Uint32 Bmask,Uint32 Amask)
• SDL_Surface* SDL_CreateRGBSurfaceFrom(void *pixels,int width,int height,int depth,int pitch,Uint32
Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask)
654
Ring Documentation, Release 1.4
• int SDL_FillRect(SDL_Surface *dst,const SDL_Rect *rect,Uint32 color)
• int SDL_FillRects(SDL_Surface *dst,const SDL_Rect *rects,int count,Uint32 color)
• void SDL_FreeSurface(SDL_Surface *surface)
• void SDL_GetClipRect(SDL_Surface *surface,SDL_Rect *rect)
• int SDL_GetColorKey(SDL_Surface *surface,Uint32 *key)
• int SDL_GetSurfaceAlphaMod(SDL_Surface *surface,Uint8 *alpha)
• int SDL_GetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode *blendMode)
• int SDL_GetSurfaceColorMod(SDL_Surface *surface,Uint8 *r,Uint8 *g,Uint8 *b)
• SDL_Surface *SDL_LoadBMP(const char *file)
• SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src,int freesrc)
• int SDL_LockSurface(SDL_Surface *surface)
• int SDL_LowerBlit(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• int SDL_LowerBlitScaled(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect)
• SDL_bool SDL_MUSTLOCK(SDL_Surface *surface)
• int SDL_SaveBMP(SDL_Surface *surface,const char *file)
• int SDL_SaveBMP_RW(SDL_Surface *surface,SDL_RWops *dst,int freedst)
• SDL_bool SDL_SetClipRect(SDL_Surface *surface,const SDL_Rect *rect)
• int SDL_SetColorKey(SDL_Surface *surface,int flag,Uint32 key)
• int SDL_SetSurfaceAlphaMod(SDL_Surface *surface,Uint8 alpha)
• int SDL_SetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode blendMode)
• int SDL_SetSurfaceColorMod(SDL_Surface *surface,Uint8 r,Uint8 g,Uint8 b)
• int SDL_SetSurfacePalette(SDL_Surface *surface,SDL_Palette *palette)
• int SDL_SetSurfaceRLE(SDL_Surface *surface,int flag)
• void SDL_UnlockSurface(SDL_Surface* surface)
• SDL_bool SDL_GetWindowWMInfo(SDL_Window *window,SDL_SysWMinfo *info)
• char *SDL_GetClipboardText(void)
• SDL_bool SDL_HasClipboardText(void)
• int SDL_SetClipboardText(const char *text)
• void SDL_AddEventWatch(SDL_EventFilter filter,void *userdata)
• void SDL_DelEventWatch(SDL_EventFilter filter,void *userdata)
• Uint8 SDL_EventState(Uint32 type,int state)
• void SDL_FilterEvents(SDL_EventFilter filter,void *userdata)
• void SDL_FlushEvent(Uint32 type)
• void SDL_FlushEvents(Uint32 minType,Uint32 maxType)
• SDL_bool SDL_GetEventFilter(SDL_EventFilter *filter,void **userdata)
• Uint8 SDL_GetEventState(Uint32 type)
655
Ring Documentation, Release 1.4
• int SDL_GetNumTouchDevices(void)
• int SDL_GetNumTouchFingers(SDL_TouchID touchID)
• SDL_TouchID SDL_GetTouchDevice(int index)
• SDL_Finger* SDL_GetTouchFinger(SDL_TouchID touchID,int index)
• SDL_bool SDL_HasEvent(Uint32 type)
• SDL_bool SDL_HasEvents(Uint32 minType,Uint32 maxType)
• int SDL_LoadDollarTemplates(SDL_TouchID touchId,SDL_RWops *src)
• int SDL_PeepEvents(SDL_Event *events,int numevents,SDL_eventaction action,Uint32 minType,Uint32 max-
Type)
• int SDL_PollEvent(SDL_Event *event)
• void SDL_PumpEvents(void)
• int SDL_PushEvent(SDL_Event *event)
• SDL_bool SDL_QuitRequested(void)
• int SDL_RecordGesture(SDL_TouchID touchId)
• Uint32 SDL_RegisterEvents(int numevents)
• int SDL_SaveAllDollarTemplates(SDL_RWops *dst)
• int SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst)
• void SDL_SetEventFilter(SDL_EventFilter filter,void *userdata)
• int SDL_WaitEvent(SDL_Event *event)
• int SDL_WaitEventTimeout(SDL_Event *event,int timeout)
• SDL_Keycode SDL_GetKeyFromName(const char * name)
• SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode)
• const char * SDL_GetKeyName(SDL_Keycode key)
• SDL_Window* SDL_GetKeyboardFocus(void)
• const Uint8* SDL_GetKeyboardState(int* numkeys)
• SDL_Keymod SDL_GetModState(void)
• SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode key)
• SDL_Scancode SDL_GetScancodeFromName(const char * name)
• const char * SDL_GetScancodeName(SDL_Scancode scancode)
• SDL_bool SDL_HasScreenKeyboardSupport(void)
• SDL_bool SDL_IsScreenKeyboardShown(SDL_Window* window)
• SDL_bool SDL_IsTextInputActive(void)
• void SDL_SetModState(SDL_Keymod modstate)
• void SDL_SetTextInputRect(SDL_Rect* rect)
• void SDL_StartTextInput(void)
• void SDL_StopTextInput(void)
656
Ring Documentation, Release 1.4
• SDL_Cursor *SDL_CreateCursor(const Uint8 *data,const Uint8 *mask,int w,int h,int hot_x,int hot_y)
• void SDL_FreeCursor(SDL_Cursor *cursor)
• SDL_Cursor *SDL_GetCursor(void)
• SDL_Cursor *SDL_GetDefaultCursor(void)
• Uint32 SDL_GetMouseState(int *x,int * y)
• SDL_bool SDL_GetRelativeMouseMode(void)
• Uint32 SDL_GetRelativeMouseState(int *x,int *y)
• void SDL_SetCursor(SDL_Cursor *cursor)
• int SDL_SetRelativeMouseMode(SDL_bool enabled)
• int SDL_ShowCursor(int toggle)
• void SDL_JoystickClose(SDL_Joystick *joystick)
• SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick)
• Sint16 SDL_JoystickGetAxis(SDL_Joystick *joystick,int axis)
• int SDL_JoystickGetBall(SDL_Joystick *joystick,int ball,int *dx,int *dy)
• Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick,int button)
• SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int device_index)
• SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick *joystick)
• SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const char *pchGUID)
• void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid,char *pszGUID,int cbGUID)
• Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick,int hat)
• SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick)
• const char *SDL_JoystickName(SDL_Joystick *joystick)
• const char *SDL_JoystickNameForIndex(int device_index)
• int SDL_JoystickNumAxes(SDL_Joystick *joystick)
• int SDL_JoystickNumBalls(SDL_Joystick *joystick)
• int SDL_JoystickNumButtons(SDL_Joystick *joystick)
• int SDL_JoystickNumHats(SDL_Joystick *joystick)
• SDL_Joystick *SDL_JoystickOpen(int device_index)
• void SDL_JoystickUpdate(void)
• int SDL_NumJoysticks(void)
• int SDL_GameControllerAddMapping(const char *mappingString)
• int SDL_GameControllerAddMappingsFromFile(const char *filename)
• int SDL_GameControllerAddMappingsFromRW(SDL_RWops *rw,int freerw)
• void SDL_GameControllerClose(SDL_GameController *gamecontroller)
• int SDL_GameControllerEventState(int state)
• Sint16 SDL_GameControllerGetAxis(SDL_GameController *gamecontroller,SDL_GameControllerAxis axis)
657
Ring Documentation, Release 1.4
• SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char *pchString)
• SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController *gamecon-
troller,SDL_GameControllerAxis axis)
• SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController *gamecon-
troller,SDL_GameControllerButton button)
• Uint8 SDL_GameControllerGetButton(SDL_GameController *gamecontroller,SDL_GameControllerButton
button)
• SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const char *pchString)
• SDL_Joystick *SDL_GameControllerGetJoystick(SDL_GameController *gamecontroller)
• const char *SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis axis)
• const char *SDL_GameControllerGetStringForButton(SDL_GameControllerButton button)
• char *SDL_GameControllerMapping(SDL_GameController *gamecontroller)
• char *SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid)
• const char *SDL_GameControllerName(SDL_GameController *gamecontroller)
• const char *SDL_GameControllerNameForIndex(int joystick_index)
• SDL_GameController* SDL_GameControllerOpen(int joystick_index)
• void SDL_GameControllerUpdate(void)
• SDL_bool SDL_IsGameController(int joystick_index)
• void SDL_HapticClose(SDL_Haptic* haptic)
• void SDL_HapticDestroyEffect(SDL_Haptic *haptic,int effect)
• int SDL_HapticEffectSupported(SDL_Haptic *haptic,SDL_HapticEffect *effect)
• int SDL_HapticGetEffectStatus(SDL_Haptic *haptic,int effect)
• int SDL_HapticIndex(SDL_Haptic *haptic)
• const char *SDL_HapticName(int device_index)
• int SDL_HapticNewEffect(SDL_Haptic *haptic,SDL_HapticEffect *effect)
• int SDL_HapticNumAxes(SDL_Haptic *haptic)
• int SDL_HapticNumEffects(SDL_Haptic *haptic)
• int SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic)
• SDL_Haptic *SDL_HapticOpen(int device_index)
• SDL_Haptic *SDL_HapticOpenFromJoystick(SDL_Joystick *joystick)
• SDL_Haptic *SDL_HapticOpenFromMouse(void)
• int SDL_HapticOpened(int device_index)
• int SDL_HapticPause(SDL_Haptic *haptic)
• unsigned int SDL_HapticQuery(SDL_Haptic *haptic)
• int SDL_HapticRumbleInit(SDL_Haptic *haptic)
• int SDL_HapticRumblePlay(SDL_Haptic *haptic,float strength,Uint32 length)
• int SDL_HapticRumbleStop(SDL_Haptic *haptic)
658
Ring Documentation, Release 1.4
• int SDL_HapticRumbleSupported(SDL_Haptic *haptic)
• int SDL_HapticRunEffect(SDL_Haptic *haptic,int effect,Uint32 iterations)
• int SDL_HapticSetAutocenter(SDL_Haptic *haptic,int autocenter)
• int SDL_HapticSetGain(SDL_Haptic *haptic,int gain)
• int SDL_HapticStopAll(SDL_Haptic *haptic)
• int SDL_HapticStopEffect(SDL_Haptic *haptic,int effect)
• int SDL_HapticUnpause(SDL_Haptic *haptic)
• int SDL_HapticUpdateEffect(SDL_Haptic *haptic,int effect,SDL_HapticEffect *data)
• int SDL_JoystickIsHaptic(SDL_Joystick *joystick)
• int SDL_MouseIsHaptic(void)
• int SDL_NumHaptics(void)
• int SDL_AudioInit(const char * driver_name)
• void SDL_AudioQuit(void)
• int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,SDL_AudioFormat src_format,Uint8 src_channels,int
src_rate,SDL_AudioFormat dst_format,Uint8 dst_channels,int dst_rate)
• void SDL_CloseAudioDevice(SDL_AudioDeviceID dev)
• int SDL_ConvertAudio(SDL_AudioCVT *cvt)
• void SDL_FreeWAV(Uint8 *audio_buf)
• const char * SDL_GetAudioDeviceName(int index,int iscapture)
• SDL_AudioStatus SDL_GetAudioDeviceStatus(SDL_AudioDeviceID dev)
• const char * SDL_GetAudioDriver(int index)
• SDL_AudioStatus SDL_GetAudioStatus(void)
• const char * SDL_GetCurrentAudioDriver(void)
• int SDL_GetNumAudioDevices(int iscapture)
• int SDL_GetNumAudioDrivers(void)
• SDL_AudioSpec *SDL_LoadWAV_RW(SDL_RWops *src,int freesrc,SDL_AudioSpec *spec,Uint8 **au-
dio_buf,Uint32 *audio_len)
• void SDL_LockAudio(void)
• void SDL_LockAudioDevice(SDL_AudioDeviceID dev)
• void SDL_MixAudio(Uint8 dst,const Uint8 src,Uint32 len,int volume)
• void SDL_MixAudioFormat(Uint8 *dst,const Uint8 *src,SDL_AudioFormat format,Uint32 len,int volume)
• int SDL_OpenAudio(SDL_AudioSpec *desired,SDL_AudioSpec *obtained)
• SDL_AudioDeviceID SDL_OpenAudioDevice(const char *device,int iscapture,const SDL_AudioSpec *de-
sired,SDL_AudioSpec *obtained,int allowed_changes)
• void SDL_PauseAudio(int pause_on)
• void SDL_PauseAudioDevice(SDL_AudioDeviceID dev,int pause_on)
• void SDL_UnlockAudio(void)
659
Ring Documentation, Release 1.4
• void SDL_UnlockAudioDevice(SDL_AudioDeviceID dev)
• char *SDL_GetBasePath(void)
• char *SDL_GetPrefPath(const char *org,const char *app)
• SDL_RWops *SDL_AllocRW(void)
• void SDL_FreeRW(SDL_RWops *area)
• SDL_RWops SDL_RWFromConstMem(const void mem,int size)
• SDL_RWops *SDL_RWFromFP(void *fp,SDL_bool autoclose)
• SDL_RWops *SDL_RWFromFile(const char *file,const char *mode)
• SDL_RWops *SDL_RWFromMem(void *mem,int size)
• int SDL_RWclose(struct SDL_RWops *context)
• size_t SDL_RWread(struct SDL_RWops *context,void *ptr,size_t size,size_t maxnum)
• Sint64 SDL_RWseek(SDL_RWops *context,Sint64 offset,int whence)
• Sint64 SDL_RWsize(SDL_RWops *context)
• Sint64 SDL_RWtell(struct SDL_RWops *context)
• size_t SDL_RWwrite(struct SDL_RWops *context,const void *ptr,size_t size,size_t num)
• Uint16 SDL_ReadBE16(SDL_RWops *src)
• Uint32 SDL_ReadBE32(SDL_RWops *src)
• Uint64 SDL_ReadBE64(SDL_RWops *src)
• Uint16 SDL_ReadLE16(SDL_RWops *src)
• Uint32 SDL_ReadLE32(SDL_RWops *src)
• Uint64 SDL_ReadLE64(SDL_RWops *src)
• Uint8 SDL_ReadU8(SDL_RWops *src)
• size_t SDL_WriteBE16(SDL_RWops *dst,Uint16 value)
• size_t SDL_WriteBE32(SDL_RWops *dst,Uint32 value)
• size_t SDL_WriteBE64(SDL_RWops *dst,Uint64 value)
• size_t SDL_WriteLE16(SDL_RWops *dst,Uint16 value)
• size_t SDL_WriteLE32(SDL_RWops *dst,Uint32 value)
• size_t SDL_WriteLE64(SDL_RWops *dst,Uint64 value)
• size_t SDL_WriteU8(SDL_RWops *dst,Uint8 value)
• void *SDL_LoadFunction(void *handle,const char *name)
• void *SDL_LoadObject(const char *sofile)
• void SDL_UnloadObject(void *handle)
• const char *SDL_GetPlatform(void)
• int SDL_GetCPUCacheLineSize(void)
• int SDL_GetCPUCount(void)
• int SDL_GetSystemRAM(void)
660
Ring Documentation, Release 1.4
• SDL_bool SDL_Has3DNow(void)
• SDL_bool SDL_HasAVX(void)
• SDL_bool SDL_HasMMX(void)
• SDL_bool SDL_HasRDTSC(void)
• SDL_bool SDL_HasSSE(void)
• SDL_bool SDL_HasSSE2(void)
• SDL_bool SDL_HasSSE3(void)
• SDL_bool SDL_HasSSE41(void)
• SDL_bool SDL_HasSSE42(void)
• SDL_PowerState SDL_GetPowerInfo(int *secs,int *pct)
• double SDL_acos(double x)
• int IMG_Init(int flags)
• void IMG_Quit(void)
• SDL_Surface *IMG_Load(const char *file)
• SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc)
• SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type)
• SDL_Surface *IMG_LoadCUR_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadBMP_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadGIF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadTIF_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadLBM_RW(SDL_RWops *src)
• SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)
• SDL_Surface *IMG_ReadXPMFromArray(char **xpm)
• int IMG_isCUR(SDL_RWops *src)
• int IMG_isICO(SDL_RWops *src)
• int IMG_isBMP(SDL_RWops *src)
• int IMG_isPNM(SDL_RWops *src)
• int IMG_isXPM(SDL_RWops *src)
• int IMG_isXCF(SDL_RWops *src)
661
Ring Documentation, Release 1.4
• int IMG_isPCX(SDL_RWops *src)
• int IMG_isGIF(SDL_RWops *src)
• int IMG_isJPG(SDL_RWops *src)
• int IMG_isTIF(SDL_RWops *src)
• int IMG_isPNG(SDL_RWops *src)
• int IMG_isLBM(SDL_RWops *src)
• int IMG_isXV(SDL_RWops *src)
• int TTF_Init(void)
• int TTF_WasInit(void)
• void TTF_Quit(void)
• TTF_Font *TTF_OpenFont(const char *file, int ptsize)
• TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize)
• TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index)
• TTF_Font *TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index)
• void TTF_CloseFont(TTF_Font *font)
• void TTF_ByteSwappedUNICODE(int swapped)
• int TTF_GetFontStyle(TTF_Font *font)
• void TTF_SetFontStyle(TTF_Font *font, int style)
• int TTF_GetFontOutline(TTF_Font *font)
• void TTF_SetFontOutline(TTF_Font *font, int outline)
• int TTF_GetFontHinting(TTF_Font *font)
• void TTF_SetFontHinting(TTF_Font *font, int hinting)
• int TTF_GetFontKerning(TTF_Font *font)
• void TTF_SetFontKerning(TTF_Font *font, int allowed)
• int TTF_FontHeight(const TTF_Font *font)
• int TTF_FontAscent(const TTF_Font *font)
• int TTF_FontDescent(const TTF_Font *font)
• int TTF_FontLineSkip(const TTF_Font *font)
• long TTF_FontFaces(const TTF_Font *font)
• int TTF_FontFaceIsFixedWidth(const TTF_Font *font)
• char *TTF_FontFaceFamilyName(const TTF_Font *font)
• char *TTF_FontFaceStyleName(const TTF_Font *font)
• int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch)
• int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance)
• int TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h)
• int TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h)
662
Ring Documentation, Release 1.4
• int TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h)
• SDL_Surface *TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg)
• SDL_Surface *TTF_RenderText_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg)
• SDL_Surface *TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text,SDL_Color fg,
SDL_Color bg)
• SDL_Surface *TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg,SDL_Color bg)
• SDL_Surface *TTF_RenderText_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text,SDL_Color fg)
• SDL_Surface *TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text,SDL_Color fg)
• SDL_Surface *TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg)
• int Mix_Init(int flags)
• void Mix_Quit(void)
• int Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize)
• void Mix_CloseAudio(void)
• int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels)
• int Mix_GetNumChunkDecoders(void)
• const char *Mix_GetChunkDecoder(int index)
• Mix_Chunk *Mix_LoadWAV(char *file)
• Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc)
• Mix_Chunk *Mix_QuickLoad_WAV(Uint8 *mem)
• void Mix_FreeChunk(Mix_Chunk *chunk)
• int Mix_AllocateChannels(int numchans)
• int Mix_Volume(int channel, int volume)
• int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops)
• int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks)
• int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms)
• int Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk,int loops, int ms, int ticks)
• void Mix_Pause(int channel)
• void Mix_Resume(int channel)
• int Mix_HaltChannel(int channel)
• int Mix_ExpireChannel(int channel, int ticks)
• int Mix_FadeOutChannel(int channel, int ms)
663
Ring Documentation, Release 1.4
• int Mix_Paused(int channel)
• Mix_Fading Mix_FadingChannel(int which)
• Mix_Chunk *Mix_GetChunk(int channel)
• int Mix_ReserveChannels(int num)
• int Mix_GroupChannel(int which, int tag)
• int Mix_GroupChannels(int from, int to, int tag)
• int Mix_GroupCount(int tag)
• int Mix_GroupAvailable(int tag)
• int Mix_GroupOldest(int tag)
• int Mix_GroupNewer(int tag)
• int Mix_FadeOutGroup(int tag, int ms)
• int Mix_HaltGroup(int tag)
• int Mix_GetNumMusicDecoders(void)
• const char *Mix_GetMusicDecoder(int index)
• Mix_Music *Mix_LoadMUS(const char *file)
• void Mix_FreeMusic(Mix_Music *music)
• int Mix_PlayMusic(Mix_Music *music, int loops)
• int Mix_FadeInMusic(Mix_Music *music, int loops, int ms)
• int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position)
• int Mix_PlayingMusic(void)
• int Mix_PausedMusic(void)
• Mix_Fading Mix_FadingMusic(void)
• void *Mix_GetMusicHookData(void)
• int Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d,void *arg)
• int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f)
• int Mix_UnregisterAllEffects(int channel)
• int Mix_SetDistance(int channel, Uint8 distance)
• int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance)
• int Mix_SetReverseStereo(int channel, int flip)
• int SDLNet_Init(void)
• void SDLNet_Quit(void)
• char *SDLNet_GetError(void)
• void SDLNet_Write16(Uint16 value, void *area)
• void SDLNet_Write32(Uint32 value, void *area)
• Uint16 SDLNet_Read16(void *area)
• Uint32 SDLNet_Read32(void *area)
664
Ring Documentation, Release 1.4
• int SDLNet_ResolveHost(IPaddress *address, const char *host, Uint16 port)
• const char *SDLNet_ResolveIP(IPaddress *address)
• TCPsocket SDLNet_TCP_Open(IPaddress *ip)
• void SDLNet_TCP_Close(TCPsocket sock)
• TCPsocket SDLNet_TCP_Accept(TCPsocket server)
• IPaddress *SDLNet_TCP_GetPeerAddress(TCPsocket sock)
• int SDLNet_TCP_Send(TCPsocket sock, const void *data, int len)
• int SDLNet_TCP_Recv(TCPsocket sock, void *data, int maxlen)
• UDPsocket SDLNet_UDP_Open(Uint16 port)
• void SDLNet_UDP_Close(UDPsocket sock)
• int SDLNet_UDP_Bind(UDPsocket sock, int channel, IPaddress *address)
• void SDLNet_UDP_Unbind(UDPsocket sock, int channel)
• IPaddress *SDLNet_UDP_GetPeerAddress(UDPsocket sock, int channel)
• int SDLNet_UDP_Send(UDPsocket sock, int channel, UDPpacket *packet)
• int SDLNet_UDP_Recv(UDPsocket sock, UDPpacket *packet)
• int SDLNet_UDP_SendV(UDPsocket sock, UDPpacket **packetV, int npackets)
• int SDLNet_UDP_RecvV(UDPsocket sock, UDPpacket **packetV)
• UDPpacket *SDLNet_AllocPacket(int size)
• int SDLNet_ResizePacket(UDPpacket *packet, int size)
• void SDLNet_FreePacket(UDPpacket *packet)
• UDPpacket **SDLNet_AllocPacketV(int howmany, int size)
• void SDLNet_FreePacketV(UDPpacket **packetV)
• SDLNet_SocketSet SDLNet_AllocSocketSet(int maxsockets)
• void SDLNet_FreeSocketSet(SDLNet_SocketSet set)
• int SDLNet_AddSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock)
• int SDLNet_TCP_AddSocket(SDLNet_SocketSet set, TCPsocket sock)
• int SDLNet_UDP_AddSocket(SDLNet_SocketSet set, UDPsocket sock)
• int SDLNet_DelSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock)
• int SDLNet_TCP_DelSocket(SDLNet_SocketSet set, TCPsocket sock)
• int SDLNet_UDP_DelSocket(SDLNet_SocketSet set, UDPsocket sock)
• int SDLNet_CheckSockets(SDLNet_SocketSet set, Uint32 timeout)
• int SDLNet_SocketReady(TCPsocket sock)
• int circleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)
665
CHAPTER
SIXTYNINE
RINGQT CLASSES REFERENCE
69.1 QApp Class
C++ Reference : http://doc.qt.io/qt-5/QApplication.html
• void exec(void)
• void quit(void)
• void processEvents(void)
• void styleWindows(void)
• void styleWindowsVista(void)
• void styleFusion(void)
• void styleFusionBlack(void)
• void styleFusionCustom(QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor)
• void closeAllWindows(void)
• Qt::KeyboardModifiers keyboardModifiers(void)
69.2 QDesktopServices Class
C++ Reference : http://doc.qt.io/qt-5/QDesktopServices.html
• bool openUrl(QUrl)
• void setUrlHandler(QString, QObject *receiver, const char *method)
• void unsetUrlHandler(QString)
69.3 QTest Class
C++ Reference : http://doc.qt.io/qt-5/QTest.html
• void qsleep(int)
666
Ring Documentation, Release 1.4
69.4 QObject Class
C++ Reference : http://doc.qt.io/qt-5/QObject.html
Parameters : void
• bool blockSignals(bool block)
• QObjectList children(void)
• void dumpObjectInfo(void)
• void dumpObjectTree(void)
• bool inherits(const char *className)
• void installEventFilter(QObject *filterObj)
• bool isWidgetType(void)
• void killTimer(int id)
• void moveToThread(QThread *targetThread)
• QString objectName(void)
• QObject *parent(void)
• QVariant property(const char *name)
• void removeEventFilter(QObject *obj)
• void setObjectName(QString)
• void setParent(QObject *parent)
• bool setProperty(const char *name, QVariant)
• bool signalsBlocked(void)
• int startTimer(int interval)
• QThread *thread(void)
• void deleteLater(void)
69.5 QWidget Class
C++ Reference : http://doc.qt.io/qt-5/QWidget.html
Parameters : void
Parent Class : QObject
• bool acceptDrops(void)
• QString accessibleDescription(void)
• QString accessibleName(void)
• void activateWindow(void)
• void addAction(QAction *action)
• void adjustSize(void)
• bool autoFillBackground(void)
69.4. QObject Class 667

More Related Content

PDF
The Ring programming language version 1.3 book - Part 65 of 88
PDF
The Ring programming language version 1.5.3 book - Part 95 of 184
PDF
The Ring programming language version 1.2 book - Part 62 of 84
PDF
The Ring programming language version 1.7 book - Part 115 of 196
PDF
The Ring programming language version 1.3 book - Part 64 of 88
PDF
The Ring programming language version 1.2 book - Part 61 of 84
PDF
The Ring programming language version 1.5.3 book - Part 94 of 184
PDF
The Ring programming language version 1.8 book - Part 120 of 202
The Ring programming language version 1.3 book - Part 65 of 88
The Ring programming language version 1.5.3 book - Part 95 of 184
The Ring programming language version 1.2 book - Part 62 of 84
The Ring programming language version 1.7 book - Part 115 of 196
The Ring programming language version 1.3 book - Part 64 of 88
The Ring programming language version 1.2 book - Part 61 of 84
The Ring programming language version 1.5.3 book - Part 94 of 184
The Ring programming language version 1.8 book - Part 120 of 202

What's hot (19)

PDF
The Ring programming language version 1.6 book - Part 89 of 189
PDF
The Ring programming language version 1.9 book - Part 126 of 210
PDF
The Ring programming language version 1.8 book - Part 119 of 202
PDF
The Ring programming language version 1.10 book - Part 130 of 212
PDF
The Ring programming language version 1.5.2 book - Part 83 of 181
PDF
The Ring programming language version 1.10 book - Part 129 of 212
PDF
The Ring programming language version 1.7 book - Part 114 of 196
PDF
The Ring programming language version 1.10 book - Part 128 of 212
PDF
The Ring programming language version 1.5.4 book - Part 84 of 185
PDF
The Ring programming language version 1.5.2 book - Part 81 of 181
PDF
The Ring programming language version 1.5.1 book - Part 80 of 180
PDF
The Ring programming language version 1.2 book - Part 64 of 84
PDF
The Ring programming language version 1.4.1 book - Part 23 of 31
PDF
The Ring programming language version 1.5.4 book - Part 86 of 185
PDF
The Ring programming language version 1.9 book - Part 128 of 210
KEY
Czzawk
PDF
Linuxカーネルを読んで改めて知るプロセスとスレッドの違い
PDF
The Ring programming language version 1.5.3 book - Part 93 of 184
PDF
The Ring programming language version 1.6 book - Part 91 of 189
The Ring programming language version 1.6 book - Part 89 of 189
The Ring programming language version 1.9 book - Part 126 of 210
The Ring programming language version 1.8 book - Part 119 of 202
The Ring programming language version 1.10 book - Part 130 of 212
The Ring programming language version 1.5.2 book - Part 83 of 181
The Ring programming language version 1.10 book - Part 129 of 212
The Ring programming language version 1.7 book - Part 114 of 196
The Ring programming language version 1.10 book - Part 128 of 212
The Ring programming language version 1.5.4 book - Part 84 of 185
The Ring programming language version 1.5.2 book - Part 81 of 181
The Ring programming language version 1.5.1 book - Part 80 of 180
The Ring programming language version 1.2 book - Part 64 of 84
The Ring programming language version 1.4.1 book - Part 23 of 31
The Ring programming language version 1.5.4 book - Part 86 of 185
The Ring programming language version 1.9 book - Part 128 of 210
Czzawk
Linuxカーネルを読んで改めて知るプロセスとスレッドの違い
The Ring programming language version 1.5.3 book - Part 93 of 184
The Ring programming language version 1.6 book - Part 91 of 189
Ad

Similar to The Ring programming language version 1.4 book - Part 23 of 30 (15)

PDF
The Ring programming language version 1.5.4 book - Part 85 of 185
PDF
The Ring programming language version 1.9 book - Part 127 of 210
PDF
The Ring programming language version 1.6 book - Part 88 of 189
PDF
The Ring programming language version 1.3 book - Part 66 of 88
PDF
The Ring programming language version 1.5.1 book - Part 81 of 180
PDF
The Ring programming language version 1.5.2 book - Part 82 of 181
PDF
The Ring programming language version 1.5.3 book - Part 96 of 184
PDF
The Ring programming language version 1.3 book - Part 67 of 88
PDF
The Ring programming language version 1.5.3 book - Part 97 of 184
PDF
The Ring programming language version 1.5.1 book - Part 84 of 180
PDF
The Ring programming language version 1.10 book - Part 134 of 212
PDF
The Ring programming language version 1.7 book - Part 113 of 196
PDF
The Ring programming language version 1.5.4 book - Part 88 of 185
PDF
The Ring programming language version 1.7 book - Part 119 of 196
PDF
The Ring programming language version 1.6 book - Part 90 of 189
The Ring programming language version 1.5.4 book - Part 85 of 185
The Ring programming language version 1.9 book - Part 127 of 210
The Ring programming language version 1.6 book - Part 88 of 189
The Ring programming language version 1.3 book - Part 66 of 88
The Ring programming language version 1.5.1 book - Part 81 of 180
The Ring programming language version 1.5.2 book - Part 82 of 181
The Ring programming language version 1.5.3 book - Part 96 of 184
The Ring programming language version 1.3 book - Part 67 of 88
The Ring programming language version 1.5.3 book - Part 97 of 184
The Ring programming language version 1.5.1 book - Part 84 of 180
The Ring programming language version 1.10 book - Part 134 of 212
The Ring programming language version 1.7 book - Part 113 of 196
The Ring programming language version 1.5.4 book - Part 88 of 185
The Ring programming language version 1.7 book - Part 119 of 196
The Ring programming language version 1.6 book - Part 90 of 189
Ad

More from Mahmoud Samir Fayed (20)

PDF
The Ring programming language version 1.10 book - Part 212 of 212
PDF
The Ring programming language version 1.10 book - Part 211 of 212
PDF
The Ring programming language version 1.10 book - Part 210 of 212
PDF
The Ring programming language version 1.10 book - Part 208 of 212
PDF
The Ring programming language version 1.10 book - Part 207 of 212
PDF
The Ring programming language version 1.10 book - Part 205 of 212
PDF
The Ring programming language version 1.10 book - Part 206 of 212
PDF
The Ring programming language version 1.10 book - Part 204 of 212
PDF
The Ring programming language version 1.10 book - Part 203 of 212
PDF
The Ring programming language version 1.10 book - Part 202 of 212
PDF
The Ring programming language version 1.10 book - Part 201 of 212
PDF
The Ring programming language version 1.10 book - Part 200 of 212
PDF
The Ring programming language version 1.10 book - Part 199 of 212
PDF
The Ring programming language version 1.10 book - Part 198 of 212
PDF
The Ring programming language version 1.10 book - Part 197 of 212
PDF
The Ring programming language version 1.10 book - Part 196 of 212
PDF
The Ring programming language version 1.10 book - Part 195 of 212
PDF
The Ring programming language version 1.10 book - Part 194 of 212
PDF
The Ring programming language version 1.10 book - Part 193 of 212
PDF
The Ring programming language version 1.10 book - Part 192 of 212
The Ring programming language version 1.10 book - Part 212 of 212
The Ring programming language version 1.10 book - Part 211 of 212
The Ring programming language version 1.10 book - Part 210 of 212
The Ring programming language version 1.10 book - Part 208 of 212
The Ring programming language version 1.10 book - Part 207 of 212
The Ring programming language version 1.10 book - Part 205 of 212
The Ring programming language version 1.10 book - Part 206 of 212
The Ring programming language version 1.10 book - Part 204 of 212
The Ring programming language version 1.10 book - Part 203 of 212
The Ring programming language version 1.10 book - Part 202 of 212
The Ring programming language version 1.10 book - Part 201 of 212
The Ring programming language version 1.10 book - Part 200 of 212
The Ring programming language version 1.10 book - Part 199 of 212
The Ring programming language version 1.10 book - Part 198 of 212
The Ring programming language version 1.10 book - Part 197 of 212
The Ring programming language version 1.10 book - Part 196 of 212
The Ring programming language version 1.10 book - Part 195 of 212
The Ring programming language version 1.10 book - Part 194 of 212
The Ring programming language version 1.10 book - Part 193 of 212
The Ring programming language version 1.10 book - Part 192 of 212

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
sap open course for s4hana steps from ECC to s4
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation_ Review paper, used for researhc scholars
20250228 LYD VKU AI Blended-Learning.pptx
Empathic Computing: Creating Shared Understanding
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

The Ring programming language version 1.4 book - Part 23 of 30

  • 1. Ring Documentation, Release 1.4 • bool al_install_keyboard(void) • bool al_is_keyboard_installed(void) • void al_uninstall_keyboard(void) • void al_get_keyboard_state(ALLEGRO_KEYBOARD_STATE *ret_state) • bool al_key_down(const ALLEGRO_KEYBOARD_STATE *state, int keycode) • const char *al_keycode_to_name(int keycode) • bool al_set_keyboard_leds(int leds) • ALLEGRO_EVENT_SOURCE *al_get_keyboard_event_source(void) • void *al_malloc_with_context(size_t n,int line, const char *file, const char *func) • void al_free_with_context(void *ptr, int line, const char *file, const char *func) • void *al_realloc_with_context(void *ptr, size_t n,int line, const char *file, const char *func) • void *al_calloc_with_context(size_t count, size_t n,int line, const char *file, const char *func) • void al_set_memory_interface(ALLEGRO_MEMORY_INTERFACE *memory_interface) • int al_get_new_display_adapter(void) • void al_set_new_display_adapter(int adapter) • bool al_get_monitor_info(int adapter, ALLEGRO_MONITOR_INFO *info) • int al_get_num_video_adapters(void) • bool al_install_mouse(void) • bool al_is_mouse_installed(void) • void al_uninstall_mouse(void) • unsigned int al_get_mouse_num_axes(void) • unsigned int al_get_mouse_num_buttons(void) • void al_get_mouse_state(ALLEGRO_MOUSE_STATE *ret_state) • int al_get_mouse_state_axis(const ALLEGRO_MOUSE_STATE *state, int axis) • bool al_mouse_button_down(const ALLEGRO_MOUSE_STATE *state, int button) • bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y) • bool al_set_mouse_z(int z) • bool al_set_mouse_w(int w) • bool al_set_mouse_axis(int which, int value) • ALLEGRO_EVENT_SOURCE *al_get_mouse_event_source(void) • ALLEGRO_MOUSE_CURSOR *al_create_mouse_cursor(ALLEGRO_BITMAP *bmp,int x_focus, int y_focus) • void al_destroy_mouse_cursor(ALLEGRO_MOUSE_CURSOR *cursor) • bool al_set_mouse_cursor(ALLEGRO_DISPLAY *display, ALLEGRO_MOUSE_CURSOR *cursor) • bool al_set_system_mouse_cursor(ALLEGRO_DISPLAY *display,ALLEGRO_SYSTEM_MOUSE_CURSOR cursor_id) • bool al_get_mouse_cursor_position(int *ret_x, int *ret_y) 638
  • 2. Ring Documentation, Release 1.4 • bool al_hide_mouse_cursor(ALLEGRO_DISPLAY *display) • bool al_show_mouse_cursor(ALLEGRO_DISPLAY *display) • bool al_grab_mouse(ALLEGRO_DISPLAY *display) • bool al_ungrab_mouse(void) • ALLEGRO_PATH *al_create_path(const char *str) • ALLEGRO_PATH *al_create_path_for_directory(const char *str) • void al_destroy_path(ALLEGRO_PATH *path) • ALLEGRO_PATH *al_clone_path(const ALLEGRO_PATH *path) • bool al_join_paths(ALLEGRO_PATH *path, const ALLEGRO_PATH *tail) • bool al_rebase_path(const ALLEGRO_PATH *head, ALLEGRO_PATH *tail) • const char *al_get_path_drive(const ALLEGRO_PATH *path) • int al_get_path_num_components(const ALLEGRO_PATH *path) • const char *al_get_path_component(const ALLEGRO_PATH *path, int i) • const char *al_get_path_tail(const ALLEGRO_PATH *path) • const char *al_get_path_filename(const ALLEGRO_PATH *path) • const char *al_get_path_basename(const ALLEGRO_PATH *path) • const char *al_get_path_extension(const ALLEGRO_PATH *path) • void al_set_path_drive(ALLEGRO_PATH *path, const char *drive) • void al_append_path_component(ALLEGRO_PATH *path, const char *s) • void al_insert_path_component(ALLEGRO_PATH *path, int i, const char *s) • void al_replace_path_component(ALLEGRO_PATH *path, int i, const char *s) • void al_remove_path_component(ALLEGRO_PATH *path, int i) • void al_drop_path_tail(ALLEGRO_PATH *path) • void al_set_path_filename(ALLEGRO_PATH *path, const char *filename) • bool al_set_path_extension(ALLEGRO_PATH *path, char const *extension) • const char *al_path_cstr(const ALLEGRO_PATH *path, char delim) • bool al_make_path_canonical(ALLEGRO_PATH *path) • void al_restore_state(ALLEGRO_STATE const *state) • void al_store_state(ALLEGRO_STATE *state, int flags • int al_get_errno(void) • void al_set_errno(int errnum) • void al_uninstall_system(void) • bool al_is_system_installed(void) • uint32_t al_get_allegro_version(void) • ALLEGRO_PATH *al_get_standard_path(int id) • void al_set_exe_name(char const *path) 639
  • 3. Ring Documentation, Release 1.4 • void al_set_app_name(const char *app_name) • void al_set_org_name(const char *org_name) • const char *al_get_app_name(void) • const char *al_get_org_name(void) • ALLEGRO_CONFIG *al_get_system_config(void) • ALLEGRO_THREAD *al_create_thread(void) • void al_run_detached_thread(void) • void al_start_thread(ALLEGRO_THREAD *thread) • void al_join_thread(ALLEGRO_THREAD *thread, void **ret_value) • void al_set_thread_should_stop(ALLEGRO_THREAD *thread) • bool al_get_thread_should_stop(ALLEGRO_THREAD *thread) • void al_destroy_thread(ALLEGRO_THREAD *thread) • ALLEGRO_MUTEX *al_create_mutex(void) • ALLEGRO_MUTEX *al_create_mutex_recursive(void) • void al_lock_mutex(ALLEGRO_MUTEX *mutex) • void al_unlock_mutex(ALLEGRO_MUTEX *mutex) • void al_destroy_mutex(ALLEGRO_MUTEX *mutex) • ALLEGRO_COND *al_create_cond(void) • void al_destroy_cond(ALLEGRO_COND *cond) • void al_wait_cond(ALLEGRO_COND *cond, ALLEGRO_MUTEX *mutex) • int al_wait_cond_until(ALLEGRO_COND *cond, ALLEGRO_MUTEX *mutex,const ALLEGRO_TIMEOUT *timeout) • void al_broadcast_cond(ALLEGRO_COND *cond) • void al_signal_cond(ALLEGRO_COND *cond) • double al_get_time(void) • void al_init_timeout(ALLEGRO_TIMEOUT *timeout, double seconds) • void al_rest(double seconds) • ALLEGRO_TIMER *al_create_timer(double speed_secs) • void al_start_timer(ALLEGRO_TIMER *timer) • void al_stop_timer(ALLEGRO_TIMER *timer) • bool al_get_timer_started(const ALLEGRO_TIMER *timer) • void al_destroy_timer(ALLEGRO_TIMER *timer) • int64_t al_get_timer_count(const ALLEGRO_TIMER *timer) • void al_set_timer_count(ALLEGRO_TIMER *timer, int64_t new_count) • void al_add_timer_count(ALLEGRO_TIMER *timer, int64_t diff) • double al_get_timer_speed(const ALLEGRO_TIMER *timer) 640
  • 4. Ring Documentation, Release 1.4 • void al_set_timer_speed(ALLEGRO_TIMER *timer, double new_speed_secs) • ALLEGRO_EVENT_SOURCE *al_get_timer_event_source(ALLEGRO_TIMER *timer) • void al_copy_transform(ALLEGRO_TRANSFORM *dest, const ALLEGRO_TRANSFORM *src) • void al_use_transform(const ALLEGRO_TRANSFORM *trans) • const ALLEGRO_TRANSFORM *al_get_current_transform(void) • void al_invert_transform(ALLEGRO_TRANSFORM *trans) • int al_check_inverse(const ALLEGRO_TRANSFORM *trans, float tol) • void al_identity_transform(ALLEGRO_TRANSFORM *trans) • void al_build_transform(ALLEGRO_TRANSFORM *trans, float x, float y,float sx, float sy, float theta) • void al_translate_transform(ALLEGRO_TRANSFORM *trans, float x, float y) • void al_rotate_transform(ALLEGRO_TRANSFORM *trans, float theta) • void al_scale_transform(ALLEGRO_TRANSFORM *trans, float sx, float sy) • void al_transform_coordinates(const ALLEGRO_TRANSFORM *trans, float *x, float *y) • void al_compose_transform(ALLEGRO_TRANSFORM *trans, const ALLEGRO_TRANSFORM *other) • ALLEGRO_USTR *al_ustr_new(const char *s) • ALLEGRO_USTR *al_ustr_new_from_buffer(const char *s, size_t size) • void al_ustr_free(ALLEGRO_USTR *us) • const char *al_cstr(const ALLEGRO_USTR *us) • void al_ustr_to_buffer(const ALLEGRO_USTR *us, char *buffer, int size) • char *al_cstr_dup(const ALLEGRO_USTR *us) • ALLEGRO_USTR *al_ustr_dup(const ALLEGRO_USTR *us) • ALLEGRO_USTR *al_ustr_dup_substr(const ALLEGRO_USTR *us, int start_pos,int end_pos) • const ALLEGRO_USTR *al_ustr_empty_string(void) • const ALLEGRO_USTR *al_ref_cstr(ALLEGRO_USTR_INFO *info, const char *s) • const ALLEGRO_USTR *al_ref_buffer(ALLEGRO_USTR_INFO *info, const char *s, size_t size) • const ALLEGRO_USTR *al_ref_ustr(ALLEGRO_USTR_INFO *info, const ALLEGRO_USTR *us,int start_pos, int end_pos) • size_t al_ustr_size(const ALLEGRO_USTR *us) • size_t al_ustr_length(const ALLEGRO_USTR *us) • int al_ustr_offset(const ALLEGRO_USTR *us, int index) • bool al_ustr_next(const ALLEGRO_USTR *us, int *pos) • bool al_ustr_prev(const ALLEGRO_USTR *us, int *pos) • int32_t al_ustr_get(const ALLEGRO_USTR *ub, int pos) • int32_t al_ustr_get_next(const ALLEGRO_USTR *us, int *pos) • int32_t al_ustr_prev_get(const ALLEGRO_USTR *us, int *pos) • bool al_ustr_insert(ALLEGRO_USTR *us1, int pos, const ALLEGRO_USTR *us2) 641
  • 5. Ring Documentation, Release 1.4 • bool al_ustr_insert_cstr(ALLEGRO_USTR *us, int pos, const char *s) • size_t al_ustr_insert_chr(ALLEGRO_USTR *us, int pos, int32_t c) • bool al_ustr_append(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • bool al_ustr_append_cstr(ALLEGRO_USTR *us, const char *s) • size_t al_ustr_append_chr(ALLEGRO_USTR *us, int32_t c) • bool al_ustr_remove_chr(ALLEGRO_USTR *us, int pos) • bool al_ustr_remove_range(ALLEGRO_USTR *us, int start_pos, int end_pos) • bool al_ustr_truncate(ALLEGRO_USTR *us, int start_pos) • bool al_ustr_ltrim_ws(ALLEGRO_USTR *us) • bool al_ustr_rtrim_ws(ALLEGRO_USTR *us) • bool al_ustr_trim_ws(ALLEGRO_USTR *us) • bool al_ustr_assign(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • bool al_ustr_assign_substr(ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2,int start_pos, int end_pos) • bool al_ustr_assign_cstr(ALLEGRO_USTR *us1, const char *s) • size_t al_ustr_set_chr(ALLEGRO_USTR *us, int start_pos, int32_t c) • bool al_ustr_replace_range(ALLEGRO_USTR *us1, int start_pos1, int end_pos1,const ALLEGRO_USTR *us2) • int al_ustr_find_chr(const ALLEGRO_USTR *us, int start_pos, int32_t c) • int al_ustr_rfind_chr(const ALLEGRO_USTR *us, int end_pos, int32_t c) • int al_ustr_find_set(const ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *accept) • int al_ustr_find_set_cstr(const ALLEGRO_USTR *us, int start_pos,const char *accept) • int al_ustr_find_cset(const ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *reject) • int al_ustr_find_cset_cstr(const ALLEGRO_USTR *us, int start_pos,const char *reject) • int al_ustr_find_str(const ALLEGRO_USTR *haystack, int start_pos,const ALLEGRO_USTR *needle) • int al_ustr_find_cstr(const ALLEGRO_USTR *haystack, int start_pos,const char *needle) • int al_ustr_rfind_str(const ALLEGRO_USTR *haystack, int end_pos,const ALLEGRO_USTR *needle) • int al_ustr_rfind_cstr(const ALLEGRO_USTR *haystack, int end_pos,const char *needle) • bool al_ustr_find_replace(ALLEGRO_USTR *us, int start_pos,const ALLEGRO_USTR *find, const ALLE- GRO_USTR *replace) • bool al_ustr_find_replace_cstr(ALLEGRO_USTR *us, int start_pos,const char *find, const char *replace) • int al_ustr_compare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • int al_ustr_ncompare(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2, int n) • bool al_ustr_equal(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • bool al_ustr_has_prefix(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • bool al_ustr_has_prefix_cstr(const ALLEGRO_USTR *us1, const char *s2) • bool al_ustr_has_suffix(const ALLEGRO_USTR *us1, const ALLEGRO_USTR *us2) • bool al_ustr_has_suffix_cstr(const ALLEGRO_USTR *us1, const char *s2) 642
  • 6. Ring Documentation, Release 1.4 • ALLEGRO_USTR *al_ustr_new_from_utf16(uint16_t const *s) • size_t al_ustr_size_utf16(const ALLEGRO_USTR *us) • size_t al_ustr_encode_utf16(const ALLEGRO_USTR *us, uint16_t *s,size_t n) • size_t al_utf8_width(int c) • size_t al_utf8_encode(char s[], int32_t c) • size_t al_utf16_width(int c) • LPDIRECT3DDEVICE9 al_get_d3d_device(ALLEGRO_DISPLAY *display) • LPDIRECT3DTEXTURE9 al_get_d3d_system_texture(ALLEGRO_BITMAP *bitmap) • LPDIRECT3DTEXTURE9 al_get_d3d_video_texture(ALLEGRO_BITMAP *bitmap) • bool al_have_d3d_non_pow2_texture_support(void) • bool al_have_d3d_non_square_texture_support(void) • void al_get_d3d_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v) • bool al_is_d3d_device_lost(ALLEGRO_DISPLAY *display) • ALLEGRO_OGL_EXT_LIST *al_get_opengl_extension_list(void) • void *al_get_opengl_proc_address(const char *name) • GLuint al_get_opengl_texture(ALLEGRO_BITMAP *bitmap) • void al_get_opengl_texture_size(ALLEGRO_BITMAP *bitmap, int *w, int *h) • void al_get_opengl_texture_position(ALLEGRO_BITMAP *bitmap, int *u, int *v) • GLuint al_get_opengl_fbo(ALLEGRO_BITMAP *bitmap) • void al_remove_opengl_fbo(ALLEGRO_BITMAP *bitmap) • bool al_have_opengl_extension(const char *extension); • uint32_t al_get_opengl_version(void) • int al_get_opengl_variant(void) • void al_set_current_opengl_context(ALLEGRO_DISPLAY *display) • bool al_install_audio(void) • void al_uninstall_audio(void) • bool al_is_audio_installed(void) • bool al_reserve_samples(int reserve_samples) • uint32_t al_get_allegro_audio_version(void) • size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth) • size_t al_get_channel_count(ALLEGRO_CHANNEL_CONF conf) • ALLEGRO_VOICE *al_create_voice(unsigned int freq,ALLEGRO_AUDIO_DEPTH depth, ALLE- GRO_CHANNEL_CONF chan_conf) • void al_destroy_voice(ALLEGRO_VOICE *voice) • void al_detach_voice(ALLEGRO_VOICE *voice) • bool al_attach_audio_stream_to_voice(ALLEGRO_AUDIO_STREAM *stream,ALLEGRO_VOICE *voice) 643
  • 7. Ring Documentation, Release 1.4 • bool al_attach_mixer_to_voice(ALLEGRO_MIXER *mixer, ALLEGRO_VOICE *voice) • bool al_attach_sample_instance_to_voice(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_VOICE *voice) • unsigned int al_get_voice_frequency(const ALLEGRO_VOICE *voice) • ALLEGRO_CHANNEL_CONF al_get_voice_channels(const ALLEGRO_VOICE *voice) • ALLEGRO_AUDIO_DEPTH al_get_voice_depth(const ALLEGRO_VOICE *voice) • bool al_get_voice_playing(const ALLEGRO_VOICE *voice) • bool al_set_voice_playing(ALLEGRO_VOICE *voice, bool val) • unsigned int al_get_voice_position(const ALLEGRO_VOICE *voice) • bool al_set_voice_position(ALLEGRO_VOICE *voice, unsigned int val) • ALLEGRO_SAMPLE *al_create_sample(void *buf, unsigned int samples,unsigned int freq, ALLE- GRO_AUDIO_DEPTH depth,ALLEGRO_CHANNEL_CONF chan_conf, bool free_buf) • void al_destroy_sample(ALLEGRO_SAMPLE *spl) • bool al_play_sample(ALLEGRO_SAMPLE *spl, float gain, float pan, float speed,int loop, ALLE- GRO_SAMPLE_ID *ret_id) • void al_stop_sample(ALLEGRO_SAMPLE_ID *spl_id) • void al_stop_samples(void) • ALLEGRO_CHANNEL_CONF al_get_sample_channels(const ALLEGRO_SAMPLE *spl) • ALLEGRO_AUDIO_DEPTH al_get_sample_depth(const ALLEGRO_SAMPLE *spl) • unsigned int al_get_sample_frequency(const ALLEGRO_SAMPLE *spl) • unsigned int al_get_sample_length(const ALLEGRO_SAMPLE *spl) • void *al_get_sample_data(const ALLEGRO_SAMPLE *spl) • ALLEGRO_SAMPLE_INSTANCE *al_create_sample_instance(ALLEGRO_SAMPLE *sample_data) • void al_destroy_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_play_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_stop_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl) • ALLEGRO_CHANNEL_CONF al_get_sample_instance_channels(const ALLEGRO_SAMPLE_INSTANCE *spl) • ALLEGRO_AUDIO_DEPTH al_get_sample_instance_depth(const ALLEGRO_SAMPLE_INSTANCE *spl) • unsigned int al_get_sample_instance_frequency(const ALLEGRO_SAMPLE_INSTANCE *spl) • unsigned int al_get_sample_instance_length(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_length(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val) • unsigned int al_get_sample_instance_position(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_position(ALLEGRO_SAMPLE_INSTANCE *spl,unsigned int val) • float al_get_sample_instance_speed(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_speed(ALLEGRO_SAMPLE_INSTANCE *spl, float val) • float al_get_sample_instance_gain(const ALLEGRO_SAMPLE_INSTANCE *spl) 644
  • 8. Ring Documentation, Release 1.4 • bool al_set_sample_instance_gain(ALLEGRO_SAMPLE_INSTANCE *spl, float val) • float al_get_sample_instance_pan(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_pan(ALLEGRO_SAMPLE_INSTANCE *spl, float val) • float al_get_sample_instance_time(const ALLEGRO_SAMPLE_INSTANCE *spl) • ALLEGRO_PLAYMODE al_get_sample_instance_playmode(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_playmode(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_PLAYMODE val) • bool al_get_sample_instance_playing(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample_instance_playing(ALLEGRO_SAMPLE_INSTANCE *spl, bool val) • bool al_get_sample_instance_attached(const ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_detach_sample_instance(ALLEGRO_SAMPLE_INSTANCE *spl) • ALLEGRO_SAMPLE *al_get_sample(ALLEGRO_SAMPLE_INSTANCE *spl) • bool al_set_sample(ALLEGRO_SAMPLE_INSTANCE *spl, ALLEGRO_SAMPLE *data) • ALLEGRO_MIXER *al_create_mixer(unsigned int freq,ALLEGRO_AUDIO_DEPTH depth, ALLE- GRO_CHANNEL_CONF chan_conf) • void al_destroy_mixer(ALLEGRO_MIXER *mixer) • ALLEGRO_MIXER *al_get_default_mixer(void) • bool al_set_default_mixer(ALLEGRO_MIXER *mixer) • bool al_restore_default_mixer(void) • bool al_attach_mixer_to_mixer(ALLEGRO_MIXER *stream, ALLEGRO_MIXER *mixer) • bool al_attach_sample_instance_to_mixer(ALLEGRO_SAMPLE_INSTANCE *spl,ALLEGRO_MIXER *mixer) • bool al_attach_audio_stream_to_mixer(ALLEGRO_AUDIO_STREAM *stream, ALLEGRO_MIXER *mixer) • unsigned int al_get_mixer_frequency(const ALLEGRO_MIXER *mixer) • bool al_set_mixer_frequency(ALLEGRO_MIXER *mixer, unsigned int val) • ALLEGRO_CHANNEL_CONF al_get_mixer_channels(const ALLEGRO_MIXER *mixer) • ALLEGRO_AUDIO_DEPTH al_get_mixer_depth(const ALLEGRO_MIXER *mixer) • float al_get_mixer_gain(const ALLEGRO_MIXER *mixer) • bool al_set_mixer_gain(ALLEGRO_MIXER *mixer, float new_gain) • ALLEGRO_MIXER_QUALITY al_get_mixer_quality(const ALLEGRO_MIXER *mixer) • bool al_set_mixer_quality(ALLEGRO_MIXER *mixer, ALLEGRO_MIXER_QUALITY new_quality) • bool al_get_mixer_playing(const ALLEGRO_MIXER *mixer) • bool al_set_mixer_playing(ALLEGRO_MIXER *mixer, bool val) • bool al_get_mixer_attached(const ALLEGRO_MIXER *mixer) • bool al_detach_mixer(ALLEGRO_MIXER *mixer) • void al_destroy_audio_stream(ALLEGRO_AUDIO_STREAM *stream) 645
  • 9. Ring Documentation, Release 1.4 • ALLEGRO_EVENT_SOURCE *al_get_audio_stream_event_source(ALLEGRO_AUDIO_STREAM *stream) • void al_drain_audio_stream(ALLEGRO_AUDIO_STREAM *stream) • bool al_rewind_audio_stream(ALLEGRO_AUDIO_STREAM *stream) • unsigned int al_get_audio_stream_frequency(const ALLEGRO_AUDIO_STREAM *stream) • ALLEGRO_CHANNEL_CONF al_get_audio_stream_channels(const ALLEGRO_AUDIO_STREAM *stream) • ALLEGRO_AUDIO_DEPTH al_get_audio_stream_depth(const ALLEGRO_AUDIO_STREAM *stream) • unsigned int al_get_audio_stream_length(const ALLEGRO_AUDIO_STREAM *stream) • float al_get_audio_stream_speed(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_speed(ALLEGRO_AUDIO_STREAM *stream, float val) • float al_get_audio_stream_gain(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_gain(ALLEGRO_AUDIO_STREAM *stream, float val) • float al_get_audio_stream_pan(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_pan(ALLEGRO_AUDIO_STREAM *stream, float val) • bool al_get_audio_stream_playing(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_playing(ALLEGRO_AUDIO_STREAM *stream, bool val) • ALLEGRO_PLAYMODE al_get_audio_stream_playmode(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_playmode(ALLEGRO_AUDIO_STREAM *stream,ALLEGRO_PLAYMODE val) • bool al_get_audio_stream_attached(const ALLEGRO_AUDIO_STREAM *stream) • bool al_detach_audio_stream(ALLEGRO_AUDIO_STREAM *stream) • void *al_get_audio_stream_fragment(const ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_fragment(ALLEGRO_AUDIO_STREAM *stream, void *val) • unsigned int al_get_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream) • unsigned int al_get_available_audio_stream_fragments(const ALLEGRO_AUDIO_STREAM *stream) • bool al_seek_audio_stream_secs(ALLEGRO_AUDIO_STREAM *stream, double time) • double al_get_audio_stream_position_secs(ALLEGRO_AUDIO_STREAM *stream) • double al_get_audio_stream_length_secs(ALLEGRO_AUDIO_STREAM *stream) • bool al_set_audio_stream_loop_secs(ALLEGRO_AUDIO_STREAM *stream,double start, double end) • ALLEGRO_SAMPLE *al_load_sample(const char *filename) • ALLEGRO_SAMPLE al_load_sample_f(ALLEGRO_FILE fp, const char *ident) • ALLEGRO_AUDIO_STREAM *al_load_audio_stream(const char *filename,size_t buffer_count, unsigned int samples) • ALLEGRO_AUDIO_STREAM al_load_audio_stream_f(ALLEGRO_FILE fp, const char *ident,size_t buffer_count, unsigned int samples) • bool al_save_sample(const char *filename, ALLEGRO_SAMPLE *spl) • bool al_save_sample_f(ALLEGRO_FILE *fp, const char *ident, ALLEGRO_SAMPLE *spl) 646
  • 10. Ring Documentation, Release 1.4 • bool al_init_acodec_addon(void) • uint32_t al_get_allegro_acodec_version(void) • ALLEGRO_COLOR al_color_cmyk(float c, float m, float y, float k) • void al_color_cmyk_to_rgb(float cyan, float magenta, float yellow,float key, float *red, float *green, float *blue) • ALLEGRO_COLOR al_color_hsl(float h, float s, float l) • void al_color_hsl_to_rgb(float hue, float saturation, float lightness,float *red, float *green, float *blue) • ALLEGRO_COLOR al_color_hsv(float h, float s, float v) • void al_color_hsv_to_rgb(float hue, float saturation, float value,float *red, float *green, float *blue) • ALLEGRO_COLOR al_color_html(char const *string) • void al_color_html_to_rgb(char const *string,float *red, float *green, float *blue) • void al_color_rgb_to_html(float red, float green, float blue,char *string) • ALLEGRO_COLOR al_color_name(char const *name) • bool al_color_name_to_rgb(char const *name, float *r, float *g, float *b) • void al_color_rgb_to_cmyk(float red, float green, float blue,float *cyan, float *magenta, float *yellow, float *key) • void al_color_rgb_to_hsl(float red, float green, float blue,float *hue, float *saturation, float *lightness) • void al_color_rgb_to_hsv(float red, float green, float blue,float *hue, float *saturation, float *value) • char const *al_color_rgb_to_name(float r, float g, float b) • void al_color_rgb_to_yuv(float red, float green, float blue,float *y, float *u, float *v) • ALLEGRO_COLOR al_color_yuv(float y, float u, float v) • void al_color_yuv_to_rgb(float y, float u, float v,float *red, float *green, float *blue) • uint32_t al_get_allegro_color_version(void) • void al_init_font_addon(void) • void al_shutdown_font_addon(void) • ALLEGRO_FONT *al_load_font(char const *filename, int size, int flags) • void al_destroy_font(ALLEGRO_FONT *f) • int al_get_font_ascent(const ALLEGRO_FONT *f) • int al_get_font_descent(const ALLEGRO_FONT *f) • int al_get_text_width(const ALLEGRO_FONT *f, const char *str) • int al_get_ustr_width(const ALLEGRO_FONT *f, ALLEGRO_USTR const *ustr) • void al_draw_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,char const *text) • void al_draw_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x, float y, int flags,const ALLEGRO_USTR *ustr) • void al_draw_justified_text(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float y, float diff, int flags, const char *text) • void al_draw_justified_ustr(const ALLEGRO_FONT *font,ALLEGRO_COLOR color, float x1, float x2,float y, float diff, int flags, const ALLEGRO_USTR *ustr) 647
  • 11. Ring Documentation, Release 1.4 • void al_get_text_dimensions(const ALLEGRO_FONT *f,char const *text,int *bbx, int *bby, int *bbw, int *bbh) • void al_get_ustr_dimensions(const ALLEGRO_FONT *f,ALLEGRO_USTR const *ustr,int *bbx, int *bby, int *bbw, int *bbh) • uint32_t al_get_allegro_font_version(void) • ALLEGRO_FONT *al_grab_font_from_bitmap(ALLEGRO_BITMAP *bmp,int ranges_n, const int ranges[]) • ALLEGRO_FONT *al_load_bitmap_font(const char *fname) • ALLEGRO_FONT *al_create_builtin_font(void) • bool al_init_ttf_addon(void) • void al_shutdown_ttf_addon(void) • ALLEGRO_FONT *al_load_ttf_font(char const *filename, int size, int flags) • ALLEGRO_FONT *al_load_ttf_font_f(ALLEGRO_FILE *file,char const *filename, int size, int flags) • ALLEGRO_FONT *al_load_ttf_font_stretch(char const *filename, int w, int h,int flags) • ALLEGRO_FONT *al_load_ttf_font_stretch_f(ALLEGRO_FILE *file,char const *filename, int w, int h, int flags) • uint32_t al_get_allegro_ttf_version(void) • bool al_init_image_addon(void) • void al_shutdown_image_addon(void) • uint32_t al_get_allegro_image_version(void) • ALLEGRO_FILE *al_open_memfile(void *mem, int64_t size, const char *mode) • uint32_t al_get_allegro_memfile_version(void) • bool al_init_native_dialog_addon(void) • void al_shutdown_native_dialog_addon(void) • ALLEGRO_FILECHOOSER *al_create_native_file_dialog(char const *initial_path,char const *title,char const *patterns,int mode) • bool al_show_native_file_dialog(ALLEGRO_DISPLAY *display,ALLEGRO_FILECHOOSER *dialog) • int al_get_native_file_dialog_count(const ALLEGRO_FILECHOOSER *dialog) • const char *al_get_native_file_dialog_path(const ALLEGRO_FILECHOOSER *dialog, size_t i) • void al_destroy_native_file_dialog(ALLEGRO_FILECHOOSER *dialog) • int al_show_native_message_box(ALLEGRO_DISPLAY *display,char const *title, char const *heading, char const *text,char const *buttons, int flags) • ALLEGRO_TEXTLOG *al_open_native_text_log(char const *title, int flags) • void al_close_native_text_log(ALLEGRO_TEXTLOG *textlog) • uint32_t al_get_allegro_native_dialog_version(void) • void al_set_physfs_file_interface(void) • uint32_t al_get_allegro_physfs_version(void) • uint32_t al_get_allegro_primitives_version(void) • bool al_init_primitives_addon(void) 648
  • 12. Ring Documentation, Release 1.4 • void al_shutdown_primitives_addon(void) • void al_draw_line(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness) • void al_draw_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color, float thickness) • void al_draw_filled_triangle(float x1, float y1, float x2, float y2,float x3, float y3, ALLEGRO_COLOR color) • void al_draw_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color, float thickness) • void al_draw_filled_rectangle(float x1, float y1, float x2, float y2,ALLEGRO_COLOR color) • void al_draw_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR color, float thickness) • void al_draw_filled_rounded_rectangle(float x1, float y1, float x2, float y2,float rx, float ry, ALLEGRO_COLOR color) • void al_calculate_arc(float* dest, int stride, float cx, float cy,float rx, float ry, float start_theta, float delta_theta, float thickness,int num_points) • void al_draw_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color, float thickness) • void al_draw_filled_pieslice(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color) • void al_draw_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color, float thickness) • void al_draw_filled_ellipse(float cx, float cy, float rx, float ry,ALLEGRO_COLOR color) • void al_draw_circle(float cx, float cy, float r, ALLEGRO_COLOR color,float thickness) • void al_draw_filled_circle(float cx, float cy, float r, ALLEGRO_COLOR color) • void al_draw_arc(float cx, float cy, float r, float start_theta,float delta_theta, ALLEGRO_COLOR color, float thickness) • void al_draw_elliptical_arc(float cx, float cy, float rx, float ry, float start_theta,float delta_theta, ALLE- GRO_COLOR color, float thickness) • void al_draw_ribbon(const float *points, int points_stride, ALLEGRO_COLOR color,float thickness, int num_segments) • int al_draw_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP* texture, int start, int end, int type) • int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,ALLEGRO_BITMAP* texture, const int* indices, int num_vtx, int type) • ALLEGRO_VERTEX_DECL* al_create_vertex_decl(const ALLEGRO_VERTEX_ELEMENT* elements, int stride) • void al_destroy_vertex_decl(ALLEGRO_VERTEX_DECL* decl) 649
  • 13. CHAPTER SIXTYEIGHT RINGLIBSDL FUNCTIONS REFERENCE • void SDL_RenderCopy2(SDL_Renderer *,SDL_Texture *) • void SDL_Delay(int) • void SDL_Init(int) • int SDL_InitSubSystem(Uint32 flags) • void SDL_Quit(void) • void SDL_QuitSubSystem(Uint32 flags) • void SDL_SetMainReady(void) • Uint32 SDL_WasInit(Uint32 flags) • SDL_bool SDL_SetHint(const char *name,const char *value) • SDL_bool SDL_SetHintWithPriority(const char *name,const char *value,SDL_HintPriority priority) • void SDL_ClearError(void) • const char *SDL_GetError(void) • SDL_LogPriority SDL_LogGetPriority(int category) • void SDL_LogResetPriorities(void) • void SDL_LogSetAllPriority(SDL_LogPriority priority) • SDL_AssertionHandler SDL_GetDefaultAssertionHandler(void) • void SDL_ResetAssertionReport(void) • void SDL_SetAssertionHandler(SDL_AssertionHandler handler,void *userdata) • void SDL_TriggerBreakpoint(void) • void SDL_assert(int) • void SDL_assert_paranoid(int) • void SDL_assert_release(int) • const char * SDL_GetRevision(void) • int SDL_GetRevisionNumber(void) • void SDL_GetVersion(SDL_version *ver) • SDL_Window *SDL_CreateWindow(const char * title,int x, int y,int w,int h,Uint32 flags) • void SDL_DestroyWindow(SDL_Window *window) 650
  • 14. Ring Documentation, Release 1.4 • void SDL_DisableScreenSaver(void) • void SDL_EnableScreenSaver(void) • SDL_GLContext SDL_GL_CreateContext(SDL_Window *window) • void SDL_GL_DeleteContext(SDL_GLContext context) • SDL_bool SDL_GL_ExtensionSupported(const char *extension) • int SDL_GL_GetAttribute(SDL_GLattr attr,int *value) • SDL_GLContext SDL_GL_GetCurrentContext(void) • SDL_Window *SDL_GL_GetCurrentWindow(void) • void SDL_GL_GetDrawableSize(SDL_Window *window,int *w,int *h) • void *SDL_GL_GetProcAddress(const char *proc) • int SDL_GL_GetSwapInterval(void) • int SDL_GL_LoadLibrary(const char *path) • int SDL_GL_MakeCurrent(SDL_Window *window,SDL_GLContext context) • void SDL_GL_ResetAttributes(void) • int SDL_GL_SetAttribute(SDL_GLattr attr,int value) • int SDL_GL_SetSwapInterval(int interval) • void SDL_GL_SwapWindow(SDL_Window *window) • void SDL_GL_UnloadLibrary(void) • SDL_DisplayMode *SDL_GetClosestDisplayMode(int displayIndex,SDL_DisplayMode *mode,SDL_DisplayMode *closest) • int SDL_GetCurrentDisplayMode(int displayIndex,SDL_DisplayMode *mode) • const char *SDL_GetCurrentVideoDriver(void) • int SDL_GetDesktopDisplayMode(int displayIndex,SDL_DisplayMode *mode) • int SDL_GetDisplayBounds(int displayIndex,SDL_Rect *rect) • int SDL_GetNumVideoDisplays(void) • int SDL_GetNumVideoDrivers(void) • const char * SDL_GetVideoDriver(int index) • void *SDL_GetWindowData(SDL_Window *window,const char *name) • int SDL_GetWindowDisplayIndex(SDL_Window *window) • int SDL_GetWindowDisplayMode(SDL_Window *window,SDL_DisplayMode *mode) • Uint32 SDL_GetWindowFlags(SDL_Window *window) • SDL_Window *SDL_GetWindowFromID(Uint32 id) • int SDL_GetWindowGammaRamp(SDL_Window *window,Uint16 *red,Uint16 *green,Uint16 *blue) • SDL_bool SDL_GetWindowGrab(SDL_Window *window) • Uint32 SDL_GetWindowID(SDL_Window* window) • void SDL_GetWindowMaximumSize(SDL_Window *window,int *w,int *h) 651
  • 15. Ring Documentation, Release 1.4 • void SDL_GetWindowMinimumSize(SDL_Window *window,int *w,int *h) • void SDL_GetWindowPosition(SDL_Window *window,int *x,int *y) • void SDL_GetWindowSize(SDL_Window *window,int *w,int *h) • SDL_Surface *SDL_GetWindowSurface(SDL_Window *window) • const char *SDL_GetWindowTitle(SDL_Window *window) • SDL_bool SDL_IsScreenSaverEnabled(void) • void SDL_MaximizeWindow(SDL_Window *window) • void SDL_MinimizeWindow(SDL_Window *window) • void SDL_RaiseWindow(SDL_Window *window) • void SDL_RestoreWindow(SDL_Window *window) • void SDL_SetWindowBordered(SDL_Window *window,SDL_bool bordered) • int SDL_SetWindowBrightness(SDL_Window *window,float brightness) • void *SDL_SetWindowData(SDL_Window *window,const char *name,void *userdata) • int SDL_SetWindowDisplayMode(SDL_Window *window,const SDL_DisplayMode *mode) • int SDL_SetWindowFullscreen(SDL_Window *window,Uint32 flags) • int SDL_SetWindowGammaRamp(SDL_Window window,const Uint16 *red,const Uint16 *green,const Uint16 blue) • void SDL_SetWindowGrab(SDL_Window *window,SDL_bool grabbed) • void SDL_SetWindowMinimumSize(SDL_Window* window,int min_w,int min_h) • void SDL_SetWindowSize(SDL_Window *window,int w,int h) • void SDL_SetWindowTitle(SDL_Window *window,const char *title) • int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata,int *buttonid) • int SDL_ShowSimpleMessageBox(Uint32 flags,const char *title,const char *message,SDL_Window *window) • void SDL_ShowWindow(SDL_Window *window) • int SDL_UpdateWindowSurface(SDL_Window *window) • int SDL_UpdateWindowSurfaceRects(SDL_Window *window,const SDL_Rect *rects,int numrects) • int SDL_VideoInit(const char *driver_name) • void SDL_VideoQuit(void) • SDL_Renderer *SDL_CreateRenderer(SDL_Window *window,int index,Uint32 flags) • SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface) • SDL_Texture *SDL_CreateTexture(SDL_Renderer *renderer,Uint32 format,int access,int w,int h) • SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer,SDL_Surface *surface) • void SDL_DestroyTexture(SDL_Texture *texture) • int SDL_GL_BindTexture(SDL_Texture *texture,float *texw,float *texh) • int SDL_GL_UnbindTexture(SDL_Texture *texture) • int SDL_GetNumRenderDrivers(void) 652
  • 16. Ring Documentation, Release 1.4 • int SDL_GetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode *blendMode) • int SDL_GetRenderDrawColor(SDL_Renderer *renderer,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a) • int SDL_GetRenderDriverInfo(int index,SDL_RendererInfo *info) • SDL_Texture *SDL_GetRenderTarget(SDL_Renderer *renderer) • SDL_Renderer *SDL_GetRenderer(SDL_Window *window) • int SDL_GetRendererInfo(SDL_Renderer *renderer,SDL_RendererInfo *info) • int SDL_GetRendererOutputSize(SDL_Renderer *renderer,int *w,int *h) • int SDL_GetTextureAlphaMod(SDL_Texture *texture,Uint8 *alpha) • int SDL_GetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode *blendMode) • int SDL_GetTextureColorMod(SDL_Texture *texture,Uint8 *r,Uint8 *g,Uint8 *b) • int SDL_LockTexture(SDL_Texture *texture,const SDL_Rect *rect,void **pixels,int *pitch) • int SDL_QueryTexture(SDL_Texture *texture,int *format,int *access,int *w,int *h) • int SDL_RenderClear(SDL_Renderer *renderer) • int SDL_RenderCopy(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const SDL_Rect *dstrect) • int SDL_RenderCopyEx(SDL_Renderer *renderer,SDL_Texture *texture,const SDL_Rect *srcrect,const SDL_Rect *dstrect,const double angle,const SDL_Point *center,const SDL_RendererFlip flip) • int SDL_RenderDrawLine(SDL_Renderer *renderer,int x1,int y1,int x2,int y2) • int SDL_RenderDrawLines(SDL_Renderer *renderer,const SDL_Point *points,int count) • int SDL_RenderDrawPoint(SDL_Renderer *renderer,int x, int y) • int SDL_RenderDrawPoints(SDL_Renderer *renderer,const SDL_Point *points,int count) • int SDL_RenderDrawRect(SDL_Renderer *renderer,const SDL_Rect *rect) • int SDL_RenderDrawRects(SDL_Renderer *renderer,const SDL_Rect *rects,int count) • int SDL_RenderFillRect(SDL_Renderer *renderer,const SDL_Rect *rect) • int SDL_RenderFillRects(SDL_Renderer renderer,const SDL_Rect rects,int count) • void SDL_RenderGetClipRect(SDL_Renderer *renderer,SDL_Rect *rect) • void SDL_RenderGetScale(SDL_Renderer *renderer,float *scaleX,float *scaleY) • void SDL_RenderGetViewport(SDL_Renderer *renderer,SDL_Rect *rect) • int SDL_RenderReadPixels(SDL_Renderer *renderer,const SDL_Rect *rect,Uint32 format,void *pixels,int pitch) • int SDL_RenderSetClipRect(SDL_Renderer *renderer,const SDL_Rect *rect) • int SDL_RenderSetScale(SDL_Renderer *renderer,float scaleX,float scaleY) • int SDL_RenderSetViewport(SDL_Renderer *renderer,const SDL_Rect *rect) • SDL_bool SDL_RenderTargetSupported(SDL_Renderer *renderer) • int SDL_SetRenderDrawBlendMode(SDL_Renderer *renderer,SDL_BlendMode blendMode) • int SDL_SetRenderDrawColor(SDL_Renderer *renderer,Uint8 r,Uint8 g,Uint8 b,Uint8 a) • int SDL_SetRenderTarget(SDL_Renderer *renderer,SDL_Texture *texture) 653
  • 17. Ring Documentation, Release 1.4 • int SDL_SetTextureAlphaMod(SDL_Texture *texture,Uint8 alpha) • int SDL_SetTextureBlendMode(SDL_Texture *texture,SDL_BlendMode blendMode) • int SDL_SetTextureColorMod(SDL_Texture *texture,Uint8 r,Uint8 g,Uint8 b) • void SDL_UnlockTexture(SDL_Texture *texture) • int SDL_UpdateTexture(SDL_Texture *texture,const SDL_Rect *rect,const void*pixels,int pitch) • int SDL_UpdateYUVTexture(SDL_Texture *texture,const SDL_Rect *rect,const Uint8 *Yplane,int Yp- itch,const Uint8 *Uplane,int Upitch,const Uint8 *Vplane,int Vpitch) • SDL_PixelFormat *SDL_AllocFormat(Uint32 pixel_format) • SDL_Palette *SDL_AllocPalette(int ncolors) • void SDL_CalculateGammaRamp(float gamma,Uint16 *ramp) • void SDL_FreeFormat(SDL_PixelFormat *format) • void SDL_FreePalette(SDL_Palette *palette) • const char *SDL_GetPixelFormatName(Uint32 format) • void SDL_GetRGB(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b) • void SDL_GetRGBA(Uint32 pixel,const SDL_PixelFormat* format,Uint8 *r,Uint8 *g,Uint8 *b,Uint8 *a) • Uint32 SDL_MapRGB(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b) • Uint32 SDL_MapRGBA(const SDL_PixelFormat* format,Uint8 r,Uint8 g, Uint8 b, Uint8 a) • Uint32 SDL_MasksToPixelFormatEnum(int bpp,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) • SDL_bool SDL_PixelFormatEnumToMasks(Uint32 format,int *bpp,Uint32 *Rmask,Uint32 *Gmask,Uint32 *Bmask,Uint32 *Amask) • int SDL_SetPaletteColors(SDL_Palette *palette,const SDL_Color *colors,int firstcolor,int ncolors) • int SDL_SetPixelFormatPalette(SDL_PixelFormat *format,SDL_Palette *palette) • SDL_bool SDL_EnclosePoints(const SDL_Point* points,int count,const SDL_Rect *clip,SDL_Rect *result) • SDL_bool SDL_HasIntersection(const SDL_Rect *A,const SDL_Rect *B) • SDL_bool SDL_IntersectRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result) • SDL_bool SDL_IntersectRectAndLine(const SDL_Rect *rect,int *X1,int *Y1,int *X2,int *Y2) • SDL_bool SDL_RectEquals(const SDL_Rect *a,const SDL_Rect *b) • void SDL_UnionRect(const SDL_Rect *A,const SDL_Rect *B,SDL_Rect *result) • int SDL_BlitScaled(SDL_Surface *src,const SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_BlitSurface(SDL_Surface src,const SDL_Rect srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_ConvertPixels(int width,int height,Uint32 src_format,const void *src,int src_pitch,Uint32 dst_format,void *dst,int dst_pitch) • SDL_Surface *SDL_ConvertSurface(SDL_Surface *src,const SDL_PixelFormat *fmt,Uint32 flags) • SDL_Surface *SDL_ConvertSurfaceFormat(SDL_Surface *src,Uint32 pixel_format,Uint32 flags) • SDL_Surface *SDL_CreateRGBSurface(Uint32 flags,int width,int height,int depth,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) • SDL_Surface* SDL_CreateRGBSurfaceFrom(void *pixels,int width,int height,int depth,int pitch,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) 654
  • 18. Ring Documentation, Release 1.4 • int SDL_FillRect(SDL_Surface *dst,const SDL_Rect *rect,Uint32 color) • int SDL_FillRects(SDL_Surface *dst,const SDL_Rect *rects,int count,Uint32 color) • void SDL_FreeSurface(SDL_Surface *surface) • void SDL_GetClipRect(SDL_Surface *surface,SDL_Rect *rect) • int SDL_GetColorKey(SDL_Surface *surface,Uint32 *key) • int SDL_GetSurfaceAlphaMod(SDL_Surface *surface,Uint8 *alpha) • int SDL_GetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode *blendMode) • int SDL_GetSurfaceColorMod(SDL_Surface *surface,Uint8 *r,Uint8 *g,Uint8 *b) • SDL_Surface *SDL_LoadBMP(const char *file) • SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src,int freesrc) • int SDL_LockSurface(SDL_Surface *surface) • int SDL_LowerBlit(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • int SDL_LowerBlitScaled(SDL_Surface *src,SDL_Rect *srcrect,SDL_Surface *dst,SDL_Rect *dstrect) • SDL_bool SDL_MUSTLOCK(SDL_Surface *surface) • int SDL_SaveBMP(SDL_Surface *surface,const char *file) • int SDL_SaveBMP_RW(SDL_Surface *surface,SDL_RWops *dst,int freedst) • SDL_bool SDL_SetClipRect(SDL_Surface *surface,const SDL_Rect *rect) • int SDL_SetColorKey(SDL_Surface *surface,int flag,Uint32 key) • int SDL_SetSurfaceAlphaMod(SDL_Surface *surface,Uint8 alpha) • int SDL_SetSurfaceBlendMode(SDL_Surface *surface,SDL_BlendMode blendMode) • int SDL_SetSurfaceColorMod(SDL_Surface *surface,Uint8 r,Uint8 g,Uint8 b) • int SDL_SetSurfacePalette(SDL_Surface *surface,SDL_Palette *palette) • int SDL_SetSurfaceRLE(SDL_Surface *surface,int flag) • void SDL_UnlockSurface(SDL_Surface* surface) • SDL_bool SDL_GetWindowWMInfo(SDL_Window *window,SDL_SysWMinfo *info) • char *SDL_GetClipboardText(void) • SDL_bool SDL_HasClipboardText(void) • int SDL_SetClipboardText(const char *text) • void SDL_AddEventWatch(SDL_EventFilter filter,void *userdata) • void SDL_DelEventWatch(SDL_EventFilter filter,void *userdata) • Uint8 SDL_EventState(Uint32 type,int state) • void SDL_FilterEvents(SDL_EventFilter filter,void *userdata) • void SDL_FlushEvent(Uint32 type) • void SDL_FlushEvents(Uint32 minType,Uint32 maxType) • SDL_bool SDL_GetEventFilter(SDL_EventFilter *filter,void **userdata) • Uint8 SDL_GetEventState(Uint32 type) 655
  • 19. Ring Documentation, Release 1.4 • int SDL_GetNumTouchDevices(void) • int SDL_GetNumTouchFingers(SDL_TouchID touchID) • SDL_TouchID SDL_GetTouchDevice(int index) • SDL_Finger* SDL_GetTouchFinger(SDL_TouchID touchID,int index) • SDL_bool SDL_HasEvent(Uint32 type) • SDL_bool SDL_HasEvents(Uint32 minType,Uint32 maxType) • int SDL_LoadDollarTemplates(SDL_TouchID touchId,SDL_RWops *src) • int SDL_PeepEvents(SDL_Event *events,int numevents,SDL_eventaction action,Uint32 minType,Uint32 max- Type) • int SDL_PollEvent(SDL_Event *event) • void SDL_PumpEvents(void) • int SDL_PushEvent(SDL_Event *event) • SDL_bool SDL_QuitRequested(void) • int SDL_RecordGesture(SDL_TouchID touchId) • Uint32 SDL_RegisterEvents(int numevents) • int SDL_SaveAllDollarTemplates(SDL_RWops *dst) • int SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst) • void SDL_SetEventFilter(SDL_EventFilter filter,void *userdata) • int SDL_WaitEvent(SDL_Event *event) • int SDL_WaitEventTimeout(SDL_Event *event,int timeout) • SDL_Keycode SDL_GetKeyFromName(const char * name) • SDL_Keycode SDL_GetKeyFromScancode(SDL_Scancode scancode) • const char * SDL_GetKeyName(SDL_Keycode key) • SDL_Window* SDL_GetKeyboardFocus(void) • const Uint8* SDL_GetKeyboardState(int* numkeys) • SDL_Keymod SDL_GetModState(void) • SDL_Scancode SDL_GetScancodeFromKey(SDL_Keycode key) • SDL_Scancode SDL_GetScancodeFromName(const char * name) • const char * SDL_GetScancodeName(SDL_Scancode scancode) • SDL_bool SDL_HasScreenKeyboardSupport(void) • SDL_bool SDL_IsScreenKeyboardShown(SDL_Window* window) • SDL_bool SDL_IsTextInputActive(void) • void SDL_SetModState(SDL_Keymod modstate) • void SDL_SetTextInputRect(SDL_Rect* rect) • void SDL_StartTextInput(void) • void SDL_StopTextInput(void) 656
  • 20. Ring Documentation, Release 1.4 • SDL_Cursor *SDL_CreateCursor(const Uint8 *data,const Uint8 *mask,int w,int h,int hot_x,int hot_y) • void SDL_FreeCursor(SDL_Cursor *cursor) • SDL_Cursor *SDL_GetCursor(void) • SDL_Cursor *SDL_GetDefaultCursor(void) • Uint32 SDL_GetMouseState(int *x,int * y) • SDL_bool SDL_GetRelativeMouseMode(void) • Uint32 SDL_GetRelativeMouseState(int *x,int *y) • void SDL_SetCursor(SDL_Cursor *cursor) • int SDL_SetRelativeMouseMode(SDL_bool enabled) • int SDL_ShowCursor(int toggle) • void SDL_JoystickClose(SDL_Joystick *joystick) • SDL_bool SDL_JoystickGetAttached(SDL_Joystick *joystick) • Sint16 SDL_JoystickGetAxis(SDL_Joystick *joystick,int axis) • int SDL_JoystickGetBall(SDL_Joystick *joystick,int ball,int *dx,int *dy) • Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick,int button) • SDL_JoystickGUID SDL_JoystickGetDeviceGUID(int device_index) • SDL_JoystickGUID SDL_JoystickGetGUID(SDL_Joystick *joystick) • SDL_JoystickGUID SDL_JoystickGetGUIDFromString(const char *pchGUID) • void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid,char *pszGUID,int cbGUID) • Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick,int hat) • SDL_JoystickID SDL_JoystickInstanceID(SDL_Joystick *joystick) • const char *SDL_JoystickName(SDL_Joystick *joystick) • const char *SDL_JoystickNameForIndex(int device_index) • int SDL_JoystickNumAxes(SDL_Joystick *joystick) • int SDL_JoystickNumBalls(SDL_Joystick *joystick) • int SDL_JoystickNumButtons(SDL_Joystick *joystick) • int SDL_JoystickNumHats(SDL_Joystick *joystick) • SDL_Joystick *SDL_JoystickOpen(int device_index) • void SDL_JoystickUpdate(void) • int SDL_NumJoysticks(void) • int SDL_GameControllerAddMapping(const char *mappingString) • int SDL_GameControllerAddMappingsFromFile(const char *filename) • int SDL_GameControllerAddMappingsFromRW(SDL_RWops *rw,int freerw) • void SDL_GameControllerClose(SDL_GameController *gamecontroller) • int SDL_GameControllerEventState(int state) • Sint16 SDL_GameControllerGetAxis(SDL_GameController *gamecontroller,SDL_GameControllerAxis axis) 657
  • 21. Ring Documentation, Release 1.4 • SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(const char *pchString) • SDL_GameControllerButtonBind SDL_GameControllerGetBindForAxis(SDL_GameController *gamecon- troller,SDL_GameControllerAxis axis) • SDL_GameControllerButtonBind SDL_GameControllerGetBindForButton(SDL_GameController *gamecon- troller,SDL_GameControllerButton button) • Uint8 SDL_GameControllerGetButton(SDL_GameController *gamecontroller,SDL_GameControllerButton button) • SDL_GameControllerButton SDL_GameControllerGetButtonFromString(const char *pchString) • SDL_Joystick *SDL_GameControllerGetJoystick(SDL_GameController *gamecontroller) • const char *SDL_GameControllerGetStringForAxis(SDL_GameControllerAxis axis) • const char *SDL_GameControllerGetStringForButton(SDL_GameControllerButton button) • char *SDL_GameControllerMapping(SDL_GameController *gamecontroller) • char *SDL_GameControllerMappingForGUID(SDL_JoystickGUID guid) • const char *SDL_GameControllerName(SDL_GameController *gamecontroller) • const char *SDL_GameControllerNameForIndex(int joystick_index) • SDL_GameController* SDL_GameControllerOpen(int joystick_index) • void SDL_GameControllerUpdate(void) • SDL_bool SDL_IsGameController(int joystick_index) • void SDL_HapticClose(SDL_Haptic* haptic) • void SDL_HapticDestroyEffect(SDL_Haptic *haptic,int effect) • int SDL_HapticEffectSupported(SDL_Haptic *haptic,SDL_HapticEffect *effect) • int SDL_HapticGetEffectStatus(SDL_Haptic *haptic,int effect) • int SDL_HapticIndex(SDL_Haptic *haptic) • const char *SDL_HapticName(int device_index) • int SDL_HapticNewEffect(SDL_Haptic *haptic,SDL_HapticEffect *effect) • int SDL_HapticNumAxes(SDL_Haptic *haptic) • int SDL_HapticNumEffects(SDL_Haptic *haptic) • int SDL_HapticNumEffectsPlaying(SDL_Haptic *haptic) • SDL_Haptic *SDL_HapticOpen(int device_index) • SDL_Haptic *SDL_HapticOpenFromJoystick(SDL_Joystick *joystick) • SDL_Haptic *SDL_HapticOpenFromMouse(void) • int SDL_HapticOpened(int device_index) • int SDL_HapticPause(SDL_Haptic *haptic) • unsigned int SDL_HapticQuery(SDL_Haptic *haptic) • int SDL_HapticRumbleInit(SDL_Haptic *haptic) • int SDL_HapticRumblePlay(SDL_Haptic *haptic,float strength,Uint32 length) • int SDL_HapticRumbleStop(SDL_Haptic *haptic) 658
  • 22. Ring Documentation, Release 1.4 • int SDL_HapticRumbleSupported(SDL_Haptic *haptic) • int SDL_HapticRunEffect(SDL_Haptic *haptic,int effect,Uint32 iterations) • int SDL_HapticSetAutocenter(SDL_Haptic *haptic,int autocenter) • int SDL_HapticSetGain(SDL_Haptic *haptic,int gain) • int SDL_HapticStopAll(SDL_Haptic *haptic) • int SDL_HapticStopEffect(SDL_Haptic *haptic,int effect) • int SDL_HapticUnpause(SDL_Haptic *haptic) • int SDL_HapticUpdateEffect(SDL_Haptic *haptic,int effect,SDL_HapticEffect *data) • int SDL_JoystickIsHaptic(SDL_Joystick *joystick) • int SDL_MouseIsHaptic(void) • int SDL_NumHaptics(void) • int SDL_AudioInit(const char * driver_name) • void SDL_AudioQuit(void) • int SDL_BuildAudioCVT(SDL_AudioCVT *cvt,SDL_AudioFormat src_format,Uint8 src_channels,int src_rate,SDL_AudioFormat dst_format,Uint8 dst_channels,int dst_rate) • void SDL_CloseAudioDevice(SDL_AudioDeviceID dev) • int SDL_ConvertAudio(SDL_AudioCVT *cvt) • void SDL_FreeWAV(Uint8 *audio_buf) • const char * SDL_GetAudioDeviceName(int index,int iscapture) • SDL_AudioStatus SDL_GetAudioDeviceStatus(SDL_AudioDeviceID dev) • const char * SDL_GetAudioDriver(int index) • SDL_AudioStatus SDL_GetAudioStatus(void) • const char * SDL_GetCurrentAudioDriver(void) • int SDL_GetNumAudioDevices(int iscapture) • int SDL_GetNumAudioDrivers(void) • SDL_AudioSpec *SDL_LoadWAV_RW(SDL_RWops *src,int freesrc,SDL_AudioSpec *spec,Uint8 **au- dio_buf,Uint32 *audio_len) • void SDL_LockAudio(void) • void SDL_LockAudioDevice(SDL_AudioDeviceID dev) • void SDL_MixAudio(Uint8 dst,const Uint8 src,Uint32 len,int volume) • void SDL_MixAudioFormat(Uint8 *dst,const Uint8 *src,SDL_AudioFormat format,Uint32 len,int volume) • int SDL_OpenAudio(SDL_AudioSpec *desired,SDL_AudioSpec *obtained) • SDL_AudioDeviceID SDL_OpenAudioDevice(const char *device,int iscapture,const SDL_AudioSpec *de- sired,SDL_AudioSpec *obtained,int allowed_changes) • void SDL_PauseAudio(int pause_on) • void SDL_PauseAudioDevice(SDL_AudioDeviceID dev,int pause_on) • void SDL_UnlockAudio(void) 659
  • 23. Ring Documentation, Release 1.4 • void SDL_UnlockAudioDevice(SDL_AudioDeviceID dev) • char *SDL_GetBasePath(void) • char *SDL_GetPrefPath(const char *org,const char *app) • SDL_RWops *SDL_AllocRW(void) • void SDL_FreeRW(SDL_RWops *area) • SDL_RWops SDL_RWFromConstMem(const void mem,int size) • SDL_RWops *SDL_RWFromFP(void *fp,SDL_bool autoclose) • SDL_RWops *SDL_RWFromFile(const char *file,const char *mode) • SDL_RWops *SDL_RWFromMem(void *mem,int size) • int SDL_RWclose(struct SDL_RWops *context) • size_t SDL_RWread(struct SDL_RWops *context,void *ptr,size_t size,size_t maxnum) • Sint64 SDL_RWseek(SDL_RWops *context,Sint64 offset,int whence) • Sint64 SDL_RWsize(SDL_RWops *context) • Sint64 SDL_RWtell(struct SDL_RWops *context) • size_t SDL_RWwrite(struct SDL_RWops *context,const void *ptr,size_t size,size_t num) • Uint16 SDL_ReadBE16(SDL_RWops *src) • Uint32 SDL_ReadBE32(SDL_RWops *src) • Uint64 SDL_ReadBE64(SDL_RWops *src) • Uint16 SDL_ReadLE16(SDL_RWops *src) • Uint32 SDL_ReadLE32(SDL_RWops *src) • Uint64 SDL_ReadLE64(SDL_RWops *src) • Uint8 SDL_ReadU8(SDL_RWops *src) • size_t SDL_WriteBE16(SDL_RWops *dst,Uint16 value) • size_t SDL_WriteBE32(SDL_RWops *dst,Uint32 value) • size_t SDL_WriteBE64(SDL_RWops *dst,Uint64 value) • size_t SDL_WriteLE16(SDL_RWops *dst,Uint16 value) • size_t SDL_WriteLE32(SDL_RWops *dst,Uint32 value) • size_t SDL_WriteLE64(SDL_RWops *dst,Uint64 value) • size_t SDL_WriteU8(SDL_RWops *dst,Uint8 value) • void *SDL_LoadFunction(void *handle,const char *name) • void *SDL_LoadObject(const char *sofile) • void SDL_UnloadObject(void *handle) • const char *SDL_GetPlatform(void) • int SDL_GetCPUCacheLineSize(void) • int SDL_GetCPUCount(void) • int SDL_GetSystemRAM(void) 660
  • 24. Ring Documentation, Release 1.4 • SDL_bool SDL_Has3DNow(void) • SDL_bool SDL_HasAVX(void) • SDL_bool SDL_HasMMX(void) • SDL_bool SDL_HasRDTSC(void) • SDL_bool SDL_HasSSE(void) • SDL_bool SDL_HasSSE2(void) • SDL_bool SDL_HasSSE3(void) • SDL_bool SDL_HasSSE41(void) • SDL_bool SDL_HasSSE42(void) • SDL_PowerState SDL_GetPowerInfo(int *secs,int *pct) • double SDL_acos(double x) • int IMG_Init(int flags) • void IMG_Quit(void) • SDL_Surface *IMG_Load(const char *file) • SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc) • SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type) • SDL_Surface *IMG_LoadCUR_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadBMP_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXPM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadGIF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadJPG_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadTIF_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadLBM_RW(SDL_RWops *src) • SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src) • SDL_Surface *IMG_ReadXPMFromArray(char **xpm) • int IMG_isCUR(SDL_RWops *src) • int IMG_isICO(SDL_RWops *src) • int IMG_isBMP(SDL_RWops *src) • int IMG_isPNM(SDL_RWops *src) • int IMG_isXPM(SDL_RWops *src) • int IMG_isXCF(SDL_RWops *src) 661
  • 25. Ring Documentation, Release 1.4 • int IMG_isPCX(SDL_RWops *src) • int IMG_isGIF(SDL_RWops *src) • int IMG_isJPG(SDL_RWops *src) • int IMG_isTIF(SDL_RWops *src) • int IMG_isPNG(SDL_RWops *src) • int IMG_isLBM(SDL_RWops *src) • int IMG_isXV(SDL_RWops *src) • int TTF_Init(void) • int TTF_WasInit(void) • void TTF_Quit(void) • TTF_Font *TTF_OpenFont(const char *file, int ptsize) • TTF_Font *TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize) • TTF_Font *TTF_OpenFontIndex(const char *file, int ptsize, long index) • TTF_Font *TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index) • void TTF_CloseFont(TTF_Font *font) • void TTF_ByteSwappedUNICODE(int swapped) • int TTF_GetFontStyle(TTF_Font *font) • void TTF_SetFontStyle(TTF_Font *font, int style) • int TTF_GetFontOutline(TTF_Font *font) • void TTF_SetFontOutline(TTF_Font *font, int outline) • int TTF_GetFontHinting(TTF_Font *font) • void TTF_SetFontHinting(TTF_Font *font, int hinting) • int TTF_GetFontKerning(TTF_Font *font) • void TTF_SetFontKerning(TTF_Font *font, int allowed) • int TTF_FontHeight(const TTF_Font *font) • int TTF_FontAscent(const TTF_Font *font) • int TTF_FontDescent(const TTF_Font *font) • int TTF_FontLineSkip(const TTF_Font *font) • long TTF_FontFaces(const TTF_Font *font) • int TTF_FontFaceIsFixedWidth(const TTF_Font *font) • char *TTF_FontFaceFamilyName(const TTF_Font *font) • char *TTF_FontFaceStyleName(const TTF_Font *font) • int TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch) • int TTF_GlyphMetrics(TTF_Font *font, Uint16 ch, int *minx, int *maxx, int *miny, int *maxy, int *advance) • int TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h) • int TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h) 662
  • 26. Ring Documentation, Release 1.4 • int TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h) • SDL_Surface *TTF_RenderText_Solid(TTF_Font *font, const char *text, SDL_Color fg) • SDL_Surface *TTF_RenderUTF8_Solid(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUNICODE_Solid(TTF_Font *font, const Uint16 *text,SDL_Color fg) • SDL_Surface *TTF_RenderGlyph_Solid(TTF_Font *font, Uint16 ch, SDL_Color fg) • SDL_Surface *TTF_RenderText_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderUTF8_Shaded(TTF_Font *font, const char *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderUNICODE_Shaded(TTF_Font *font, const Uint16 *text,SDL_Color fg, SDL_Color bg) • SDL_Surface *TTF_RenderGlyph_Shaded(TTF_Font *font, Uint16 ch, SDL_Color fg,SDL_Color bg) • SDL_Surface *TTF_RenderText_Blended(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUTF8_Blended(TTF_Font *font, const char *text,SDL_Color fg) • SDL_Surface *TTF_RenderUNICODE_Blended(TTF_Font *font, const Uint16 *text,SDL_Color fg) • SDL_Surface *TTF_RenderGlyph_Blended(TTF_Font *font, Uint16 ch, SDL_Color fg) • int Mix_Init(int flags) • void Mix_Quit(void) • int Mix_OpenAudio(int frequency, Uint16 format, int channels, int chunksize) • void Mix_CloseAudio(void) • int Mix_QuerySpec(int *frequency, Uint16 *format, int *channels) • int Mix_GetNumChunkDecoders(void) • const char *Mix_GetChunkDecoder(int index) • Mix_Chunk *Mix_LoadWAV(char *file) • Mix_Chunk *Mix_LoadWAV_RW(SDL_RWops *src, int freesrc) • Mix_Chunk *Mix_QuickLoad_WAV(Uint8 *mem) • void Mix_FreeChunk(Mix_Chunk *chunk) • int Mix_AllocateChannels(int numchans) • int Mix_Volume(int channel, int volume) • int Mix_PlayChannel(int channel, Mix_Chunk *chunk, int loops) • int Mix_PlayChannelTimed(int channel, Mix_Chunk *chunk, int loops, int ticks) • int Mix_FadeInChannel(int channel, Mix_Chunk *chunk, int loops, int ms) • int Mix_FadeInChannelTimed(int channel, Mix_Chunk *chunk,int loops, int ms, int ticks) • void Mix_Pause(int channel) • void Mix_Resume(int channel) • int Mix_HaltChannel(int channel) • int Mix_ExpireChannel(int channel, int ticks) • int Mix_FadeOutChannel(int channel, int ms) 663
  • 27. Ring Documentation, Release 1.4 • int Mix_Paused(int channel) • Mix_Fading Mix_FadingChannel(int which) • Mix_Chunk *Mix_GetChunk(int channel) • int Mix_ReserveChannels(int num) • int Mix_GroupChannel(int which, int tag) • int Mix_GroupChannels(int from, int to, int tag) • int Mix_GroupCount(int tag) • int Mix_GroupAvailable(int tag) • int Mix_GroupOldest(int tag) • int Mix_GroupNewer(int tag) • int Mix_FadeOutGroup(int tag, int ms) • int Mix_HaltGroup(int tag) • int Mix_GetNumMusicDecoders(void) • const char *Mix_GetMusicDecoder(int index) • Mix_Music *Mix_LoadMUS(const char *file) • void Mix_FreeMusic(Mix_Music *music) • int Mix_PlayMusic(Mix_Music *music, int loops) • int Mix_FadeInMusic(Mix_Music *music, int loops, int ms) • int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position) • int Mix_PlayingMusic(void) • int Mix_PausedMusic(void) • Mix_Fading Mix_FadingMusic(void) • void *Mix_GetMusicHookData(void) • int Mix_RegisterEffect(int chan, Mix_EffectFunc_t f, Mix_EffectDone_t d,void *arg) • int Mix_UnregisterEffect(int channel, Mix_EffectFunc_t f) • int Mix_UnregisterAllEffects(int channel) • int Mix_SetDistance(int channel, Uint8 distance) • int Mix_SetPosition(int channel, Sint16 angle, Uint8 distance) • int Mix_SetReverseStereo(int channel, int flip) • int SDLNet_Init(void) • void SDLNet_Quit(void) • char *SDLNet_GetError(void) • void SDLNet_Write16(Uint16 value, void *area) • void SDLNet_Write32(Uint32 value, void *area) • Uint16 SDLNet_Read16(void *area) • Uint32 SDLNet_Read32(void *area) 664
  • 28. Ring Documentation, Release 1.4 • int SDLNet_ResolveHost(IPaddress *address, const char *host, Uint16 port) • const char *SDLNet_ResolveIP(IPaddress *address) • TCPsocket SDLNet_TCP_Open(IPaddress *ip) • void SDLNet_TCP_Close(TCPsocket sock) • TCPsocket SDLNet_TCP_Accept(TCPsocket server) • IPaddress *SDLNet_TCP_GetPeerAddress(TCPsocket sock) • int SDLNet_TCP_Send(TCPsocket sock, const void *data, int len) • int SDLNet_TCP_Recv(TCPsocket sock, void *data, int maxlen) • UDPsocket SDLNet_UDP_Open(Uint16 port) • void SDLNet_UDP_Close(UDPsocket sock) • int SDLNet_UDP_Bind(UDPsocket sock, int channel, IPaddress *address) • void SDLNet_UDP_Unbind(UDPsocket sock, int channel) • IPaddress *SDLNet_UDP_GetPeerAddress(UDPsocket sock, int channel) • int SDLNet_UDP_Send(UDPsocket sock, int channel, UDPpacket *packet) • int SDLNet_UDP_Recv(UDPsocket sock, UDPpacket *packet) • int SDLNet_UDP_SendV(UDPsocket sock, UDPpacket **packetV, int npackets) • int SDLNet_UDP_RecvV(UDPsocket sock, UDPpacket **packetV) • UDPpacket *SDLNet_AllocPacket(int size) • int SDLNet_ResizePacket(UDPpacket *packet, int size) • void SDLNet_FreePacket(UDPpacket *packet) • UDPpacket **SDLNet_AllocPacketV(int howmany, int size) • void SDLNet_FreePacketV(UDPpacket **packetV) • SDLNet_SocketSet SDLNet_AllocSocketSet(int maxsockets) • void SDLNet_FreeSocketSet(SDLNet_SocketSet set) • int SDLNet_AddSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock) • int SDLNet_TCP_AddSocket(SDLNet_SocketSet set, TCPsocket sock) • int SDLNet_UDP_AddSocket(SDLNet_SocketSet set, UDPsocket sock) • int SDLNet_DelSocket(SDLNet_SocketSet set, SDLNet_GenericSocket sock) • int SDLNet_TCP_DelSocket(SDLNet_SocketSet set, TCPsocket sock) • int SDLNet_UDP_DelSocket(SDLNet_SocketSet set, UDPsocket sock) • int SDLNet_CheckSockets(SDLNet_SocketSet set, Uint32 timeout) • int SDLNet_SocketReady(TCPsocket sock) • int circleRGBA(SDL_Renderer * renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a) 665
  • 29. CHAPTER SIXTYNINE RINGQT CLASSES REFERENCE 69.1 QApp Class C++ Reference : http://doc.qt.io/qt-5/QApplication.html • void exec(void) • void quit(void) • void processEvents(void) • void styleWindows(void) • void styleWindowsVista(void) • void styleFusion(void) • void styleFusionBlack(void) • void styleFusionCustom(QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor,QColor) • void closeAllWindows(void) • Qt::KeyboardModifiers keyboardModifiers(void) 69.2 QDesktopServices Class C++ Reference : http://doc.qt.io/qt-5/QDesktopServices.html • bool openUrl(QUrl) • void setUrlHandler(QString, QObject *receiver, const char *method) • void unsetUrlHandler(QString) 69.3 QTest Class C++ Reference : http://doc.qt.io/qt-5/QTest.html • void qsleep(int) 666
  • 30. Ring Documentation, Release 1.4 69.4 QObject Class C++ Reference : http://doc.qt.io/qt-5/QObject.html Parameters : void • bool blockSignals(bool block) • QObjectList children(void) • void dumpObjectInfo(void) • void dumpObjectTree(void) • bool inherits(const char *className) • void installEventFilter(QObject *filterObj) • bool isWidgetType(void) • void killTimer(int id) • void moveToThread(QThread *targetThread) • QString objectName(void) • QObject *parent(void) • QVariant property(const char *name) • void removeEventFilter(QObject *obj) • void setObjectName(QString) • void setParent(QObject *parent) • bool setProperty(const char *name, QVariant) • bool signalsBlocked(void) • int startTimer(int interval) • QThread *thread(void) • void deleteLater(void) 69.5 QWidget Class C++ Reference : http://doc.qt.io/qt-5/QWidget.html Parameters : void Parent Class : QObject • bool acceptDrops(void) • QString accessibleDescription(void) • QString accessibleName(void) • void activateWindow(void) • void addAction(QAction *action) • void adjustSize(void) • bool autoFillBackground(void) 69.4. QObject Class 667