Martín Lucas Golini
909088b46d
Layout improvements WIP.
2020-05-04 04:52:36 -03:00
Martín Lucas Golini
87e3d64b63
Added renamed Display::getPixelDensity() to Display::getPixelDensitySize() and now Display::getPixelDensity() returns the float value of the pixel density.
...
Moved the global test to tests/test_all.
Added a ui_perf_test used to test specific performance issues in the UI.
Fixed the element/widget inline style (now respects the specificity).
Some optimizations in UIListBox.
2020-05-03 03:39:31 -03:00
Martín Lucas Golini
59f07ac3d8
Implemented element definition and style sheet styles cache. These improve the performance of the CSS style reload and states changes.
...
Several fixes:
UITextInput hint fixes.
UITextInputPassword aligment fixes.
UISlider fixes.
2020-04-26 05:24:43 -03:00
Martín Lucas Golini
c893e05cde
Several fixes.
2020-04-26 04:56:50 -03:00
Martín Lucas Golini
f9053c0d61
Several fixes.
2020-04-25 00:31:02 -03:00
Martín Lucas Golini
a8b38a371a
ElementDefinition cache WIP.
2020-04-23 02:06:20 -03:00
Martín Lucas Golini
5f1d776750
CSS optimizations WIP.
2020-04-22 01:42:44 -03:00
Martín Lucas Golini
fa20d393cd
Several performance improvements.
...
Added events: Node::onIdChange, UIWidget::onClassChange, UIWidget::onTagChange.
UIItemContainer is now a widget (required for CSS).
Fixes in UIListBox and UITable.
CSS::StyleSheetStyle is now stored as a shared pointer.
Fixes in UICheckBox, UIRadioButton, UISlider, UIScrollBar, UITab, UIWinMenu, and more.
Better debug tooltips (now shows padding and margin).
Fix in UISceneNode::loadLayoutNodes, ensures that the current SceneNode is the one that it's loading.
2020-04-16 05:31:43 -03:00
Martín Lucas Golini
e48b77ddfc
Several fixes to allow Widgets to work without skins and enable pure CSS themes.
...
Added String::contains.
Improved Vector2.
Improved Text::findCharacterFromPos.
Improved set minimum widget size.
Improved var() parsing.
2020-04-09 05:20:55 -03:00
Martín Lucas Golini
887d2f331d
Improved access to the inner widgets from CSS.
...
Minor fix in docs Makefile.
Minor fix in keyboard shortcuts.
2020-04-06 03:07:56 -03:00
Martín Lucas Golini
ffc8fd3953
More code clean up and continued with the CSS Specification documentation.
2020-04-05 04:22:34 -03:00
Martín Lucas Golini
9a43551b6b
More CSS specification clean up and improvements.
...
UIPushButton refactorization.
Fixed crash on tooltip close.
And several minor changes to adapt the CSS specification changes into the widgets.
2020-04-04 02:43:19 -03:00
Martín Lucas Golini
a3afe7a8e2
Added em and rem units support.
...
Fixed a bug in tooltips.
2020-03-25 03:19:56 -03:00
Martín Lucas Golini
162a7efde9
Updated SDL 2 to version 2.0.12 (used for the Android build).
...
Minor optimization in UIBackgroundDrawable.
2020-03-18 01:17:33 -03:00
Martín Lucas Golini
f9ab6d0137
Added DrawableImageParser, this class parses the background-image and foreground-image functions and allow to register more functions.
2020-03-16 02:11:08 -03:00
Martín Lucas Golini
3921f81ced
Added border-radius support.
...
Added alias support for shorthands.
Added BorderType::Outline.
Added support for background/foreground masks.
Fixes to the border rendering.
Several fixes and clean up.
2020-03-13 05:10:53 -03:00
Martín Lucas Golini
359685cb6f
Added UIBackgroundDrawable. WIP CSS Borders.
2020-03-10 03:57:49 -03:00
Martín Lucas Golini
312f02105f
CSS Borders WIP (not working yet).
2020-03-09 15:12:43 -03:00
Martín Lucas Golini
e530e38895
Fixed UITooltip not showing correctly.
...
Fixed UITabWidget draw invalidation.
Fixed software keyboard backspace and return key on Android.
Fixed performance issue on onChildCountChange.
2020-03-02 01:34:26 -03:00
Martín Lucas Golini
8c108c5ed9
Added UIViewPager.
...
Node::onChildCountChange reports the child that's being added or removed.
Added Ease::toString.
Added UIWidget::lengthFromValueAsDp.
2020-02-27 14:16:11 -03:00
Martín Lucas Golini
4a3b21c938
Improved iOS support. Added and modified a couple of scripts to generate the library and the projects. Updated the premake files. Removed old cross compiling projects.
2020-02-26 00:45:55 -03:00
Martín Lucas Golini
04c407077f
Several improvements in the CSS Animations.
...
UITabWidget now acts as a draw invalidator, skipping the draw invalidation if the element invalidating is not visible in the current tab.
premake5 file now supports different architectures.
Updated README.md and docs.
Minor fixes in UIColorPicker.
Updated SOIL2 and efsw.
Added LICENSE file.
2020-02-25 01:15:27 -03:00
Martín Lucas Golini
f8c21880d1
Replaced StyleSheetPropertyTransition in favor of StyleSheetPropertyAnimation.
...
This class allows to animate CSS "animation" and "transition". Some CSS animations are working, pending fill-mode implementation, tests and surely many fixes.
Fixed a critical bug in windows resize introduced in the latest Input improvements.
2020-02-24 03:01:32 -03:00
Martín Lucas Golini
73e9489f81
InputEvents improvements and some minor fixes and optimizations.
2020-02-19 02:07:03 -03:00
Martín Lucas Golini
48d0f06b2b
Started implementation of CSS Animations, WIP.
2020-02-18 03:58:58 -03:00
Martín Lucas Golini
c2e0d867fd
Added support for multiple background-image and foreground-image.
...
Added support for structural pseudo class :not().
2020-02-17 04:06:47 -03:00
Martín Lucas Golini
4320841ade
Removed StyleSheetElement interface in favor of using UIWidget directly. Thanks to this all dynamic_casts has been removed at the cost of a little less readable code.
2020-02-10 03:19:07 -03:00
Martín Lucas Golini
16e6e1f8d1
Improvements in emscripten build.
...
Added support in emscripten for Http:getAsync and Http::postAsync.
Fixes with modal dialogs.
Fixes in texture atlas editor.
Fixes in UIColorPicker.
Fix in UITextView text selection.
Improvements in WindowSDL2.
UICheckBox not uses setChecked and isChecked instead of setActive and isActive.
2020-01-20 05:15:18 -03:00
Martín Lucas Golini
9d32e29ffb
Added TexturePacker console tool and updated to a new version of the Texture Atlas format.
...
More premake5 project refactor.
Fixed some Stysheet Properties types and fixed some StyleSheetProperty transitions.
2020-01-19 17:17:09 -03:00
Martín Lucas Golini
57c31ffcb4
Code clean up and some minor fixes.
...
premake5 is being reworked, might fail in some situations.
2020-01-18 19:40:27 -03:00
Martín Lucas Golini
89df736630
premake5.lua: replaced includedirs with sysincludedirs that should work better in some cases.
...
Reformated README.md.
Docs improvements.
2020-01-18 05:37:52 -03:00
Martín Lucas Golini
1567708633
Added "windows-vc-build" argument to premake5.
2020-01-17 23:43:25 -03:00
Martín Lucas Golini
6eccb23a73
Android build now uses mojoAL.
...
Updated SOIL2 and efsw.
2020-01-17 18:44:44 -03:00
Martín Lucas Golini
a9edcf7e04
iOS build fixes.
2020-01-17 16:32:25 -03:00
Martín Lucas Golini
eb8b3962b0
Emscripten build improvements.
2020-01-15 13:23:08 -03:00
Martín Lucas Golini
94dc7ecc3e
emscripten tip.
2020-01-14 05:36:29 -03:00
Martín Lucas Golini
7b6a3d2f66
Some minor fixes.
2020-01-14 05:13:43 -03:00
Martín Lucas Golini
9880829fc5
Migrated to Github (remove hg stuffs, added git submodules).
...
Fixed compilation (SoundFileReaderFlac needed some updateds).
Updated README.md.
2020-01-13 04:19:37 -03:00
Martín Lucas Golini
317ed08625
Added new example: UI Hello World.
...
Added new markdown document with the UI Basics explanation.
Fixed some minor bugs in UIPushButton.
Added new Event: OnFontStyleChanged.
--HG--
branch : dev
2020-01-13 02:26:28 -03:00
Martín Lucas Golini
af29d3e7ef
Added support for on screen keyboard on Windows.
...
--HG--
branch : dev
2020-01-12 14:56:40 -03:00
Martín Lucas Golini
f60d4c183e
clang-formated all project source files.
...
Improved documentation.
--HG--
branch : dev
2020-01-10 04:39:46 -03:00
Martín Lucas Golini
bec45f8b4b
Added doxyrest support.
...
Cleaned up several documentation related stuffs.
--HG--
branch : dev
2020-01-03 03:42:14 -03:00
Martín Lucas Golini
35d0d9b1d9
README changes.
...
--HG--
branch : dev
2020-01-02 18:13:17 -03:00
Martín Lucas Golini
e61f7b393e
Minor bug fix.
...
--HG--
branch : dev
2019-12-27 03:21:00 -03:00
Martín Lucas Golini
2326007d6c
Merge
...
--HG--
branch : dev
2019-12-20 22:07:30 -03:00
Martín Lucas Golini
0ec6fa6456
Added FTP explicit TLS support.
...
--HG--
branch : dev
2019-12-20 22:05:07 -03:00
Martín Lucas Golini
6b13111d19
General enums refactor. This will break the API for several things.
...
The idea is that this enums should never be used by code from now on, and
always use the XML+CSS features.
--HG--
branch : dev
2019-12-15 17:21:39 -03:00
Martín Lucas Golini
0705dad434
Added CSS media queries support (needs testing, basic support seems to be working).
...
--HG--
branch : dev
2019-12-15 00:32:31 -03:00
Martín Lucas Golini
3735bf8aa0
Added CSS custom properties (variables) support ( https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties ).
...
Added Node::getParentWidget().
clang-format'ed SceneNode and UISceneNode (no functional changes).
--HG--
branch : dev
2019-12-12 17:30:16 -03:00
Martín Lucas Golini
a856357047
Fixed Action::removeEventListener.
...
--HG--
branch : dev
2019-12-12 03:13:06 -03:00