Commit Graph

46 Commits

Author SHA1 Message Date
Martín Lucas Golini
5ca4fa2a88 Added "border" CSS shorthand.
Fixed "background" CSS shorthand parsing.
All UI Widgets emit "OnClose" event when being destroyed.
Minor fixes in UIDropDownList and UIImage.
Added aliases for "layout_width" -> "lw", "layout_height" -> "lh", "layout_weight" -> "lw8". And for "wrap_content" -> "wc" and "match_parent" -> "mp".
2022-08-22 01:52:48 -03:00
Martín Lucas Golini
294f743ab0 Updated README.md links to the new CDN.
Started refactoring UIEditor.
2022-08-07 22:01:40 -03:00
Martín Lucas Golini
431c61a0d8 Minor fix in README.md. 2022-02-13 20:13:35 -03:00
Martín Lucas Golini
6861c5e795 Improved emscripten support + some minor refactor. 2020-08-30 18:08:00 -03:00
Martín Lucas Golini
1250fc9972 Added UIListView.
UIFileDialog now uses UIListView.
UITreeView/UITableView/UIListView allow selecting row by writing its name.
Styling fixes.
2020-08-18 00:35:01 -03:00
Martín Lucas Golini
94b225b33d Minor fixes and changes for the Code Editor. 2020-07-02 20:22:23 -03:00
Martín Lucas Golini
d904cea482 Implemented UINode::onDrop API.
Replaced/renamed all references to nodes and widgets that referred to them as "control".
2020-06-18 04:07:04 -03:00
Martín Lucas Golini
abc47067a4 Minor code editor fixes.
Improved touch dragging.
Minor API change in UIMenu::add*.
Updated the README.md.
Added TODO.md (to keep track on the things I want to improve/implement).
2020-06-17 03:49:12 -03:00
Martín Lucas Golini
3ea6ab392c Reimplemented TextDocument::load* and save*, now uses IOStream (also fixes some issues with line endings).
String class now uses char32_t as base type, to be compatible with std::u32string.
Some minor refactor: replaced Uint32 type in hashes in favor of String::HashType. Replaced Uint32 type in keycodes in favor of Keycode.
Changed String::hash(String) from CRC32 to std::hash<std::u32string> (many times faster).
And more random refactors and small features in the code editor.
2020-05-30 05:57:27 -03:00
Martín Lucas Golini
2de37d3a45 More improvements to the UICodeEditor and TextDocument.
Improved the SyntaxHighligther.
2020-05-26 05:48:22 -03:00
Martín Lucas Golini
84c40649c8 Removed rx-cpp since it's problematic. Added System::LuaPatternMatcher in replacement. This should fix the Windows and macOS builds.
Fixed UISceneNode size, now it's set in pixels instead of dp to allow to always be the same size as the window.
Fixed styles and layouts not updating in time before calling draw.
Fixed a double delete crash when using UIDropDownList and UIWinMenu.
Now UI elements can be dragged even if the mouse cursor goes out of the window limits.
UIScrollBar slider now can be dragged also from the horizontal edges that are not part of the button slider (this allows to scroll from the edge for example in maximized windows).
Fixed TextDocument on emscripten.
Disabled fullscreen window minimizing on focus loss (SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS).
2020-05-25 05:18:38 -03:00
Martín Lucas Golini
16db174e48 API changes:
LayoutSizeRule is now SizePolicy.
LayoutPositionRule is now PositionPolicy.
get/setLayoutSizeRules is now get/setLayoutSizePolicy.
get/setLayoutPositionRule is now get/setLayoutPositionPolicy.
Added Engine::isThreaded().

Minor emscripten fix.
Added emscripten-fs.html, a simple script loader to test the build emscripten demos.
2020-05-02 23:15:47 -03:00
Martín Lucas Golini
5bec7077c2 Update README.md 2020-02-26 02:00:08 -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
e302310973 More work has been done to support the CSS animation property.
Now the "animation*" properties are parsed and converted into an AnimationDefinition.
Added a new obligatory method to Action, Action::getTotalTime, in order to have more precise information about the current execution point in time of the actions.
Added String::isNumber(std::string, bool).
Added Time::fromString and Time::isValid.
2020-02-22 03:43:26 -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
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
0f61c3fa96 Minor changes in how the library is presented. 2020-01-15 18:29:23 -03:00
Martín Lucas Golini
78a52e214b Updated README.md. 2020-01-15 13:39:39 -03:00
Martín Lucas Golini
7b6a3d2f66 Some minor fixes. 2020-01-14 05:13:43 -03:00
Martín Lucas Golini
b69f76e76e Minor README.md changes. 2020-01-13 04:48:18 -03:00
Martín Lucas Golini
f461e1b554 Improve documentation. 2020-01-13 04:34:37 -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
f60d4c183e clang-formated all project source files.
Improved documentation.

--HG--
branch : dev
2020-01-10 04:39:46 -03:00
Martín Lucas Golini
0ad50260fd README.md fixes for doxygen docs.
--HG--
branch : dev
2020-01-10 01:09:29 -03:00
Martín Lucas Golini
22aefd278b README: Fixed typo.
--HG--
branch : dev
2020-01-02 18:14:54 -03:00
Martín Lucas Golini
35d0d9b1d9 README changes.
--HG--
branch : dev
2020-01-02 18:13:17 -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
0662e36231 Nit.
--HG--
branch : dev
2019-11-22 02:18:09 -03:00
Martín Lucas Golini
bb30c62fab Removed support for SFML2 module (mantaining this backend does not make any sense at this point).
Removed custom Platform implementations for windows and cursor control (control is taken by the SDL2 backend).
And some clean up.

--HG--
branch : dev
2019-10-06 02:49:41 -03:00
Martín Lucas Golini
dd9d2021f2 Windows fixes and some changes in the premake projects.
--HG--
branch : dev
2019-06-19 03:15:47 -03:00
Martín Lucas Golini
05103234db README update.
--HG--
branch : dev
2019-05-22 01:03:05 -03:00
Martín Lucas Golini
ad07d57349 Fixed typo.
--HG--
branch : dev
2019-04-23 00:18:33 -03:00
Martín Lucas Golini
37c76ff90c Domain update.
--HG--
branch : dev
2019-03-24 20:43:34 -03:00
Martín Lucas Golini
c58abee44a Updated libraries.
--HG--
branch : dev-css
2018-12-31 03:50:27 -03:00
Martín Lucas Golini
ee277150e4 Updated README.md.
--HG--
branch : dev
2018-04-22 22:50:17 -03:00
Martín Lucas Golini
ef2f1b71af Tabs spacing in README.md.
--HG--
branch : dev
2018-03-19 02:49:03 -03:00
Martín Lucas Golini
3fc85ae874 Test code comment.
--HG--
branch : dev
2018-03-19 02:47:35 -03:00
Martín Lucas Golini
d4336bc1ad More tweaks.
--HG--
branch : dev
2018-03-19 02:34:07 -03:00
Martín Lucas Golini
5bd185c9c9 Tweaks.
--HG--
branch : dev
2018-03-19 02:30:21 -03:00
Martín Lucas Golini
3a74f61064 Updated README.md.
--HG--
branch : dev
2018-03-19 02:23:03 -03:00
Martí­n Lucas Golini
eee63bf784 Renamed EE::Gaming module to EE::Maps.
--HG--
branch : dev
2017-04-10 00:28:04 -03:00
Martí­n Lucas Golini
e09b07ecc0 Added ClippingMask class, for clipping with scissor test, clip planes and stencil test.
Fixed some minor problems.

--HG--
branch : dev
2017-03-30 01:17:11 -03:00
Martín Lucas Golini
2647f03933 Renamed "base" folder/module to "core".
Renamed "declares.hpp" to "config.hpp"
Removed some compiler warnings.
Fixed some minor bugs in cSound and cSoundBuffer.
2014-06-07 02:12:18 -03:00
Martín Lucas Golini
863bd425de Added a README markdown file in preparation of the repo migration to bitbucket. 2014-06-01 23:46:33 -03:00