This commit is contained in:
Nathan Sobo 2023-07-26 12:54:23 -06:00
parent c48d8af204
commit 0374bc66ce
11 changed files with 347 additions and 148 deletions

View file

@ -3338,6 +3338,10 @@ impl<'a, 'b, V: View> ViewContext<'a, 'b, V> {
) -> ElementStateHandle<T> {
self.element_state::<Tag, T>(element_id, T::default())
}
pub fn pixels_per_rem(&self) -> f32 {
16.
}
}
impl<V> BorrowAppContext for ViewContext<'_, '_, V> {