WIP
This commit is contained in:
parent
c48d8af204
commit
0374bc66ce
11 changed files with 347 additions and 148 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue