pub struct RadiantScene<M, N>where
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: RadiantTextureManagerImplementations§
Source§impl<M, N> RadiantScene<M, N>
impl<M, N> RadiantScene<M, N>
pub fn document(&self) -> RwLockReadGuard<'_, RadiantDocumentNode<N>>
pub fn document_mut(&mut self) -> RwLockWriteGuard<'_, RadiantDocumentNode<N>>
pub fn new( config: SurfaceConfiguration<Vec<TextureFormat>>, surface: Surface, device: Device, queue: Queue, screen_descriptor: ScreenDescriptor, default_tool: impl RadiantTool<M> + Send + Sync + 'static, ) -> RadiantScene<M, N>
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, N> RadiantScene<M, N>
impl<M, N> 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> !UnwindSafe 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> UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more