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.
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 |
|
No description available. |
|
play_samples |
|
No description available. |
|
rumble |
|
No description available. |
|
create_software_context |
|
No description available. |
|
create_gl_context |
|
No description available. |
|
get_colorburst_offset |
|
No description available. |
|
get_cache_path |
|
No description available. |
|
log |
|
No description available. |
|
power_off |
|
No description available. |