Skip to main content

Crate raui_core

Crate raui_core 

Source
Expand description

RAUI core types and components

The things that most users will be interested in here are the components. Those have more documentation on how to use widgets, components, etc. in your app.

Modules§

animator
Animation engine
application
Application foundation used to drive the RAUI interface
gc
Value boxes that tolerate reference cycles.
interactive
Interactivity traits
layout
Layout engine
messenger
Widget messaging
props
Widget property types
renderer
Renderer traits
signals
Widget signals
state
Widget state types
tester
value
One enum over every way a value can be held.
view_model
widget
Widget types and the core component collection

Macros§

implement_message_data
Macro for implementing MessageData.
implement_props_data
Macro for implementing PropsData.
make_widget
Helper to manually create a WidgetComponent struct from a function.
unpack_named_slots
A helper for getting the named children out of a widget context.

Structs§

DynamicManaged
Owner of a value whose type is only known at runtime.
DynamicManagedGc
Type-erased garbage collected box.
DynamicManagedLazy
Unclaimed handle to a value whose type is only known at runtime.
DynamicManagedRef
Shared handle to a value whose type is only known at runtime.
DynamicManagedRefMut
Exclusive handle to a value whose type is only known at runtime.
Lifetime
Owner of a runtime borrow state, kept next to the value it describes.
LifetimeLazy
Handle that claims nothing until it is used.
LifetimeRef
Shared borrow of a Lifetime, the runtime analogue of &T.
LifetimeRefMut
Mutable borrow of a Lifetime, the runtime analogue of &mut T.
LifetimeState
Cloneable strong handle to the counters behind a Lifetime.
LifetimeStateAccess
Guard over the internal spin lock of a LifetimeState, through which the borrow and access counters are updated.
LifetimeWeakState
Weak handle to a LifetimeState, paired with the tag it was taken at.
Managed
Owner of a value plus its runtime borrow state.
ManagedGc
Typed garbage collected box.
ManagedLazy
Unclaimed handle to a value owned by a Managed.
ManagedRef
Shared handle to a value owned by a Managed, the runtime &T.
ManagedRefMut
Exclusive handle to a value owned by a Managed, the runtime &mut T.
PrefabNumber
Represents a JSON number, whether integer or floating point.
PrintLogger
Prints log messages to terminal via println! macro.
ReadLock
Read claim held without a reference to the value.
TypeHash
Runtime identity of a type, stored as a hash of its full type name.
ValueReadAccess
Read guard over a value, obtained from a lifetime or one of its handles.
ValueWriteAccess
Write guard over a value, obtained from a lifetime or one of its handles.
WriteLock
Write claim held without a reference to the value.

Enums§

DynamicManagedValue
A value of a runtime known type, held in any of the possible ways.
LogKind
ManagedGcLifetime
Borrow state of a garbage collected box, as seen from a handle.
ManagedValue
A typed value held in any of the possible ways.
PrefabError
An error that can occur while processing a Prefab
PrefabValue
Represents any valid JSON value.

Traits§

Logger
Common logging interface that custom log engines should follow to enable their reusability across different modules that will log messages to text output targets. Objects that implement this trait should be considered text output targets, for example text streams, terminal, network-based loggers, even application screen.
Prefab
The Prefab trait is implemented for types that are able to translate to and from PrefabValue’s

Type Aliases§

Integer
Scalar
UnsignedInteger

Attribute Macros§

post_hooks
Allows you to execute re-usable logic after your component body
pre_hooks
An attribute macro that allows you to add hooks that will execute before your component body

Derive Macros§

MessageData
Derive macro for the [MessageData][raui_core::messenger::MessageData] trait
PropsData
Derive macro for the [PropsData][raui_core::props::PropsData] trait