M6 elements and window: Element/Render/views, headless Window, div, canvas
- input: mouse events, modifiers, dispatch phases. - window: Element / AnyElement / IntoElement, Render / AnyView (entities render as elements), listener(), empty(); Window with the draw cycle (render, layout to fill the viewport, prepaint, paint, finish) and phase checks; content-mask / element-offset / opacity / element-id stacks; element state across frames (ElementStateKey); hitboxes, hit testing, occlusion; mouse dispatch (capture + bubble, stop_propagation); hover- and notify-driven invalidation of rendered views; painting: paint_quad with device-pixel snapping, drop/inset shadows, paint_path, paint_style (port of Style::paint). - elements: div() (Styled, children, hover, mouse down/up/move/scroll, clicks with element state, occlude, overflow clipping, opacity) and canvas(); Styled extend lists generated by tools/gen_style.py. - app: observe_notifications hook used by windows. - Tests: end-to-end views -> scene, clicks, hover, invalidation, nested views, bubbling, occlusion, shadows/borders/clipping, canvas, resize, and aborts on misuse. The card example now renders a real view and simulates hover and click. - Docs: PORTING.md M6 status and deviations; README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eeab51348e
commit
fbe4c081e6
24 files changed
+15532
-204
No files matched your search
@@ -29,6 +29,7 @@ pub fn[T] App::new_entity(Self, (Context[T]) -> T) -> Entity[T]
|
||||
pub fn App::notify(Self, EntityId) -> Unit
|
||||
pub fn[T] App::observe(Self, Entity[T], (Entity[T], Self) -> Unit) -> Subscription
|
||||
pub fn[G] App::observe_global(Self, GlobalKey[G], (Self) -> Unit) -> Subscription
|
||||
pub fn App::observe_notifications(Self, (EntityId) -> Unit) -> Subscription
|
||||
pub fn[T] App::observe_release(Self, Entity[T], (T, Self) -> Unit) -> Subscription
|
||||
pub fn[T] App::read_entity(Self, Entity[T]) -> T
|
||||
pub fn[T] App::release(Self, Entity[T]) -> Unit
|
||||
|
||||
Reference in new issue
Block a user