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::{ use hui::{
color, size, Signal, color, size,
signal::Signal,
draw::TextureFormat, draw::TextureFormat,
layout::{Alignment, Direction}, layout::{Alignment, Direction},
element::{ element::{

View file

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

View file

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

View file

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

View file

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