mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 14:48:42 -06:00
re-export Signal
derive from the signal
module
This commit is contained in:
parent
d14f27a428
commit
964cf22372
|
@ -1,5 +1,6 @@
|
|||
use hui::{
|
||||
color, size, Signal,
|
||||
color, size,
|
||||
signal::Signal,
|
||||
draw::TextureFormat,
|
||||
layout::{Alignment, Direction},
|
||||
element::{
|
||||
|
|
|
@ -8,8 +8,9 @@ use hui::{
|
|||
text::Text,
|
||||
UiElementExt,
|
||||
},
|
||||
signal::Signal,
|
||||
layout::{Alignment, Direction},
|
||||
size, Signal,
|
||||
size,
|
||||
};
|
||||
|
||||
#[derive(Signal)]
|
||||
|
|
|
@ -11,7 +11,7 @@ use hui::{
|
|||
frame::nine_patch::{NinePatchAsset, NinePatchFrame},
|
||||
layout::Alignment,
|
||||
rect::Rect,
|
||||
Signal,
|
||||
signal::Signal,
|
||||
size,
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue