pub fn owned_ref<T: 'static>(&self) -> Option<&T> {
        self.owned
            .get(&TypeId::of::<T>())
            .map(|x| x.downcast_ref())
            .flatten()
    }
/// Can be used to get immutable access to owned objects available for current application
/// processing run provided by the RAUI host.
///
/// # Example
///
/// ```
/// # use raui_core::prelude::*;
/// # struct AppData {
/// #    counter: i32
/// # }
/// fn my_component(ctx: WidgetContext) -> WidgetNode {
///     let app_data = ctx.process_context.owned_ref::<AppData>().unwrap();
///     let counter = app_data.counter;
///
///     // widget stuff...
/// #    widget!(())
/// }
/// ```
Can be used to get immutable access to owned objects available for current application
processing run provided by the RAUI host.
Can be used to get immutable access to owned objects available for current application processing run provided by the RAUI host .
pub fn owned_ref<T: 'static>(&self) -> Option<&T> {
        self.owned
            .get(&TypeId::of::<T>())
            .map(|x| x.downcast_ref())
            .flatten()
    }
pub fn owned_ref < T : ' static > ( & self ) -> Option < & T > { self . owned . get ( & TypeId :: of :: < T > ( ) ) . map ( | x | x . downcast_ref ( ) ) . flatten ( ) }
Can be used to get immutable access to owned objects available for current application
processing run provided by the RAUI host.
Can be used to get immutable access to owned objects available for current application processing run provided by the RAUI host .
&self
&self
example
None
use raui_core::prelude::*;
None
struct appdata {
None
counter: i32
None
}
fn my_component(ctx: WidgetContext) -> WidgetNode {
let app_data = ctx.process_context.owned_ref::().unwrap();
let counter = app_data.counter.

widget stuff
fn my_component ( ctx : WidgetContext ) - > WidgetNode { let app_data = ctx . process_context . owned_ref :: () . unwrap () ; let counter = app_data . counter . widget stuff
widget!(())
None