Crate ori_core

Source

Re-exports§

pub use Unit::*;

Modules§

bool
bool vector mask types.
f32
f32 vector, quaternion and matrix types.
f64
f64 vector, quaternion and matrix types.
i32
i32 vector types.
swizzles
Traits adding swizzle methods to all vector types.
u32
u32 vector types.

Macros§

debug
Constructs an event at the debug level.
error
Constructs an event at the error level.
include_stylesheet
info
Constructs an event at the info level.
trace
Constructs an event at the trace level.
warn
Constructs an event at the warn level.

Structs§

Affine2
A 2D affine transform, which can represent translation, rotation, scaling and shear.
Affine3A
A 3D affine transform, which can represent translation, rotation, scaling and shear.
BVec2
A 2-dimensional bool vector mask.
BVec3
A 3-dimensional bool vector mask.
BVec4
A 4-dimensional bool vector mask.
BVec3A
A 3-dimensional SIMD vector mask.
BVec4A
A 4-dimensional SIMD vector mask.
BoundedScope
BoxConstraints
Button
Callback
A callback that can be called from any thread.
CallbackEmitter
A Callback emitter.
Checkbox
Children
Comment
DAffine2
A 2D affine transform, which can represent translation, rotation, scaling and shear.
DAffine3
A 3D affine transform, which can represent translation, rotation, scaling and shear.
DMat2
A 2x2 column major matrix.
DMat3
A 3x3 column major matrix.
DMat4
A 4x4 column major matrix.
DQuat
A quaternion representing an orientation.
DVec2
A 2-dimensional vector.
DVec3
A 3-dimensional vector.
DVec4
A 4-dimensional vector.
Div
DrawContext
DrawLayer
Event
EventContext
EventSignal
EventSink
An event sink, that can send events to the application.
FlexLayout
A layout that lays out children in a flexbox-like manner.
IVec2
A 2-dimensional vector.
IVec3
A 3-dimensional vector.
IVec4
A 4-dimensional vector.
Image
ImageCache
ImageState
KeyboardEvent
Knob
LayoutContext
LoadedStyle
A style that has been loaded from a file.
Mat2
A 2x2 column major matrix.
Mat3
A 3x3 column major matrix.
Mat4
A 4x4 column major matrix.
Mat3A
A 3x3 column major matrix.
Modifiers
Modify
Node
A node in the View tree.
NodeId
NodeState
PointerEvent
Quat
A quaternion representing an orientation.
ReadSignal
A read-only Signal.
RequestRedrawEvent
ScopeDisposer
Scroll
ScrollState
SharedSignal
A Signal that can be cloned.
Signal
A Signal that can be written to.
Style
StyleAttribute
A Style attribute.
StyleAttributes
A collection of StyleAttributes.
StyleCache
StyleClasses
StyleLoader
A style loader that can load styles from files and inline styles.
StyleRule
A Stylesheet rule.
StyleSelector
StyleSelectors
A Style selector.
StyleSpecificity
StyleStates
A list of style states.
StyleTransition
Styled
A value with associated style StyleAttributes.
Stylesheet
A style sheet.
Text
TextInput
TextInputState
TransitionState
TransitionStates
UVec2
A 2-dimensional vector.
UVec3
A 3-dimensional vector.
UVec4
A 4-dimensional vector.
Vec2
A 2-dimensional vector.
Vec3
A 3-dimensional vector.
Vec4
A 4-dimensional vector with SIMD support.
Vec3A
A 3-dimensional vector with SIMD support.
WeakCallback
A weak reference to a Callback.
WeakCallbackEmitter
A weak reference to a CallbackEmitter.
WeakSignal
A weak reference to a Signal.

Enums§

AlignItems
Axis
EulerRot
Euler rotation sequences.
JustifyContent
Key
LoadedStyleKind
A style that can be loaded from a file or be an inline style.
PointerButton
StyleAttributeValue
A Style attribute value.
StyleLoadError
An error that can occur when loading a style sheet.
Unit
A unit of measurement. (eg. 10px, 10pt, 10%)

Constants§

DAY_THEME
NIGHT_THEME

Traits§

AnyView
A View that with an unknown state.
BindCallback
Bindable
Bindings
Context
EventSender
An event sender, that can send events to the application.
Events
FromStyleAttribute
Parent
Properties
SendSync
A trait that is implemented for all types that implement Send + Sync.
Sendable
A trait that is implemented for all types that implement Send.
StyleAttributeBuilder
StyleAttributeEnum
Styleable
A trait for adding style attributes to a value.
Transitionable
Vec2Swizzles
Vec3Swizzles
Vec4Swizzles
View
A View is a component that can be rendered to the screen.

Functions§

dmat2
Creates a 2x2 matrix from column vectors.
dmat3
Creates a 3x3 matrix from column vectors.
dmat4
Creates a 4x4 matrix from column vectors.
dquat
Creates a quaternion from x, y, z and w values.
dvec2
Creates a 2-dimensional vector.
dvec3
Creates a 3-dimensional vector.
dvec4
Creates a 4-dimensional vector.
ivec2
Creates a 2-dimensional vector.
ivec3
Creates a 3-dimensional vector.
ivec4
Creates a 4-dimensional vector.
mat2
Creates a 2x2 matrix from column vectors.
mat3
Creates a 3x3 matrix from column vectors.
mat4
Creates a 4x4 matrix from column vectors.
mat3a
Creates a 3x3 matrix from column vectors.
quat
Creates a quaternion from x, y, z and w values.
trans
An ease of use function to create an StyleAttributeBuilder with a transition.
uvec2
Creates a 2-dimensional vector.
uvec3
Creates a 3-dimensional vector.
uvec4
Creates a 4-dimensional vector.
vec2
Creates a 2-dimensional vector.
vec3
Creates a 3-dimensional vector.
vec4
Creates a 4-dimensional vector.
vec3a
Creates a 3-dimensional vector.

Type Aliases§

Scope
StyleAttributeKey
StyleClass
StyleElement