added event example

This commit is contained in:
Jorijn van der Graaf 2025-11-10 21:31:06 +01:00
commit 6c3539fcd5
9 changed files with 249 additions and 31 deletions

View file

@ -0,0 +1,50 @@
# All Event Handling Example
This example demonstrates all available event types in Crafter.CppDOM:
## Events Demonstrated
### Mouse Events
- Click
- Mouse Over
- Mouse Out
- Mouse Move
- Mouse Down
- Mouse Up
### Keyboard Events
- Key Down
- Key Up
- Key Press
### Focus Events
- Focus
- Blur
### Form Events
- Input
- Change
### Window Events
- Resize
- Scroll
- Context Menu
### Drag and Drop Events
- Drag Start
- Drag End
- Drag Over
- Drag Enter
- Drag Leave
- Drop
### Wheel Events
- Wheel (Mouse wheel scrolling)
## How to Run
1. Build the project using the build system
2. Run the executable with `./run.sh`
3. Open your browser to `http://localhost:8080`
The demo will show various event handlers in action through interactive elements.