Struct oxygengine_user_interface::raui::core::application::Application [−][src]
pub struct Application {
pub animations_delta_time: f32,
// some fields omitted
}Fields
animations_delta_time: f32Implementations
impl Application[src]
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 change_notifier(&self) -> ChangeNotifier[src]
pub fn register_component(
&mut self,
type_name: &str,
processor: fn(WidgetContext<'_>) -> WidgetNode
)[src]
&mut self,
type_name: &str,
processor: fn(WidgetContext<'_>) -> WidgetNode
)
pub fn unregister_component(&mut self, type_name: &str)[src]
pub fn register_props<T>(&mut self, name: &str) where
T: 'static + Prefab + PropsData, [src]
T: 'static + Prefab + PropsData,
pub fn unregister_props(&mut self, name: &str)[src]
pub fn serialize_props(&self, props: &Props) -> Result<Value, PrefabError>[src]
pub fn deserialize_props(&self, data: Value) -> Result<Props, PrefabError>[src]
pub fn serialize_node(
&self,
data: &WidgetNode
) -> Result<Value, ApplicationError>[src]
&self,
data: &WidgetNode
) -> Result<Value, ApplicationError>
pub fn deserialize_node(
&self,
data: Value
) -> Result<WidgetNode, ApplicationError>[src]
&self,
data: Value
) -> Result<WidgetNode, 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 has_layout_widget(&self, id: &WidgetId) -> bool[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>(&mut self, interactions_engine: &mut I) -> Result<R, E> where
I: InteractionsEngine<R, E>, [src]
I: InteractionsEngine<R, E>,
pub fn send_message<T>(&mut self, id: &WidgetId, data: T) where
T: 'static + MessageData, [src]
T: 'static + MessageData,
pub fn send_message_raw(
&mut self,
id: &WidgetId,
data: Box<dyn MessageData + 'static, Global>
)[src]
&mut self,
id: &WidgetId,
data: Box<dyn MessageData + 'static, Global>
)
pub fn signals(&self) -> &[(WidgetId, Box<dyn MessageData + 'static, Global>)][src]
pub fn consume_signals(
&mut self
) -> Vec<(WidgetId, Box<dyn MessageData + 'static, Global>), Global>[src]
&mut self
) -> Vec<(WidgetId, Box<dyn MessageData + 'static, Global>), Global>
pub fn state_read(&self, id: &WidgetId) -> Option<&Props>[src]
pub fn state_write(&mut self, id: &WidgetId, data: Props)[src]
pub fn state_mutate<F>(&mut self, id: &WidgetId, f: F) where
F: FnMut(&Props) -> Props, [src]
F: FnMut(&Props) -> Props,
pub fn state_mutate_cloned<F>(&mut self, id: &WidgetId, f: F) where
F: FnMut(&mut Props), [src]
F: FnMut(&mut Props),
pub fn forced_process(&mut self) -> bool[src]
pub fn process(&mut self) -> bool[src]
Trait Implementations
impl Default for Application[src]
impl Default for Application[src]pub fn default() -> Application[src]
Auto Trait Implementations
impl !RefUnwindSafe for Application
impl !RefUnwindSafe for Applicationimpl Send for Application
impl Send for Applicationimpl Sync for Application
impl Sync for Applicationimpl Unpin for Application
impl Unpin for Applicationimpl !UnwindSafe for Application
impl !UnwindSafe for ApplicationBlanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any, pub fn get_type_id(&self) -> TypeId
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,