Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions lib/scenic/scene.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1011,11 +1011,6 @@ defmodule Scenic.Scene do
The callback supports all the return values of the
[`init`](https://hexdocs.pm/elixir/GenServer.html#c:handle_cast/2)
callback in [`Genserver`](https://hexdocs.pm/elixir/GenServer.html).

In addition to the normal return values defined by GenServer, a `Scene` can
add an optional `{push: graph}` term, which pushes the graph to the viewport.

This has replaced push_graph() as the preferred way to push a graph.
"""
@callback handle_input(input :: Scenic.ViewPort.Input.t(), id :: any, scene :: Scene.t()) ::
{:noreply, scene}
Expand Down Expand Up @@ -1052,11 +1047,6 @@ defmodule Scenic.Scene do
The callback supports all the return values of the
[`init`](https://hexdocs.pm/elixir/GenServer.html#c:handle_cast/2)
callback in [`Genserver`](https://hexdocs.pm/elixir/GenServer.html).

In addition to the normal return values defined by GenServer, a `Scene` can
add an optional `{push: graph}` term, which pushes the graph to the viewport.

This has replaced push_graph() as the preferred way to push a graph.
"""
@callback handle_event(event :: term, from :: pid, scene :: Scene.t()) ::
{:noreply, scene}
Expand Down Expand Up @@ -1094,12 +1084,6 @@ defmodule Scenic.Scene do
The callback supports all the return values of the
[`init`](https://hexdocs.pm/elixir/GenServer.html#c:init/1)
callback in [`Genserver`](https://hexdocs.pm/elixir/GenServer.html).

In addition to the normal return values defined by GenServer, a `Scene` can
return two new ones that push a graph to the viewport

Returning `{:ok, state, push: graph}` will push the indicated graph
to the ViewPort. This is preferable to the old push_graph() function.
"""

@callback init(scene :: Scene.t(), args :: term(), options :: Keyword.t()) ::
Expand Down
Loading