Elixir-facing DSL for GPUI applications and views.
The public API builds ordinary Elixir data. Sessions render serializable snapshots, and displays present those snapshots locally or remotely.
Summary
Functions
Sets background color.
Adds a child to an element for pipe-style view construction.
Creates a div element.
Adds flex display style to an element.
Adds column flex direction to an element.
Centers children on the cross axis.
Centers children on the main axis.
Represents a GPUI pixel length.
Represents a GPUI RGB color.
Sets width and height to the same value.
Sets a schema-backed style on an element.
Creates a text node.
Functions
@spec bg(GPUI.Element.t(), term()) :: GPUI.Element.t()
Sets background color.
@spec child(GPUI.Element.t(), GPUI.Element.child()) :: GPUI.Element.t()
Adds a child to an element for pipe-style view construction.
Creates a div element.
@spec flex(GPUI.Element.t()) :: GPUI.Element.t()
Adds flex display style to an element.
@spec flex_col(GPUI.Element.t()) :: GPUI.Element.t()
Adds column flex direction to an element.
@spec items_center(GPUI.Element.t()) :: GPUI.Element.t()
Centers children on the cross axis.
@spec justify_center(GPUI.Element.t()) :: GPUI.Element.t()
Centers children on the main axis.
Represents a GPUI pixel length.
@spec rgb(non_neg_integer()) :: {:rgb, non_neg_integer()}
Represents a GPUI RGB color.
@spec size(GPUI.Element.t(), term()) :: GPUI.Element.t()
Sets width and height to the same value.
@spec style(GPUI.Element.t(), atom(), term()) :: GPUI.Element.t()
Sets a schema-backed style on an element.
Creates a text node.