Skip to main content

ElementKind

Enum ElementKind 

Source
pub enum ElementKind<Message> {
Show 24 variants Box(BoxProps), Text(TextProps), Pane(PaneProps), Block(BlockProps), Paragraph(ParagraphProps), RichText(RichTextProps), List(ListProps<Message>), Tabs(TabsProps<Message>), Gauge(GaugeProps), Clear(ClearProps), LineGauge(LineGaugeProps), Table(TableProps<Message>), Sparkline(SparklineProps), BarChart(BarChartProps), Chart(ChartProps), Canvas(CanvasProps), Monthly(MonthlyProps), ScrollView(ScrollViewProps<Message>), Scrollbar(ScrollbarProps<Message>), StreamingText(StreamingTextProps), Input(InputProps<Message>), StatusBar(StatusBarProps), Shell(ShellProps), Component(ComponentProps<Message>),
}

Variants§

§

Box(BoxProps)

§

Text(TextProps)

§

Pane(PaneProps)

§

Block(BlockProps)

§

Paragraph(ParagraphProps)

§

RichText(RichTextProps)

§

List(ListProps<Message>)

§

Tabs(TabsProps<Message>)

§

Gauge(GaugeProps)

§

Clear(ClearProps)

§

LineGauge(LineGaugeProps)

§

Table(TableProps<Message>)

§

Sparkline(SparklineProps)

§

BarChart(BarChartProps)

§

Chart(ChartProps)

§

Canvas(CanvasProps)

§

Monthly(MonthlyProps)

§

ScrollView(ScrollViewProps<Message>)

§

Scrollbar(ScrollbarProps<Message>)

§

StreamingText(StreamingTextProps)

§

Input(InputProps<Message>)

§

StatusBar(StatusBarProps)

§

Shell(ShellProps)

§

Component(ComponentProps<Message>)

Implementations§

Source§

impl<Message> ElementKind<Message>

Source

pub fn child_layout_spec(&self, bounds: Rect) -> ChildLayoutSpec

Source

pub fn capture_runtime_state(&self) -> Option<RuntimeWidgetState>

Source

pub fn restore_runtime_state(&mut self, state: &RuntimeWidgetState) -> bool

Source

pub fn initialize_runtime_state(&mut self)

Source

pub fn intrinsic_height(&self, width: u16, child_heights: &[u16]) -> u16

Source

pub fn intrinsic_width(&self, child_widths: &[u16]) -> u16

Source

pub fn invalidates_self_on_layout_change(&self, style: Style) -> bool

Source

pub fn route_widget_key( &mut self, key: WidgetKey, context: WidgetRouteContext, ) -> Option<WidgetRouteEffect<Message>>

Trait Implementations§

Source§

impl<Message> Debug for ElementKind<Message>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Message> Freeze for ElementKind<Message>

§

impl<Message> !RefUnwindSafe for ElementKind<Message>

§

impl<Message> !Send for ElementKind<Message>

§

impl<Message> !Sync for ElementKind<Message>

§

impl<Message> Unpin for ElementKind<Message>

§

impl<Message> UnsafeUnpin for ElementKind<Message>

§

impl<Message> !UnwindSafe for ElementKind<Message>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.