2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#ifndef _WLR_INTERFACE_OUTPUT_H
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#define _WLR_INTERFACE_OUTPUT_H
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-21 10:27:45 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <wlr/types/wlr_output.h>
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#include <stdbool.h>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								struct wlr_output_impl {
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-13 10:51:50 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									void (*enable)(struct wlr_output *output, bool enable);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									bool (*set_mode)(struct wlr_output *output, struct wlr_output_mode *mode);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void (*transform)(struct wlr_output *output,
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
											enum wl_output_transform transform);
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-13 10:51:50 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									bool (*set_cursor)(struct wlr_output *output, const uint8_t *buf,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
											int32_t stride, uint32_t width, uint32_t height);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									bool (*move_cursor)(struct wlr_output *output, int x, int y);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void (*destroy)(struct wlr_output *output);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void (*make_current)(struct wlr_output *output);
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									void (*swap_buffers)(struct wlr_output *output);
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-13 10:51:50 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *impl);
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								void wlr_output_free(struct wlr_output *output);
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-21 10:27:45 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								void wlr_output_update_matrix(struct wlr_output *output);
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-22 14:26:02 -04:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct wl_global *wlr_output_create_global(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										struct wlr_output *wlr_output, struct wl_display *display);
							 | 
						
					
						
							
								
									
										
										
										
											2017-06-19 18:41:02 -04:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#endif
							 |