Remove more references to 'model' in GPUI APIs (#23693)

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2025-01-26 20:00:27 -08:00 committed by GitHub
parent a6b1514246
commit 9cae96f82f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
115 changed files with 309 additions and 311 deletions

View file

@ -572,7 +572,7 @@ impl Render for TextInput {
.p(px(4.))
.bg(white())
.child(TextElement {
input: cx.model().clone(),
input: cx.entity().clone(),
}),
)
}
@ -697,7 +697,7 @@ fn main() {
},
)
.unwrap();
let view = window.root_model(cx).unwrap();
let view = window.root(cx).unwrap();
cx.observe_keystrokes(move |ev, _, cx| {
view.update(cx, |view, cx| {
view.recent_keystrokes.push(ev.keystroke.clone());

View file

@ -9,7 +9,7 @@ impl Render for UniformListExample {
fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
div().size_full().bg(rgb(0xffffff)).child(
uniform_list(
cx.model().clone(),
cx.entity().clone(),
"entries",
50,
|_this, range, _window, _cx| {