Raxol.Core.Renderer.View
(Raxol v2.3.0)
View Source
Provides view-related functionality for rendering UI components.
Summary
Functions
Wraps a view with a block-style border.
Wraps a view with a bold border.
Creates a new border around a view.
Creates a new box view with padding and optional border.
Creates a simple box element with the given options.
Creates a button element.
Creates a checkbox element.
Creates a new column layout.
Wraps a view with a double-line border.
Calculates flex layout dimensions based on the given constraints.
Creates a new flex container.
Creates a grid layout.
Applies layout to a view, calculating absolute positions for all elements. Delegates to Raxol.Renderer.Layout.apply_layout/2.
Creates a new view with the specified type and options.
Creates a new panel view (box with border and children).
Creates a process-isolated component node.
Wraps a view with a rounded border.
Creates a new row layout.
Creates a new scrollable view.
Creates a shadow effect for a view.
Wraps a view with a simple border.
Creates a split pane layout.
Creates a split pane from a named preset.
Creates a table view.
Creates a new text view.
Creates a text input element.
Renders a view with the given options.
Wraps a view with a border, optionally with a title and style.
Types
@type style() :: Raxol.Core.Renderer.View.Types.style()
Style options for a view.
Functions
Wraps a view with a block-style border.
Wraps a view with a bold border.
Creates a new border around a view.
Creates a new box view with padding and optional border.
Creates a simple box element with the given options.
Creates a button element.
Creates a checkbox element.
Creates a new column layout.
Wraps a view with a double-line border.
Calculates flex layout dimensions based on the given constraints.
Creates a new flex container.
Creates a grid layout.
Applies layout to a view, calculating absolute positions for all elements. Delegates to Raxol.Renderer.Layout.apply_layout/2.
Creates a new view with the specified type and options.
Options
:type- The type of view to create:position- Position of the view {x, y}:z_index- Z-index for layering:size- Size of the view {width, height}:style- Style options for the view:fg/:bg- Foreground / background color:border- Border style:padding/:margin- Spacing:children- Child views:content- Content for the view
Creates a new panel view (box with border and children).
Creates a process-isolated component node.
Wraps a view with a rounded border.
Creates a new row layout.
Creates a new scrollable view.
Creates a shadow effect for a view.
Wraps a view with a simple border.
Creates a split pane layout.
Creates a split pane from a named preset.
Creates a table view.
Creates a new text view.
Creates a text input element.
Renders a view with the given options.
Wraps a view with a border, optionally with a title and style.