Michael Ragazzon
|
3691b70f98
Remove ReferenceCountable from StyleSheet
|
6 years ago |
Michael Ragazzon
|
dc1cff5a4c
Make sure all element removal is signaled to context.
|
6 years ago |
Michael Ragazzon
|
39318abafa
Make a Releasable class for the smart pointer deleters, to aid in correct new/delete across libraries.
|
6 years ago |
Michael Ragazzon
|
99c1873d7c
Clean up. Make element instancer unique_ptr.
|
6 years ago |
Michael Ragazzon
|
ab8bc1e2af
Remove reference count on Element and replace by unique_ptr
|
6 years ago |
Michael Ragazzon
|
f8fbdb6e77
Fix issues where animations removed using std::remove_if were used before erase. Instead, use std::partition. This could previously result in wrong properties being removed from the element when an animation/transition was completed or changed.
|
6 years ago |
Michael Ragazzon
|
27f54e5bff
Move transition/animation update to before style definition update.
|
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
|
93dd452fbd
Merge branch 'property_id' into performance
|
6 years ago |
Michael Ragazzon
|
9a04ade50b
Cleanup element style and definition.
|
6 years ago |
Michael Ragazzon
|
23e356ae4c
Remove pseudo class properties from element definition. This simplifies the code a whole lot, and makes fetching a new definition a lot faster. This means that we have to fetch new definitions more often (specifically, now also when we set a pseudo class), but despite this, the net performance gains are substantial. We could introduce flags to avoid this later.
|
6 years ago |
Michael Ragazzon
|
64334936cd
ElementStyle cleanup. Add const where appropriate. Remove indirection to local style properties. Replace NULL with nullptr.
|
6 years ago |
Michael Ragazzon
|
05a24f63d5
Now that we have PropertyIds, we can use a bitset to represent dirty properties, increasing iteration performance.
|
6 years ago |
Michael Ragazzon
|
08bdba69b3
Changed the tiled-decorators to take 'x y width height' properties instead of two coordinates, optimize decorator instantiation, especially when using sprites.
|
6 years ago |
Michael Ragazzon
|
cc0b4a459a
Decorators and their instancers now use smart pointers instead of manual reference counting
|
6 years ago |
Michael Ragazzon
|
fe0aa05095
Properly remove transitions when the transition property is removed from the element.
|
6 years ago |
Michael Ragazzon
|
da19735515
Remove transitions that are no longer part of the transition property (partial fix)
|
6 years ago |
Michael Ragazzon
|
bb949df66b
Can now use a shorthand to declare decorators inside elements.
|
6 years ago |
Michael Ragazzon
|
ac40b7177c
WIP, decorators partially working.
|
6 years ago |
Michael Ragazzon
|
dfdea4affd
WIP: At-rule for decorators
|
6 years ago |
Michael Ragazzon
|
2e2ee76a52
Stop removed animations
|
6 years ago |
Michael Ragazzon
|
89821a3e90
WIP PropertyId
|
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
|
9380fb5970
Use the Dictionary on OnAttributeChange to avoid copies and double map lookup
|
6 years ago |
Michael Ragazzon
|
130e3fb48f
Remove scrollchange event, replace by function call.
|
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
|
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 |