28 lines
883 B
Rust
28 lines
883 B
Rust
use crate::{
|
|
LayerId, MaskIdx, MoveIdx, PaintId, PrimitiveHandle, Size, TextureHandle, UiRegion, WidgetId,
|
|
util::Vec2,
|
|
};
|
|
|
|
#[derive(Debug)]
|
|
pub struct ActiveData {
|
|
pub id: WidgetId,
|
|
pub region: UiRegion,
|
|
pub parent: Option<WidgetId>,
|
|
pub textures: Vec<TextureHandle>,
|
|
/// Paint slots retained by this draw. The GPU primitive stores only the
|
|
/// slot index, so these handles are what prevent a live primitive from
|
|
/// observing a recycled paint.
|
|
pub paints: Vec<PaintId>,
|
|
pub primitives: Vec<PrimitiveHandle>,
|
|
pub children: Vec<WidgetId>,
|
|
pub size_dependencies: Vec<WidgetId>,
|
|
pub mask: MaskIdx,
|
|
/// The widget's retained mask slot, or `MaskIdx::NONE`.
|
|
pub own_mask: MaskIdx,
|
|
pub layer: LayerId,
|
|
pub size: Size,
|
|
pub move_slot: MoveIdx,
|
|
pub child_move_slot: Option<MoveIdx>,
|
|
pub move_applied: Vec2,
|
|
}
|