Struct carbide_core::state::environment::Environment [−][src]
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]
&self,
local_state: &mut dyn State<T, GS>
)
pub fn insert_local_state<T: Serialize + Clone + Debug>(
&mut self,
local_state: &dyn State<T, GS>
)
[src]
&mut self,
local_state: &dyn State<T, GS>
)
pub fn insert_local_state_from_key_value<T: Serialize + Clone + Debug>(
&mut self,
key: &String,
value: &T
)
[src]
&mut self,
key: &String,
value: &T
)
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]
P: AsRef<Path>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,