diff options
author | emersion <contact@emersion.fr> | 2017-12-27 11:17:25 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-27 11:17:25 +0100 |
commit | 43435d49150b87bbfafbae398dbde7ebfd9360dc (patch) | |
tree | 2fcdd498c958d29fd4f32eff3adda8aabd4edc6c /include/wlr | |
parent | e737f65e38a8be7e9f5f1f82131699555aea81ff (diff) |
Add output transform helpers docs
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 06d733a1..8e4f5446 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -118,8 +118,18 @@ bool wlr_output_cursor_move(struct wlr_output_cursor *cursor, double x, double y); void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor); + +/** + * 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); |