Merge pull request #2598 from tokyo4j/refactor-magnifier

magnifier: refactor
This commit is contained in:
Hiroaki Yamamoto 2025-03-13 15:20:34 +09:00 committed by GitHub
commit 4750214d42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 95 additions and 123 deletions

View file

@ -22,4 +22,6 @@ void box_union(struct wlr_box *box_dest, struct wlr_box *box_a,
*/
struct wlr_box box_fit_within(int width, int height, struct wlr_box *bounding_box);
struct wlr_fbox box_to_fbox(struct wlr_box *box);
#endif /* LABWC_BOX_H */

View file

@ -14,12 +14,12 @@ enum magnify_dir {
MAGNIFY_DECREASE
};
void magnify_toggle(struct server *server);
void magnify_set_scale(struct server *server, enum magnify_dir dir);
void magnifier_toggle(struct server *server);
void magnifier_set_scale(struct server *server, enum magnify_dir dir);
bool output_wants_magnification(struct output *output);
void magnify(struct output *output, struct wlr_buffer *output_buffer,
void magnifier_draw(struct output *output, struct wlr_buffer *output_buffer,
struct wlr_box *damage);
bool is_magnify_on(void);
void magnify_reset(void);
bool magnifier_is_enabled(void);
void magnifier_reset(void);
#endif /* LABWC_MAGNIFIER_H */