Michael Ragazzon
|
553b6f41fe
CreateString and FormatString: Remove the now unused `max_size` argument from API
|
1 year ago |
Michael Ragazzon
|
7492876298
The great formattening - format all library source code and documents
|
2 years ago |
ZombieRaccoon
|
2b607b1602
Attach event listeners upon attribute changes
|
4 years ago |
Rokas Kupstys
|
c261c1ff81
Add ability for user to override container types.
|
5 years ago |
Michael Ragazzon
|
e9844e3801
The big restructuring for RmlUi 4.0. This involves breaking changes but should benefit everyone using the library in the future.
|
5 years ago |
Michael Ragazzon
|
a6f5078531
Cleaning up header files: Include what we use.
|
5 years ago |
Michael Ragazzon
|
419db90ef3
More missing headers
|
5 years ago |
Michael Ragazzon
|
6c53cbf85b
Remove #include "precompiled.h" from source files, CMake handles it instead. Include what we actually use in header and source files. For non-precompiled headers measurements indicate ~30% reduction in compile time. See #81.
|
5 years ago |
Michael Ragazzon
|
c76723803d
Remove Event::PreventDefault(), it is not working as one might expect from the name.
|
6 years ago |
Michael Ragazzon
|
d7ba65477f
Add Event::PreventDefault function. Change behavior, Event::StopPropagation no longer cancels default actions. Clean up event dispatcher.
|
6 years ago |
Michael Ragazzon
|
85fc4c69e2
Clean up the event dispatcher
|
6 years ago |
Michael Ragazzon
|
f745fac0ee
WIP: Rework event dispatcher loop, introduce observer pointer (for now based on std::shared_ptr)
|
6 years ago |
Michael Ragazzon
|
f139eb6a5c
Event::StopImmediatePropagation()
|
6 years ago |
Michael Ragazzon
|
7546033f34
Copy the event listeners before processing events (see #45). Check whether event is propagating between each dispatch.
|
6 years ago |
Michael Ragazzon
|
f2d788e74e
Avoid event dispatcher iterator invalidation (see #45)
|
6 years ago |
Michael Ragazzon
|
68f53dce67
Clean up types and aliases, trying to be more consistent.
|
6 years ago |
Michael Ragazzon
|
ebe3e3a14a
Remove ReferenceCountable from Event and EventInstancer
|
6 years ago |
Michael Ragazzon
|
391f39b038
Merge branch 'master' into performance
|
6 years ago |
Michael Ragazzon
|
eff01ba43a
The big rename. We are now RmlUi version 2.0!
|
6 years ago |
Michael Ragazzon
|
fd44d9cfcb
Optionally use EventId on add/remove listener. In the EventDispatcher, replace the map<vector> with a flat, manually sorted vector.
|
6 years ago |
Michael Ragazzon
|
0b5d8c7189
Add RegisterEventType to Core API. Update readme. Element::DispatchEvent should now be backwards compatible. Prevent default action after calling StopPropagation(),
|
6 years ago |
Michael Ragazzon
|
60e88e7e65
Disabled form control elements are now properly handled. They cannot receive focus or click events from user input.
|
6 years ago |
Michael Ragazzon
|
b3c4f5a97d
Let all event listeners on the current element finish when calling StopPropagation().
|
6 years ago |
Michael Ragazzon
|
d2c395645c
Make Event unaware of event specification, pass by parameter instead.
|
6 years ago |
Michael Ragazzon
|
bcc1ac4f2a
Implement EventId and associated EventSpecification
|
6 years ago |
Michael Ragazzon
|
3c5c22b5e8
EventPhase as enum class
|
6 years ago |
Michael Ragazzon
|
02821004f1
WIP. Separate default event actions from ProcessEvents (event listeners)
|
6 years ago |
Michael Ragazzon
|
246e1ecc78
WIP: Specify bubbling and default actions on dispatching events
|
6 years ago |
Michael Ragazzon
|
f3b9ad29f0
Reverting to commit 9c42c7b. The strings to ID changes were too complicated compared to the performance gained.
|
6 years ago |
Michael Ragazzon
|
f7e1c4c4fb
WIP PropertyNames from Strings to IDs (not compiling)
|
6 years ago |