v0.4
Pre-release
Pre-release
BODEN CROSS-PLATFORM FRAMEWORK
Find our new Documentation at boden.io!
🎉 Added
- ui/Button: The
Buttonnow supports an imageURL to display an Image instead of text. - ui/TextField: The
TextFieldnow supports a placeholder text that is displayed while no text was entered. - ui/TextField: The
TextFieldnow supports obscuring the users input and configuring the appearance of the Keyboard. - ui/TextField: Added textInputType and obscureInput properties.
- ui/Label: The
Label's method of handling overflow can now be set with thetextOverflowproperty. - foundation/Application: The new function
Application::copyToClipboardcopies a string to the global clipboard. Thanks @mrexodia! - foundation/path: Added the
bdn::pathnamespace featuring functions to retrieve platform-specific paths like e.g. the path of the temporary directory readable/writable by the application. - foundation/Application: Added
Applicationbase class to the foundation module to makeContextaccessible from within the module. - ui/ListView: Added
std::optional<size_t> ListView::rowIndexForView(const std::shared_ptr<View>& view) const - foundation/NeedsInit: Added specialization of std::make_shared for types that have an init function but no Constructor Arguments to allow calling std::make_shared<>() without having to specify bdn::needsInit.
- foundation/c++: Added std:filesystem implementation.
⚠️ Changed
- ui/View: The View hierarchy functions have been reworked extensively.
View::childViewsreturns astd::vectorinstead of astd::listand the parentViewis accessible via a read-only propertyView::parentView. Functions that change the hierarchy have been moved out ofView. - ui/View: The
offerLayoutfunction has been renamed tosetFallbackLayout - foundation/Context: Renamed
UIContexttoContextand moved it to foundation. - ui/ListView: Added
listViewparameter toListViewDataSourcefunctions - cmake: use_boden_template_info_plist() now accepts a bundle id and bundle name.
- cmake: Renamed ANDROID_PACKAGEID to ANDROID_APP_ID.
- tooling The template used by
./boden newnow uses file(GLOB_RECURSE ...) to discover sources instead of manually listing the files.
🔥 Deprecated
- String: The
Stringalias has been deprecated and replaced withstd::string.
🐞 Fixed
- ui/Label: The
Label's wrap property is now by defaultfalseon all platforms. - cmake: Setting ANDROID_PACKAGEID to custom values no longer breaks resource lookup.
- tooling: Various path related issues fixed in `./boden.