structure: Create a module for custom event loops
This commit is contained in:
		
							
								
								
									
										9
									
								
								src/actors/external/mod.rs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/actors/external/mod.rs
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright (C) 2022 Purism SPC
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * SPDX-License-Identifier: GPL-3.0-or-later
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*! Contains actors with custom event loops, not based off of the event_loop module. */
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					pub mod debug;
 | 
				
			||||||
@ -20,4 +20,5 @@ and by receiving updates from it.
 | 
				
			|||||||
// Panel contains state and logic to protect the main state from getting flooded
 | 
					// Panel contains state and logic to protect the main state from getting flooded
 | 
				
			||||||
// with low-level wayland and gtk sizing events.
 | 
					// with low-level wayland and gtk sizing events.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pub mod external;
 | 
				
			||||||
pub mod popover;
 | 
					pub mod popover;
 | 
				
			||||||
@ -26,7 +26,6 @@ mod action;
 | 
				
			|||||||
mod actors;
 | 
					mod actors;
 | 
				
			||||||
mod animation;
 | 
					mod animation;
 | 
				
			||||||
pub mod data;
 | 
					pub mod data;
 | 
				
			||||||
mod debug;
 | 
					 | 
				
			||||||
mod drawing;
 | 
					mod drawing;
 | 
				
			||||||
mod event_loop;
 | 
					mod event_loop;
 | 
				
			||||||
pub mod float_ord;
 | 
					pub mod float_ord;
 | 
				
			||||||
 | 
				
			|||||||
@ -4,8 +4,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/*! Glue for the main loop. */
 | 
					/*! Glue for the main loop. */
 | 
				
			||||||
use crate::actors;
 | 
					use crate::actors;
 | 
				
			||||||
 | 
					use crate::actors::external::debug;
 | 
				
			||||||
use crate::animation;
 | 
					use crate::animation;
 | 
				
			||||||
use crate::debug;
 | 
					 | 
				
			||||||
use crate::data::loading;
 | 
					use crate::data::loading;
 | 
				
			||||||
use crate::event_loop;
 | 
					use crate::event_loop;
 | 
				
			||||||
use crate::panel;
 | 
					use crate::panel;
 | 
				
			||||||
 | 
				
			|||||||
@ -5,8 +5,8 @@
 | 
				
			|||||||
/*! Application-wide state is stored here.
 | 
					/*! Application-wide state is stored here.
 | 
				
			||||||
 * It's driven by the loop defined in the loop module. */
 | 
					 * It's driven by the loop defined in the loop module. */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use crate::actors::external::debug;
 | 
				
			||||||
use crate::animation;
 | 
					use crate::animation;
 | 
				
			||||||
use crate::debug;
 | 
					 | 
				
			||||||
use crate::event_loop;
 | 
					use crate::event_loop;
 | 
				
			||||||
use crate::event_loop::ActorState;
 | 
					use crate::event_loop::ActorState;
 | 
				
			||||||
use crate::imservice::{ ContentHint, ContentPurpose };
 | 
					use crate::imservice::{ ContentHint, ContentPurpose };
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user