mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
util/transform: move over wl_output_transform helpers
These aren't really tied to wlr_output.
This commit is contained in:
parent
a3d22dbe97
commit
9e702e9cfe
13 changed files with 38 additions and 18 deletions
28
include/wlr/util/transform.h
Normal file
28
include/wlr/util/transform.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_UTIL_TRANSFORM_H
|
||||
#define WLR_UTIL_TRANSFORM_H
|
||||
|
||||
#include <wayland-server-protocol.h>
|
||||
|
||||
/**
|
||||
* Returns the transform that, when composed with `tr`, gives
|
||||
* `WL_OUTPUT_TRANSFORM_NORMAL`.
|
||||
*/
|
||||
enum wl_output_transform wlr_output_transform_invert(
|
||||
enum wl_output_transform tr);
|
||||
|
||||
/**
|
||||
* Returns a transform that, when applied, has the same effect as applying
|
||||
* sequentially `tr_a` and `tr_b`.
|
||||
*/
|
||||
enum wl_output_transform wlr_output_transform_compose(
|
||||
enum wl_output_transform tr_a, enum wl_output_transform tr_b);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue