[−][src]Struct polyhorn_core::Manager
Implementations
impl<'a, P: ?Sized> Manager<'a, P> where
P: Platform,
[src]
P: Platform,
pub fn new(
compositor: &'a P::Compositor,
bus: &'a EventLoop,
memory: &'a mut Memory,
context: &'a ContextTree,
children: Element<P>,
instance: &'a Rc<Instance<P>>
) -> Manager<'a, P>
[src]
compositor: &'a P::Compositor,
bus: &'a EventLoop,
memory: &'a mut Memory,
context: &'a ContextTree,
children: Element<P>,
instance: &'a Rc<Instance<P>>
) -> Manager<'a, P>
pub fn compositor(&self) -> &P::Compositor
[src]
pub fn children(&mut self) -> Element<P>
[src]
pub fn bind<F, I>(&self, closure: F) -> impl Fn(I) where
F: Fn(&WeakLink<'_, P>, I),
[src]
F: Fn(&WeakLink<'_, P>, I),
Trait Implementations
impl<'a, P: ?Sized> Link for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
type Platform = P
pub fn instance(&self) -> &Rc<Instance<Self::Platform>>
[src]
pub fn memory(&self) -> &Memory
[src]
pub fn queue_rerender(&self)
[src]
impl<'a, P: ?Sized> UseAsync for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
impl<'a, P: ?Sized> UseContext for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
pub fn use_context<T>(&mut self) -> Option<Context<T>> where
T: 'static,
[src]
T: 'static,
impl<'a, P: ?Sized> UseEffect<P> for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
pub fn use_effect<F>(&mut self, key: Key, conditions: Option<Key>, effect: F) where
F: FnOnce(&EffectLink<'_, P>) + 'static,
[src]
F: FnOnce(&EffectLink<'_, P>) + 'static,
impl<'a, P: ?Sized> UseLayoutEffect<P> for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
pub fn use_layout_effect<F>(
&mut self,
key: Key,
conditions: Option<Key>,
effect: F
) where
F: FnOnce(&EffectLink<'_, P>, &mut P::CommandBuffer) + 'static,
[src]
&mut self,
key: Key,
conditions: Option<Key>,
effect: F
) where
F: FnOnce(&EffectLink<'_, P>, &mut P::CommandBuffer) + 'static,
impl<'a, P: ?Sized> UseReference for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
pub fn use_reference<R, I>(&mut self, key: Key, initializer: I) -> Reference<R> where
R: 'static,
I: FnOnce() -> R,
[src]
R: 'static,
I: FnOnce() -> R,
impl<'a, P: ?Sized> UseState for Manager<'a, P> where
P: Platform,
[src]
P: Platform,
Auto Trait Implementations
impl<'a, P> !RefUnwindSafe for Manager<'a, P>
impl<'a, P> !Send for Manager<'a, P>
impl<'a, P> !Sync for Manager<'a, P>
impl<'a, P: ?Sized> Unpin for Manager<'a, P> where
<P as Platform>::Component: Unpin,
<P as Platform>::ContainerID: Unpin,
<P as Platform>::Component: Unpin,
<P as Platform>::ContainerID: Unpin,
impl<'a, P> !UnwindSafe for Manager<'a, P>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,