Commit Graph

2 Commits

Author SHA1 Message Date
74efe4e201 Refactor layout system: Replace slot and property_slot with layout modifiers
- Removed the slot and property_slot classes, consolidating their functionality into a new modifier system.
- Introduced align_modifier, padding_modifier, and stretch_modifier to handle layout properties.
- Updated overlay and stack classes to utilize the new modifier system for layout management.
- Simplified event handling by integrating layout modifiers directly into the event target retrieval process.
- Removed unused includes and cleaned up code for better readability and maintainability.
2025-11-30 15:53:24 +08:00
3a7d810a15 Refactor widget event handling and layout system
- Removed the slot.h file, consolidating layout parameter definitions and slot template class.
- Updated widget concept to improve readability and maintainability.
- Introduced widget_event_adapter to connect window event dispatcher with widget event router.
- Implemented widget_event_router for handling mouse events, including capturing and hover state management.
- Created widget_event_types.h to define mouse event structures for widget interactions.
- Enhanced event handling logic to support mouse button, movement, and scroll events.
2025-11-30 14:15:04 +08:00