mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Make font_texture_create() more generic
Move font_texture_create() to font.c so it can be used for purposes other than rendering the menu, for example server side decoration. Refactor menu.c and menu.h to use this more generic font_texture_create()
This commit is contained in:
parent
8fc6f795db
commit
5ecf0e1e7e
5 changed files with 104 additions and 72 deletions
|
|
@ -7,9 +7,13 @@
|
|||
struct menuitem {
|
||||
char *action;
|
||||
char *command;
|
||||
struct wlr_box geo_box;
|
||||
struct wlr_texture *active_texture;
|
||||
struct wlr_texture *inactive_texture;
|
||||
struct wlr_box box;
|
||||
struct {
|
||||
struct wlr_texture *active;
|
||||
struct wlr_texture *inactive;
|
||||
int offset_x;
|
||||
int offset_y;
|
||||
} texture;
|
||||
bool selected;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue