diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-07 18:54:42 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-06-08 18:22:32 +0200 |
commit | 6688a3d9ea40aaf345945a2df8b67e0ca1fad00f (patch) | |
tree | 3ac2060be4291bff002b406cd2d687a4933ce46b /include/wlr | |
parent | 0173275f7ed709dc9c3c6115bc8112bf1185d6ec (diff) |
output: add output state setters
This ensures compositors don't forget to set the committed flag
or the mode_type when setting a field.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index d3d44132..4f8bff0d 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -501,6 +501,23 @@ bool wlr_output_cursor_move(struct wlr_output_cursor *cursor, void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor); +void wlr_output_state_set_enabled(struct wlr_output_state *state, + bool enabled); +void wlr_output_state_set_mode(struct wlr_output_state *state, + struct wlr_output_mode *mode); +void wlr_output_state_set_custom_mode(struct wlr_output_state *state, + int32_t width, int32_t height, int32_t refresh); +void wlr_output_state_set_scale(struct wlr_output_state *state, float scale); +void wlr_output_state_set_transform(struct wlr_output_state *state, + enum wl_output_transform transform); +void wlr_output_state_set_adaptive_sync_enabled(struct wlr_output_state *state, + bool enabled); +void wlr_output_state_set_render_format(struct wlr_output_state *state, + uint32_t format); +void wlr_output_state_set_subpixel(struct wlr_output_state *state, + enum wl_output_subpixel subpixel); + + /** * Returns the transform that, when composed with `tr`, gives * `WL_OUTPUT_TRANSFORM_NORMAL`. |