mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
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:
parent
414a9e85e7
commit
b88a3caacd
12 changed files with 81 additions and 33 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue