Skip to main content

Crate vernier_rs_core

Crate vernier_rs_core 

Source
Expand description

Algorithms, geometry, and color math for vernier.

No GUI or platform dependencies live in this crate.

Re-exports§

pub use aspect::CommonRatio;
pub use aspect::Mode as AspectMode;
pub use aspect::Ratio;
pub use aspect::classify as classify_aspect;
pub use color::Rgba;
pub use edge::Direction;
pub use edge::EdgeBias;
pub use edge::EdgeCandidate;
pub use edge::EdgeQuad;
pub use edge::Tolerance;
pub use edge::detect_edges;
pub use edge::shrink_to_content;
pub use edge::shrink_to_content_frac;
pub use edge::shrink_to_content_with_bg;
pub use edge::shrink_to_content_with_bg_frac;
pub use frame::FrameView;
pub use geometry::Px;
pub use geometry::PxRect;
pub use handoff::HandoffApp;
pub use handoff::KNOWN_HANDOFF_APPS;
pub use handoff::find_installed_apps as find_installed_handoff_apps;
pub use handoff::lookup_for_binary;
pub use handoff::render_args;
pub use handoff::resolve_icon;
pub use measurement::Axis;
pub use measurement::Measurement;
pub use measurement::Mode as InteractionMode;
pub use measurement::SnapPoint;
pub use measurement::axis_biased_snap;
pub use measurement::best_snap;
pub use settings::AppearanceSettings;
pub use settings::ClipboardUnit;
pub use settings::ColorRgba;
pub use settings::CopyFormat;
pub use settings::GeneralSettings;
pub use settings::IntegrationSettings;
pub use settings::RoundingMode;
pub use settings::ScreenshotSettings;
pub use settings::Settings;
pub use settings::ShortcutSettings;
pub use settings::ToleranceLevel;
pub use settings::ToleranceSettings;
pub use settings::settings_path;

Modules§

aspect
Aspect-ratio detection and snapping for the area tool.
color
Pure-Rust color types used by edge detection and the geometry layer.
edge
Cursor-out edge detection.
frame
Borrowed view over an RGBA8 pixel buffer.
geometry
Geometry primitives shared by the core algorithms.
handoff
Discovery + invocation helpers for the post-capture handoff app.
measurement
Measurement state machine and distance math.
settings
User-configurable settings for the daemon and overlay.

Functions§

build_id
Stable per-process build identifier — the mtime (in seconds since the epoch, hex-encoded) of the executable that launched this process. Captured the first time it’s called, so a later rebuild of the on-disk binary doesn’t invalidate the value for an already-running process. Used by the prefs window’s daemon-probe to detect when the daemon is from an older build than itself.