diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 5 | ||||
-rw-r--r-- | include/wlr/types.h | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/types.h b/include/types.h index 5513e936..d2c8d008 100644 --- a/include/types.h +++ b/include/types.h @@ -6,8 +6,11 @@ #include <stdbool.h> struct wlr_output_impl { - bool (*set_mode)(struct wlr_output_state *state, struct wlr_output_mode *mode); void (*enable)(struct wlr_output_state *state, bool enable); + bool (*set_mode)(struct wlr_output_state *state, + struct wlr_output_mode *mode); + void (*transform)(struct wlr_output_state *state, + enum wl_output_transform transform); void (*destroy)(struct wlr_output_state *state); }; diff --git a/include/wlr/types.h b/include/wlr/types.h index 02c2f087..a3afb258 100644 --- a/include/wlr/types.h +++ b/include/wlr/types.h @@ -26,10 +26,13 @@ struct wlr_output { char make[48]; char model[16]; uint32_t scale; + int32_t width, height; int32_t phys_width, phys_height; // mm int32_t subpixel; // enum wl_output_subpixel int32_t transform; // enum wl_output_transform + float transform_matrix[16]; + list_t *modes; struct wlr_output_mode *current_mode; @@ -38,8 +41,11 @@ struct wlr_output { } events; }; -bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode); void wlr_output_enable(struct wlr_output *output, bool enable); +bool wlr_output_set_mode(struct wlr_output *output, + struct wlr_output_mode *mode); +void wlr_output_transform(struct wlr_output *output, + enum wl_output_transform transform); void wlr_output_destroy(struct wlr_output *output); #endif |