1 unstable release
Uses new Rust 2024
new 0.1.1 | Apr 2, 2025 |
---|
#7 in #tooltip
37 downloads per month
Used in 155 crates
(33 directly)
1.5MB
12K
SLoC
Aloe Mouse
Aloe Mouse is a Rust library designed to manage and manipulate mouse cursor images and interactions. It offers a rich set of features suited for software developers working with GUI applications, providing flexibility in customizing both standard and custom mouse cursors.
Features
- Standard Cursors: A comprehensive enumeration of standard mouse cursor types, enabling easy switching and management.
- Custom Cursors: Capability to create custom mouse cursors from image resources, with support for scaling and hotspot configuration.
- Tooltips: A fully-featured TooltipClient interface that allows GUI components to implement popup tooltip functionality with ease.
- Apple Remote Integration: Exclusive functionality for macOS allowing interaction with Apple Remote Device, facilitating control via remote buttons.
Usage
To use Aloe Mouse in your project, add the following to your Cargo.toml
:
[dependencies]
aloe-mouse = "0.1.0"
Examples
Creating a standard cursor:
use aloe_mouse::MouseCursor;
use aloe_mouse::MouseCursorStandardCursorType;
let cursor = MouseCursor::new_from_cursor_type(MouseCursorStandardCursorType::PointingHandCursor);
Creating a custom cursor:
use aloe_mouse::MouseCursor;
use aloe_mouse::CustomMouseCursorInfo;
// Assume `image` is a valid Image object and `hotspot` is a Point<i32>
let custom_cursor = MouseCursor::new_from_image_and_hotspot(image, hotspot_x, hotspot_y);
Disclaimer: This README was generated by an AI model and may not capture all intricacies perfectly, though it should provide substantial guidance.
This crate is a translation of the JUCE module.
JUCE is a c++ software framework for developing high performance audio applications.
Usage falls under the GPLv3 as well as the JUCE commercial license.
See github.com/juce-framework/JUCE and the JUCE license page for details.
This crate is in the process of being translated from c++ to rust. For progress updates, please see the workspacer rust project. designed specifically for rust projects.
Dependencies
~24–38MB
~591K SLoC