mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Rename WindowRotation to RenderingRotation in the software renderer (#4181)
Same term as we're going to use in the linuxkms backend.
This commit is contained in:
parent
3b51c8e30a
commit
95044c3a09
6 changed files with 62 additions and 56 deletions
|
@ -608,8 +608,8 @@ public:
|
|||
|
||||
# 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 {
|
||||
/// To be used in set_rendering_rotation()
|
||||
enum class RenderingRotation {
|
||||
/// No rotation
|
||||
NoRotation = 0,
|
||||
/// Rotate 90° to the left
|
||||
|
@ -623,10 +623,10 @@ public:
|
|||
/// Set how the window need to be rotated in the buffer.
|
||||
///
|
||||
/// This is typically used to implement screen rotation in software
|
||||
void set_window_rotation(WindowRotation rotation)
|
||||
void set_rendering_rotation(RenderingRotation rotation)
|
||||
{
|
||||
cbindgen_private::slint_software_renderer_set_window_rotation(inner,
|
||||
static_cast<int>(rotation));
|
||||
cbindgen_private::slint_software_renderer_set_rendering_rotation(
|
||||
inner, static_cast<int>(rotation));
|
||||
}
|
||||
# endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue