mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
font: remove arrow character from font buffer
Arrow signs are specific to submenu items, so they would be more natural to be handled in menu.c rather than accepting "arrow" in font_buffer_create(). Also I allowed non-positive numbers for max_width in font_buffer_create(), in which case the natural font width is used as the buffer width.
This commit is contained in:
parent
10fc656c23
commit
01032ef3bd
7 changed files with 28 additions and 43 deletions
|
|
@ -18,7 +18,6 @@ struct scaled_font_buffer {
|
|||
int max_width;
|
||||
float color[4];
|
||||
float bg_color[4];
|
||||
char *arrow;
|
||||
struct font font;
|
||||
struct scaled_scene_buffer *scaled_buffer;
|
||||
};
|
||||
|
|
@ -48,7 +47,7 @@ struct scaled_font_buffer *scaled_font_buffer_create(struct wlr_scene_tree *pare
|
|||
*/
|
||||
void scaled_font_buffer_update(struct scaled_font_buffer *self, const char *text,
|
||||
int max_width, struct font *font, const float *color,
|
||||
const float *bg_color, const char *arrow);
|
||||
const float *bg_color);
|
||||
|
||||
/**
|
||||
* Update the max width of an existing auto scaling font buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue