Scenic.ViewPort.Driver behaviour (Scenic v0.10.3) View Source

Drivers make up the bottom layer of the Scenic architectural stack. They draw everything on the screen and originate the raw user input. In general, different hardware platforms will need different drivers.

Drivers deal with graphs and do not know anything about scenes. This means that they are pretty generic. Drivers don't really understand that a component is a separate thing either, other than the fact that it has a graph that needs to be drawn.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this section Callbacks

Link to this callback

handle_call(any, any, any)

View Source

Specs

handle_call(any(), any(), any()) :: {:reply, any(), any()} | {:noreply, any()}

Specs

handle_cast(any(), any()) :: {:noreply, any()}

Specs

handle_info(any(), any()) :: {:noreply, any()}
Link to this callback

init(viewport, size, config)

View Source

Specs

init(
  viewport :: GenServer.server(),
  size :: Scenic.Math.point(),
  config :: any()
) :: {:ok, any()}