Raxol.Animation.Gestures.GestureServer (Raxol v2.0.1)

View Source

GenServer implementation for Animation Gestures state management.

This server manages gesture state and animations without Process dictionary usage, providing per-process gesture tracking and animation state management.

Features

  • Per-process gesture state tracking
  • Touch/mouse event handling
  • Gesture type detection and handling
  • Physics-based animation management
  • Automatic cleanup on process termination

Summary

Functions

Returns a child specification for this server.

Gets animation objects for the calling process.

Gets gesture state for the calling process.

Initializes gesture state for the calling process.

Registers a gesture handler for the calling process.

Handles a touch down event.

Handles a touch move event.

Updates animations for the calling process.

Functions

child_spec(init_arg)

Returns a child specification for this server.

get_animation_objects(pid \\ nil)

Gets animation objects for the calling process.

get_state(pid \\ nil)

Gets gesture state for the calling process.

handle_manager_call(request, from, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_call/3.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

handle_manager_info(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_info/2.

init_gestures(pid \\ nil)

Initializes gesture state for the calling process.

register_handler(gesture_type, handler, pid \\ nil)

Registers a gesture handler for the calling process.

start_link(init_opts \\ [])

touch_down(position, time \\ nil, pid \\ nil)

Handles a touch down event.

touch_move(position, time \\ nil, pid \\ nil)

Handles a touch move event.

touch_up(position, time \\ nil, pid \\ nil)

Handles a touch up event.

update_animations(delta_time \\ nil, pid \\ nil)

Updates animations for the calling process.