added event example
This commit is contained in:
parent
780189a1a6
commit
6c3539fcd5
9 changed files with 249 additions and 31 deletions
50
examples/AllEventHandling/README.md
Normal file
50
examples/AllEventHandling/README.md
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue