mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
API review: enable all features in the C++ docs (#5592)
And make sure that functions excluded when freestanding is enabled are included in the docs.
This commit is contained in:
parent
4de9cae583
commit
27dc6e53c0
3 changed files with 6 additions and 6 deletions
|
|
@ -1398,7 +1398,7 @@ void invoke_from_event_loop(Functor f)
|
||||||
[](void *data) { delete reinterpret_cast<Functor *>(data); });
|
[](void *data) { delete reinterpret_cast<Functor *>(data); });
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SLINT_FEATURE_FREESTANDING
|
#if !defined(SLINT_FEATURE_FREESTANDING) || defined(DOXYGEN)
|
||||||
|
|
||||||
/// Blocking version of invoke_from_event_loop()
|
/// Blocking version of invoke_from_event_loop()
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ public:
|
||||||
|
|
||||||
Image() : data(Data::ImageInner_None()) { }
|
Image() : data(Data::ImageInner_None()) { }
|
||||||
|
|
||||||
#ifndef SLINT_FEATURE_FREESTANDING
|
#if !defined(SLINT_FEATURE_FREESTANDING) || defined(DOXYGEN)
|
||||||
/// Load an image from an image file
|
/// Load an image from an image file
|
||||||
[[nodiscard]] static Image load_from_path(const SharedString &file_path)
|
[[nodiscard]] static Image load_from_path(const SharedString &file_path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -86,11 +86,11 @@ pub fn generate(show_warnings: bool) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let enabled_features = cbindgen::EnabledFeatures {
|
let enabled_features = cbindgen::EnabledFeatures {
|
||||||
interpreter: true,
|
interpreter: true,
|
||||||
testing: true,
|
testing: true,
|
||||||
backend_qt: false,
|
backend_qt: true,
|
||||||
backend_winit: true,
|
backend_winit: true,
|
||||||
backend_winit_x11: false,
|
backend_winit_x11: false,
|
||||||
backend_winit_wayland: false,
|
backend_winit_wayland: false,
|
||||||
backend_linuxkms: false,
|
backend_linuxkms: true,
|
||||||
backend_linuxkms_noseat: false,
|
backend_linuxkms_noseat: false,
|
||||||
renderer_femtovg: true,
|
renderer_femtovg: true,
|
||||||
renderer_skia: true,
|
renderer_skia: true,
|
||||||
|
|
@ -99,8 +99,8 @@ pub fn generate(show_warnings: bool) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
renderer_software: true,
|
renderer_software: true,
|
||||||
gettext: true,
|
gettext: true,
|
||||||
accessibility: true,
|
accessibility: true,
|
||||||
system_testing: false,
|
system_testing: true,
|
||||||
freestanding: false,
|
freestanding: true,
|
||||||
experimental: false,
|
experimental: false,
|
||||||
};
|
};
|
||||||
cbindgen::gen_all(&root, &generated_headers_dir, enabled_features)?;
|
cbindgen::gen_all(&root, &generated_headers_dir, enabled_features)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue