ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::StyleBase;
use crate::Ref;

/// Represents a style that has been instanced on a control.
pub trait IStyleInstance {
    /// The source style, if it is still alive.
    fn source(&self) -> Option<Ref<StyleBase>>;

    /// Whether this style has an activator.
    ///
    /// A style instance without an activator will always be active.
    fn has_activator(&self) -> bool;

    /// Whether this style is active.
    fn is_active(&self) -> bool;
}