v0.4
Pre-release
Pre-release
BODEN CROSS-PLATFORM FRAMEWORK
Find our new Documentation at boden.io!
🎉 Added
- ui/Button: The
Button
now supports an imageURL to display an Image instead of text. - ui/TextField: The
TextField
now supports a placeholder text that is displayed while no text was entered. - ui/TextField: The
TextField
now 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 thetextOverflow
property. - foundation/Application: The new function
Application::copyToClipboard
copies a string to the global clipboard. Thanks @mrexodia! - foundation/path: Added the
bdn::path
namespace featuring functions to retrieve platform-specific paths like e.g. the path of the temporary directory readable/writable by the application. - foundation/Application: Added
Application
base class to the foundation module to makeContext
accessible 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::childViews
returns astd::vector
instead of astd::list
and the parentView
is accessible via a read-only propertyView::parentView
. Functions that change the hierarchy have been moved out ofView
. - ui/View: The
offerLayout
function has been renamed tosetFallbackLayout
- foundation/Context: Renamed
UIContext
toContext
and moved it to foundation. - ui/ListView: Added
listView
parameter toListViewDataSource
functions - 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 new
now uses file(GLOB_RECURSE ...) to discover sources instead of manually listing the files.
🔥 Deprecated
- String: The
String
alias has been deprecated and replaced withstd::string
.
🐞 Fixed
- ui/Label: The
Label
's wrap property is now by defaultfalse
on all platforms. - cmake: Setting ANDROID_PACKAGEID to custom values no longer breaks resource lookup.
- tooling: Various path related issues fixed in `./boden.