[−][src]Struct raui::core::prelude::Application
Fields
animations_delta_time: f32
Implementations
impl Application
[src]
pub fn new() -> Application
[src]
pub fn setup<F>(&mut self, f: F) where
F: FnMut(&mut Application),
[src]
F: FnMut(&mut Application),
pub fn map_component(
&mut self,
type_name: &str,
processor: fn(WidgetContext<'_>) -> WidgetNode
)
[src]
&mut self,
type_name: &str,
processor: fn(WidgetContext<'_>) -> WidgetNode
)
pub fn unmap_component(&mut self, type_name: &str)
[src]
pub fn map_props<T>(&mut self, type_name: &str) where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
pub fn unmap_props<T>(&mut self) where
T: 'static + PropsData,
[src]
T: 'static + PropsData,
pub fn props_to_serializable(
&self,
props: Props
) -> Result<PropsDef, ApplicationError>
[src]
&self,
props: Props
) -> Result<PropsDef, ApplicationError>
pub fn node_to_serializable(
&self,
node: WidgetNode
) -> Result<WidgetNodeDef, ApplicationError>
[src]
&self,
node: WidgetNode
) -> Result<WidgetNodeDef, ApplicationError>
pub fn component_to_serializable(
&self,
component: WidgetComponent
) -> Result<WidgetComponentDef, ApplicationError>
[src]
&self,
component: WidgetComponent
) -> Result<WidgetComponentDef, ApplicationError>
pub fn unit_to_serializable(
&self,
unit: WidgetUnitNode
) -> Result<WidgetUnitNodeDef, ApplicationError>
[src]
&self,
unit: WidgetUnitNode
) -> Result<WidgetUnitNodeDef, ApplicationError>
pub fn props_from_serializable(
&self,
props: PropsDef
) -> Result<Props, ApplicationError>
[src]
&self,
props: PropsDef
) -> Result<Props, ApplicationError>
pub fn node_from_serializable(
&self,
node: WidgetNodeDef
) -> Result<WidgetNode, ApplicationError>
[src]
&self,
node: WidgetNodeDef
) -> Result<WidgetNode, ApplicationError>
pub fn component_from_serializable(
&self,
component: WidgetComponentDef
) -> Result<WidgetComponent, ApplicationError>
[src]
&self,
component: WidgetComponentDef
) -> Result<WidgetComponent, ApplicationError>
pub fn unit_from_serializable(
&self,
unit: WidgetUnitNodeDef
) -> Result<WidgetUnitNode, ApplicationError>
[src]
&self,
unit: WidgetUnitNodeDef
) -> Result<WidgetUnitNode, ApplicationError>
pub fn last_invalidation_cause(&self) -> &InvalidationCause
[src]
pub fn is_dirty(&self) -> bool
[src]
pub fn mark_dirty(&mut self)
[src]
pub fn does_render_changed(&self) -> bool
[src]
pub fn tree(&self) -> &WidgetNode
[src]
pub fn rendered_tree(&self) -> &WidgetUnit
[src]
pub fn layout_data(&self) -> &Layout
[src]
pub fn apply(&mut self, tree: WidgetNode)
[src]
pub fn render<R, T, E>(
&self,
mapping: &CoordsMapping,
renderer: &mut R
) -> Result<T, E> where
R: Renderer<T, E>,
[src]
&self,
mapping: &CoordsMapping,
renderer: &mut R
) -> Result<T, E> where
R: Renderer<T, E>,
pub fn render_change<R, T, E>(
&mut self,
mapping: &CoordsMapping,
renderer: &mut R
) -> Result<Option<T>, E> where
R: Renderer<T, E>,
[src]
&mut self,
mapping: &CoordsMapping,
renderer: &mut R
) -> Result<Option<T>, E> where
R: Renderer<T, E>,
pub fn layout<L, E>(
&mut self,
mapping: &CoordsMapping,
layout_engine: &mut L
) -> Result<(), E> where
L: LayoutEngine<E>,
[src]
&mut self,
mapping: &CoordsMapping,
layout_engine: &mut L
) -> Result<(), E> where
L: LayoutEngine<E>,
pub fn layout_change<L, E>(
&mut self,
mapping: &CoordsMapping,
layout_engine: &mut L
) -> Result<bool, E> where
L: LayoutEngine<E>,
[src]
&mut self,
mapping: &CoordsMapping,
layout_engine: &mut L
) -> Result<bool, E> where
L: LayoutEngine<E>,
pub fn interact<I, R, E>(&self, interactions_engine: &mut I) -> Result<R, E> where
I: InteractionsEngine<R, E>,
[src]
I: InteractionsEngine<R, E>,
pub fn messenger(&self) -> &MessageSender
[src]
pub fn signals(&self) -> &[(WidgetId, Box<dyn Any + 'static, Global>)]ⓘ
[src]
pub fn forced_process(&mut self) -> bool
[src]
pub fn process(&mut self) -> bool
[src]
Trait Implementations
impl Default for Application
[src]
pub fn default() -> Application
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Application
[src]
impl !Send for Application
[src]
impl !Sync for Application
[src]
impl Unpin for Application
[src]
impl !UnwindSafe for Application
[src]
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>,