This commit is contained in:
Loukas Agorgianitis 2026-02-04 00:35:01 +00:00 committed by GitHub
commit bbac6e298b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 165 additions and 87 deletions

View file

@ -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]);

View file

@ -102,7 +102,7 @@ struct sway_container {
char *title; // The view's title (unformatted)
char *formatted_title; // The title displayed in the title bar
int title_width;
double title_width;
char *title_format;
@ -360,6 +360,8 @@ bool container_is_sticky_or_child(struct sway_container *con);
*/
int container_squash(struct sway_container *con);
float container_scale_factor(struct sway_container *con);
void container_arrange_title_bar(struct sway_container *con);
void container_update(struct sway_container *con);