1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Take a look at the license at the top of the repository in the LICENSE file.

//! # Rust Graphene bindings
//!
//! This library contains safe Rust bindings for [Graphene](https://github.com/ebassi/graphene).
//! It is a part of [gtk-rs](https://gtk-rs.org/).
//!
//! Graphene 2.44 is the lowest supported version for the underlying library.

#![cfg_attr(feature = "dox", feature(doc_cfg))]

pub use ffi;
pub use glib;

// Graphene has no runtime to initialize
macro_rules! assert_initialized_main_thread {
    () => {};
}

// No-op
macro_rules! skip_assert_initialized {
    () => {};
}

#[allow(clippy::transmute_ptr_to_ref)]
#[allow(clippy::type_complexity)]
#[allow(clippy::unreadable_literal)]
#[allow(clippy::derive_hash_xor_eq)]
#[allow(unused_imports)]
mod auto;

pub mod prelude;

pub use crate::auto::*;

mod box_;
mod euler;
mod frustum;
mod matrix;
mod plane;
mod point;
mod point3_d;
mod quad;
mod quaternion;
mod ray;
mod rect;
mod size;
mod sphere;
mod triangle;
mod vec2;
mod vec3;
mod vec4;