Interface

HsFrontend

Description [src]

interface Hs.Frontend : GObject.Object

An interface defining a frontend.

The frontend must have a HsFrontend implementation and set it as the HsCore:frontend value.

Prerequisite

In order to implement Frontend, your type must inherit fromGObject.

Instance methods

hs_frontend_create_gl_context

Creates an OpenGL context.

hs_frontend_create_software_context

Creates a software rendering context.

hs_frontend_get_cache_path

Gets the path to the cache location.

hs_frontend_get_colorburst_offset

Gets the current colorburst offset.

hs_frontend_log

Logs message with the log level level.

hs_frontend_play_samples

Plays provided audio samples.

hs_frontend_power_off

Powers off the emulated system.

hs_frontend_rumble

Makes player‘s controller rumble for milliseconds.

Interface structure

struct HsFrontendInterface {
  GTypeInterface parent;
  void (* play_samples) (
    HsFrontend* self,
    gint16* samples,
    int n_samples
  );
  void (* rumble) (
    HsFrontend* self,
    guint player,
    double strong_magnitude,
    double weak_magnitude,
    guint16 milliseconds
  );
  HsSoftwareContext* (* create_software_context) (
    HsFrontend* self,
    guint width,
    guint height,
    HsPixelFormat format
  );
  HsGLContext* (* create_gl_context) (
    HsFrontend* self,
    HsGLAPI api,
    int major_version,
    int minor_version,
    HsGLFlags flags
  );
  float (* get_colorburst_offset) (
    HsFrontend* self
  );
  char* (* get_cache_path) (
    HsFrontend* self
  );
  void (* log) (
    HsFrontend* self,
    HsLogLevel level,
    const char* message
  );
  void (* power_off) (
    HsFrontend* self
  );
  
}

No description available.

Interface members
parent
GTypeInterface
 

No description available.

play_samples
void (* play_samples) (
    HsFrontend* self,
    gint16* samples,
    int n_samples
  )
 

No description available.

rumble
void (* rumble) (
    HsFrontend* self,
    guint player,
    double strong_magnitude,
    double weak_magnitude,
    guint16 milliseconds
  )
 

No description available.

create_software_context
HsSoftwareContext* (* create_software_context) (
    HsFrontend* self,
    guint width,
    guint height,
    HsPixelFormat format
  )
 

No description available.

create_gl_context
HsGLContext* (* create_gl_context) (
    HsFrontend* self,
    HsGLAPI api,
    int major_version,
    int minor_version,
    HsGLFlags flags
  )
 

No description available.

get_colorburst_offset
float (* get_colorburst_offset) (
    HsFrontend* self
  )
 

No description available.

get_cache_path
char* (* get_cache_path) (
    HsFrontend* self
  )
 

No description available.

log
void (* log) (
    HsFrontend* self,
    HsLogLevel level,
    const char* message
  )
 

No description available.

power_off
void (* power_off) (
    HsFrontend* self
  )
 

No description available.

Virtual methods

Hs.Frontend.create_gl_context

Creates an OpenGL context.

Hs.Frontend.create_software_context

Creates a software rendering context.

Hs.Frontend.get_cache_path

Gets the path to the cache location.

Hs.Frontend.get_colorburst_offset

Gets the current colorburst offset.

Hs.Frontend.log

Logs message with the log level level.

Hs.Frontend.play_samples

Plays provided audio samples.

Hs.Frontend.power_off

Powers off the emulated system.

Hs.Frontend.rumble

Makes player‘s controller rumble for milliseconds.