hUI/hui/src/frame.rs

13 lines
235 B
Rust
Raw Normal View History

2024-03-23 13:53:32 -05:00
use glam::Vec2;
use crate::draw::UiDrawCommandList;
2024-03-22 12:33:34 -05:00
2024-03-23 17:05:54 -05:00
pub mod point;
mod rect;
pub mod stack;
2024-03-23 13:42:53 -05:00
2024-03-23 17:05:54 -05:00
pub use rect::FrameRect;
2024-03-23 13:53:32 -05:00
2024-03-23 17:05:54 -05:00
pub trait Frame {
fn draw(&self, draw: &mut UiDrawCommandList, position: Vec2, parent_size: Vec2);
2024-03-22 12:33:34 -05:00
}