mirror of
https://github.com/labwc/labwc.git
synced 2026-02-27 01:40:30 -05:00
Merge pull request #2598 from tokyo4j/refactor-magnifier
magnifier: refactor
This commit is contained in:
commit
4750214d42
8 changed files with 95 additions and 123 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue