Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
wxDragon
wxDragon provides safe, idiomatic Rust bindings for the wxWidgets cross-platform GUI toolkit. It aims to make GUI development in Rust feel natural and robust, leveraging wxWidgets' extensive set of native-looking controls and features.
This crate is built on top of wxdragon-sys, which handles the unsafe FFI bindings to a C++ wrapper library (libwxdragon) that, in turn, interfaces with wxWidgets.
Features
- Safe Abstractions: Wraps unsafe C API calls from
wxdragon-sysinto safe Rust structs and methods. - Builder Pattern: Many widgets can be constructed using a convenient builder pattern.
- Event Handling: (Describe the event handling mechanism once more established, e.g., using closures or specific event traits).
- Cross-Platform: Inherits wxWidgets' ability to create applications with native look and feel on Windows, macOS (Cocoa), and Linux (GTK+).
- Growing Widget Set: Continuously expanding coverage of wxWidgets controls and dialogs.
Getting Started
Add wxdragon to your Cargo.toml:
[]
= "0.1.0" # Replace with the desired version from crates.io
Example
Here's a basic example of creating a simple frame using the wxdragon::main entry point:
use *;
(Note: To run this example, you'd place it in a main.rs file within a Cargo project that has wxdragon as a dependency and ensure your wxdragon::prelude is correctly defined and accessible.)
License
This crate is licensed under the terms of the MIT license OR the Apache License 2.0 (see LICENSE-MIT and LICENSE-APACHE files in the workspace root).
Contributing
Contributions are welcome! Please refer to the CONTRIBUTING.md file (if one exists) and the development guidelines in the project's main README.