comparison libui/ui/label.c @ 159:e05a792f6910

ui: make message less clever and provide spacing field
author David Demelier <markand@malikania.fr>
date Fri, 16 Oct 2020 18:44:05 +0200
parents aa6e70e330a1
children 31d7f23c0588
comparison
equal deleted inserted replaced
158:e8d2740703df 159:e05a792f6910
71 assert(label); 71 assert(label);
72 assert(label->text); 72 assert(label->text);
73 73
74 struct theme *t = label->theme ? label->theme : theme_default(); 74 struct theme *t = label->theme ? label->theme : theme_default();
75 75
76 if (!font_box(t->fonts[THEME_FONT_INTERFACE], label->text, &label->w, &label->h)) 76 if (!font_query(t->fonts[THEME_FONT_INTERFACE], label->text, &label->w, &label->h))
77 panic(); 77 panic();
78 } 78 }
79 79
80 void 80 void
81 label_draw(const struct label *label) 81 label_draw(const struct label *label)