mirror of
https://github.com/swaywm/sway.git
synced 2026-02-26 01:40:32 -05:00
sway_text_node: allow max width to be fractional
Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
This commit is contained in:
parent
488673cb8d
commit
57d597d32d
2 changed files with 6 additions and 6 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
struct sway_text_node {
|
||||
int width;
|
||||
int max_width;
|
||||
double max_width;
|
||||
int height;
|
||||
int baseline;
|
||||
bool pango_markup;
|
||||
|
|
@ -21,7 +21,7 @@ void sway_text_node_set_color(struct sway_text_node *node, float color[4]);
|
|||
|
||||
void sway_text_node_set_text(struct sway_text_node *node, char *text);
|
||||
|
||||
void sway_text_node_set_max_width(struct sway_text_node *node, int max_width);
|
||||
void sway_text_node_set_max_width(struct sway_text_node *node, double max_width);
|
||||
|
||||
void sway_text_node_set_background(struct sway_text_node *node, float background[4]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue