feat: add tui.set_drag_source function
This commit is contained in:
		
							parent
							
								
									9dbb15c796
								
							
						
					
					
						commit
						1426142d35
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -1409,6 +1409,11 @@ pub fn get_keybind_mode() ?Mode { | ||||||
|     return self.input_mode_ orelse self.delayed_init_input_mode; |     return self.input_mode_ orelse self.delayed_init_input_mode; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | pub fn set_drag_source(drag_source: *Widget) void { | ||||||
|  |     const self = current(); | ||||||
|  |     self.drag_source = drag_source; | ||||||
|  | } | ||||||
|  | 
 | ||||||
| pub fn reset_drag_context() void { | pub fn reset_drag_context() void { | ||||||
|     const self = current(); |     const self = current(); | ||||||
|     self.drag_source = null; |     self.drag_source = null; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue