Struct carbide_core::state::environment::Environment[][src]

pub struct Environment<GS> where
    GS: GlobalState
{ /* fields omitted */ }

Implementations

impl<GS: GlobalState> Environment<GS>[src]

pub fn new() -> Self[src]

pub fn get_image_information(&self, id: &Id) -> Option<&ImageInformation>[src]

pub fn insert_image(&mut self, id: Id, image: ImageInformation)[src]

pub fn get_overlay(&mut self, id: &String) -> Option<Box<dyn Widget<GS>>>[src]

pub fn add_overlay(&mut self, id: &str, overlay: Box<dyn Widget<GS>>)[src]

pub fn clear(&mut self)[src]

pub fn update_local_state<T: Serialize + Clone + Debug + DeserializeOwned>(
    &self,
    local_state: &mut dyn State<T, GS>
)
[src]

pub fn insert_local_state<T: Serialize + Clone + Debug>(
    &mut self,
    local_state: &dyn State<T, GS>
)
[src]

pub fn insert_local_state_from_key_value<T: Serialize + Clone + Debug>(
    &mut self,
    key: &String,
    value: &T
)
[src]

pub fn get_fonts_map(&self) -> &Map[src]

pub fn insert_font_from_file<P>(&mut self, path: P) -> Result<Id, Error> where
    P: AsRef<Path>, 
[src]

pub fn get_font(&self, id: Id) -> &Font<'static>[src]

pub fn insert_font(&mut self, font: Font<'static>) -> Id[src]

Adds the given rusttype::Font to the Map and returns a unique Id for it.

pub fn push_vec(&mut self, value: Vec<EnvironmentVariable>)[src]

pub fn push(&mut self, value: EnvironmentVariable)[src]

pub fn pop(&mut self)[src]

Trait Implementations

impl<GS: GlobalState> Debug for Environment<GS>[src]

Auto Trait Implementations

impl<GS> !RefUnwindSafe for Environment<GS>[src]

impl<GS> !Send for Environment<GS>[src]

impl<GS> !Sync for Environment<GS>[src]

impl<GS> Unpin for Environment<GS>[src]

impl<GS> !UnwindSafe for Environment<GS>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,