pub struct WindowEnv<T>where
T: Clone,{ /* private fields */ }Expand description
Manager for a Window
Implementations§
§impl<T> WindowEnv<T>where
T: Clone,
impl<T> WindowEnv<T>where T: Clone,
pub fn from_config(
window_config: WindowConfig<T>,
event_loop: &EventLoop<EventMessage>
) -> WindowEnv<T>
pub fn from_config( window_config: WindowConfig<T>, event_loop: &EventLoop<EventMessage> ) -> WindowEnv<T>
Create a Window environment from a set of configuration
pub fn process_layout(
&mut self,
rdom: &FreyaDOM,
font_collection: &mut RCHandle<skia_textlayout_FontCollection>
) -> (Layers, HashMap<EntityId, (Option<Rect<f32, Measure>>, Vec<EntityId, Global>), BuildHasherDefault<FxHasher>>)
pub fn process_layout( &mut self, rdom: &FreyaDOM, font_collection: &mut RCHandle<skia_textlayout_FontCollection> ) -> (Layers, HashMap<EntityId, (Option<Rect<f32, Measure>>, Vec<EntityId, Global>), BuildHasherDefault<FxHasher>>)
Measure the layout
pub fn render(
&mut self,
layers: &Layers,
viewports_collection: &HashMap<EntityId, (Option<Rect<f32, Measure>>, Vec<EntityId, Global>), BuildHasherDefault<FxHasher>>,
font_collection: &mut RCHandle<skia_textlayout_FontCollection>,
hovered_node: &Option<Arc<Mutex<Option<EntityId>>>>,
rdom: &FreyaDOM
)
pub fn render( &mut self, layers: &Layers, viewports_collection: &HashMap<EntityId, (Option<Rect<f32, Measure>>, Vec<EntityId, Global>), BuildHasherDefault<FxHasher>>, font_collection: &mut RCHandle<skia_textlayout_FontCollection>, hovered_node: &Option<Arc<Mutex<Option<EntityId>>>>, rdom: &FreyaDOM )
Render the RealDOM to Window
pub fn window(&mut self) -> &mut Window
pub fn run_on_setup(&mut self)
pub fn run_on_setup(&mut self)
Run the on_setup callback that was passed to the launch function
pub fn run_on_exit(&mut self)
pub fn run_on_exit(&mut self)
Run the on_exit callback that was passed to the launch function
Auto Trait Implementations§
impl<T> !RefUnwindSafe for WindowEnv<T>
impl<T> !Send for WindowEnv<T>
impl<T> !Sync for WindowEnv<T>
impl<T> Unpin for WindowEnv<T>where T: Unpin,
impl<T> !UnwindSafe for WindowEnv<T>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer