mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added initial ability to rotate and flip image to photo editor.
This commit is contained in:
@@ -75,4 +75,13 @@ PhotoEditorControls::PhotoEditorControls(
|
||||
}, lifetime());
|
||||
|
||||
}
|
||||
|
||||
rpl::producer<int> PhotoEditorControls::rotateRequests() const {
|
||||
return _rotateButton->clicks() | rpl::map([] { return 90; });
|
||||
}
|
||||
|
||||
rpl::producer<> PhotoEditorControls::flipRequests() const {
|
||||
return _flipButton->clicks() | rpl::to_empty;
|
||||
}
|
||||
|
||||
} // namespace Editor
|
||||
|
||||
Reference in New Issue
Block a user