mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			518 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef _SWAY_PANGO_H
 | 
						|
#define _SWAY_PANGO_H
 | 
						|
#include <stdarg.h>
 | 
						|
#include <stdbool.h>
 | 
						|
#include <stdint.h>
 | 
						|
#include <cairo/cairo.h>
 | 
						|
#include <pango/pangocairo.h>
 | 
						|
 | 
						|
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font,
 | 
						|
		const char *text, int32_t scale, bool markup);
 | 
						|
void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
 | 
						|
		int32_t scale, bool markup, const char *fmt, ...);
 | 
						|
void pango_printf(cairo_t *cairo, const char *font,
 | 
						|
		int32_t scale, bool markup, const char *fmt, ...);
 | 
						|
 | 
						|
#endif
 |