Plushie.Type.Anchor (Plushie v0.6.0)

Copy Markdown View Source

Anchor values for the scrollbar alignment prop.

Maps to iced's scrollable::Anchor enum.

Summary

Functions

Encodes an anchor value to the wire format.

Types

t()

@type t() :: :start | :end

Functions

encode(value)

@spec encode(anchor :: t()) :: String.t()

Encodes an anchor value to the wire format.

Examples

iex> Plushie.Type.Anchor.encode(:start)
"start"

iex> Plushie.Type.Anchor.encode(:end)
"end"