WIP
This commit is contained in:
parent
40896352ff
commit
a25f962185
90 changed files with 587 additions and 501 deletions
|
@ -2,7 +2,7 @@ use gpui::{
|
|||
color::Color,
|
||||
fonts::{Properties, Weight},
|
||||
text_layout::RunStyle,
|
||||
Element, ElementBox, Quad, SceneBuilder, View, ViewContext,
|
||||
Drawable, Element, Quad, SceneBuilder, View, ViewContext,
|
||||
};
|
||||
use log::LevelFilter;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
|
@ -30,12 +30,12 @@ impl gpui::View for TextView {
|
|||
"View"
|
||||
}
|
||||
|
||||
fn render(&mut self, _: &mut gpui::ViewContext<Self>) -> ElementBox<TextView> {
|
||||
fn render(&mut self, _: &mut gpui::ViewContext<Self>) -> Element<TextView> {
|
||||
TextElement.boxed()
|
||||
}
|
||||
}
|
||||
|
||||
impl<V: View> Element<V> for TextElement {
|
||||
impl<V: View> Drawable<V> for TextElement {
|
||||
type LayoutState = ();
|
||||
|
||||
type PaintState = ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue