Prelude Displayable filltype
This commit is contained in:
parent
be011c467e
commit
142ff7ae3a
2 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,12 @@ impl From<(Color, DisplayableFillType)> for FillTypeInfo {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Color> for FillTypeInfo {
|
||||
fn from(color: Color) -> Self {
|
||||
Self::Color(color, DisplayableFillType::Expand)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<String> for FillTypeInfo {
|
||||
fn from(s: String) -> Self {
|
||||
Self::Image(AssetPath::from(s))
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
pub use super::gui::{
|
||||
clickable::Clickable,
|
||||
colorable::Colorable,
|
||||
displayable::Displayable,
|
||||
displayable::{Displayable, DisplayableFillType},
|
||||
executable::Executable,
|
||||
framable::*,
|
||||
hoverable::Hoverable,
|
||||
|
|
Loading…
Reference in a new issue