agnosticlayer 0.2.0

A cheap, drop-in way to add UI data to your engine — no decisions about which dependency to pull in, no wrestling with how complicated it should be. Built as the tool I wanted for myself, now it's yours.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use wibr::New;

use crate::base_data::*;
use crate::node::Node;

#[derive(Debug, Clone, Copy, PartialEq, New, Default)]
pub struct Image<ImageHandle: ImageItem, Id: WidgetId> {
    pub node: Node<Id>,
    pub rotate: Rotate,
    pub image_handle: ImageHandle,
    pub visual_mode: VisualMode,
}