[−][src]Trait khalas::render::Render
This is the main trait used to render elments
Associated Types
Loading content...Required methods
fn style(&self, theme: &impl Theme) -> Self::Style
Return style for the current state of the element
fn render_with_style(&self, _: &impl Theme, _: Self::Style) -> Self::View
This is the main function used to render element with the passed style
Provided methods
fn render(&self, theme: &impl Theme) -> Self::View
This is the function used to render element and returne Self::View
Arguments
Theme
used to get the current style for the element
Implementations on Foreign Types
impl<PMsg: 'static> Render<PMsg> for Node<PMsg>
[src]
type View = Node<PMsg>
type Style = ()
fn style(&self, _: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, _: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Vec<Node<PMsg>>
[src]
type View = Vec<Node<PMsg>>
type Style = ()
fn style(&self, _: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, _: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for El<PMsg>
[src]
type View = El<PMsg>
type Style = ()
fn style(&self, _: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, _: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Vec<El<PMsg>>
[src]
type View = Vec<El<PMsg>>
type Style = ()
fn style(&self, _: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, _: Self::Style) -> Self::View
[src]
Implementors
impl<'a, PMsg: 'static, C, T> Render<PMsg> for Popover<'a, PMsg, C, T> where
PMsg: 'static,
C: Render<PMsg, View = Node<PMsg>>,
T: Render<PMsg, View = Node<PMsg>>,
[src]
PMsg: 'static,
C: Render<PMsg, View = Node<PMsg>>,
T: Render<PMsg, View = Node<PMsg>>,
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
[src]
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
impl<PMsg: 'static> Render<PMsg> for Icon<PMsg>
[src]
type View = Node<PMsg>
type Style = ()
fn style(&self, _: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, theme: &impl Theme, _: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Button<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
[src]
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
impl<PMsg: 'static> Render<PMsg> for Checkbox<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Entry<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Radio<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for SpinEntry<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
[src]
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
impl<PMsg: 'static> Render<PMsg> for Switch<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for HtmlIcon<PMsg>
[src]
type View = Node<PMsg>
type Style = HtmlStyle
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for SvgIcon<PMsg>
[src]
type View = Node<PMsg>
type Style = SvgStyle
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for UrlIcon<PMsg>
[src]
type View = Node<PMsg>
type Style = UrlStyle
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(&self, _: &impl Theme, style: Self::Style) -> Self::View
[src]
impl<PMsg: 'static> Render<PMsg> for Flexbox<PMsg>
[src]
type View = Node<PMsg>
type Style = Style
fn style(&self, theme: &impl Theme) -> Self::Style
[src]
fn render_with_style(
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View
[src]
&self,
theme: &impl Theme,
style: Self::Style
) -> Self::View