Skip to content

Struct ui::Container

zaun_client::ui::Container · Struct

pub struct Container { … }

A box around other components (type 17).

pub fn new() -> Self

An empty container.

pub const fn accent(self, rgb: u32) -> Self

Its accent colour, 0xRRGGBB.

pub fn text<impl Into<String>>(self, content: impl Into<String>) -> Self

Adds markdown text.

pub fn push(self, component: Component) -> Self

Adds any layout component (section, gallery, file, separator).

pub fn row(self, row: ActionRow) -> Self

Adds a row.

pub fn build(self) -> Component

The component.

Clone, Debug, Default

Full rustdoc page