node-based graph editor
git clone https://git.lucas.co/cce-graph.git
refactor: Element -> WidgetHost (cce-ui 6bd flip)
Mechanical rename; the god-trait name is gone workspace-wide.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018u7qTwzX95dd5ysAkaSCLk
src/main.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 32a9672..ec13477 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,6 +1,6 @@
use wayland_client::QueueHandle;
use cce_ui::engine::{Application, EngineState, LogicalPosition, LogicalSize, WindowSettings};
-use cce_ui::widget::{Adapted, MouseButton, ElementState, MouseScrollDelta, KeyEvent, Element, Graph, GraphNode, MenuBar, GraphController, WidgetId, Dropdown, Label};
+use cce_ui::widget::{Adapted, MouseButton, ElementState, MouseScrollDelta, KeyEvent, WidgetHost, Graph, GraphNode, MenuBar, GraphController, WidgetId, Dropdown, Label};
use image::GenericImageView;
#[derive(Debug, Clone)]
@@ -1212,7 +1212,7 @@ impl Application for GraphApp {
}
{
let self_ptr = self as *mut Self;
- let tops: [*mut (dyn cce_ui::widget::Element + 'static); 5] = unsafe {
+ let tops: [*mut (dyn cce_ui::widget::WidgetHost + 'static); 5] = unsafe {
[
(*self_ptr).menu_bar.as_ptr_mut(),
(*self_ptr).dropdown_file.as_ptr_mut(),
@@ -1242,7 +1242,7 @@ impl Application for GraphApp {
pc.quad(rect, fill);
}
}
- let label_ptr: *mut (dyn cce_ui::widget::Element + 'static) =
+ let label_ptr: *mut (dyn cce_ui::widget::WidgetHost + 'static) =
unsafe { (*(self as *mut Self)).control_panel_label.as_ptr_mut() };
cce_ui::scene::painter::paint_root_into(&self.ui_context, label_ptr, &mut pc);
}