pub struct RadiantScene<M, N: RadiantNode> {
pub document: Arc<RwLock<RadiantDocumentNode<N>>>,
pub screen_descriptor: ScreenDescriptor,
pub fonts_manager: Fonts,
pub render_manager: RadiantRenderManager,
pub tool_manager: RadiantToolManager<M>,
pub interaction_manager: RadiantInteractionManager<M>,
pub texture_manager: RadiantTextureManager,
}
Fields§
§document: Arc<RwLock<RadiantDocumentNode<N>>>
§screen_descriptor: ScreenDescriptor
§fonts_manager: Fonts
§render_manager: RadiantRenderManager
§tool_manager: RadiantToolManager<M>
§interaction_manager: RadiantInteractionManager<M>
§texture_manager: RadiantTextureManager
Implementations§
Source§impl<M: From<RadiantSceneMessage> + TryInto<RadiantSceneMessage>, N: RadiantNode> RadiantScene<M, N>
impl<M: From<RadiantSceneMessage> + TryInto<RadiantSceneMessage>, N: RadiantNode> RadiantScene<M, N>
pub fn document(&self) -> RwLockReadGuard<'_, RadiantDocumentNode<N>>
pub fn document_mut(&mut self) -> RwLockWriteGuard<'_, RadiantDocumentNode<N>>
pub fn new( config: SurfaceConfiguration, surface: Surface, device: Device, queue: Queue, screen_descriptor: ScreenDescriptor, default_tool: impl RadiantTool<M> + 'static + Send + Sync, ) -> Self
pub fn add(&mut self, node: N)
pub fn resize(&mut self, new_size: [u32; 2])
pub fn render(&mut self) -> Result<(), SurfaceError>
pub async fn select(&mut self, mouse_position: [f32; 2]) -> u64
Source§impl<M: From<RadiantSceneMessage> + TryInto<RadiantSceneMessage>, N: RadiantNode> RadiantScene<M, N>
impl<M: From<RadiantSceneMessage> + TryInto<RadiantSceneMessage>, N: RadiantNode> RadiantScene<M, N>
pub fn handle_message( &mut self, message: RadiantSceneMessage, ) -> Option<RadiantSceneResponse<M, N>>
Auto Trait Implementations§
impl<M, N> !Freeze for RadiantScene<M, N>
impl<M, N> !RefUnwindSafe for RadiantScene<M, N>
impl<M, N> Send for RadiantScene<M, N>
impl<M, N> Sync for RadiantScene<M, N>
impl<M, N> Unpin for RadiantScene<M, N>where
M: Unpin,
impl<M, N> !UnwindSafe for RadiantScene<M, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more