swrenderer: Put the rotation feature behind a freature gate

We're not ready to make the API public as we want to have the API as
part of the Window rather than part of the renderer
This commit is contained in:
Olivier Goffart 2023-10-09 10:32:52 +02:00 committed by Olivier Goffart
parent 414a9e85e7
commit b88a3caacd
12 changed files with 81 additions and 33 deletions

View file

@ -606,6 +606,7 @@ public:
return PhysicalRegion { r };
}
# ifdef SLINT_FEATURE_EXPERIMENTAL
/// This enum describes the rotation that is applied to the buffer when rendering.
/// To be used in set_window_rotation()
enum class WindowRotation {
@ -627,6 +628,7 @@ public:
cbindgen_private::slint_software_renderer_set_window_rotation(inner,
static_cast<int>(rotation));
}
# endif
};
#endif