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
53
54
55
56
57
58
59
60
61
#![cfg_attr(
    not(windows),
    doc = "You are viewing this documentation for a platform that isn't windows. You might wanna \
           [switch](https://docs.rs/direct2d/*/x86_64-pc-windows-msvc/direct2d/)\\^\\^"
)]
#![cfg_attr(feature = "docs", feature(external_doc))]
#![cfg_attr(all(windows, feature = "docs"), doc(include = "../CRATE_README.md"))]

#[cfg(windows)]
extern crate directwrite;
#[cfg(windows)]
extern crate dxgi;
#[cfg(windows)]
extern crate either;
#[cfg(windows)]
extern crate winapi;
#[cfg(windows)]
extern crate wio;

#[cfg(windows)]
#[doc(inline)]
pub use device::Device;
#[cfg(windows)]
#[doc(inline)]
pub use device_context::DeviceContext;
#[cfg(windows)]
#[doc(inline)]
pub use error::Error;
#[cfg(windows)]
#[doc(inline)]
pub use factory::Factory;
#[cfg(windows)]
#[doc(inline)]
pub use render_target::RenderTarget;

#[cfg(windows)]
#[macro_use]
mod macros;

#[cfg(windows)]
pub mod brush;
#[cfg(windows)]
pub mod device;
#[cfg(windows)]
pub mod device_context;
#[cfg(windows)]
pub mod enums;
#[cfg(windows)]
pub mod error;
#[cfg(windows)]
pub mod factory;
#[cfg(windows)]
pub mod geometry;
#[cfg(windows)]
pub mod image;
#[cfg(windows)]
pub mod math;
#[cfg(windows)]
pub mod render_target;
#[cfg(windows)]
pub mod stroke_style;