#conrod #gui #derive #procedural #macro

conrod_derive

A crate providing procedural macros for the conrod library

15 breaking releases

Uses old Rust 2015

0.76.0 Nov 13, 2021
0.74.0 Jun 20, 2021
0.71.0 Oct 6, 2020
0.70.0 May 9, 2020
0.1.0 Jul 18, 2017

#40 in Procedural macros

Download history 616/week @ 2021-08-12 811/week @ 2021-08-19 381/week @ 2021-08-26 214/week @ 2021-09-02 587/week @ 2021-09-09 477/week @ 2021-09-16 212/week @ 2021-09-23 291/week @ 2021-09-30 593/week @ 2021-10-07 624/week @ 2021-10-14 745/week @ 2021-10-21 643/week @ 2021-10-28 667/week @ 2021-11-04 957/week @ 2021-11-11 659/week @ 2021-11-18 437/week @ 2021-11-25

2,873 downloads per month
Used in 27 crates (4 directly)

MIT/Apache

19KB
396 lines

Conrod Actions Status Crates.io

An easy-to-use, 2D GUI library written entirely in Rust.

Guide

  1. What is Conrod?
  2. Getting Started
  3. Hello World
  4. Using and Customising Themes
    • What is a Theme?
    • Custom Themes
    • Serializing Themes
  5. Designing Custom Widgets (using the Widget trait)
    • The Widget trait
    • The widget_style! macro
    • The builder_methods! macro
    • Making a Button widget
  6. Custom Graphics and Window Backends
    • Demonstration of Backend Implementation (using glium and glutin)
  7. Internals
    • The Ui's Widget Graph
    • Ui::set_widgets - How does it work?
  8. FAQ

The Guide is a work-in-progress. If a section is not linked, it is likely not yet implemented.

Crates

Crate Badges Description
conrod_core Crates.io docs.rs The fundamentals for any conrod project.
conrod_derive Crates.io docs.rs Provides the WidgetCommon and WidgetStyle derive macros.
conrod_winit Crates.io docs.rs Simplifies using conrod_core with winit
conrod_gfx Crates.io docs.rs Simplifies using conrod_core with the gfx ecosystem
conrod_glium Crates.io docs.rs Simplifies using conrod_core with glium
conrod_piston Crates.io docs.rs Simplifies using conrod_core with piston
conrod_vulkano Crates.io docs.rs Simplifies using conrod_core with vulkano

Current State

We're just starting to reach a stable-ish API pattern! There will still be some large changes, however these are more likely to be new features than API overhauls.

To get a clearer idea of where we're at see the issues and in particular, the 1.0.0 milestone.

Contributing

Want to help out? See Piston's how to contribute guide.

License

Licensed under either of

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Example Assets

Dependencies

~295–710KB
~18K SLoC