mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 21:48:12 +08:00
Window with textured polygon
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
pub struct GUIRect {
|
||||
pub corners: Corners<(f32, f32)>,
|
||||
pub corners_radius: Corners<f32>,
|
||||
pub sides_inset: Sides<f32>,
|
||||
pub border: f32,
|
||||
pub border_color: wgpu::Color,
|
||||
pub fill_color: wgpu::Color,
|
||||
pub fill_texture: Option<wgpu::Texture>,
|
||||
}
|
||||
|
||||
pub struct Corners<T> {
|
||||
pub top_left: T,
|
||||
pub top_right: T,
|
||||
pub bottom_right: T,
|
||||
pub bottom_left: T,
|
||||
}
|
||||
|
||||
pub struct Sides<T> {
|
||||
pub top: T,
|
||||
pub right: T,
|
||||
pub bottom: T,
|
||||
pub left: T,
|
||||
}
|
||||
Reference in New Issue
Block a user