Skip to main content

Crate cranpose_ui_graphics

Crate cranpose_ui_graphics 

Source
Expand description

Pure math/data for drawing & units in Cranpose

This crate contains geometry primitives, color definitions, brushes, and unit types that are used throughout the Cranpose framework.

Re-exports§

pub use alpha_mask::*;
pub use liquid_glass::*;
pub use render_effect::*;

Modules§

alpha_mask
Alpha-mask helpers for graphics-layer effects.
liquid_glass
LiquidGlass effect: a refractive glass material rendered via RuntimeShader.
prelude
render_effect
Render effects that can be applied to graphics layers.

Structs§

Color
CornerRadii
Dp
Density-independent pixels
DpOffset
Density-independent offset for shadows.
DrawScopeDefault
EdgeInsets
Padding values for each edge of a rectangle.
FontWeight
Font weight (100-900)
GraphicsLayer
ImageBitmap
Immutable RGBA image data used by UI primitives and render backends.
Point
Px
Raw pixels
Rect
RoundedCornerShape
Shadow
Static shadow configuration.
ShadowScope
Pixel-space shadow scope used by block-based APIs.
Size
Sp
Scale-independent pixels (for text)
TextStyle
Text style (data only, no rendering)
TransformOrigin

Enums§

BlendMode
Blend mode used for draw primitives.
Brush
ColorFilter
Simple image color filter model.
CompositingStrategy
Controls how a graphics layer is composited into its parent target.
DrawPrimitive
FontStyle
Font style (normal, italic, oblique)
ImageBitmapError
Errors returned while constructing an ImageBitmap.
LayerShape
ShadowPrimitive
Describes a shadow to be rendered. Each renderer chooses how to blur.

Traits§

DrawScope