Detailed changes
@@ -2,8 +2,8 @@ use crate::{
AnyElement, BorrowWindow, Bounds, Element, ElementFocus, ElementId, ElementInteraction,
FocusDisabled, FocusEnabled, FocusHandle, FocusListeners, Focusable, GlobalElementId,
GroupBounds, InteractiveElementState, IntoAnyElement, LayoutId, Overflow, ParentElement,
- Pixels, Point, SharedString, StatefulInteractivity, StatefullyInteractive,
- StatelessInteraction, StatelesslyInteractive, Style, StyleRefinement, Styled, ViewContext,
+ Pixels, Point, SharedString, StatefulInteractive, StatefulInteractivity, StatelessInteraction,
+ StatelessInteractive, Style, StyleRefinement, Styled, ViewContext,
};
use parking_lot::Mutex;
use refineable::Refineable;
@@ -320,7 +320,7 @@ where
}
}
-impl<V, I, F> StatelesslyInteractive for Div<V, I, F>
+impl<V, I, F> StatelessInteractive for Div<V, I, F>
where
I: ElementInteraction<V>,
F: ElementFocus<V>,
@@ -331,7 +331,7 @@ where
}
}
-impl<V, F> StatefullyInteractive for Div<V, StatefulInteractivity<V>, F>
+impl<V, F> StatefulInteractive for Div<V, StatefulInteractivity<V>, F>
where
F: ElementFocus<V>,
V: 'static + Send + Sync,
@@ -1,8 +1,8 @@
use crate::{
div, AnyElement, BorrowWindow, Bounds, Div, Element, ElementFocus, ElementId,
ElementInteraction, FocusDisabled, FocusEnabled, FocusListeners, Focusable,
- InteractiveElementState, IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractivity,
- StatefullyInteractive, StatelessInteraction, StatelesslyInteractive, StyleRefinement, Styled,
+ InteractiveElementState, IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractive,
+ StatefulInteractivity, StatelessInteraction, StatelessInteractive, StyleRefinement, Styled,
ViewContext,
};
use futures::FutureExt;
@@ -151,7 +151,7 @@ where
}
}
-impl<V, I, F> StatelesslyInteractive for Img<V, I, F>
+impl<V, I, F> StatelessInteractive for Img<V, I, F>
where
V: 'static + Send + Sync,
I: ElementInteraction<V>,
@@ -162,7 +162,7 @@ where
}
}
-impl<V, F> StatefullyInteractive for Img<V, StatefulInteractivity<V>, F>
+impl<V, F> StatefulInteractive for Img<V, StatefulInteractivity<V>, F>
where
V: 'static + Send + Sync,
F: ElementFocus<V>,
@@ -1,8 +1,8 @@
use crate::{
div, AnyElement, Bounds, Div, Element, ElementFocus, ElementId, ElementInteraction,
FocusDisabled, FocusEnabled, FocusListeners, Focusable, InteractiveElementState,
- IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractivity, StatefullyInteractive,
- StatelessInteraction, StatelesslyInteractive, StyleRefinement, Styled, ViewContext,
+ IntoAnyElement, LayoutId, Pixels, SharedString, StatefulInteractive, StatefulInteractivity,
+ StatelessInteraction, StatelessInteractive, StyleRefinement, Styled, ViewContext,
};
use util::ResultExt;
@@ -124,7 +124,7 @@ where
}
}
-impl<V, I, F> StatelesslyInteractive for Svg<V, I, F>
+impl<V, I, F> StatelessInteractive for Svg<V, I, F>
where
V: 'static + Send + Sync,
I: ElementInteraction<V>,
@@ -135,7 +135,7 @@ where
}
}
-impl<V, F> StatefullyInteractive for Svg<V, StatefulInteractivity<V>, F>
+impl<V, F> StatefulInteractive for Svg<V, StatefulInteractivity<V>, F>
where
V: 'static + Send + Sync,
F: ElementFocus<V>,
@@ -9,7 +9,7 @@ use std::{
sync::Arc,
};
-pub trait StatelesslyInteractive: Element {
+pub trait StatelessInteractive: Element {
fn stateless_interactivity(&mut self) -> &mut StatelessInteraction<Self::ViewState>;
fn on_mouse_down(
@@ -239,7 +239,7 @@ pub trait StatelesslyInteractive: Element {
}
}
-pub trait StatefullyInteractive: StatelesslyInteractive {
+pub trait StatefulInteractive: StatelessInteractive {
fn stateful_interactivity(&mut self) -> &mut StatefulInteractivity<Self::ViewState>;
fn active(mut self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
@@ -1,7 +1,7 @@
use crate::themes::rose_pine;
use gpui3::{
- div, view, Action, Context, Focusable, KeyBinding, ParentElement, StatelesslyInteractive,
- Styled, View, WindowContext,
+ div, view, Action, Context, Focusable, KeyBinding, ParentElement, StatelessInteractive, Styled,
+ View, WindowContext,
};
use std::any::Any;
@@ -1,6 +1,6 @@
pub use gpui3::{
- div, Element, IntoAnyElement, ParentElement, ScrollState, SharedString, StatefullyInteractive,
- StatelesslyInteractive, Styled, ViewContext, WindowContext,
+ div, Element, IntoAnyElement, ParentElement, ScrollState, SharedString, StatefulInteractive,
+ StatelessInteractive, Styled, ViewContext, WindowContext,
};
use crate::settings::user_settings;