Retro.MainLoop

g GObject.Object GObject.Object Retro.MainLoop Retro.MainLoop GObject.Object->Retro.MainLoop

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (core)
  get_core ()
  get_speed_rate ()
  reset ()
  set_core (core)
  set_speed_rate (speed_rate)
  start ()
  stop ()

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
core Retro.Core r/w/c The core
speed-rate float r/w/c The speed ratio at wich the core will run

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)

Class Details

class Retro.MainLoop(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Retro.MainLoopClass
classmethod new(core)
Parameters:core (Retro.Core) –
Returns:a new Retro.MainLoop
Return type:Retro.MainLoop

Creates a new Retro.MainLoop.

get_core()
Returns:a Retro.Core
Return type:Retro.Core

Gets the core handled by self.

get_speed_rate()
Returns:the speed rate
Return type:float

Gets the speed rate at which to run the core.

reset()

Resets the core. Results depend on the core’s implementation.

set_core(core)
Parameters:core (Retro.Core or None) – a Retro.Core, or None

Sets core as the Retro.Core handled by self.

set_speed_rate(speed_rate)
Parameters:speed_rate (float) – a speed rate

Sets the speed rate at which to run the core.

start()

Starts running the core. If the core was stopped, it will restart from this moment.

stop()

Stops running the core.

Property Details

Retro.MainLoop.props.core
Name:core
Type:Retro.Core
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT

The core

Retro.MainLoop.props.speed_rate
Name:speed-rate
Type:float
Default Value:1.0
Flags:READABLE, WRITABLE, CONSTRUCT

The speed ratio at wich the core will run