re-export Signal derive from the signal module

This commit is contained in:
griffi-gh 2024-03-25 18:14:36 +01:00
parent e9078ade10
commit 3dabfdb339
5 changed files with 8 additions and 6 deletions

View file

@ -1,5 +1,6 @@
use hui::{
color, size, Signal,
color, size,
signal::Signal,
draw::TextureFormat,
layout::{Alignment, Direction},
element::{

View file

@ -8,8 +8,9 @@ use hui::{
text::Text,
UiElementExt,
},
signal::Signal,
layout::{Alignment, Direction},
size, Signal,
size,
};
#[derive(Signal)]

View file

@ -11,7 +11,7 @@ use hui::{
frame::nine_patch::{NinePatchAsset, NinePatchFrame},
layout::Alignment,
rect::Rect,
Signal,
signal::Signal,
size,
};

View file

@ -9,9 +9,6 @@
#![forbid(unsafe_op_in_unsafe_fn)]
#![allow(unused_parens)]
#[cfg(feature = "derive")]
pub use hui_derive::*;
mod instance;
mod macros;
pub mod layout;

View file

@ -6,6 +6,9 @@ use nohash_hasher::BuildNoHashHasher;
pub mod trigger;
#[cfg(feature = "derive")]
pub use hui_derive::Signal;
/// A marker trait for UI Signals
pub trait Signal: Any {}