mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
Merge branch 'master' into master
This commit is contained in:
commit
6885d5b887
70 changed files with 1979 additions and 321 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <cairo.h>
|
||||
#include <pango/pango-font.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct lab_data_buffer;
|
||||
|
||||
|
|
@ -43,10 +44,11 @@ void font_get_buffer_size(int max_width, const char *text, struct font *font,
|
|||
* @font: font description
|
||||
* @color: foreground color in rgba format
|
||||
* @bg_pattern: background pattern
|
||||
* @use_markup: flag to render pango markup
|
||||
*/
|
||||
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
|
||||
int height, const char *text, struct font *font, const float *color,
|
||||
cairo_pattern_t *bg_pattern, double scale);
|
||||
cairo_pattern_t *bg_pattern, double scale, bool use_markup);
|
||||
|
||||
/**
|
||||
* font_finish - free some font related resources
|
||||
|
|
|
|||
|
|
@ -62,8 +62,12 @@
|
|||
#define BOUNDED_INT(a) ((a) < INT_MAX && (a) > INT_MIN)
|
||||
#endif
|
||||
|
||||
#define LAB_WLR_VERSION_AT_LEAST(major, minor, micro) \
|
||||
(WLR_VERSION_NUM >= (((major) << 16) | ((minor) << 8) | (micro)))
|
||||
#define _LAB_CALC_WLR_VERSION_NUM(major, minor, micro) (((major) << 16) | ((minor) << 8) | (micro))
|
||||
|
||||
#define LAB_WLR_VERSION_AT_LEAST(major, minor, micro) ( \
|
||||
server.wlr_version >= _LAB_CALC_WLR_VERSION_NUM(major, minor, micro))
|
||||
|
||||
#define LAB_WLR_VERSION_LOWER(major, minor, micro) (!LAB_WLR_VERSION_AT_LEAST(major, minor, micro))
|
||||
|
||||
/**
|
||||
* PIXEL () - calculate pixel offset in an array
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@ pid_t spawn_primary_client(const char *command);
|
|||
*/
|
||||
void spawn_async_no_shell(char const *command);
|
||||
|
||||
/**
|
||||
* spawn_sync_no_shell - execute synchronously
|
||||
* @command: command to be executed
|
||||
*/
|
||||
void spawn_sync_no_shell(char const *command);
|
||||
|
||||
/**
|
||||
* spawn_piped - execute asynchronously
|
||||
* @command: command to be executed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue