Raxol.Core.Renderer.View (Raxol v0.2.0)
View SourceDefines the view system for Raxol components.
Provides:
- Box model layout (content, padding, border, margin)
- Flexible layouts (grid, flex)
- Rich text rendering
- Borders and shadows
Summary
Functions
Creates an absolutely positioned view.
Creates a border around a view.
Creates a box view for layout.
Creates a fixed position view (relative to viewport).
Creates a flex container.
Creates a grid container.
Calculates the layout for a view tree. Returns a list of positioned views ready for rendering.
Creates a new view with the given type and options.
Creates a scrollable view.
Creates a shadow effect.
Creates a text view.
Types
@type border_style() :: :none | :single | :double | :rounded | :bold | :dashed
@type color() :: Raxol.Core.Renderer.Color.color()
@type layout_type() :: :flex | :grid | :flow | :absolute
@type margin() :: padding()
@type padding() :: non_neg_integer() | {non_neg_integer(), non_neg_integer()} | {non_neg_integer(), non_neg_integer(), non_neg_integer(), non_neg_integer()}
@type position() :: {non_neg_integer(), non_neg_integer()}
@type position_type() :: :relative | :absolute | :fixed
@type size() :: {non_neg_integer(), non_neg_integer()}
@type style() :: [atom()]
@type z_index() :: integer()
Functions
Creates an absolutely positioned view.
Creates a border around a view.
Creates a box view for layout.
Creates a fixed position view (relative to viewport).
Creates a flex container.
Creates a grid container.
Calculates the layout for a view tree. Returns a list of positioned views ready for rendering.
Creates a new view with the given type and options.
Creates a scrollable view.
Creates a shadow effect.
Creates a text view.