mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-28 18:08:42 -06:00
add image to frame layer
This commit is contained in:
parent
64640f215a
commit
d1732fe2b7
|
@ -2,7 +2,11 @@
|
|||
|
||||
use glam::{Vec2, vec2};
|
||||
use derive_more::{Add, AddAssign, Sub, SubAssign};
|
||||
use crate::{element::fill_rect::FillRect, layout::{Size, Size2d}};
|
||||
use crate::{
|
||||
draw::ImageHandle,
|
||||
element::fill_rect::FillRect,
|
||||
layout::{Size, Size2d}
|
||||
};
|
||||
|
||||
/// Point inside a frame
|
||||
///
|
||||
|
@ -133,7 +137,8 @@ impl FramePoint2d {
|
|||
|
||||
enum FrameLayer {
|
||||
Rect {
|
||||
fill: FillRect,
|
||||
color: FillRect,
|
||||
image: Option<ImageHandle>,
|
||||
top_left: FramePoint2d,
|
||||
bottom_right: FramePoint2d,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue