Functions

  g_log (sender, log_domain, log_level, message)
  gtk_get_resource ()
  joypad_id_from_button_code (button_code)
  joypad_id_to_button_code (joypad_id)
  pixbuf_get_aspect_ratio (pixbuf)
  pixbuf_set_aspect_ratio (pixbuf, aspect_ratio)
  video_filter_from_string (filter)

Details

Retro.g_log(sender, log_domain, log_level, message)
Parameters:

Logs an error or debugging message.

This is a convenience function to forward the log signal of Retro.Core to g_log(), see it for more information.

Retro.gtk_get_resource()
Return type:Gio.Resource
Retro.joypad_id_from_button_code(button_code)
Parameters:button_code (int) – a button code
Returns:the corresponding joypad id
Return type:Retro.JoypadId
Retro.joypad_id_to_button_code(joypad_id)
Parameters:joypad_id (Retro.JoypadId) – a Retro.JoypadId
Returns:the corresponding button code
Return type:int
Retro.pixbuf_get_aspect_ratio(pixbuf)
Parameters:pixbuf (GdkPixbuf.Pixbuf) – a GdkPixbuf.Pixbuf
Returns:the aspect ratio, or 0 if the option is not set or its value is invalid.
Return type:float

Gets the aspect ratio of pixbuf by reading the ‘aspect-ratio’ pixbuf option.

Retro.pixbuf_set_aspect_ratio(pixbuf, aspect_ratio)
Parameters:

Sets the aspect ratio of pixbuf by setting the ‘aspect-ratio’ pixbuf option. Use Retro.pixbuf_get_aspect_ratio() to retrieve it.

Retro.video_filter_from_string(filter)
Parameters:filter (str) – a filter name
Returns:a Retro.VideoFilter
Return type:Retro.VideoFilter

Gets a Retro.VideoFilter from it’s name. It defaults to Retro.VideoFilter.SMOOTH in case of error.