lurq 0.22.2

A Rust UI toolkit with typed components, retained state, reactive signals, GPU rendering, and DevTools.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{images::ImageData, impl_into_node};

impl_into_node!(Image);

impl Image {
  pub fn new(data: ImageData) -> Self {
    Self::from_node(crate::node::Node::image(data))
  }

  #[cfg(feature = "image")]
  pub fn from_resource(path: &str) -> Self {
    Self::from_node(crate::node::Node::resource_image(path))
  }
}