mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	subcompositor: document subsurface_from_resource
This commit is contained in:
		
							parent
							
								
									cfba4c6344
								
							
						
					
					
						commit
						7ce966a5d4
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -61,6 +61,12 @@ static void subsurface_destroy(struct wlr_subsurface *subsurface) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct wl_subsurface_interface subsurface_implementation;
 | 
					static const struct wl_subsurface_interface subsurface_implementation;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Get a wlr_subsurface from a wl_subsurface resource.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * Returns NULL if the subsurface is inert (e.g. the wl_surface object got
 | 
				
			||||||
 | 
					 * destroyed).
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
static struct wlr_subsurface *subsurface_from_resource(
 | 
					static struct wlr_subsurface *subsurface_from_resource(
 | 
				
			||||||
		struct wl_resource *resource) {
 | 
							struct wl_resource *resource) {
 | 
				
			||||||
	assert(wl_resource_instance_of(resource, &wl_subsurface_interface,
 | 
						assert(wl_resource_instance_of(resource, &wl_subsurface_interface,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue